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

:root {
    font-size: 18pt;
    font-family: "Futura LTS", "Futura", "Helvetica";
    scroll-behavior: smooth !important;
    --front-color: #00aaff;
    --back-color: #002699;
    --gradient-color: linear-gradient(to right, var(--front-color), var(--back-color));
}

a {
    color: inherit;
    text-decoration: inherit;
}

img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.main-container {
    width: min(55rem, 90%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 5rem;
}

 /* Futura LTS font */
@font-face {
    font-family: "Futura LTS";
    src: local("Futura LTS"), url("./resources/fonts/Futura_LTS.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Futura LTS";
    font-weight: bold;
    src: local("Futura LTS-Bold"), url("./resources/fonts/Futura_LTS-Bold.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Futura LTS";
    font-style: italic;
    src: local("Futura LTS-Italic"), url("./resources/fonts/Futura_LTS-Italic.woff2") format("woff2");
    font-display: swap;
}
@font-face {
    font-family: "Futura LTS";
    font-weight: bold;
    font-style: italic;
    src: local("Futura LTS"), url("./resources/fonts/Futura_LTS-BoldItalic.woff2") format("woff2");
    font-display: swap;
}

/* Header */

.header-container {
    --header-heigth: min(20vh, 4.5rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100vw, 100%);
    height: var(--header-heigth);
    padding: .25rem 1.25rem;
    background: var(--gradient-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}
    .header-container::after {
        content: "";
        position: absolute;
        top: var(--header-heigth);
        left: 0;
        width: 100%;
        height: .5rem;
        background: linear-gradient(#a6a6a688, #fff0);
    }

.header-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6.5%;
    flex-grow: 1;
}

.header-menu-home-container {
    display: flex;
    gap: 1rem;
}

.header-menu-home-item {
    width: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
}

/* Sidebar */

.sidebar-container {
    position: fixed;
    top: var(--header-heigth);
    left: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 2.5rem;
    background: var(--gradient-color);
    padding: 2rem 2rem 4rem 2rem;
    color: white;
    height: calc(100vh - min(20vh, 4.5rem));
    min-width: 30vw;
    overflow: auto;
}

.sidebar-item {
    text-align: center;
    justify-content: space-between;
}

.sidebar-coverer {
    height: calc(100vh - min(20vh, 4.5rem));
}

/* Languge selection */

.language-container {
    position: fixed;
    top: calc(min(20vh, 4.5rem) * 6 / 7);
    left: 1.5rem;
    z-index: 4;
    display: flex;
    flex-direction: column;
    background: var(--gradient-color);
    border-radius: .5rem;
    transition: .5s all ease;
    opacity: 1;
}
    .language-container:not(.active) {
        z-index: -1;
        opacity: 0;
    }

.language-item {
    display: flex;
    gap: .75rem;
    align-items: center;
    cursor: pointer;
    padding: .75rem;
    font-size: 80%;
    color: white;
    user-select: none;
    height: 2.5rem;
}
    .language-item:hover {
        background: var(--front-color);
    }
    .language-item:active {
        background: var(--back-color);
    }
    .language-item:last-child {
        border-radius: 0 0 .5rem .5rem;
    }
    .language-item:first-child {
        border-radius: .5rem .5rem 0 0;
    }

/* Home */

.home-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.home-img {
    height: calc(100vh - min(20vh, 4.5rem));
    width: 100%;
    object-fit: cover;
}

.home-header {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: min(8vw, 300%);
    text-align: center;
    color: white;
    white-space: nowrap;
}

/* About */

.about-container {
    display: flex;
    gap: 10%;
    align-items: start;
    width: clamp(80%, 45rem, 100%);
}

    .about-container:nth-child(2n) {
        align-self: start;
    }

    .about-container:nth-child(4n) {
        align-self: end;
    }

.about-image {
    min-width: 30%;
    max-width: 100%;
    flex: 1;
}

.about-text-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: 1.25rem;
    flex: 2;
}

.about-text-header {
    font-size: 250%;
    width: fit-content;
    font-weight: bold;
}
    .about-text-header::after {
        content: "";
        background: var(--gradient-color);
        display: block;
        width: 100%;
        height: .8rem;
    }

.about-text {
    text-align: justify;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    hyphens: auto;
}

/* Galleries */

.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
    margin: 0 7.5%;
}

.gallery-header {
    text-align: center;
    font-size: 200%;
}

.gallery-images-container {
    display: flex;
    gap: 5rem;
}

.gallery-element {
    min-height: 5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gallery-element img {
    flex-grow: 1;
    max-height: 20rem;
}

.gallery-element-header {
    font-size: 90%;
    text-align: center;
    font-weight: initial;
    font-style: italic;
    color: var(--back-color);
}

.gallery-vertical-container {
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem; 
    width: 100%;
}

.gallery-vertical-header { 
    text-align: center; 
    font-weight: normal;
}

.gallery-vertical-element {
    width: 100%;
}

/* Location */

.location-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    align-items: center;
    margin-bottom: -2.5rem;
}

.location-embed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    text-align: center;
    width: 100%;
}

.location-embed {
    width: 80%;
    height: 35rem;
    border: 2px solid #777;
}

.location-header, .contact-header {
    text-align: center;
    font-weight: normal;
    font-size: 200%;
}

/* Contact */

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.contact-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem 6rem;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    justify-content: start;
    gap: .75rem;
    font-size: 90%;
    white-space: nowrap;
    width: min-content;
}

