body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

#game-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#tetris-container {
    position: relative;
}

#tetris-canvas {
    border: 2px solid #333;
    display: block;
}

#info-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    min-width: 150px;
}

.panel-item {
    text-align: center;
}

.panel-item h2 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

#score-value, #high-score-value, #level-value {
    font-size: 2em;
    font-weight: bold;
    color: #0DC2FF;
}

#controls {
    display: none;
    margin-top: 20px;
    justify-content: center;
    gap: 10px;
}

#controls button {
    font-size: 24px;
    width: 60px;
    height: 60px;
    border: none;
    background-color: #0DC2FF;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

#controls button:hover {
    background-color: #0AA8E3;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#play-btn, #restart-btn {
    font-size: 24px;
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #0DC2FF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#play-btn:hover, #restart-btn:hover {
    background-color: #0AA8E3;
}

#countdown {
    font-size: 48px;
    color: white;
    margin-top: 20px;
}

#game-over {
    text-align: center;
    color: white;
}

#game-over h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

#final-score, #final-high-score {
    font-size: 24px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #game-container {
        flex-direction: column;
        align-items: center;
    }

    #info-panel {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }

    #controls {
        display: flex;
    }

    .mobile-only {
        display: flex !important;
    }
}