* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #FFE5B4 0%, #FFCCCB 50%, #E0E6FF 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.header p {
    font-size: 1.3rem;
    color: #666;
    font-weight: bold;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #FFD93D;
    border-radius: 20px;
    padding: 20px 30px;
    text-align: center;
    color: #333;
    transition: transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
    color: #FF6B6B;
}

.stat-label {
    font-size: 1rem;
    margin-top: 5px;
    color: #666;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.game-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 4px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: #FFD93D;
}

.game-thumbnail {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.balloon-bg {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
}

.animal-bg {
    background: linear-gradient(135deg, #A8EDEA 0%, #FED6E3 100%);
}

.color-bg {
    background: linear-gradient(135deg, #FFECD2 0%, #FCB69F 100%);
}

.shape-bg {
    background: linear-gradient(135deg, #C3ECE0 0%, #A8E6CF 100%);
}

.bubble-bg {
    background: linear-gradient(135deg, #E0C3FC 0%, #9BB5FF 100%);
}

.game-icon {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.game-info {
    padding: 25px;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.game-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.play-button {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
    font-family: inherit;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer {
    text-align: center;
    color: #666;
    margin-top: 50px;
    font-size: 1.2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 95%;
    height: 90%;
    background-color: white;
    border-radius: 20px;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close:hover {
    background: #f0f0f0;
}

#gameFrame {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .stats {
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px 20px;
    }
    
    .modal-content {
        width: 98%;
        height: 95%;
        margin: 1% auto;
    }
}
.ring-bg {
    background: linear-gradient(135deg, hsl(281, 28%, 59%) 0%, #c27f9979 100%);
}
.basket-bg {
    background: linear-gradient(135deg, hsl(190, 25%, 56%) 0%, #7fc2b779 100%);
}
.emotion-bg {
    background: linear-gradient(135deg, hsl(212, 45%, 58%) 0%, #7fc2b779 100%);

}