.contact-link {
    color: var(--back-color);
    filter: grayscale(35%);
}

.contact-info-header {
    color: var(--back-color);
}

.contact-numbers {
    text-align: center;
    color: var(--back-color);
    white-space: nowrap;
}

/* Footer */

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: .75rem min(1rem, 3.5%);
    background: var(--gradient-color);
    color: white;
}

.footer-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    font-size: 80%;
    white-space: nowrap;
}

.footer-logo {
    height: 5rem;
}

.footer-info-container {
    display: flex;
    gap: 1rem;
    font-size: 60%;
}

.footer-signature {
    font-size: 50%;
}

/* Miscellaneous */
.anchor {
    position: relative;
    bottom: 3.5rem;
    visibility: hidden;
}

.download-container {
    display: flex;
    align-items: center;
    font-size: 125%;
    font-weight: bold;
    text-align: left;
    hyphens: manual;
}

.download-item {
    display: flex;
}

.download-icon {
    width: 5rem;
}

.blinker {
    animation: 1.1s ease-out 0s blinking;
}

.unblinker {
    animation: 1.1s ease-in 0s unblinking;
}

.blinker-fast {
    animation: 0.35s ease-out 0s blinking;
}

.unblinker-fast {
    animation: 0.35s ease-in 0s unblinking;
}

@keyframes blinking {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes unblinking {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reveal {
    position: relative;
    transform: translateY(150px);
    opacity: 0;
    transition: 1s all ease;
}
    .reveal.active {
        transform: translateY(0);
        opacity: 1;
    }

.sidebar-animation {
    transform: translateX(-100%);
    transition: .25s all ease;
    visibility: hidden;
}
    .sidebar-animation.active {
        transform: translateX(0);
        visibility: visible;
    }


.coverer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    z-index: 1;
}
    .coverer:not(.active) {
        display: none;
    }

/* Media queries */

@media screen and (max-width: 1300px) {
    .header-menu-container {
        display: none;
    }

    .language-container {
        top: var(--header-heigth);
        left: 8.5rem;
        transition-property: opacity;
    }

    .language-item {
        font-size: 100%;
    }
}

@media screen and (max-width: 700px) {
    :root {
        font-size: 110%;
    }

    .main-container {
        gap: 2rem;
        margin-top: 2rem;
        margin-bottom: 2.5rem;
    }

    .home-header {
        white-space: initial;
        width: 100vw;
    }

    .about-container {
        flex-direction: column;
        align-self: center;
        align-content: center;
        gap: 1.5rem;
    }
        .about-container:nth-child(2n) {
            flex-direction: column-reverse;
        }
        .about-container:nth-child(4n) {
            flex-direction: column;
        }

    .about-image {
        max-height: 50vh;
        width: 100%;
    }

    .about-text-header {
        text-align: center;
        align-self: center;
    }

    .gallery-images-container {
        flex-direction: column;
    }

    .location-embed {
        max-height: 65vh;
    }

    .contact-info-container {
        grid-template-columns: 2fr 1fr;
        gap: 3rem min(6rem, 5vw);
    }

    .contact-info-item, .contact-numbers {
        white-space: normal;
    }

    .download-container {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }

    .download-icon {
        width: 100%;
        max-height: 5rem;
    }
}
