:root {
    color-scheme: only light;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: linear-gradient(var(--bg-top), var(--bg-bottom));
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(var(--bg-top), var(--bg-bottom));
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--black);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

body.nav-locked {
    overflow: hidden;
}

::selection {
    background: var(--maroon);
    color: var(--bg-top);
}

::-moz-selection {
    background: var(--maroon);
    color: var(--bg-top);
}

button {
    font: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 6px;
}

header {
    position: relative;
    z-index: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 175px;
    padding: 32px 25px 32px 32px;
    border-radius: 0 0 64px 64px;
    background: var(--maroon);
}

#logos {
    display: block;
    flex-shrink: 0;
}

#logo {
    display: block;
    width: 256px;
    height: auto;
}

#logo_small {
    display: none;
}

nav {
    position: relative;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: var(--menu);
    font-weight: 700;
}

nav a,
#btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 64px;
    padding: 12px;
    border: 3px solid transparent;
    border-radius: 25px;
    background: transparent;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
}

nav a img,
nav a svg,
#btn-mobile img {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

nav a:hover {
    text-decoration: underline;
}

nav a[aria-current="page"] {
    border-color: #FFFFFF51;
}

#btn-home:hover {
    border-color: #CC9F2C51;
    color: #FFF200;
}

#btn-event:hover {
    border-color: #EE181751;
    color: #EE1817;
}

#btn-about:hover {
    border-color: #009DFF51;
    color: #59BDFF;
}

#btn-member:hover {
    border-color: #7FB62951;
    color: #74FF1B;
}

#btn-gallery:hover {
    border-color: #FF4BFF51;
    color: #FF89FF;
}

#btn-contact:hover {
    border-color: #2CC77551;
    color: #00FFC8;
}

#btn-mobile {
    display: none;
    cursor: pointer;
}

nav.mobile-open {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    height: 100svh;
    width: 100vw;
    margin: 0;
    padding: 120px 0 40px;
    background: #000000E6;
    overflow-y: auto;
}

nav.mobile-open a {
    display: flex;
    width: 80%;
    min-height: 64px;
    padding: 18px 20px;
    border: 0;
    border-radius: 0;
    font-size: 20px;
    text-align: center;
    white-space: normal;
}

nav.mobile-open #btn-home {
    background: linear-gradient(90deg, #FFF20000, #E6C81699, #CC9F2C00);
}

nav.mobile-open #btn-event {
    background: linear-gradient(90deg, #EE181700, #E2391999, #D6591B00);
}

nav.mobile-open #btn-about {
    background: linear-gradient(90deg, #009DFF00, #009DFF99, #0052FF00);
}

nav.mobile-open #btn-member {
    background: linear-gradient(90deg, #74FF1B00, #7ADB2299, #7FB62900);
}

nav.mobile-open #btn-gallery {
    background: linear-gradient(90deg, #FF89FF00, #FF6AFF99, #FF4BFF00);
}

nav.mobile-open #btn-contact {
    background: linear-gradient(90deg, #00FFC800, #16E39E99, #2CC77500);
}

nav.mobile-open #btn-mobile,
body.nav-locked #btn-mobile {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 1000;
    display: flex;
    min-height: 64px;
    padding: 12px;
    border-color: #FFFFFF51;
    background: var(--maroon);
    color: var(--white);
}

#btn-mobile:hover {
    border-color: #760D1751;
    text-decoration: underline;
}

footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 108px;
    padding: 28px 64px;
    border-radius: 64px 64px 0 0;
    background: var(--maroon);
    color: var(--white);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    font-size: var(--menu);
    font-weight: 700;
    line-height: 1.6;
}

#copyright {
    max-width: 75%;
}

#law {
    flex-shrink: 0;
}

#law a {
    color: var(--white);
}

#law a:hover {
    color: var(--bg-bottom);
}

@media (max-width: 1560px) {
    nav {
        flex-direction: column;
        flex-wrap: wrap;
        height: 150px;
    }

    footer {
        font-size: 18px;
    }
}

@media (max-width: 1000px) {

    #logo {
        width: 200px;
    }

    nav {
        gap: 0;
    }

    nav a {
        gap: 6px;
        padding: 8px;
    }

    footer {
        padding-right: 32px;
        padding-left: 32px;
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    header {
        min-height: 128px;
        padding: 16px 24px;
        border-radius: 0 0 32px 32px;
    }

    #logo {
        display: none;
    }

    #logo_small {
        display: block;
        width: 96px;
        height: 96px;
        object-fit: contain;
    }

    nav a {
        display: none;
    }

    nav.mobile-open a {
        display: flex;
    }

    #btn-mobile {
        display: flex;
        border-color: #FFFFFF51;
    }

    footer {
        flex-direction: column;
        gap: 12px;
        padding: 28px 24px;
        border-radius: 32px 32px 0 0;
        text-align: center;
    }

    #copyright {
        max-width: 100%;
    }

    #law {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    header {
        gap: 16px;
        padding-right: 16px;
        padding-left: 16px;
    }

    #btn-mobile,
    nav.mobile-open #btn-mobile,
    body.nav-locked #btn-mobile {
        min-height: 48px;
        padding: 8px;
    }

    #btn-mobile img {
        width: 24px;
        height: 24px;
    }

    footer {
        font-size: 14px;
    }
}

@media (max-height: 500px) {
    nav.mobile-open {
        justify-content: flex-start;
        gap: 16px;
        padding-top: 100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body > header,
    body > main,
    body > footer,
    body > main > *,
    header #logos,
    header nav {
        animation: none;
    }
}

#btn-member, #btn-gallery{
    display: none;
}