/* Include padding and borders within element widths */
* {
    box-sizing: border-box;
}

/* Overall page */
body {
    margin: 0;
    background-color: #101722;
    color: #e8edf3;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

/* Main area beside the sidebar */
main {
    margin-left: 240px;
    padding: 70px 40px;
}

/* Centre content within the main area */
.page-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Game title */
h1 {
    margin: 0;
    color: #ffb454;
    font-size: clamp(40px, 8vw, 76px);
    line-height: 1.1;
    letter-spacing: -2px;
    text-align: center;
}

/* Section headings */
h2 {
    margin-top: 48px;
    color: #ffffff;
    font-size: 26px;
    text-align: center;
}

/* Tagline */
.tagline {
    color: #b4c5d8;
    font-size: 22px;
    text-align: center;
}

/* Station notice */
.notice {
    margin-top: 32px;
    padding: 18px 24px;
    border-left: 4px solid #ffb454;
    background-color: #1b2839;
    border-radius: 0 8px 8px 0;
    text-align: center;
}

/* About paragraph */
.GameAboutBlurb {
    text-align: center;
}

/* Gameplay list */
ul {
    padding-left: 24px;
}

li {
    margin-bottom: 12px;
}

    li::marker {
        color: #ffb454;
    }

/* Left navigation panel */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    padding: 32px 20px;
    overflow-y: auto;
    background-color: #182334;
    border-right: 1px solid #314157;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    /* Navigation links */
    .sidebar a {
        display: block;
        padding: 12px 16px;
        color: #e8edf3;
        text-decoration: none;
        border-radius: 6px;
    }

    /* Game name in the sidebar */
    .sidebar .site-name {
        margin-bottom: 24px;
        padding: 0;
        color: #ffb454;
        font-size: 24px;
        font-weight: bold;
        line-height: 1.2;
    }

    /* Mouse and keyboard highlighting */
    .sidebar a:hover,
    .sidebar a:focus-visible {
        background-color: #2b3d55;
        color: #ffb454;
    }

/* Screenshot carousel */
.screenshot-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
}

/* Screenshot slides */
.screenshot-slide {
    flex: 0 0 30%;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background-color: #1b2839;
    border: 1px solid #314157;
    border-radius: 12px;
}

    /* Screenshot images */
    .screenshot-slide img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    /* Screenshot captions */
    .screenshot-slide figcaption {
        padding: 16px 20px;
        color: #e8edf3;
    }

/* Keyboard focus on the carousel */
.screenshot-carousel:focus-visible {
    outline: 2px solid #ffb454;
    outline-offset: 5px;
}

/* Adjust the layout for smaller screens */
@media (max-width: 700px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #314157;
    }

    main {
        margin-left: 0;
        padding: 32px 24px;
    }

    .screenshot-slide {
        flex: 0 0 90%;
    }
}

.community-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #ffb454;
    color: #101722;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
}

.community-button:hover {
    background-color: #ffd08f;
}

.community-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

/* Arrange reviews into cards that wrap on smaller screens */
#review-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 16px;
    margin: 24px 0;
}

/* Each review */
.review-card {
    padding: 16px;
    background-color: #1b2839;
    border: 1px solid #314157;
    border-radius: 8px;
    border-color: antiquewhite;
    min-width: 0;
}

    /* Player name */
    .review-card h3 {
        margin: 0 0 6px;
        font-size: 16px;
    }

    /* Rating and review text */
    .review-card p {
        margin: 6px 0 0;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    /* Rating colour */
    .review-card h3 + p {
        color: #ffb454;
    }

/* Preserve paragraphs entered by the player */
.review-message {
    white-space: pre-wrap;
}

/* Show one review instead of a grid */
#review-list.review-carousel {
    display: block;
    max-width: 700px;
    margin: 24px auto;
}

/* Ensure inactive reviews stay hidden */
.review-carousel .review-card[hidden] {
    display: none;
}

/* Navigation underneath the review */
.review-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

    .review-controls button {
        padding: 8px 12px;
        background-color: #1b2839;
        color: #e8edf3;
        border: 1px solid #314157;
        border-radius: 6px;
        cursor: pointer;
    }

        .review-controls button:hover {
            background-color: #2b3d55;
        }

        .review-controls button:focus-visible {
            outline: 2px solid #ffb454;
            outline-offset: 3px;
        }

/* Development updates */
#devlog {
    margin-top: 48px;
}

.devlog-post {
    max-width: 850px;
    margin: 24px auto;
    padding: 24px;
    background-color: #1b2839;
    border: 1px solid #314157;
    border-radius: 12px;
}

    .devlog-post h3 {
        margin: 0;
        color: #ffb454;
        font-size: 24px;
    }

.devlog-date {
    margin: 8px 0 20px;
    color: #b4c5d8;
    font-size: 14px;
}

.devlog-post img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.devlog-body {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
