/* Base page styling to center the card */
body {
    /* Fallback color if the image doesn't load */
    background-color: #e2e8f0; 
    
    /* Add your overall background image here */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    display: flex;
    flex-direction: column; /* Stacks card and nav */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* Added padding so the card and shadow never touch the screen edges */
    padding: 30px; 
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* The business card container */
.card {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px;
    /* Replaced aspect-ratio with min-height to allow vertical expansion if needed */
    min-height: 500px;
    height: auto;
    /* Hard-edged, solid "thick line" shadow */
    box-shadow: 15px 15px 0px #000000;
    /* Solid border to compliment the hard shadow */
    border: 3px solid #000000; 
    display: flex;
    padding: 45px 55px;
    box-sizing: border-box;
    color: #000000;
    font-family: 'Copperplate Gothic Bold', 'Copperplate Gothic Light', 'Copperplate', serif;
}

/* Layout column modifier for the games page */
.games-layout {
    flex-direction: column;
    align-items: center;
}

/* Layout columns */
.left-column {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 20px;
}

.right-column {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

/* Typography */
h1, h2 {
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

h1 {
    font-size: 33px; 
    margin-bottom: 12px;
    font-weight: bold;
}

h2 {
    font-size: 25px; 
    margin-bottom: 18px;
    font-weight: bold;
}

.sub-header {
    text-align: center;
    font-size: 20px; 
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.rate {
    text-align: center;
    font-size: 23px; 
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* Bulleted List */
ul {
    list-style-type: disc;
    padding-left: 25px;
    margin: 0;
    margin-top: auto;
    margin-bottom: 15px;
}

li {
    font-size: 20px; 
    margin-bottom: 18px;
    letter-spacing: 1px;
}

/* Right Column Specifics */
.illustration-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.illustration-container img {
    max-width: 90%;
    height: auto;
}

.contact-info {
    text-align: center;
    font-size: 19px; 
    letter-spacing: 1px;
    line-height: 1.8;
    width: 100%;
}

.contact-info strong {
    font-weight: bold;
    font-size: 20px; 
}

/* Navigation Bar Styles */
.nav-bar {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.nav-button {
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 12px 30px;
    font-family: 'Copperplate Gothic Bold', 'Copperplate Gothic Light', 'Copperplate', serif;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid #000000;
    box-shadow: 8px 8px 0px #000000;
    transition: transform 0.1s, box-shadow 0.1s;
    text-transform: uppercase;
}

.nav-button:active {
    transform: translate(8px, 8px);
    box-shadow: 0px 0px 0px #000000;
}

/* --- NEW: Game Page Specific Styles --- */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
}

.game-card {
    background-color: #ffffff;
    border: 3px solid #000000;
    box-shadow: 10px 10px 0px #000000;
    text-decoration: none;
    color: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    transition: transform 0.1s, box-shadow 0.1s;
    width: 140px; /* Reduced width to match ~2 inch height proportionally */
}

.game-card:active {
    transform: translate(8px, 8px);
    box-shadow: 0px 0px 0px #000000;
}

.game-image {
    width: 100%;
    height: 192px; /* 192px is exactly 2 inches on standard web displays */
    object-fit: cover;
    border: 2px solid #000000;
    margin-bottom: 15px;
    background-color: #f1f5f9; /* Fallback if image misses */
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

/* Responsive adjustments for Tablets/Smaller Laptops */
@media (max-width: 850px) {
    .card {
        flex-direction: column;
        padding: 40px;
        gap: 40px;
        /* Shrink shadow slightly so it doesn't overwhelm the screen */
        box-shadow: 10px 10px 0px #000000;
    }
    .left-column {
        padding-right: 0;
    }
    
    /* Center the bullet points nicely when stacked */
    ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        list-style-position: inside;
    }
}

/* Responsive adjustments for Mobile Phones */
@media (max-width: 500px) {
    body {
        padding: 15px;
    }
    .card {
        padding: 25px 20px;
        box-shadow: 8px 8px 0px #000000;
    }
    /* Scale down fonts so they fit perfectly on phone screens */
    h1 { font-size: 24px; }
    h2 { font-size: 18px; }
    .sub-header { font-size: 15px; }
    .rate { font-size: 18px; }
    li { font-size: 16px; margin-bottom: 12px; }
    
    .contact-info { font-size: 15px; }
    .contact-info strong { font-size: 16px; }
    
    .illustration-container img { max-width: 100%; }

    /* Mobile adjustments for Nav Bar */
    .nav-bar {
        margin-top: 30px;
        gap: 15px;
    }
    .nav-button {
        font-size: 16px;
        padding: 10px 20px;
        box-shadow: 5px 5px 0px #000000;
    }
    .nav-button:active {
        transform: translate(5px, 5px);
    }
    
    /* Mobile adjustments for Game Cards */
    .games-grid {
        gap: 20px;
    }
    .game-card {
        width: 120px;
        box-shadow: 6px 6px 0px #000000;
    }
    .game-image {
        height: 160px; /* Slightly under 2 inches for mobile spacing */
    }
    .game-title {
        font-size: 14px;
    }
}