body {
    display: flex;
    align-items: center;
    justify-content: center; 
    min-height: 100vh;
    color: white;
    background-color: #e3f2fd;
    }

.container{
    width: 780px;
    border-radius: 20px;
    padding: 35px 40px;
    background-color: black;

}

.container header{
    color: #b2b2b2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header h2{
    font-size: 1.6rem;
}

header .column {
    display: flex;
    align-items: center;
}

header .column span{
    font-weight: 500;
    margin-right: 15px;
    font-size: 1.19rem;
}

.volume-slider input{
    accent-color: white;

}

.keys-check input{
    width: 60px;
    height: 30px;
    appearance: none;
    border-radius: 30px;
    background-color: #4b4b4b;
    cursor: pointer;
    position: relative;
}

.keys-check input::before{
    content: "";
    height: 20px;
    width: 20px;
    background-color: #8c8c8c;
    top: 50%;
    left: 0.3rem;
    border-radius: inherit;    
    position: absolute;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.keys-check input:checked::before {
    left: 1.7rem;
    background-color: #fff;
    
}

.piano-keys{
    display: flex;
    margin-top: 40px;
}

.piano-keys .key {
    cursor: pointer;
    user-select: none;
    list-style: none;
    color: #a2a2a2;
    position: relative;
    text-transform: uppercase;

}

.piano-keys .white{
    width: 70px;
    height: 230px;
    border: 1px solid black;
    border-radius: 8px;
    background: linear-gradient(#fff 96%, #eee 4%);
}

.piano-keys .black{
    width: 44px;
    height: 140px;
    z-index: 2;
    margin: 0 -22px 0 -22px;
    border: 1px solid black;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(#333,#000);
}

.piano-keys span{
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.13rem;
}


.piano-keys .white.active {
    box-shadow: inset -5px 5px 20px rgba(0,0,0,0.2);
    background: linear-gradient(to bottom #fff 0%, #eee 100%);


}

.piano-keys .black.active {
    box-shadow: inset -5px 5px 20px rgba(255,255,255,0.1);
    background: linear-gradient(to bottom #000 , #434343);
    

}


.piano-keys .key.hide span{
    display: none;
}

/* ------------------ RESPONSIVIDADE PARA MODO PAISAGEM (CELULAR DEITADO) ------------------ */

@media screen and (max-width: 900px) and (orientation: landscape) {
    body {
        min-height: 100vh;
        overflow: hidden; /* Evita a rolagem indesejada */
    }

    .container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        padding: 10px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 0;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .piano-keys {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-end;
        overflow-x: hidden; /* Oculta a barra de rolagem, pois as teclas vão caber */
        padding: 0;
        margin-top: 10px;
        height: auto;
    }

    .piano-keys .key {
        flex-grow: 1; /* Permite que as teclas se expandam para preencher o espaço */
    }

    .piano-keys .white {
        height: 18vh; /* Altura relativa à altura da tela */
        width: auto;
        border-radius: 5px;
    }

    .piano-keys .black {
        height: 12vh;
        width: 3%; /* Largura relativa, para se adaptar melhor */
        margin: 0 -1.5% 0 -1.5%; /* Centraliza as teclas pretas */
    }

    .piano-keys span {
        bottom: 5px;
        font-size: 0.8rem;
    }
}