#tetrisContainer {
    text-align: center;
    display: none;
}

.tetrisGameArea {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#tetris {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

#tetrisNext {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.7);
}

#tetrisInfoPanel {
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin-left: 5px;
    color: white;
    text-align: left;
    background:  rgba(30, 28, 28, 0.6);
    padding: 10px;
    border-radius: 10px;
    min-width: 110px;
}

#tetrisControls {
    border: 3px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(30, 28, 28, 0.6);
    padding: 10px;
    border-radius: 10px;
    max-width: 400px;
    min-width: 150px;
    white-space: nowrap;       /* Evita que el texto haga salto de línea */
    opacity: 0;
    margin-left: 5px;
    text-align: left;
}


.tetrisControlGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    font-size: 14px;
}

#tetrisGameOver {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 24px;
    display: none;
}

.tetrisButton {
    background: #5981e7;
    min-width: 100px;
    color: white;
    border: none;
    padding: 3px 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
    transition: transform 0.2s;
}

.tetrisButton:hover {
    transform: scale(1.05);
    background: #3d5ca9;

}


.tetrisLabel {
    display:inline-block; 
    width:110px;
}

.tetrisLabelShort {
    display:inline-block; 
    width:60px;
}