* {
    font-family: "Comic Sans MS", "Comic Sans", Arial, Helvetica, sans-serif;
    margin: 0;
    min-width: 0;

    color: white;
}

html {
    background-color: black;
}

body {
    background-color: black;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

/* TOPBAR - START */

div#topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    min-height: 72px;
    width: 100%;
    box-sizing: border-box;
    background-color: #505050;
    padding: 8px 16px;

    border-bottom: #252525 solid 10px;
}

div#topbar a#branding {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    max-width: calc(100% - 60px);
    color: inherit;
    text-decoration: none;
}

div#topbar a#branding img#icon {
    flex: 0 0 auto;
    width: clamp(48px, 14vw, 72px);
    height: clamp(48px, 14vw, 72px);
}

div#topbar a#branding h1#sitename {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--brand-font-size, 3rem);
    line-height: 1;
    color: #ff00ff;
}

button#navToggle {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    margin-left: 0;
    padding: 9px;
    border: 2px solid #252525;
    border-radius: 6px;
    background-color: #151515;
    cursor: pointer;
}

button#navToggle span {
    display: block;
    width: 100%;
    height: 4px;
    margin: 4px 0;
    border-radius: 2px;
    background-color: #ff00ff;
}

nav#siteNav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 0 max-content;
    gap: 8px;
    margin-left: auto;
}

nav#siteNav a,
nav#navOverflowMenu a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    box-sizing: border-box;
    border: 2px solid #252525;
    border-radius: 6px;
    background-color: #151515;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

nav#siteNav a.nav-item-hidden,
nav#navOverflowMenu a.nav-item-hidden {
    display: none;
}

nav#siteNav a:hover,
nav#siteNav a:focus-visible,
nav#navOverflowMenu a:hover,
nav#navOverflowMenu a:focus-visible,
button#navToggle:hover,
button#navToggle:focus-visible {
    outline: none;
    border-color: #ff00ff;
}

nav#navOverflowMenu {
    position: absolute;
    top: calc(100% + 8px);
    right: 16px;
    z-index: 20;
    display: none;
    min-width: 180px;
    padding: 8px;
    box-sizing: border-box;
    border: 2px solid #252525;
    border-radius: 8px;
    background-color: #505050;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

nav#navOverflowMenu a {
    justify-content: flex-start;
    width: 100%;
}

div#topbar.nav-has-overflow button#navToggle {
    display: block;
}

div#topbar.nav-open nav#navOverflowMenu {
    display: grid;
    gap: 8px;
}

div#topbar.nav-inline-empty nav#siteNav {
    display: none;
}

div#topbar.nav-inline-empty button#navToggle {
    margin-left: auto;
}

/* TOPBAR - END */

div#mainContent {
    box-sizing: border-box;
    width: 100%;
    padding: 20px 16px;
    flex: 1 0 auto;
}

div#mainContent img,
div#mainContent video,
div#mainContent iframe {
    max-width: 100%;
}

footer#siteFooter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 18px 16px;
    border-top: #252525 solid 6px;
    background-color: #303030;
}

footer#siteFooter nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer#siteFooter a,
footer#siteFooter p {
    font-size: 0.95rem;
    line-height: 1.3;
}

footer#siteFooter a {
    color: #ffffff;
    text-decoration-color: #ff00ff;
    text-underline-offset: 4px;
}

footer#siteFooter a:hover,
footer#siteFooter a:focus-visible {
    color: #ff00ff;
    outline: none;
}

@media (max-width: 480px) {
    div#topbar {
        min-height: 64px;
        padding: 8px 12px;
    }

    div#topbar a#branding {
        gap: 8px;
    }

    div#topbar a#branding img#icon {
        width: 48px;
        height: 48px;
    }

    div#topbar a#branding h1#sitename {
        font-size: var(--brand-font-size, 2rem);
    }

    nav#navOverflowMenu {
        right: 12px;
    }

    div#mainContent {
        padding: 16px 12px;
    }

    footer#siteFooter {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 12px;
    }
}
