body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url("../assets/mario_fundo.jpg") no-repeat center center/cover;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
}

.container{
    width: 800px;
    height: auto;
    border-radius: 20px;
    padding: 24px 12px;
    background-color: rgba(0, 0, 0, 0.87);
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ffff00;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.container header{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b2b2b2;
}

header h2{
    font-size: 2rem;
    color: #ffcc00;
    text-shadow: 2px 2px 0 #000, 0 0 10px #ff0000;
    text-align: center;
    margin-bottom: 12px;
}

header .column{
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Controles alinhados lado a lado */
.controls{
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.controls span{
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
}

.volume-slider input{
    accent-color: #ffcc00;
    cursor: pointer;
}

/* Botão estilo switch */
.keys-check input{
    width: 60px;
    height: 30px;
    appearance: none;
    border-radius: 30px;
    background-color: #4b4b4b;
    cursor: pointer;
    position: relative;
}

.keys-check input::before {
    content: '';
    width: 25px;
    height: 25px;
    position: absolute;
    top: 50%;
    left: 0.3rem;
    background-color: #8c8c8c;
    border-radius: inherit;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.keys-check input:checked::before {
    left: 2.1rem;
    background-color: #fff;
}

/* Caixa do GIF */
.gif-box {
    width: 600px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid #ffcc00;
    border-radius: 12px;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px #ff0000, 0 0 20px #ffff00;
}

.gif-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;   
}

/* Piano */
.piano-keys{
    display: flex;
    justify-content: center;
    align-self: center;
    margin-top: clamp(12px, 3vh, 28px);
    padding: 0 22px;
    overflow: visible;
}

.piano-keys .key{
    cursor: pointer;
    user-select: none;
    list-style: none;
    color: #a2a2a2;
    position: relative;
    text-transform: uppercase;
}

.piano-keys .white{
    border: 1.5px solid black;
    width: 70px;
    height: clamp(140px, 26vh, 230px);
    border-radius: 10px;
    background: linear-gradient(#fff 96%, #eee 4%);
}

.piano-keys .black{
    border: 2px solid #222;
    width: 44px;
    height: clamp(90px, 18vh, 140px);
    z-index: 2;
    margin: 0 -22px 0 -22px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(#111, #000);
    position: relative;
    cursor: pointer;
}

.piano-keys span{
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.10rem;
    color: #ffcc00;
}

.piano-keys .white.active{
    box-shadow: inset -5px 5px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(#fff 0%, #eee 100%);
}

.piano-keys .black.active{
    box-shadow: inset -5px 5px 10px rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, #000000, #434343);
}

.piano-keys .key.hide span{
    display: none;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: url("../assets/mario_fundo.jpg") no-repeat center center/cover;
    font-family: 'Press Start 2P', cursive;
    color: #fff;
}

.container {
    width: 800px;
    height: auto;
    border-radius: 20px;
    padding: 24px 12px;
    background-color: rgba(0, 0, 0, 0.87);
    box-shadow: 0 0 20px #ff0000, 0 0 40px #ffff00;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.container header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #b2b2b2;
}

header h2 {
    font-size: 2rem;
    color: #ffcc00;
    text-shadow: 2px 2px 0 #000, 0 0 10px #ff0000;
    text-align: center;
    margin-bottom: 12px;
}

header .column {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Controles alinhados lado a lado */
.controls {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.controls span {
    font-weight: 500;
    font-size: 1rem;
    color: #fff;
}

.volume-slider input {
    accent-color: #ffcc00;
    cursor: pointer;
}

/* Botão estilo switch */
.keys-check input {
    width: 60px;
    height: 30px;
    appearance: none;
    border-radius: 30px;
    background-color: #4b4b4b;
    cursor: pointer;
    position: relative;
}

.keys-check input::before {
    content: '';
    width: 25px;
    height: 25px;
    position: absolute;
    top: 50%;
    left: 0.3rem;
    background-color: #8c8c8c;
    border-radius: inherit;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.keys-check input:checked::before {
    left: 2.1rem;
    background-color: #fff;
}

/* Caixa do GIF */
.gif-box {
    width: 500px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid #ffcc00;
    border-radius: 12px;
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 12px #ff0000, 0 0 20px #ffff00;
}

.gif-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

/* Piano */
.piano-keys {
    display: flex;
    justify-content: center;
    align-self: center;
    margin-top: clamp(12px, 3vh, 28px);
    padding: 0 22px;
    overflow: visible;
    flex-wrap: nowrap;
}

.piano-keys .key {
    cursor: pointer;
    user-select: none;
    list-style: none;
    color: #a2a2a2;
    position: relative;
    text-transform: uppercase;
}

.piano-keys .white {
    border: 1.5px solid black;
    width: 70px;
    height: clamp(140px, 26vh, 230px);
    border-radius: 10px;
    background: linear-gradient(#fff 96%, #eee 4%);
}

.piano-keys .black {
    border: 2px solid #222;
    width: 44px;
    height: clamp(90px, 18vh, 140px);
    z-index: 2;
    margin: 0 -22px 0 -22px;
    border-radius: 0 0 5px 5px;
    background: linear-gradient(#111, #000);
    position: relative;
    cursor: pointer;
}

.piano-keys span {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.10rem;
    color: #ffcc00;
}

.piano-keys .white.active {
    box-shadow: inset -5px 5px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(#fff 0%, #eee 100%);
}

.piano-keys .black.active {
    box-shadow: inset -5px 5px 10px rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, #000000, #434343);
}

.piano-keys .key.hide span {
    display: none;
}

/* ---- 📱 RESPONSIVIDADE --- */

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 16px 10px;
    }

    header h2 {
        font-size: 1.4rem;
    }

    .controls {
        flex-direction: column;
        gap: 12px;
    }

    .gif-box {
        width: 100%;
        height: 180px;
    }

    .piano-keys .white {
        width: 45px;
        height: 140px;
    }

    .piano-keys .black {
        width: 28px;
        height: 90px;
        margin: 0 -14px 0 -14px;
    }

    .piano-keys span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    header h2 {
        font-size: 1.2rem;
    }

    .gif-box {
        height: 150px;
    }

    .piano-keys .white {
        width: 35px;
        height: 120px;
    }

    .piano-keys .black {
        width: 22px;
        height: 70px;
        margin: 0 -11px 0 -11px;
    }

    .piano-keys span {
        font-size: 0.7rem;
    }
}




