/* Reset default browser margins */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
}

/* =========================================
   HOMEPAGE STYLES
   ========================================= */

/* Hero / Introduction Styling */
#hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: #ffffff;
    margin-bottom: 2rem;
    border-bottom: 1px solid #ddd;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #111;
}

#hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
    line-height: 1.6;
}

/* Gallery Grid Styling (Homepage Menu Cards) */
#gallery {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    /* This makes the grid responsive without needing media queries */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Lifts the card slightly when hovered */
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #222;
}

.card p {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}


/* =========================================
   SUB-PAGE STYLES (Art, Photography, etc.)
   ========================================= */

/* Home Button Styling */
.page-header {
    background-color: #222;
    padding: 1rem 2rem;
    position: sticky; /* Keeps the home button visible when scrolling down */
    top: 0;
    z-index: 100;
}

.home-btn {
    color: #fff;
    text-decoration: none; /* Ensures no underline by default */
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.home-btn:hover {
    color: #4da6ff;
    text-decoration: underline; /* Adds the underline ONLY on hover */
}

/* Seamless Gallery Grid (Fixed to 3 per row) */
.seamless-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 0;
    width: 100%;
}

.seamless-gallery img {
    width: 100%;
    height: 350px; 
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.seamless-gallery img:hover {
    opacity: 0.7;
}

/* Full-Screen Lightbox Styling */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92); 
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* The Close Button (Bigger and Top Right) */
.close-cross {
    position: absolute;
    top: 20px;
    right: 40px; 
    color: #fff;
    font-size: 80px; 
    font-weight: normal; 
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
    line-height:

/* =========================================
   GAMES PAGE STYLES
   ========================================= */

.game-container {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.game-container h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #222;
}

.game-container p {
    color: #555;
    margin-bottom: 2rem;
}

/* This adds a nice shadow and rounded corners to the game window */
.iframe-wrapper {
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background-color: #000; /* Keeps the background black while the game loads */
}