/*
    =================
    Table Of Contents
    =================

    1. Resets
    2. Defaults
    3. Background
    4. Fonts
    5. Form Related
    6. Search Results
    7. Navagation


    --. Keyframes
*/

/* 
    =========
    2. Resets
    =========
*/
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-y: scroll;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

/* 
    ===========
    1. Defaults
    ===========
*/
:root {
    --background-color: hsl(0, 0%, 8%);
    --background-color-opacity: hsl(0, 0%, 8%, 0.9);
    --background-color-offset: hsl(0, 0%, 30%);
    --primary-color: hsl(0, 0%, 100%);
    --secondary-color: hsl(0, 0%, 8%);
    --error: hsl(0, 100%, 50%);
    --required: hsl(0, 100%, 50%);
}

::-webkit-scrollbar {
    width: clamp(3px, 1vw, 5px);
    height: clamp(3px, 1vw, 5px);;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 100%);
    border-radius: clamp(.25rem, 2vw, 1rem);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: clamp(3.5rem, 5vw, 5rem);
    scrollbar-gutter: stable;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

body {
    text-align: center;
    position: fixed;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-bottom: 1.8rem;
}

footer {
    position: fixed;
    width: 100%;
    padding: 0.15rem 0;
    font-size: 1rem;
    height: auto;
    top: calc(100% - 1.8rem);
    background-color: var(--background-color-opacity);
}

a, button {
    display: inline-block;
    font-size: clamp(0.5rem, 5vw, 1rem);
    background-color: transparent;
    cursor: pointer;
    color: var(--primary-color);
    text-decoration: none;
    border: 1px solid var(--primary-color);
    margin: clamp(1rem, 5vw, 2rem);
    padding: clamp(0.75rem, 5vw, 1rem);
    border-radius: 1rem;
    background-size: 0;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: right bottom;
    background-repeat: no-repeat;
    transition: 
        background-size 300ms ease-in-out,
        color 300ms ease-in-out;
}

a:hover, button:hover {
    color: var(--secondary-color);
    background-size: 100%;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: 
        background-size 300ms ease-in-out,
        color 300ms ease-in-out;
}

p a {
    border: none;
    border-radius: 10px;
    margin: 0 .5rem;
    padding: clamp(0.15rem, 5vw, 0.25rem);
}

h1, h2, h3, h4, p {
    cursor: default;
}

/* 
    =============
    3. Background
    =============
*/

.image {
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0 0 0 0;
    z-index: -1000;
    background-image: url(../images/Nadia-Sitova-Unsplash.jpg);
    background-size: cover;
    background-position: center;
    background-color: var(--backgroundColor);
}

.blur {
    position: fixed;
    inset: 0 0 0 0;
    z-index: -1000;
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
}

/* 
    ========
    4. Fonts
    ========
*/
h1 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    margin: 3rem 0;
}

h2 {
    font-size: clamp(1.75rem, 5vw, 2rem);
    margin: 1rem 0;
}

h3 {
    font-size: clamp(0.75rem, 5vw, 1.25rem);
    margin: 1rem 0;
}

h4 {
    font-size: clamp(7rem, 10vw, 12rem);
    margin: 3rem 0;
}

p {
    font-size: clamp(0.65rem, 5vw, 1.15rem);
}

/* 
    ===============
    5. Form Related
    ===============
*/
form, .multiStep, .inputContainer, [hide-function] {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    align-items: center;
}

.multiStep {
    animation:
        slide 500ms ease-in-out forwards
}

.multiStep.active.preload {
    animation: fade 0ms ease-in-out both;
}

.multiStep.active {
    display: flex;
    animation: 
        fade 500ms ease-in-out both;
}

.multiStep.hidden {
    display: none;
}

label {
    display: inherit;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    text-align: left;
    font-size: clamp(0.5rem, 5vw, 1rem);
    width: calc(90% - 10px);
    padding: clamp(0.5rem, 5vw, 1rem) 0 clamp(0.25rem, 5vw, 0.5rem) 0;
    max-width: 475px;
}

label div {
    align-self: center;
    color: var(--required);
    padding: 0 0 0 1rem;
}

