* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #111;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 20px;
}

.site-header {
    margin-bottom: 24px;
}

.site-header h1 {
    margin: 0 0 10px;
}

.site-header p {
    margin: 0 0 6px;
    color: #cfcfcf;
    line-height: 1.5;
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tabs a {
    display: inline-block;
    color: white;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.tabs a:hover {
    background-color: #2c2c2c;
    border-color: #555;
    transform: translateY(-2px);
}

.tabs a.active {
    background-color: #ff3b3b;
    border-color: #ff3b3b;
}

.page-card {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

.page-card h2 {
    margin: 0 0 10px;
}

.page-card p {
    margin: 0;
    color: #dddddd;
    line-height: 1.5;
}

.list-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

.list-layout.details-open {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.level {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 18px 0;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
}

.level:hover {
    transform: translateY(-3px);
    border-color: #555;
}

.level:focus {
    outline: 2px solid #ff3b3b;
    outline-offset: 4px;
}

.level.selected {
    border-color: #ff3b3b;
}

.level-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #181818;
    border-radius: 8px;
    margin-bottom: 16px;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.level-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.rank {
    color: #ff3b3b;
    font-weight: bold;
}

.level h2 {
    margin: 0;
    font-size: 24px;
}

.difficulty {
    background-color: #7b1cff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

.level p {
    margin: 8px 0 0;
    color: #dddddd;
}

.label {
    color: #aaaaaa;
}

.verifier {
    color: #7cff9b;
    font-weight: bold;
}

.level-details {
    position: sticky;
    top: 20px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 18px;
    animation: slide-in 0.2s ease;
}

.details-close {
    float: right;
    color: white;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    padding: 6px 10px;
}

/* If you found this, you won a brand new car! Just go outside; it should be parked on the road! The color and model can be anything, and don't worry about the keys. just break in, it'll be fine! (Any and all signs of grand theft auto comitted after reading this will be counted as chud behavior) */

.details-close:hover {
    background-color: #ff3b3b;
    border-color: #ff3b3b;
}

.details-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #181818;
    border-radius: 8px;
    margin-bottom: 16px;
}

.details-top {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}

.details-rank {
    color: #ff3b3b;
    font-weight: bold;
}

.details-name {
    margin: 0;
}

.details-difficulty {
    display: inline-block;
    background-color: #7b1cff;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 16px;
}

.detail-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    border-top: 1px solid #333;
    padding: 12px 0;
}

.detail-label {
    color: #aaaaaa;
}

.detail-value {
    color: #dddddd;
}

.details-showcase {
    color: #ff5b5b;
}

.details-showcase.disabled {
    color: #888888;
    pointer-events: none;
    text-decoration: none;
}

.completed-section {
    border-top: 1px solid #333;
    padding-top: 12px;
}

.completed-section h3 {
    margin: 0 0 10px;
}

.completed-list {
    margin: 0;
    padding-left: 20px;
    color: #dddddd;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 24px 14px;
    }

    .list-layout.details-open {
        grid-template-columns: 1fr;
    }

    .level-details {
        position: static;
    }

    .level-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .difficulty {
        white-space: normal;
    }
}

.channel-link {
    color:crimson
}

/* Account section thingamajing idfk */

.account-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.account-form label {
    color: #aaaaaa;
    font-weight: bold;
}

.account-form input {
    background-color: #181818;
    color: white;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
}

.account-form input:focus {
    outline: 2px solid #ff3b3b;
    border-color: #ff3b3b;
}

.account-form button {
    margin-top: 8px;
    background-color: #ff3b3b;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
}

.account-form button:hover {
    background-color: #ff5555;
}

/* account status thiongy */

.account-status {
    margin-bottom: 20px;
    min-height: 160px;
    background-image:
        linear-gradient(90deg, rgba(34, 34, 34, 0.95), rgba(34, 34, 34, 0.55)),
        url("images/acc-bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.account-status p {
    margin: 8px 0;
}

#username-display {
    color: #ff3b3b;
    font-weight: bold;
}

#logout-button {
    margin-top: 12px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 10px 14px;
    font-weight: bold;
    cursor: pointer;
}

#logout-button:hover {
    background-color: #ff3b3b;
    border-color: #ff3b3b;
}

#logout-button[hidden] {
    display: none;
}

@media (max-width: 700px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
}

/* ADS :DDDDD */

.ad-box-bottom {
    background-color: #1b1b1b;
    border: 1px dashed #555;
    border-radius: 8px;
    color: #888;
    text-align: center;
    padding: 50px;
    margin: 20px 0;
    margin-left: 50px;
    margin-right: 50px;
}
