@font-face {
    font-family: Open Sans;
    src: url(/assets/fonts/open_sans.ttf);
}

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

:root {
    --background-color: #f5fff6;
    --foreground-color: #023535;
    --theme-color: #008F8C;
}

html, body {
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Open Sans, sans-serif;
    background-color: var(--background-color);
    color: var(--foreground-color);
}

main {
    flex: 1 0 auto;
    margin-top: 115px;
}


.button {
    align-self: flex-start;
    padding: 15px;
    background-color: var(--theme-color);
    color: white;
    text-decoration: none;
    font-size: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px -5px var(--foreground-color);
    transition: box-shadow .3s;
}

.button:hover {
    box-shadow: 0px 0px 20px -5px var(--foreground-color);
    cursor: pointer;
}

.link {
    color: var(--theme-color);
    text-decoration: underline;
    cursor: pointer;
}


/* Navbar */

header {
    position: fixed;
    width: 100%;
    background-color: rgba(245, 255, 246, 0.9);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0px 0px 7px -5px black;
}

#nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 75%;
    max-width: 1250px;
    height: 100px;
    margin: auto;
}

.head-title {
    font-size: 30px;
    font-weight: 600;
    text-decoration: none;
    color: var(--foreground-color);
}

#nav-bar nav ul {
    display: flex;
    flex-direction: row;
    gap: 50px;
    justify-content: space-around;
    width: 100%;
}

#nav-bar nav ul li {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: 20px;
}

#nav-bar nav ul li a {
    color: var(--foreground-color);
    text-decoration: none;
    transition: color .3s;
}

#nav-bar nav ul li a:hover {
    color: var(--theme-color);
}

.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px;
}

.lang-switch a {
    cursor: pointer;
}

.selected-lang {
    color: var(--theme-color)!important;
}

#mobile-menu {
    position: fixed;
    display: none;
    flex-direction: column;
    gap: 7.5px;
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background-color: rgba(245, 255, 246, 0.97);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    box-shadow: 0px 0px 7px -5px black;
    z-index: 3;
}

#mobile-menu hr {
    width: 45px;
    border: 3px solid var(--foreground-color);
    border-radius: 5px;
    transition: transform .3s, opacity .3s;
}

.mobile-menu-shown hr:first-of-type {
    transform: translateY(12.5px) rotate(45deg);
}

.mobile-menu-shown hr:nth-of-type(2) {
    opacity: 0;
}

.mobile-menu-shown hr:last-of-type {
    transform: translateY(-15px) rotate(-45deg);
}

@media only screen and (max-width: 1000px) {
    .lang-switch {
        display: flex;
        flex-direction: row;
        gap: 15px;
    }

    #mobile-menu {
        display: flex;
    }

    #nav-bar {
        position: fixed;        /* Fix: Jquery opacity Animation */
        display: none;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        width: 100vw;
        height: 100vh;
        background-color: rgba(245, 255, 246, 0.97);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        z-index: 2;
    }

    #nav-bar.nav-shown {
        display: flex;
    }

    #nav-bar nav ul {
        flex-direction: column;
        gap: 25px;
    }

    main {
        margin-top: 75px;
    }
}


/* Footer */

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 80%;
    max-width: 1250px;
    margin: auto;
    padding: 100px 0 50px 0;
}

.footer-left-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

.footer-text-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 75%;
}

.footer-title {
    font-size: 30px;
    font-weight: 600;
}

.footer-description {
    font-size: 20px;
    color: gray;
}

.footer-right-container {
    display: flex;
    flex-direction: row;
    gap: 100px;
}

.footer-links-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links-container a {
    font-size: 18px;
    color: gray;
    text-decoration: none;
}

.footer-links-container a:hover {
    text-decoration: underline;
}

.footer-link-title {
    font-size: 25px;
    font-weight: 500;
    margin-bottom: 15px;
}

@media only screen and (max-width: 800px) {
    footer {
        flex-direction: column;
        gap: 50px;
        width: 90%;
    }

    .footer-title {
        font-size: 25px;
    }

    .footer-description {
        font-size: 17.5px;
    }

    .footer-link-title {
        font-size: 22.5px;
    }
}

@media only screen and (max-width: 800px) {
    .footer-right-container {
        flex-direction: column;
        gap: 35px;
    }
}
