/* 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;
}
