/* Tetris Game Styles */
#tetrisGameSection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

#tetris-game-container .game-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 10px;
    justify-content: center;
}

#tetrisCanvas {
    border: 2px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-color: #000;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

#tetris-game-container .side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

#tetris-game-container .label {
    font-size: 0.8em;
    color: #aaa;
    margin-bottom: 5px;
}

#tetrisScore {
    font-size: 1.5em;
}

#tetris-game-container .desktop-controls {
    margin-top: 20px;
    font-size: 0.9em;
    color: #888;
    text-align: left;
}

#tetris-game-container .desktop-controls p {
    margin: 5px 0;
}

@media (max-width: 800px) {
    #tetris-game-container .desktop-controls {
        display: none;
    }
}

@media (max-width: 500px) {
    #tetris-game-container .game-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0;
    }

    #tetris-game-container .side-panel {
        flex-direction: row;
        width: 100%;
        justify-content: center;
        gap: 30px;
        align-items: center;
        margin-bottom: 5px;
    }

    #tetrisNextCanvas {
        width: 80px;
        height: 80px;
    }

    #tetrisScore {
        font-size: 1.2em;
    }

    #tetrisCanvas {
        height: 45vh;
        width: auto;
        aspect-ratio: 360/600;
        margin-bottom: 5px;
    }
}