/* Make body fill screen */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; /* prevent scrolling on splash */
}

/* Splash screen styles */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black; /* fallback color */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#splash img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover whole screen */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

#splash-text {
    color: red;
    text-align: center;
    font-family: 'Arial', sans-serif;
    font-size: 3em;
    text-shadow: 2px 2px 10px black;
}

#splash button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1em;
    cursor: pointer;
    background: black;
    color: red;
    border: 2px solid red;
    text-transform: uppercase;
}

/* Main content hidden initially */
#main-content {
    display: none;
    padding: 20px;
}

/* ==============================
   GLOBAL PAGE STYLES
   ============================== */

body {
    background-color: black;   /* Sets background to black */
    color: darkred;            /* Default text color */
    text-align: center;        /* Center main content */
}

body,
html {
    margin: 0;
    padding: 0;
}

/* ==============================
   LIST STYLES
   ============================== */

ul,
ol {
    list-style-position: inside;  /* Bullets inside text bounds */
    padding: 0;                   /* Remove default padding */
    margin: 0 auto;               /* Center list horizontally */
    display: inline-block;        /* Allow centering inside parent */
    text-align: left;             /* Left-align text */
}

/* ==============================
   TOP BANNER
   ============================== */

.top-banner {
    width: 100%;
    overflow: hidden;
}

.top-banner img {
    width: 99.84%;
    height: 100px;
    display: block;
    border: 2px solid red; /* Keep border if desired */
}

/* ==============================
   HORIZONTAL RULE (HR)
   ============================== */

hr {
    height: 2px;
    background-color: black;
    border: solid;
    border-color: orangered;
}

/* ==============================
   LINK COLORS
   ============================== */

a:link {
    color: orangered;
}

a:visited {
    color: darkred;
}

a:hover {
    color: red;
}

a:active {
    color: indianred;
}

/* ==============================
   IMAGE STYLING + HOVER ANIMATION
   ============================== */

/* Apply hover animation to all images EXCEPT those inside top-banner */
.game-grid img {
    transition: all 0.3s ease;  /* Smooth animation */
    cursor: pointer;            /* Pointer cursor */
}

.game-grid img:hover {
    transform: scale(1.05);     /* Slight zoom on hover */
    box-shadow: 0 0 20px red;   /* Glowing effect */
    border-color: orangered;    /* Brighter border */
}

/* ==============================
   IMAGE ZOOM-IN (LIGHTBOX EFFECT)
   ============================== */

.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.image-overlay:target {
    display: flex;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90%;
    border: 3px solid red;
    box-shadow: 0 0 25px red;
}

.image-overlay .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: orangered;
    font-size: 30px;
    text-decoration: none;
    font-weight: bold;
}

/* ==============================
   GRID LAYOUT FOR GAMES & MOVIES
   ============================== */

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    text-align: center;
}

.game-grid li {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.game-grid a {
    display: block;
    font-weight: bold;
    color: red;
    text-decoration: none;
    margin-bottom: 5px;
}

.game-grid a:hover {
    text-decoration: underline;
}