:root {
    --accent-color: #0D1721;
    --accent-color-highlight: #022548;
    --accent-color-border: #1a2632;
    --bg-color: #1D2A35;
    --bg-color-highlight: #38444D;
    --font-main: white;
    --font-highlight: #00a0ff;
    --bg-discord: #4d4f53;
    --font-discord: white;
    --discord-highlight: #474b53;
}
.lightmode {
    --accent-color: #0B3954;
    --accent-color-highlight: #084d74;
    --accent-color-border: #042234;
    --bg-color: #ebebeb;
    --bg-color-highlight: #AF98B3;
    --font-main: black;
    --font-highlight: #2d0e95;
    --bg-discord: #2F3136;
    --font-discord: white;
    --discord-highlight: #474b53;
}
*,*::after,*::before {
    box-sizing: border-box;
}
a {
    text-decoration: none;
    color: inherit;
}
[data-mobile] {
    display: none;
}
[data-desktop] {
    display: block;
}
body {
    color: white;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    background-image: var(--background-image, url("/img/backgrounds/default.png"));
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding-top: 15vh;
    padding-inline: 5%;
    padding-bottom: 10%;
}
#top {
    scroll-margin-top: 15vh;
}
strong, .highlight {
    font-weight: bold;
    color: var(--font-highlight);
}
header {
    font-size: 2.5vw;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: white;
    position: relative;
    display: block;
    width: fit-content;
    margin-inline: auto;
    white-space: nowrap;
    margin-bottom: 5rem;
}
header > h1 {
    display: block;
    margin-bottom: 0;
    text-align: center;
}
header > img {
    position: absolute;
    top: 2.5em;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 32vw;
    text-align: center;
}
.sub-heading {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.5rem;
    color: white;
    width: 75%;
    margin-inline: auto;
    margin-bottom: 8rem;
    text-align: center;
}
nav ul {
    font-size: 1.2rem;
}
nav button {
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
    color: white;
}
main {
    font-size: 1.125rem;
    color: var(--font-main);
    border-top: 1em black solid;
    border-inline: 0.5em black solid;
    border-bottom: 0.5em black solid;
    padding: 0.5em 0.8em;
    background-color: var(--bg-color);
    position: relative;
}
main > h2 {
    font-size: 1.75em;
    margin-top: 1em;
    text-align: center;
    font-weight: normal;
}
main > p {
    width: 90%;
    margin-inline: auto;
}
.discord-div p {
    color: var(--font-discord);
}
#discord-link {
    display: block;
    width: fit-content;
    margin-inline: auto;
    border-radius: 1em;
}
#discord-link:focus {
    outline: none;
    box-shadow: 0 0 0 5px var(--font-highlight);
}
.discord-div {
    background-color: var(--bg-discord);
    width: fit-content;
    border-radius: 1em;
    display: flex;
    flex-direction: row;
    padding: 0.5em 2em;
    gap: 1em;
}
.discord-div:hover,
#discord-link:focus .discord-div {
    background-color: #474b53;
}
.discord-div > p {
    flex: 1 1 50%;
}
.discord-div > img {
    max-height: 3em;
    max-width: 3em;
    margin: auto 0;
    border-radius: 30%;
    flex: 1 1 50% 
}

nav.primary {
    background-color: var(--accent-color);
    z-index: 100;
}
nav.primary > ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
}
nav.primary > ul > * {
    text-align: center;
    flex: 1 1 100%;
}
nav.primary a,
nav.primary li {
    padding: 0.75rem 0;
}

nav.primary ul > *:is(:hover,:focus),
nav.primary button:is(:hover,:focus) {
    outline: none;
    background-color: var(--accent-color-highlight);
}
nav.primary > ul button,
nav.primary > ul a {
    height: 100%;
}
nav.primary button {
    width: 100%;
    background-color: var(--accent-color);
    border: none;
    padding: 0.75em 0;
    cursor: pointer;   
}

