/* Tetris Game Specific Styles */

.tetris-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

#tetris-canvas {
    border: 3px solid #FF00FF;
    background-color: #000000;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.7);
}

.game-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 150px;
}

.next-piece-container, .hold-piece-container {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #FF00FF;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.next-piece-container h3, .hold-piece-container h3, .high-score h3 {
    color: #FFFF00;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

#next-piece, #hold-piece {
    background-color: #111;
    border-radius: 5px;
}

.high-score {
    background-color: rgba(0, 0, 0, 0.7);
    border: 2px solid #FF00FF;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

#high-score {
    font-size: 1.5rem;
    color: #00FFFF;
    font-weight: bold;
}

/* Game Over Overlay */
.game-over-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    color: #FFFFFF;
    font-family: 'Arial', sans-serif;
}

.game-over-content {
    background-color: #222;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 3px solid #FF00FF;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.7);
    max-width: 500px;
    width: 90%;
}

.game-over-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FF0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
}

.game-over-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.game-over-content button {
    background-color: #FF00FF;
    color: #000000;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.game-over-content button:hover {
    background-color: #FF66FF;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
}

/* Line Clear Animation */
@keyframes lineClear {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.line-clear {
    animation: lineClear 0.3s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .tetris-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-panel {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .next-piece-container, .hold-piece-container, .high-score {
        width: 120px;
    }
    
    #tetris-canvas {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    #tetris-canvas {
        width: 200px;
        height: 400px;
    }
    
    .game-panel {
        flex-wrap: wrap;
    }
} 