:root {
    --nav-height: 75px;
}

#header {
    width: 100%;
    height: var(--nav-height);
    background-color: var(--color-dw2-accent);
    position: fixed;
    top: 0;
    flex-direction: row;
    display: flex;
    z-index: 999;
    box-shadow: var(--box-shadow);
}

#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;
}

#logo a h1 {
    color: var(--color-text-light);
}

.nav-option {
    margin-left: 40px;
    width: auto;
}

.nav-option a {
    font-size: 25px;
    text-align: center;
    color: var(--color-text-light);
    margin: auto;
}

.nav-option a::after {
    content: "";
    width: 0%;
    height: 2px;
    background: var(--color-text-light);
    display: block;
    margin: auto;
    transition: .5s;
}

.nav-option a:hover::after {
    width: 100%;
}

#app {
    padding-top: calc(var(--nav-height) + 15px);
}

.content {
    max-width: 50%;
    width: 50%;
    margin: auto;
}

#notfound-container {
    width: 50%;
    height: auto;
    margin: auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

#notfound-container a {
    color: var(--color-text-primary);
    margin-top: 15px;
}

#loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#app:has(.content-card) {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-card {
    width: calc(100% - 40px);
    margin-top: 30px;
    padding: 20px;
}

.content-card h2 {
    margin-bottom: 10px;
}

#leaderboard-title {
    margin-bottom: 25px;
}

.leaderboard-entry {
    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: calc(100% - 40px);
    height: 150px;
    margin-bottom: 20px;
    padding: 20px;
}

.demonlist-item .demonlist-thumbnail#thumbnail {
    border-radius: var(--border-radius);
    width: auto;
    height: 100%;
    border: none;
    background-position: center;
    background-size: cover;
}

.demonlist-item .demonlist-content {
    margin-left: 15px;
    padding: 20px;
    height: calc(100% - 40px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: space-between;
}

.demonlist-item .demonlist-content * {
    text-align: left;
    margin-bottom: 2px;
}

.level-list {
    text-align: center;
}

#users-text {
    margin-bottom: 20px;
}

#publisher-text {
    font-size: 20px;
    margin-bottom: 7px;
}

#points-text {
    font-size: 20px;
}

#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 #level-description-text {
    text-align: center;
}

#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;
    justify-content: center;
    align-items: center;

    margin-top: 30px;
    margin-bottom: 30px;
}

.item-stat {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding: 20px;
    margin-inline: 10px;
}

#records-container {
    padding: 20px;
    margin-bottom: 50px;
    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-video h3 {
    text-align: center;
}

#notable-videos-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    align-content: center;
}

#header #nav-menu i {
    color: var(--color-text-light);
    display: none;
}

@media(max-width: 900px) {
    .demonlist-item {
        width: 80%;
    }

    .demonlist-item .demonlist-thumbnail#thumbnail {
        display: none;
    }

    #content iframe.video-embed {
        height: 200px;
    }
}

@media(max-width: 1200px) {
    .content {
        max-width: 90%;
        width: 90%;
        margin: auto;
    }

    #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;
        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;
    }
}