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

.container {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

h1 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 2.5em;
    text-align: center;
}

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

.main-game {
    border: 3px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

canvas {
    display: block;
    background-color: #000;
}

#nextCanvas {
    background-color: #1a1a1a;
    border: 2px solid #666;
    border-radius: 5px;
    margin-top: 10px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-box {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    min-width: 150px;
}

.info-box h3 {
    margin: 0 0 10px 0;
    color: #667eea;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box p {
    margin: 0;
    font-size: 2em;
    font-weight: bold;
    color: #333;
}

.button-group {
    display: flex;
    gap: 10px;
}

button {
    flex: 1;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.start-btn {
    background-color: #4CAF50;
    color: white;
}

.start-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.pause-btn {
    background-color: #ff9800;
    color: white;
}

.pause-btn:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

.pause-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.controls-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #00bcd4;
    font-size: 0.9em;
}

.controls-info p {
    margin: 5px 0;
}

.controls-info strong {
    color: #00bcd4;
}

.status {
    text-align: center;
    margin-top: 20px;
}

#gameStatus {
    font-size: 1.1em;
    font-weight: bold;
    color: #667eea;
    min-height: 24px;
}

@media (max-width: 700px) {
    .game-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .info-box {
        flex: 1;
        min-width: 120px;
    }

    .button-group {
        width: 100%;
    }
}
