:root {
    --color-accent: #fa6b31;
    --color-base: #020201;
}

* {
    box-sizing: border-box; 
}

body, html {
    overflow-x: hidden;
    padding: 0;
    margin: 0;
    font-family: Helvetica;
}

#root {
    min-height: 600px;
}

a {
    text-decoration: none;
    color: black;
    cursor: pointer;
}

nav {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#main-logo img {
    width: 175px;
}

nav ul {
    display: flex;
    gap: 15px;
    margin: 15px;

    list-style: none;

    font-size: 1.5rem;
}

nav ul li {
    padding: 15px;
    transition-property: translate;
    transition-duration: 0.2s;
}
nav ul li:hover {
    translate: 0px 5px;
}

#nav-underline {
    width: 100%;
}
#nav-underline #nav-underline-top {
    background-color: var(--color-base);
    width: 100%;
    height: 3px;
}

#nav-underline #nav-underline-bottom {
    background-color: var(--color-accent);
    width: 100%;
    height: 3px;
}

footer {
    width: 100%;
    height: 250px;
    background-color: #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer img {
    width: 150px;
    object-fit:contain;
}

footer #footer-upper {
    font-size: 1.5rem;
    width: 45%;
    margin: 10px auto;
    display: flex;
    justify-content: space-around;
    gap: 20px;
}
footer #footer-upper p {
    width: 250px;
    text-align: center;
}

@media (max-width: 800px) {
    nav ul {
        font-size: 1.2rem;
    }
    footer #footer-upper p {
        font-size: 1rem;
        width: 120px;
    }
}
@media (max-width: 700px) {
    nav ul li:hover {
        translate: 0px;
    }
    #main-logo {
        margin-top: 10px;
    }
    nav {
        flex-direction: column;
        height: 150px;
    }
    nav ul {
        flex-direction: row;
        padding: 0;
        margin-left: 30px;
        font-size: 1.5rem;
    }
    footer {
        width: 99%;
        font-size: 0.9rem;
        height: 250px;
    }
    footer #footer-upper {
        gap: 0px;
    }
    footer img {
        margin-right: 20px;
        width: 40%;
    }
    footer #footer-upper ul {
        font-size: 0.9rem;
    }
    footer #footer-upper {
        justify-content: center;
    }
}

@media (max-width: 540px) {
    nav ul {
        font-size: 1.0rem;
    }
}
@media (max-width: 490px) {
    nav ul {
        font-size: 0.9rem;
    }
}
@media (max-width: 385px) {
    nav ul {
        font-size: 0.75rem;
    }
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    margin: calc(50vh - 200px) calc(50vw - 75px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

#loader::after {
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

@keyframes loading {
    from { transform: rotate(0turn) }
    to { transform: rotate(1turn) }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

