:root {
    /* Global Colors */
    --bg-color: #0d0d0d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    
    /* Euchre Colors */
    --euchre-main: #4D58BC;
    --euchre-accent: #909BFD;
    --euchre-dark: #2a316b;

    /* Solitaire Colors */
    --solitaire-red: #340710;
    --solitaire-lite-red: #b45465;
    --solitaire-lite-blue: #6291aa;
    --solitaire-dark-blue: #1b436f;

    /* Slots Colors */
    --slots-green-main: #053305;
    --slots-green-accent: #2ecc71;
    --slots-green-dark: #001a00;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.main-header {
    background-color: rgba(0,0,0,0.8);
    padding: 1rem;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
}

.main-logo {
    max-height: 60px;
    width: auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    margin: 2rem 1rem;
    /* Faint pink cloud background with dark overlay */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('logos/backgroundpinkcloud1024x768.png');
    background-size: cover;
    background-position: center;
    border: 4px solid #fff;
    box-shadow: 
        0 0 0 4px #000, /* Outer black border */
        0 10px 20px rgba(0,0,0,0.5); /* Drop shadow */
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
}

/* Banner "ribbon" effect (pseudo-elements could be added here for tails, but keeping it clean for mobile) */

.hero h1 {
    font-family: 'Rye', serif; /* Casino/Western Font */
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    color: #fff;
    text-shadow: 
        3px 3px 0 #000,
        -1px -1px 0 #000,  
        1px -1px 0 #000,
        -1px  1px 0 #000,
        1px  1px 0 #000;
    letter-spacing: 2px;
}

.hero p {
    font-family: 'Rowdies', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    color: #FFD700; /* Gold text */
    text-transform: uppercase;
    text-shadow: 2px 2px 0 #000;
    background-color: rgba(0,0,0,0.85);
    padding: 0.8rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    display: inline-block;
    letter-spacing: 1px;
    margin-top: 1rem;
    transform: rotate(-2deg); /* Fun jaunty angle */
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Games Container */
.games-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Game Cards */
.game-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    border: 2px solid rgba(255,255,255,0.1);
}

.game-card:active {
    transform: scale(0.98);
}

.card-content {
    padding: 2rem;
    text-align: center;
    background: rgba(0,0,0,0.2); /* Darker glass effect */
    backdrop-filter: blur(5px);
}

.game-icon img {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.game-card h2 {
    font-family: 'Rye', serif; /* Casino/Western Font */
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff !important; /* Force white */
    text-transform: none; 
    letter-spacing: 2px;
    text-shadow: 
        3px 3px 0 #000,
       -1px -1px 0 #000,  
        1px -1px 0 #000,
       -1px  1px 0 #000,
        1px  1px 0 #000;
}

.game-desc {
    font-family: 'Rowdies', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #fceeb5; /* Creamy off-white/gold */
    font-weight: 300;
    text-shadow: 2px 2px 0 #000;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Theme Specific Styles */

/* Euchre Theme */
.euchre-theme {
    background: linear-gradient(135deg, var(--euchre-main), var(--euchre-dark));
    border: 1px solid var(--euchre-accent);
}
.btn-euchre {
    background-color: var(--euchre-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(77, 88, 188, 0.4);
}

/* Solitaire Theme */
.solitaire-theme {
    background: linear-gradient(135deg, var(--solitaire-red), var(--solitaire-dark-blue));
    border: 1px solid var(--solitaire-lite-red);
}
.btn-solitaire {
    background-color: var(--solitaire-lite-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(180, 84, 101, 0.4);
}

/* Slots Theme */
.slots-theme {
    background: linear-gradient(135deg, var(--slots-green-main), var(--slots-green-dark));
    border: 1px solid var(--slots-green-accent);
}
.slots-theme h2 {
    color: #fff;
}
.btn-slots {
    background-color: var(--slots-green-accent);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%; /* Full width on mobile */
    max-width: 300px;
}

.btn:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: #888;
    text-decoration: none;
}

/* Media Queries */
@media (min-width: 768px) {
    .games-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .game-card {
        flex: 1 1 300px; /* Cards sit side by side on desktop */
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2.5rem 1rem;
        margin: 1rem 0.5rem;
    }
    .game-card h2 {
        font-size: 1.8rem;
    }
    .game-desc {
        font-size: 1rem;
    }
    .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    .card-content {
        padding: 1.2rem;
    }
}
