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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    margin: 0;
    padding: 20px;
}

.game-container {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 750px;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 0;
    color: #2c3e50;
    font-size: 2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-board {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

#tetris {
    background-color: #1a1a1a;
    border: 4px solid #2c3e50;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    order: 1;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 250px;
    order: 2;
}

.next-block {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.next-block:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.next-block h3 {
    margin-bottom: 10px;
    color: #555;
    font-size: 1.2em;
}

#nextPiece {
    background-color: #1a1a1a;
    border-radius: 5px;
    margin: 0 auto;
    border: 2px solid #333;
}

.score {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.score p {
    margin-bottom: 10px;
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 0;
}

.score span {
    color: #e63946;
}

.controls {
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

#startBtn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    flex: 1;
    border: none;
}

#startBtn:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.3);
}

#pauseBtn {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    flex: 1;
    border: none;
}

#pauseBtn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f57c00 0%, #ef6c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.instructions {
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instructions h4 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.2em;
    margin-top: 0;
}

.instructions p {
    margin-bottom: 8px;
    color: #555;
    font-size: 1em;
    font-weight: 500;
    margin-top: 0;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .game-container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    .game-board {
        flex-direction: column;
        align-items: center;
    }
    
    .game-info {
        width: 100%;
        max-width: 280px;
    }
}