/* =========================
   Global Reset (Safe)
   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* =========================
   Base Layout
   ========================= */
body {
    background-color: #121212;
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* =========================
   Header / Navigation
   ========================= */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

nav a {
    color: #61dafb;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #21a1f1;
}

/* =========================
   Sections
   ========================= */
section {
    background-color: #1e1e1e;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* =========================
   Headings
   ========================= */
h1,
h2,
h3 {
    line-height: 1.25;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #61dafb;
}

section h3 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: #ffdd57;
}

/* =========================
   Shipped Game Titles (h4)
   ========================= */
section h4 {
    font-size: 1.35rem;        /* slightly smaller than h3 */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #ffa94d;            /* soft orange, complements blue & yellow */
    letter-spacing: 0.5px;
    padding-left: 0;           /* no border line */
}


/* =========================
   Text
   ========================= */
p {
    margin: 1rem 0;
}

/* =========================
   Lists
   ========================= */
ul {
    margin: 0.75rem 0 0.75rem 1.5rem;
    list-style-type: disc;
}

ul li {
    margin-bottom: 0.5rem;
}

/* Nested lists (Key Systems) */
ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

/* =========================
   Tables
   ========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.25rem;
}

thead {
    background-color: #333;
}

th,
td {
    padding: 0.75rem 1rem;
    border: 1px solid #444;
    text-align: left;
    vertical-align: top;
}

th {
    color: #ffffff;
    font-weight: 600;
}

tbody tr:nth-child(even) {
    background-color: #1f1f1f;
}

tbody tr:nth-child(odd) {
    background-color: #2a2a2a;
}

tbody tr:hover {
    background-color: #444;
}

/* =========================
   Media / Embeds
   ========================= */
iframe {
    display: block;
    margin: 1.5rem auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* =========================
   Links inside content
   ========================= */
a {
    color: #61dafb;
}

a:hover {
    color: #21a1f1;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
    section {
        padding: 1.25rem;
    }

    iframe {
        width: 100%;
        height: 400px;
    }

    nav a {
        display: inline-block;
        margin: 0.5rem;
    }
}
