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

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

.game-container {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.game-header h1 {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: #fff;
    letter-spacing: 2px;
}

.game-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.game-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    width: 150px;
}

.game-info h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #ffd700;
    text-align: center;
}

.game-info div:not(.next-section) {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.next-section {
    text-align: center;
}

#next-canvas {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    border: 2px solid #ffd700;
}

.game-board {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 2px solid #ff4444;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    z-index: 100;
}

.game-over h2 {
    color: #ff4444;
    font-size: 2em;
    margin-bottom: 15px;
}

.game-over p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.controls {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    width: 200px;
}

.controls h2 {
    color: #ffd700;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.controls p {
    margin-bottom: 8px;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    width: 100%;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#restart-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    margin-top: 10px;
}

#restart-btn:hover {
    background: linear-gradient(135deg, #ff6666 0%, #ff0000 100%);
}

@media (max-width: 768px) {
    .game-content {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info, .controls {
        width: 100%;
        max-width: 300px;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    #game-canvas {
        width: 250px;
        height: 500px;
    }
} 