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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 1200px;
    width: 100%;
}

.screen {
    display: block;
}

.screen.hidden {
    display: none;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    color: #666;
    font-size: 1.2em;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #f8f9fa;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #667eea;
    color: white;
}

/* Game Selection */
.game-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.game-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

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

.game-card h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.game-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

/* Game Info Bar */
.game-info {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: bold;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    color: #666;
    font-size: 0.9em;
}

.value {
    color: #667eea;
    font-size: 1.3em;
}

/* Canvas */
canvas {
    display: block;
    width: 100%;
    height: 400px;
    border: 3px solid #333;
    border-radius: 10px;
    cursor: pointer;
    background: #f0f8ff;
}

#aquariumCanvas {
    background: linear-gradient(to bottom, #1e3a5f 0%, #2a5a8a 50%, #3d7ab8 100%);
}

#balloonCanvas {
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
}

#toiletCanvas {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn:active {
    transform: translateY(0);
}

/* Instructions */
.instructions {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}

.instructions p {
    color: #666;
    line-height: 1.8;
    margin: 5px 0;
}

.instructions p:first-child {
    font-weight: bold;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .game-selection {
        grid-template-columns: 1fr;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    canvas {
        height: 300px;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .back-btn {
        position: static;
        transform: none;
        margin-bottom: 15px;
    }
}
