/* Base theme of website */
:root{
    /* COLORS */
    --primary: #222229;
    --secondary: #2d2d36;
    --tertiary: rgb(83, 76, 109);
    --quaternary: #001925;
    --senary: rgb(97, 85, 141);
    --text-color: #ffffff;
    --box-shadow: rgb(80, 70, 116);
    --header-background: rgba(90, 90, 90, 0.3);
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    scrollbar-color: var(--tertiary) var(--primary);
}

main {
    margin-top: 6em;
}

body {
    background-color: var(--primary);
    overflow-x: hidden;
}

/* header construction */

header {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    z-index: 2;
    transition: transform 1s;
}

#logo {
    height: 70px;
    width: fit-content;
    margin-right: 1.5em;
    margin-bottom: 0.5em;
}

header i {
    font-size: 30px;
    z-index: 3;
    color: var(--tertiary);
    align-self: center;
    transition: all 500ms;
}

header > div {
    display: flex;
    flex-wrap: wrap;
    color: var(--text-color);
    width: 100vw;
    box-shadow: 0 7px 10px var(--box-shadow);
    justify-content: space-around;
    align-items: center;
    z-index: 3;
    backdrop-filter: blur(10px);
    background-color: var(--header-background);
}

header > div > div {
    display: flex;
}

.header-front {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
}

header p {
    font-size: 1em;
}

h1 {
    font-size: 1.4em;
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    width: max-content;
    height: 80px;
}

nav li {
    display: flex;
    align-items: center;
    height: 100%
}

nav {
    align-self: center;
}

nav a {
    color: var(--text-color);
    font-size: 1.2em;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

nav a:hover {
    background-color: var(--tertiary);
}

.end-head {
    gap: 20px;
}

#all_parameters {
    display: flex;
    justify-content: flex-end;
}

#menu, #cross-menu {
    display: none;
    width: 30px;
    z-index: 4;
}

#param-list {
    display: none;
    opacity: 0;
    flex-direction: column;
    position: absolute;
    background-color: var(--secondary);
    border: 1px solid var(--tertiary);
    padding: 1em;
    border-radius: 10px;
    bottom: -12em;
    gap: 10px;
    transition: all 500ms;
}

/* Responsive header */

@media (max-width: 915px) {
    #param-list {
        bottom: -12.5em;
    }
}

@media (max-width: 510px) {
    h1 {
        font-size: 19px;
    }

    #logo {
        width: 60px;
    }

    header > div {
        min-height: 120px;
    }

    header > div > div:last-of-type {
        width: 50vw;
        justify-content: space-between;
    }

    main {
        margin-top: 9em;
    }

    header p {
        font-size: 17px;
    }

    #menu {
        display: flex;
        color: var(--tertiary);
    }

    #cross-menu {
        color: var(--tertiary);
    }

    #menu-list {
        display: none;
        flex-direction: column;
        position: absolute;
        background-color: var(--secondary);
        border: 1px solid var(--tertiary);
        border-radius: 5px;
        height: fit-content;
        transition: opacity 500ms;
        z-index: 4;
        opacity: 0;
    }

    nav a {
        width: 100%;
        padding: 5px 20px;
    }
}

/* Footer construction */

footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5em;
    padding: 4em 2em;
    margin-top: 4em;
    border-top: 1px solid var(--text-color);
    background-color: var(--secondary);
    color: var(--text-color);
    font-size: 18px;
    box-shadow: 0 -7px 10px var(--box-shadow);
}   

h4 {
    padding-bottom: 1em;
}

#my-contact {
    height: fit-content;
    padding: 2em;
    box-shadow: 0px 0px 5px var(--quaternary);
    transition: all 500ms;
}

#my-contact a {
    color: var(--text-color);
}

#my-contact a:hover {
    color: var(--tertiary);
}

#my-contact:hover {
    box-shadow: 0px 0px 5px var(--senary);
}

#my-contact, #contact-us {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 1em;
}

#contact-us {
    background-color: var(--quaternary);
    max-width: 350px;
    width: 100%;
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 20px),
        calc(100% - 20px) 100%,
        0 100%
    );
    padding: 1.5em;
    border-left: 5px solid var(--senary);
}

footer form {
    display: flex;
}

footer input {
    border: none;
    font-size: 20px;
    color: black;
    transition: all 0.2s ease-in-out;
    border-left: 1px solid transparent;
    padding-left: 3px;
}

footer textarea {
    border: none;
    font-size: 20px;
    padding-left: 3px;
    resize: none;
    height: 100px;
    color: black;
    transition: all 0.2s ease-in-out;
    border-left: 1px solid transparent;
}

footer input:focus, footer textarea:focus {
    border-left: 5px solid var(--senary);
  }

footer .submit {
    width: fit-content;
    align-self: flex-end;
    filter: drop-shadow(3px 3px 0px var(--tertiary));
}

footer input[type="submit"] {
    width: fit-content;
    padding: 10px;
    color: var(--text-color);
    background-color: var(--quaternary);
    clip-path: polygon(
        0 0,
        100% 0,
        100% calc(100% - 10px),
        calc(100% - 10px) 100%,
        0 100%
    );
    transition: all 0.2s ease-in-out;
}

