@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');
@import url('https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css');
@import url('./forms.css');
@import url('./main.css');

* {
    margin: 0;
    box-sizing: border-box;
}

:root {
    /* DARK THEME */
    --dark-bg-color: #15202B;
    --dark-text-color: #EEEEEE;
    --dark-primary-color: #5DAFF5;
    /* LIGHT THEME */
    --light-bg-color: #EEEEEE;
    --light-text-color: #2E2E2E;
    --light-primary-color: #B10000;
}

.max-size {
    font-size: 1.5em;
}
.link {
    cursor: pointer;
}

/* DEFAULT THEME (DARK) */
body {
    background-color: var(--dark-bg-color);
    font-family: 'Quicksand', sans-serif;
    color: var(--dark-text-color);
    transition: all 1s ease-in-out;
}
body a {
    color: var(--dark-primary-color);
    text-decoration: none;
}
body a:hover {
    color: var(--dark-text-color);
}


h1 {
    margin-block-start: 0;
    margin-block-end: 0;
}

h2 {
    text-align: center;
    background-color: var(--dark-primary-color);
    padding: 5px;
    margin: 5px;
}

h1, h2, h3 {
    font-size: 1.1em;
    font-weight: 400;
}

p {
    font-size: 0.9em;
    padding-inline-start: 5px;
    padding-inline-end: 5px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw;
    height: 10vh;
    padding-inline-start: 25px;
    padding-inline-end: 25px;
}

header div {
    display: flex;
    min-width: 60px;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 0;
    height: 10vh;
}

nav ul {
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    padding-inline-start: 0;
    width: 100%;
    max-width: 370px;
    height: 50px;
}

nav ul > li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    border-bottom: 2px solid transparent;
    color: var(--dark-primary-color);
    cursor: pointer;
}

nav ul > li.active {
    border-bottom: 2px solid;
    color: var(--dark-text-color);
}

nav ul li > span {
    font-size: xx-small;
    text-transform: uppercase;
    padding-top: 5px;
}

nav ul > li .mark {
    display: none;
    position: absolute;
    left: 15px;
    width: 10px;
    height: 10px;
    background-color: var(--light-primary-color);
    border-radius: 1em;
    
    animation: moveMark 1.5s infinite;
}
@keyframes moveMark {
    0% {
        top: 0px;
    }
    50% {
        top: -5px;
    }
    100% {
        top: -1px;
    }
}

#ValidForm, #ErrorForm {
    width: 90%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 0.5em;
    opacity: 1;

    animation: fade 5s infinite 5s;
}

#ValidForm {
    background-color: yellowgreen;
    color: black;
}

#ErrorForm, input[type="email"].error {
    background-color: lightcoral;
    color: black;
}

#ValidForm h3, #ErrorForm h3 {
    font-size: 0.9em;
    text-decoration: none;
}

@keyframes fade {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* LIGHT THEME */
body.light {
    background-color: var(--light-bg-color);
    color: var(--light-text-color);
}

body.light a {
    color: var(--light-primary-color);
}
body.light a:hover {
    color: var(--light-text-color);
}

body.light nav ul > li {
    color: var(--light-primary-color);
}

body.light nav ul > li.active {
    border-bottom: 2px solid;
    color: var(--light-text-color);
}

body.light h2 {
    background-color: var(--light-primary-color);
    color: var(--dark-text-color);
}