.dark-mode-toggle {
    width: 4ch;
    height: 4ch;
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    color: var(--font-main, black);
    border: none;
    z-index: 50;
    cursor: pointer;
    border-radius: 0.5em;
}
.dark-mode-toggle:focus {
    outline: none;
    box-shadow:
    0 0 0 3px var(--font-highlight);
}
.dark-mode-toggle > svg {
    width: 100%;
    height: 100%;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 75vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    background-color: var(--accent-color);
    border-top: none;
    border-bottom-left-radius: .5rem;
    border-bottom-right-radius: .5rem;
    padding-bottom: 0.75rem;
    pointer-events: none;
    transform: translateY(-1em);
    transition: opacity 100ms ease-in-out, transform 100ms ease-in-out, bordeer-top 100ms ease-in-out;
    z-index: 200;
}
.dropdown.show > button {
    background-color: var(--accent-color-highlight);
}
.dropdown {
    padding: 0;
    position: relative;
}
.dropdown.show > .dropdown-btn + .dropdown-menu {
    border-top: 0.2em var(--accent-color-border) solid;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.dropdown-menu > ul {
    display: block;
    position: relative;
    padding: 0;
}
.dropdown-menu > ul *:first-child {
    padding-top: 0.75rem;
}
.dropdown-menu > ul * {
    display: block;
    padding: 0.25em 0;
    width: 100%;
}
.btt-symbol {
    width: 50%;
    height: 50%;
    border: solid white;
    border-width: 0 0.5rem 0.5rem 0;
    display: table;
    margin: 0 auto;
    padding: 3px;
    transform: translateY(70%) rotate(-135deg);
    -webkit-transform: translateY(70%) rotate(-135deg);
}
[data-requestinfo] {
    display: inline-block;
    border: none;
    padding: 0;
    margin: 0;
    background: var(--bg-color);
    color: var(--font-main);
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
    text-decoration-style: dotted;
    text-decoration-thickness: 2px;
    text-decoration-line: underline;
}
[data-moreinfo] {
    display: none;
    margin-left: 1rem;
    padding: 0.25rem 0.5ch;
    font-weight: normal;
    background-color: var(--bg-color-highlight);
    border-radius: 100vw;
}
[data-moreinfo].show {
    display: inline-block;
}
@supports(scroll-behavior: smooth) {
    html {
        scroll-behavior: smooth;
   }
}
@supports(position: sticky) {
    nav.primary {
        position: sticky;
        top: 0;
   }
}
@media only screen and (max-width: 600px) {
    body {
        background-image: var(--background-image-mobile, url('/img/backgrounds/default.png'));
        padding-bottom: 0;
        margin-bottom: 0;
    }
    [data-mobile] {
        display: block;
        padding: 0;
    }
    [data-desktop] {
        display: none;
    }
    header > h1 {
        font-size: 8vw;
    }
    body {
        margin-inline: 0;
        background-position: center;
        background-size: cover;
        padding-top: 18vh;
        padding-inline: 0;
    }
    header > img {
        position: absolute;
        top: calc(8vw + 1em);
    }

    nav.primary {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 3rem;
        z-index: 100;
    }
    nav.primary > ul {
        display: block;
        transform: scale(1, 0);
        transform-origin: top;
        opacity: 0;
        transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
        margin-top: 3rem;
    }

    main {
        border-inline: 0;
        padding: 0.5em;
    }
    main p {
        width: 95%;
        margin-inline: auto;
   }
    .dark-mode-toggle {
        color: white;
        padding: 0.8ch 0;
        max-width: 3ch;
        float: right;
        top: 50%;
        right: 1em;
        background: none;
        transform: translateY(-50%);
    }
    .dark-mode-toggle > svg {
        width: 100%;
        height: 100%;
    }

    .mobile-nav-toggle {
        display: none;
    }
    .mobile-nav-label {
        cursor: pointer;
        position: absolute;
        top: 0;
        left: 0;
        margin-left: 1em;
        height: 100%;
        display: flex;
        align-items: center;
    }
    .mobile-nav-label span,
    .mobile-nav-label span::before,
    .mobile-nav-label span::after {
        display: block;
        background-color: white;
        height: 3px;
        width: 1.5em;
        border-radius: 2px;
        position: relative;
    }
    .mobile-nav-label span::before,
    .mobile-nav-label span::after {
        content: "";
        height: 3px;
        position: absolute;
    }
    .mobile-nav-label span::before {
        bottom: 7px;
    }
    .mobile-nav-label span::after {
        top: 7px;
    }
   
   .btt {
    width: 3rem;
    height: 3rem;
    background-color: var(--accent-color);
    position: fixed;
    z-index: 100;
    bottom: 2vh;
    right: 5vw;
    border-radius: 20%;
    }
    .btt:hover {
        background-color: var(--accent-color-highlight);
    }
   /*
        Dropdowns
   */
    .mobile-nav-toggle:checked ~ ul {
    display: block;
    transform: scale(1,1);
    opacity: 1;
    }
    .mobile-nav-toggle:checked ~ ul:nth-child(2) {
        border-top: 3px var(--accent-color-border) solid;
    }
    .dropdown-menu {
        max-height: 50vh;
    }
}