@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html,
body {
    background-color: #ff7f00;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100dvh;
    padding: 0;
}

main.static {
    align-items: stretch;
    animation: none;
    justify-content: flex-start;
}

main {
    align-items: center;
    animation: fade-up 0.33s ease-out both;
    display: flex;
    flex: 1;
    justify-content: center;
}

header,
footer {
    align-items: center;
    background-color: #b43300;
    color: #ff7f00;
    display: flex;
    font-family: "Madimi One", sans-serif;
    font-size: 18px;
    height: 48px;
    position: relative;
}

header {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    padding: 0 48px;
}

header .hamburger {
    display: none;
}

header .nav {
    display: flex;
    flex: 1;
    gap: 100px;
}

header .nav.left {
    justify-content: flex-start;
}

header .nav.right {
    justify-content: flex-end;
}

header .nav-link {
    color: #ff7f00;
    font-size: 20px;
    letter-spacing: 0.1em;
    text-decoration: none;
}

header .nav-link:hover {
    text-decoration: underline;
}

header .nav-link.active {
    color: #ffbb00;
    text-decoration: underline;
    text-shadow: 1px 1px 0 #ff7f00;
}

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

header .home-icon {
    background-image: url("../img/home.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: block;
    height: 25px;
    width: 25px;
}

header .home-icon:hover {
    background-image: url("../img/home_hover.png")
}

.nav.mobile {
    display: none;
}

footer {
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
    justify-content: space-between;
    padding: 0 16px;
}

footer .contact {
    display: flex;
    flex: 1;
    padding-left: 12px;
}

footer .contact a {
    color: #ff7f00;
    text-decoration: none;
}

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

footer .socials {
    display: flex;
    flex: 1;
    gap: 20px;
    justify-content: flex-end;
    padding-right: 12px;
}

footer iconify-icon {
    color: #ff7f00;
    height: 20px;
    vertical-align: middle;
    width: 20px;
}

.home {
    align-items: flex-start;
    display: flex;
    flex: 1;
    justify-content: space-between;
    padding: 24px;
    width: 100%;
}

.latest-news-wrapper {
    display: flex;
    flex-direction: column;
    width: 300px;
}

.latest-news {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 300px;
}

.latest-label {
    color: #b43300;
    font-family: "Madimi One", sans-serif;
    font-size: 18px;
    letter-spacing: 0.1em;
    margin: 0 0 12px 0;
}

.latest-label.right {
    text-align: right;
}

.latest-card {
    background-color: #b43300;
    border-radius: 5px;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
    color: #ff7f00;
    display: block;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
}

.latest-card img {
    display: block;
    height: auto;
    width: 100%;
}

.latest-info {
    padding: 10px 12px;
}

.latest-info h2 {
    font-family: "Madimi One", sans-serif;
    font-size: 13px;
    margin: 0 0 4px 0;
}

.latest-card .latest-date {
    font-family: "Madimi One", sans-serif;
    font-size: 11px;
    margin: 0 0 4px 0;
    opacity: 0.7;
}

.latest-card .latest-desc {
    font-family: "Madimi One", sans-serif;
    font-size: 11px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-wrapper {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: flex-end;
    width: 300px;
}

.discord-widget {
    border: none;
    box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.2);
    flex: 1;
    min-height: 200px;
    width: 300px;
}

@media (max-width: 767px) {
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    header {
        justify-content: flex-start;
        padding: 0 16px;
        z-index: 1100;
    }

    header .nav {
        display: none;
    }

    header .hamburger {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 8px;
        position: relative;
        z-index: 1200;
    }

    header .hamburger span {
        background-color: #ff7f00;
        display: block;
        height: 3px;
        margin-left: 0;
        width: 22px;
    }

    header .home {
        left: 50%;
        position: absolute;
        transform: translateX(-50%);
    }

    .nav.mobile {
        background-color: #b43300;
        box-shadow: 2px 0 8px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
        height: 100dvh;
        left: 0;
        overflow: hidden;
        padding: 24px;
        padding-top: 72px;
        position: fixed;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        width: 260px;
        z-index: 1000;
    }

    .nav.mobile a {
        color: #ff7f00;
        font-family: "Madimi One", sans-serif;
        font-size: 18px;
        letter-spacing: 0.1em;
        padding: 12px 0;
        text-decoration: none;
    }

    .nav.mobile a:hover {
        text-decoration: underline;
    }

    .nav.mobile hr {
        border: none;
        border-top: 1px solid rgba(255,127,0,0.3);
        margin: 16px 0;
    }

    .nav.mobile.open {
        transform: translateX(0);
    }

    .nav.mobile a.active {
        color: #ffbb00;
        text-decoration: underline;
        text-shadow: 1px 1px 0 #ff7f00;
    }

    .mobile-links {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        padding-bottom: 16px;
    }

    .mobile-footer {
        flex-shrink: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(255,127,0,0.3);
    }

    .mobile-footer a {
        font-size: 16px;
        letter-spacing: 0.05em;
    }

    .mobile-socials {
        display: flex;
        gap: 16px;
        margin-top: 12px;
    }

    footer {
        justify-content: center;
        white-space: nowrap;
    }

    footer p {
        flex: 0;
        text-align: center;
    }

    footer .contact,
    footer .socials {
        display: none;
    }

    .home {
        align-items: center;
        flex-direction: column;
        gap: 32px;
        justify-content: flex-start;
        padding: 24px 16px;
        box-sizing: border-box;
    }

    .latest-news-wrapper,
    .latest-news,
    .discord-wrapper,
    .discord-widget {
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }

    .latest-label {
        text-align: center;
    }

    .latest-label.right {
        text-align: center;
    }

    .discord-widget {
        height: 400px;
        min-height: unset;
        flex: none;
    }

    .discord-wrapper {
        align-self: auto;
    }
}