input[type=text], input[type=email], select, textarea, input[type=password], input[type=date], input[type=number] {
    font-size: clamp(0.5rem, 5vw, 1rem);
    padding: clamp(0.15rem, 5vw, 0.25rem);
    width: calc(90% - 4px);
    border-radius: 5px;
    border: none;
    max-width: 475px;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button, input[type=number] {
    appearance: none;
    text-align: center;
}

input[type=file] {
    display: none;
}

.dropZone {
    display: inherit;
    -ms-flex-direction: column;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 475px;
    width: calc(90% - 4px);
    height: 200px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: clamp(0.5rem, 5vw, 1rem);
    padding: clamp(0.15rem, 5vw, 0.25rem);
    cursor: pointer;
}

textarea {
    width: calc(90% - 6px);
    height: 200px;
    max-width: 475px;
}

.multiStep .buttons-start, .multiStep, .buttons {
    display: inherit;
    justify-content: flex-end;
    width: 100%;
}

.multiStep, .buttons {
    justify-content: space-between;
}

.buttons-start, .buttons {
    max-width: 475px;
    width: calc(90% - 4px);
}

form button, .multiStep button, form a {
    margin: clamp(1rem, 5vw, 2rem) 0;
    padding: clamp(0.75rem, 5vw, 1rem);
}

.comment, .comment a {
    text-align: left;
    width: calc(90% - 10px);
    padding: 0 0 clamp(0.25rem, 5vw, 0.5rem) 0;
    color: hsl(0, 0%, 62%);
    font-size: clamp(0.35rem, 5vw, 0.85rem);
    max-width: 475px;
    border: none;
}

.comment a:hover {
    background-size: 0;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: right bottom;
    background-repeat: no-repeat;
}

form h3 .comment {
    display: inline-block;
    color: var(--required);
    text-align: center;
}

optgroup {
    background-color: var(--backgroundColorOffset);
}

.error, .success {
    font-size: clamp(0.5rem, 5vw, 1rem);
    max-width: 475px;
    width: 100%;
    position: relative;
    inset: 0 0 0 50%;
    transform: translateX(-50%);
    background: var(--error);
    padding: 0.25rem;
    margin: 0.25rem;
    border-radius: 15px;
}

.success {
    background: hsl(120, 100%, 25%);
}

.reset {
    margin: clamp(0.25rem, 5vw, 0.5rem);
    cursor: pointer;

    background-size: 0 2px;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: right bottom;
    background-repeat: no-repeat;
    transition: 
        background-size 300ms ease-in-out,
        color 300ms ease-in-out;
}

.reset:hover {
    background-size: 100% 2px;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: 
        background-size 300ms ease-in-out,
        color 300ms ease-in-out;
}

form .hide {
    height: 0;
    width: inherit;
    overflow: hidden;
    transition: 
        height 500ms ease-in-out;
}

form img {
    padding: clamp(0.5rem, 5vw, 1rem) 0 clamp(0.5rem, 5vw, 1rem) 0;
}

/* 
    =================
    6. Search Results
    =================
*/
.viewResults {
    display: block;
    overflow: auto;
    margin: auto 0.25rem;
    max-height: 300px;
}

table {
    display: inline-block;
    border-collapse: collapse;
    white-space: nowrap;
    margin: auto;
    text-align: left;
}

td {
    padding: 1rem;
}

th {
    padding: 1rem;
    cursor: default;
}

[link] {
    text-align: left;
    border-radius: 1rem;
}

[link]:hover {
    background-color: var(--background-color-offset);
    cursor: pointer;
}

[section-title] {
    font-size: clamp(1.75rem, 5vw, 2rem);
    margin: 1rem 0;
    text-align: center;
}

[options] {
    text-align: center;
}

th a {
    border: none;
    border-radius: 10px;
    margin: 0 .5rem;
    padding: clamp(0.15rem, 5vw, 0.25rem);
}

/*
    =============    
    7. Navagation
    =============
*/

menu {
    display: flex;
    position: fixed;
    background-color: var(--background-color-opacity);
    width: 100%;
    height: 2.5rem;
    border: none;
    inset: 0 0 0 0;
    align-items: center;
    justify-content: space-between;
    z-index: 99;
}

nav {
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    position: fixed;
    background-color: var(--background-color-opacity);
    width: 240px;
    max-width: 100%;
    height: calc(100% - 2.5rem);
    inset: 2.5rem 0 0 -240px;
    transition: 
        inset ease-in-out 300ms;
    z-index: 99;
}

nav.active {
    inset: 2.5rem 0 0 0;
}

nav button, menu button, nav a {
    display: flex;
    border: none;
    padding: 0.5rem;
    margin: 0;
    background-size: 0;
    align-content: center;
    width: -moz-fit-content;
    width: fit-content;
    font-size: clamp(1.25rem, 0.5vw, 1.5rem);
    align-items: center;
    text-align: left;
}

nav button, nav a {
    background-size: 0 2px;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: right bottom;
    background-repeat: no-repeat;
    transition:
        background-size ease-in-out 300ms,
}

nav button:hover, nav a:hover {
    color: var(--primary-color);
    background-size: 100% 2px;
    background-image: linear-gradient(var(--primary-color), var(--primary-color), var(--primary-color));
    background-position: left bottom;
    background-repeat: no-repeat;
    transition:
        background-size ease-in-out 300ms;
}

nav button span, menu, nav a span {
    padding: 0 0.5rem;
}

menu button:hover {
    background-size: 0;
    color: var(--primary-color);
}

nav .hide {
    height: 0;
    overflow-y: hidden;
    margin-left: 1.5rem;
    transition: 
        height ease-in-out 200ms;
}

.bg.active {
    animation:
        navIn 300ms ease both;
}

.bg {
    display: none;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--background-color-opacity);
    z-index: 98;
    transition: 
        opacity linear 300ms;
    animation:
        navOut 300ms ease forwards;
}

/*
    =============
    --. Keyframes
    =============
*/
@keyframes fade {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(.75);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slide {
    0% {
        opacity: 1;
    }

    100% {
        transform: translate(-150%);
        opacity: 0;
    }
}

@keyframes navIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes navOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}