/* style.css */
:root {
    --bg-color: #e0f7fa; /* Light Sky Blue */
    --card-bg: #ffffff;
    --primary-pink: #ff85a2;
    --primary-yellow: #ffd166;
    --primary-blue: #06d6a0;
    --text-color: #4a4a4a;
}

body {
    background-color: var(--bg-color);
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    margin: 0;
    padding: 40px 20px;
    text-align: center;
}

h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    color: #ff6b6b;
    text-shadow: 3px 3px 0px #fff;
    margin-bottom: 40px;
}

.support-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    max-width: 820px;
    margin: 0 auto 26px;
    padding: 14px;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.support-copy {
    flex: 0 1 260px;
    min-width: 220px;
    text-align: left;
}

.support-copy p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #555;
}

#paypal-container-WSACEGUC9HX4A {
    max-width: 260px;
}

.support-qr {
    flex: 0 0 260px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.support-qr img {
    width: 220px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

@media (min-width: 720px) {
    .support-bar {
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        gap: 20px;
    }

    .support-copy {
        text-align: left;
    }
}

.qr-note {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

/* Filter Menu Styles */
.filter-menu {
    margin-bottom: 30px;
}

.filter-btn {
    background: white;
    border: 3px solid var(--primary-pink);
    padding: 10px 25px;
    margin: 5px;
    border-radius: 25px;
    font-family: 'Fredoka One', cursive;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-color);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-pink);
    color: white;
}

/* Logic for Filtering */
.game-card.hidden {
    display: none;
}

/* The Grid Container */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    justify-content: center; /* Centers the boxes if there's extra space */
}

/* Individual Game Card */
.game-card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 15px;
    max-width: 250px;
    box-shadow: 0 10px 0px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid transparent;
}

/* Rainbow Border Colors */
.game-card:nth-child(3n+1) { border-color: var(--primary-pink); }
.game-card:nth-child(3n+2) { border-color: var(--primary-yellow); }
.game-card:nth-child(3n+3) { border-color: var(--primary-blue); }

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 20px rgba(0,0,0,0.1);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: #eee;
    border-radius: 20px;
    margin-bottom: 15px;
    object-fit: cover;
}

.game-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    margin: 10px 0;
    color: var(--text-color);
}

.play-button {
    background: #ff6b6b;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: auto;
    box-shadow: 0 4px 0 #d64545;
}

.game-card:hover .play-button {
    background: #ff85a2;
    transform: scale(1.1);
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    font-size: 0.9rem;
    color: #999;
    border-top: 1px solid rgba(0,0,0,0.05);
}