* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #080a0e;
    background-image:
    linear-gradient(
        rgba(8, 10, 14, 0.25),
        rgba(8, 10, 14, 0.25)
    ),
    url("background.png");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    color: white;
}

header {
    background: #11141a;
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid #252a33;
}

header h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tab {
    background: #1b2028;
    color: #aaa;
    border: 1px solid #292f39;
    padding: 11px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: .2s;
}

.tab:hover {
    background: #252b35;
    color: white;
}

.tab.active {
    background: #303743;
    color: white;
}

#search {
    margin-top: 18px;
    width: 280px;
    padding: 11px 15px;
    background: #191d24;
    border: 1px solid #292f39;
    border-radius: 6px;
    color: white;
    outline: none;
}

#search:focus {
    border-color: #596577;
}

main {
    max-width: 1100px;
    margin: 35px auto;
    padding: 0 20px;
}

/* LEVEL LIST */

.layout {
    display: flex;
    gap: 25px;
}

.list {
    width: 100%;
}

.list h2 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* LEVEL ROW */

.level-button {
    width: 100%;
    min-height: 90px;
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    gap: 15px;

    padding: 10px 15px;

    background: #15191f;
    border: 1px solid #242a33;
    border-radius: 6px;

    color: white;
    text-align: left;

    cursor: pointer;
    transition: .2s;
}

.level-button:hover {
    background: #1c2129;
    border-color: #3a424f;
    transform: translateX(3px);
}

/* RANK */

.rank-number {
    width: 45px;
    flex-shrink: 0;

    color: #8d98a8;
    font-size: 19px;
    font-weight: bold;
    text-align: center;
}

/* BANNER */

.level-banner {
    width: 150px;
    height: 65px;

    object-fit: cover;

    border-radius: 4px;

    flex-shrink: 0;

    background: #0d0f13;
}

/* LEVEL INFO */

.level-info {
    flex: 1;
    min-width: 0;
}

.level-name {
    display: block;

    font-size: 20px;
    font-weight: bold;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.level-creator {
    display: block;

    margin-top: 6px;

    color: #8f98a6;
    font-size: 14px;
}

/* POINTS */

.level-points {
    min-width: 90px;

    color: #d5dbe4;

    font-size: 16px;
    font-weight: bold;

    text-align: right;
}

/* DETAILS */

.details {
    width: 100%;
    background: #15191f;
    border: 1px solid #242a33;
    border-radius: 7px;
    overflow: hidden;
}

.details h2 {
    padding: 25px;
    font-size: 30px;
}

.details > p {
    padding: 0 25px 25px;
    color: #929aa7;
}

.banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.info {
    padding: 0 25px 25px;
}

.info p {
    padding: 9px 0;
    color: #c7cbd2;
}

.player-link {
    color: #9bb7ff;
    text-decoration: none;
}

.player-link:hover {
    text-decoration: underline;
}

a.button {
    display: inline-block;

    margin-top: 15px;

    padding: 12px 20px;

    background: #252c36;
    color: white;

    border: 1px solid #343d49;
    border-radius: 6px;

    text-decoration: none;
}

a.button:hover {
    background: #303946;
}

/* PLAYERS */

.player-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px;

    margin-bottom: 8px;

    background: #15191f;
    border: 1px solid #242a33;
    border-radius: 6px;
}

.player-card h2 {
    font-size: 20px;
}

.points {
    color: #cbd2dc;
    font-weight: bold;
}

/* MOBILE */

@media (max-width: 700px) {

    header h1 {
        font-size: 28px;
    }

    main {
        padding: 0 10px;
    }

    .level-button {
        min-height: 75px;
        gap: 8px;
        padding: 7px;
    }

    .rank-number {
        width: 32px;
        font-size: 15px;
    }

    .level-banner {
        width: 100px;
        height: 55px;
    }

    .level-name {
        font-size: 16px;
    }

    .level-creator {
        font-size: 12px;
    }

    .level-points {
        min-width: 55px;
        font-size: 13px;
    }

    #search {
        width: 90%;
    }

}
.level-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.level-button {
    width: 100%;
}

.level-details {
    display: grid;
    grid-template-rows: 0fr;

    background: #11151b;

    border-left: 1px solid #242a33;
    border-right: 1px solid #242a33;
    border-bottom: 1px solid #242a33;

    border-radius: 0 0 6px 6px;

    transition: grid-template-rows .3s ease;
}

.level-details.open {
    grid-template-rows: 1fr;
}

.level-details-inner {
    overflow: hidden;

    padding: 0 25px;

    color: #c7cbd2;
}

.level-details.open .level-details-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

.level-details-inner p {
    margin-bottom: 10px;
}