:root {
    --bg-top: #D6FFF6;
    --bg-bottom: #AFC7BA;
    --black: #000000;
    --white: #FFFFFF;
    --maroon: #760D17;

    --menu: 24px;
    --def: 16px;
    --h1: 32px;
    --h2: 24px;
}

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

html {
    color-scheme: light;
    font-size: var(--def);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(var(--bg-top) 0%, var(--bg-bottom) 100%);
    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;
}

p {
    margin-bottom: 20px;
    color: var(--black);
    font-family: "Platypi", Calibri, "Open Sans", sans-serif;
    font-size: var(--def);
}

h1 {
    color: var(--maroon);
    font-size: var(--h1);
    font-weight: 700;
}

h2 {
    color: var(--maroon);
    font-size: var(--h2);
}

h3 {
    color: var(--black);
    font-style: italic;
}

h1,
h2,
h3 {
    margin-top: 40px;
    margin-bottom: 20px;
}

h4 {
    height: 50px;
    margin: 0;
    padding: 0;
    font-size: 45px;
}

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-contact:hover {
    border-color: #2CC77551;
    color: #00FFC8;
}

#btn-mobile {
    display: none;
    cursor: pointer;
}

#btn-mobile:hover {
    border-color: #760D1751;
    text-decoration: underline;
}

body.nav-locked {
    overflow: hidden;
}

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: 100vh;
    height: 100vh;
    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, #009DFF00);
}

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);
}

main {
    flex: 1;
    min-width: 0;
}

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);
}

#contact {
    width: 80vw;
    margin: 0 auto;
    padding: 40px 0 80px;
}

#contact > h1 {
    margin: 0;
    color: var(--maroon);
    font-size: var(--h1);
    font-weight: 700;
    text-align: center;
}

.intro {
    margin-top: 20px;
    margin-bottom: 45px;
    font-size: var(--def);
    font-weight: 700;
    text-align: center;
}

#contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 50px;
    font-size: var(--menu);
    font-weight: 700;
}

#contact-grid > .contact-item:last-child {
    grid-column: span 2;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    gap: 24px;
    min-height: 64px;
}

.contact-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
}

.contact-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 24px;
    row-gap: 2px;
}

.contact-content a {
    color: var(--black);
    text-decoration: underline;
    overflow-wrap: break-word;
}

.contact-content a:hover {
    color: var(--maroon);
}

.contact-label {
    font-size: var(--menu);
}

#tax-section {
    margin-top: 28px;
    text-align: center;
}

hr {
    width: 80vw;
    height: 5px;
    margin: 36px;
    border: 0;
    border-radius: 10px;
    background-color: var(--maroon);
}

#tax-section h2 {
    margin: 0 0 18px;
    font-size: var(--h2);
    font-weight: 700;
}

#tax-section p {
    margin-bottom: 18px;
    font-size: var(--def);
    font-weight: 700;
}

#tax-number,
#organization-name {
    display: block;
    color: var(--black);
    font-size: var(--h2);
    font-weight: 700;
    text-decoration: underline;
}

#organization-name {
    margin-top: 18px;
}

@media (max-width: 1560px) {
    nav {
        flex-direction: column;
        flex-wrap: wrap;
        height: 150px;
    }

    footer {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    :root {
        --def: 20px;
        --h1: 48px;
        --menu: 20px;
    }
}

@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;
    }

    #contact {
        width: 80vw;
    }

    #contact-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        column-gap: 35px;
        font-size: var(--def);
    }

    #contact-grid > .contact-item:last-child {
        grid-column: 1;
    }

    .contact-icon,
    .contact-icon img {
        width: 32px;
        height: 32px;
    }

    .contact-label {
        font-size: var(--def);
    }
}

@media (max-width: 800px) {
    :root {
        --menu: 18px;
        --def: 18px;
    }

    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;
    }

    #contact {
        width: 90vw;
        padding-top: 35px;
        padding-bottom: 60px;
        font-size: var(--def);
    }

    .intro {
        margin-bottom: 35px;
    }

    #contact-grid {
        gap: 24px;
    }

    .contact-item {
        align-items: flex-start;
    }

    .contact-content {
        flex-direction: column;
        gap: 3px;
        font-size: 12px;
    }

    #tax-section {
        margin-top: 35px;
    }
}

@media (max-width: 480px) {
    :root {
        --h1: 40px;
        --menu: 16px;
    }

    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,
    body.nav-locked #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;
    }
}

@keyframes saxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes saxFadeInSoft {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes saxMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-45px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body > header,
body > main,
body > footer {
    animation: saxFadeIn 700ms ease-out both;
}

body > header {
    animation-delay: 80ms;
}

body > main {
    animation-delay: 220ms;
}

body > footer {
    animation-delay: 360ms;
}

body > main > * {
    animation: saxFadeInSoft 600ms ease-out 320ms both;
}

header #logos {
    animation: saxFadeIn 550ms ease-out 180ms both;
}

header nav {
    animation: saxMenuSlideDown 650ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

header nav.mobile-open {
    animation: none;
}

body.nav-locked > header {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body > header,
    body > main,
    body > footer,
    body > main > *,
    header #logos,
    header nav {
        animation: none;
    }
}