:root {
    --nav-height: 75px;
}

#header {
    width: 100%;
    height: var(--nav-height);
    background-color: var(--primary);
    position: fixed;
    top: 0;
    flex-direction: row;
    display: flex;
    z-index: 999;
}

#header nav {
    width: 60%;
    height: auto;
    align-self: center;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: right;
}

#logo {
    align-self: center;
    width: auto;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.nav-option {
    margin-left: 40px;
    width: auto;
}

.nav-option a,
#notfound-container a {
    font-size: 25px;
}

.nav-option a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--text-color);
    display: block;
    margin: auto;
    transition: .5s;
}

.nav-option a:hover::after {
    width: 100%;
}

#app {
    padding-top: calc(var(--nav-height) + 15px);
}

#notfound-container {
    width: 100%;
    height: auto;
    align-content: center;
    display: flex;
    flex-direction: column;
}

#notfound-container a {
    margin-top: 15px;
}

#loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#app:has(#guidelines-content) {
    padding-top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-content: center;
}

#app #guidelines-content {
    margin: auto;
    margin-top: calc(var(--nav-height) + 5px);
}

#guidelines-content ul,
#leaderboard {
    background-color: var(--background);
    border-radius: var(--border-radius);
    border-style: var(--border-style);
    border-color: var(--primary);

    border-width: 1px;
    padding: 20px;

    max-width: 85%;
    margin: auto;
}

#leaderboard-title {
    margin-bottom: 25px;
}

.leaderboard-entry {
    width: 600px;
    max-width: 100%;

    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.leaderboard-entry a {
    margin-right: auto;
}

.demonlist-item {
    display: flex;
    flex-direction: row;
    align-content: center;
    width: 50%;

    margin-bottom: 20px;
    padding: 20px;
    border-radius: var(--border-radius);
    border-style: var(--border-style);
    border-color: var(--primary);
    border-width: 1px;
    background-color: var(--background);
}

.demonlist-item .demonlist-thumbnail#thumbnail {
    aspect-ratio: calc(16/9);
    border-radius: var(--border-radius);
    border: none;
    background-position: center;
    background-size: cover;
}

.demonlist-item .demonlist-content {
    padding-top: 20px;
    padding-bottom: 20px;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
}

.demonlist-item .demonlist-content * {
    text-align: left;
    margin-bottom: 2px;
}

#publisher-text {
    font-size: 20px;
    color: var(--text-color-dark);
    margin-bottom: 7px;
}

#publisher-text b {
    color: var(--text-color);
}

#points-text {
    font-size: 20px;
    color: var(--text-color-dark);
}

div#divider {
    width: 35%;
    height: 2px;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 20px;
    background-color: var(--text-color-dark);
}

#app #content {
    display: none;
    width: 100%;
    height: fit-content;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

#content #level-name-text {
    margin-bottom: 20px;
}

#content iframe.video-embed {
    margin: auto;
    margin-bottom: 70px;
    margin-top: 70px;
    height: 450px;
    aspect-ratio: calc(16/9);
}

.item-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    max-width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.item-stat {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.item-stat h6 {
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

#records-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#records-container #records-title {
    margin-bottom: 20px;
}

#records-container .record {
    margin-bottom: 10px;

    display: flex;
    flex-direction: row;
    align-items: center;
    width: fit-content;
}

#records-container .record a {
    margin-left: 40px;
    margin-right: 40px;
}

#level-list {
    margin-bottom: 25px;
}

#level-list h6 {
    margin-bottom: 10px;
}

.notable-video {
    display: none;
    flex-direction: column;
    margin-left: 20px;
    margin-right: 20px;
}

#notable-videos-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
}

#header #nav-menu i {
    display: none;
}

@media(max-width: 900px) {
    .demonlist-item {
        width: 80%;
    }

    .demonlist-item .demonlist-thumbnail#thumbnail {
        display: none;
    }

    div#divider {
        width: 90%;
    }

    #content iframe.video-embed {
        height: 200px;
    }
}

@media(max-width: 1200px) {
    #notable-videos-container {
        flex-direction: column;
    }

    #header #nav-menu {
        z-index: 2;
        display: flex;
        flex-direction: row;
        align-items: center;
        align-content: center;
        width: auto;
        height: 100%;
    }

    #header #nav-menu i {
        display: block;
        color: var(--text-color);
        margin: 25px;
        font-size: 22px;
        cursor: pointer;
        position: absolute;
        right: 0;
    }

    #header nav#nav-links {
        display: none;

        flex-direction: column;
        align-items: center;
        align-content: center;
        justify-content: center;

        width: 100vw;
        height: 100vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: rgba(0, 0, 0, .5);
        backdrop-filter: blur(10px);
        margin: 0;
    }

    #header nav#nav-links div {
        margin-bottom: 10px;
        margin-top: 10px;
    }
}

@media(max-width: 1800px) {
    #notable-videos-container {
        flex-direction: column;
    }
}