footer input[type="submit"]:hover {
    background-color: var(--tertiary);
    color: var(--primary);
}

footer .submit:hover {
    filter: drop-shadow(3px 3px 0px var(--quaternary));
}

footer i {
    font-size: 22px;
    color: var(--tertiary);
}

.error p {
    color: red;
}

.input-error {
    border: 1px solid red;
}

.success {
    color: green;
}

/* Btn light/dark mode */

.btn{
    background-color: #fff;
    width: 5em;
    height: 3em;
    border-radius: 10em;
    padding: 0 0.5em;

    box-shadow: inset 0 8px 60px rgba(0,0,0, .3),
    inset 8px 0 8px rgba(0,0,0, .3),
    inset 0 -4px 4px rgba(0,0,0, .3);

    position: relative;

    display: flex;
    align-items: center;

    cursor: pointer;
    margin-bottom: 0.5em;
    align-self: center;

    transition: all 500ms;
}

.btn__indicator{
    background-color: #000000;
    width: 2em;
    height: 2em;
    border-radius: 50%;

    position: absolute;

    box-shadow: 0 8px 40px rgba(0,0,0, .2);

    transition: transform .3s ease;
}

.btn__icon-container{
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

.btn__icon{
    color: #ffffff;
    font-size: 1.3rem;
}

.lightmode.btn{
    box-shadow: inset 0 8px 60px rgba(0,0,0, .1),
            inset 20px 0px 8px rgba(0,0,0, .1),
            inset 0 -4px 4px rgba(0,0,0, .1);
}

.lightmode .btn__indicator{
    transform: translateX(3em);
    background-color: #d6d6d6;
    box-shadow: 0 8px 40px rgba(0,0,0, .3);
}

.lightmode .btn__icon{
    color: #FFDE59;
}

.btn.disabled {
    filter: contrast(0.2) grayscale(1);
    cursor: default;
}

#advanced {
    margin-left: 10px;
}

#themes-list {
    padding: 0.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 150px;
}

.theme {
    margin: 7px 10px;
    width: 20px;
    height: 20px;
    border: solid 2px #c2c2c2;
    transition: all 500ms;
    cursor: pointer;
}

.theme img {
    transition: all 250ms;
}

#themes-list.disabled .theme {
    cursor: default;
    filter: grayscale(0.8);
}

#crimson {
    background-color: rgb(107, 16, 0);
}

#sunrise {
    background-color: rgb(209, 163, 10);
}

#butterfly {
    background-color: rgb(100, 11, 117);
}

#ocean {
    background-color: rgb(5, 22, 175);
}

#sky {
    background-color: rgb(41, 235, 241);
}

#nature {
    background-color: rgb(24, 214, 135);
}

#themes-list .checked {
    border: solid 2px #19d752;
}

.tick-mark {
    display: flex;
    width: 28px;
    height: 28px;
    align-items: flex-end;
    justify-content: flex-end;
}

.checked .tick-mark {
    width: 28px;
    height: 24px;
}

.tick-mark img {
    width: 15px;
    height: 15px;
}

.modal {
    display: none;
    position: fixed;
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 0, 0, 0.6);
    z-index: 5;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    margin: 0;
}

.modal > div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
}

.modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    height: fit-content;
}

.box-min {
    padding: 1em 2em;
    margin: 1em;
    height: fit-content;
    border-radius: 10px;
    max-width: 300px;
    transition: all 500ms;
}

.box-min:hover {
    transform: translateY(-15px);
}

.secondary {
    background-color: var(--tertiary);
    box-shadow: 0px 0px 20px var(--secondary);
    
}

.tertiary {
    color: var(--tertiary);
}

.senary {
    color: var(--senary);
}

#captcha {
    color: red;
}

@media (max-width: 510px) {
    #contact-us h4 {
        font-size: 18px;
    }

    #contact-us input, #contact-us textarea {
        font-size: 16px;
    }
}

/* Animations */

.turn {
    transform: rotate(-120deg);
}

@keyframes fade {
    from {
      opacity: 0;
    }
}

.fade {
    animation: fade 2s;
}

@keyframes fade-in {
    from {
      opacity: 0;
      transform: translateY(10vw);
    }
}

.fade-in {
    animation: fade-in 1s;
}

@keyframes scaling {
    from {
      transform: scale(0);
    }
}

.scaling {
    animation: scaling 1s;
}

@keyframes fade-in-slide {
    from {
      opacity: 0;
      transform: translate(10vw);
    }
}

.slide-in {
    animation: fade-in-slide 1s;
}

@keyframes fade-out-slide {
    from {
      opacity: 1;
    }
    to {
        transform: translate(10vw);
    }
}

.slide-out {
    animation: fade-out-slide 1s;
}

@keyframes scaling {
    from {
      transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.fast-scale {
    animation: scaling 500ms;
}

@keyframes fade-in-left {
    from {
      opacity: 0;
      transform: translateX(-15vw);
    }
}

.left-in {
    animation: fade-in-left 1s;
}

@keyframes fade-in-right {
    from {
      opacity: 0;
      transform: translateX(15vw);
    }
}

.right-in {
    animation: fade-in-right 1s;
}