html {
    scroll-behavior: smooth;
}

/*===================== MAIN =====================*/
main {
    display: flexbox;
    height: auto;
    width: 90%;
    margin-left: 5%;
}

.izquierda {
    display:inline;
    width: 90%;
    background-color:transparent;
    padding: 20px;
    /* Agrega aquí tu código para la parte izquierda */
}

.derecha {
    display: inline;
    width: 70%;
    background-color: transparent;
    padding: 20px;
    font-size: 14px;
    /* Agrega aquí tu código para la parte derecha */
}

/*===================== TABLA =====================*/
.tabla {
    display: grid;
    /* 5 columnas de igual ancho */
    grid-template-columns: repeat(27, 1fr);
    gap: 1px;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
}

.celda {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    background-color: #ffffff;
    padding: 10px 2px;
    font-size: 16px;
    font-weight: 500;
    color: #039;
    transition: background-color 0.2s;
}

.celda:hover {
    background-color: #e0e7ff;
    color: #1e40af;
}

.celdaActiva {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039;
    padding: 10px 2px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #FC0;
}

.tablaArtistas {
    display: grid;
    /* 5 columnas de igual ancho */
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #d1d5db;
    border: 2px solid #9ca3af;
    border-radius: 8px;
    overflow: hidden;
}

.celdaArtista {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    background-color: #ffffff;
    padding: 10px 2px;
    font-size: 16px;
    font-weight: 500;
    color: #039;
    transition: background-color 0.2s;
}

.celdaArtista:hover {
    background-color: #e0e7ff;
    color: #1e40af;
}

.celdaActivaArtista {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #039;
    padding: 10px 2px;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #FC0;
}

.celdaCero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    background-color: #ffffff;
    padding: 10px 2px;
}

/*===================== LINKS =====================*/
.chooseLetra {
    color: #039;
    text-decoration: none;
}

#marcaLnk {
    display: ruby-base;
}

/*===================== INFO ARTISTA =====================*/
.tituloBanda {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #039;
    color: #FC0;
    font-size: 2rem;
    font-weight: 700;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 15px;
    border-radius: 5px 5px 0 0;
}

.parrafo {
    padding: 0;
    color: #039;
    font-size: 1rem;
    text-align: justify;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

img {
    border-radius: 5px;
}

img.izq {
    float: left;
    margin: 1% 2%;
    max-width: 300px;
    height: auto;
}

img.der {
    float: right;
    margin: 1% 2%;
    max-width: 300px;
    height: auto;
}

img.izq-v {
    float: left;
    margin: 1% 2%;
    max-height: 300px;
    width: auto;
}

img.der-v {
    float: right;
    margin: 1% 2%;
    max-height: 300px;
    width: auto;
}

.sound {
    display: block !important;
    visibility: visible !important;
    background: transparent;
    width: 90%;
    margin: auto;
    margin-top: 10px;
    padding: 3px 0;
    margin-bottom: 10px;
    border-top: 1px solid #039;
    border-bottom: 1px solid #039;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-weight: bold;
}



/* Forzar visibilidad del audio */
.sound audio {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 90% !important;
    height: 50px !important;
    margin: 0 auto;
}

.sound span {
    color: #039;
    font-size: 1rem;
}


.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    width: 70%;
    height: auto;
    margin-left: 15%;
    padding-bottom: 0;
}

.video-responsive {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    width: 80%;
    height: auto;
    margin-left: 8%;
    padding-bottom: 0;
}

p.videoCaption {
    font-size: 1.5rem;
    color: #039;
    text-align: center;
    margin-left: 6%;
}

.memdisco {
    display: flex;
    flex-wrap: nowrap;
    background-color: transparent;
}

.fulldisco {
    background-color: rgb(199, 216, 248);
    color: #039;
    border: 1px solid #039;
    border-radius: 5px 5px 0 0;
    width: 90%;
    margin: 10px;
    margin-left: 5%;
    padding: 1% 2%;
    text-align: left;
}

.miembros, .discografia {
    background-color: rgb(199, 216, 248);
    color: #039;
    border: 1px solid #039;
    width: 50%;
    margin: 10px;
    padding: 1% 2%;
    text-align: left;
}

.miembros {
    border-radius: 5px 0 0 5px;
}

.discografia {
    border-radius: 0 5px 5px 0;
}

.fuentes {
    background-color: rgb(240, 232, 200);
    color: #039;
    border: 1px solid #039;
    border-radius: 0 0 5px 5px;
    width: 95%;
    margin: auto;
    padding: 1% 2%;
    text-align: left;
}

.fuentes>a {
    color: #039;
    text-decoration: none;
}

.fuentes>a:hover {
    font-size: 1.1rem;
}

/*================================================*/
/*================ RESPONSIVE ====================*/
/*================================================*/

@media screen and (max-width: 960px) {
    .celdaArtista {
        min-height: 68px;
        padding: 6px 2px;
        font-size: 14px;
    }

    .celdaActivaArtista {
        padding: 6px 2px;
        font-size: 14px;
    }

    .video-container {
        width: 70%;
        margin-left: 18%;
    }

    .video-responsive {
        width: 100%;
        margin-left: 0;
    }

    p.videoCaption {
        font-size: 1rem;
    }

    .miembros, .discografia {
        width: 90%;
    }
}

@media screen and (max-width: 768px) {
    .parrafo {
        font-size: 0.8rem;
    }

    .sound audio {
        width: 90%;
        height: 40px !important;
    }

    .memdisco {
        font-size: 0.8rem;
    }

    .miembros, .discografia {
        font-size: 0.8rem;
    }

    .fuentes {
        font-size: 0.8rem;
    }

    .celdaArtista {
        min-height: 76px;
        font-size: 14px;
    }

    .celdaActivaArtista {
        min-height: 76px;
        font-size: 14px;
    }

}

@media screen and (max-width: 540px) {
    .chooseLetra > .celda {
        min-height: 8px;
    }

    .tablaArtistas {
        grid-template-columns: repeat(4, 1fr);
    }

    .celdaArtista {
        min-height: 54px;
        font-size: 12px;
    }

    .celdaActivaArtista {
        min-height: 54px;
        font-size: 12px;
    }

    .celdaCero {
        display: none;
    }

    .tituloBanda {
        font-size: 1.5rem;
    }

    .parrafo {
        font-size: 0.8rem;
    }

    img.izq, img.der,
    img.izq-v, img.der-v {
        float: none;
    }

    img.izq, img.der {
        margin: 6px 18%;
        max-width: 300px;
        height: auto;
    }

    img.izq-v, img.der-v {
        margin: 6px 27%;
        max-height: 300px;
        width: auto;
    }

    .sound {
        float: none;
        width: 90%;
        margin-left: 4%;
    }

    .sound audio {
        width: 90%;
        height: 40px !important;
    }

    .sound span {
        font-size: 0.9rem;
    }

   .video-container {
        width: 80%;
        margin-left: 10%;
    }

    .video-responsive {
        width: 100%;
        margin-left: 0;
    }

    p.videoCaption {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .memdisco {
        display: grid;
        /* 5 columnas de igual ancho */
        grid-template-columns: repeat(1, 1fr);
    }

    .miembros, .discografia {
        width: 90%;
        margin-left: 5%;
    }

    .miembros {
        border-radius: 5px 5px 0 0 ;
    }

    .discografia {
        border-radius: 0 0 5px 5px;
    }

    .fuentes {
        border-radius: 5px 5px 5px 5px;
    }
}

@media screen and (max-width: 480px) {
    .celdaArtista {
        min-height: 68px;
    }

    .celdaActivaArtista {
        min-height: 68px;
    }

    img.izq, img.der {
        margin: 6px 14%;
    }

    img.izq-v, img.der-v {
        margin: 6px 24%;
    }

    .fuentes>a:hover {
        font-size: 0.9rem;
    }

}

@media screen and (max-width: 440px) {
    img.izq, img.der {
        margin: 6px 10%;
    }

    img.izq-v, img.der-v {
        margin: 6px 22%;
    }

   .video-container {
        width: 86%;
        margin-left: 8%;
    }

    p.videoCaption {
        font-size: 0.8rem;
        margin-left: 1%;
    }

    .tabla {
        grid-template-columns: repeat(14, 1fr);
    }
    
    .celda {
        font-size: 12px;
    }

    .celdaActiva {
        font-size: 12px;
    }
}

@media screen and (max-width: 412px) {
    img.izq, img.der {
        margin: 6px 8%;
    }

    img.izq-v, img.der-v {
        margin: 6px 20%;
    }

}

@media screen and (max-width: 376px) {
    img.izq, img.der {
        margin: 4px 4%;
    }

    img.izq-v, img.der-v {
        margin: 6px 17%;
    }

    .video-container {
        width: 100%;
        margin-left: 0;
    }

    p.videoCaption {
        font-size: 0.9rem;
        margin-left: 0;
    }

    .sound {
        width: 100%;
        margin-left: 0; 
    }

    /* Forzar visibilidad del audio */
    .sound audio {
        width: 90% !important;
        height: 40px !important;
    }

    .sound span {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 360px) {
    img.izq, img.der {
        margin: 4px 1%;
    }

    img.izq-v, img.der-v {
        margin: 6px 18%;
    }

}

@media screen and (max-width: 321px) {
    main {
        margin-left: 3%;
    }

    .izquierda {
        display:inline;
        padding: 10px;
        /* Agrega aquí tu código para la parte izquierda */
    }

    .derecha {
        padding: 10px;
    }

    .parrafo {
        font-size: 0.8rem;
    }

    img.izq, img.der {
        max-width: 280px;
    }

    img.izq-v, img.der-v {
        margin: 6px 17  %;
        max-height: 280px;
    }

    .sound {
        width: 90%;
        margin-left: 5%; 
    }

    /* Forzar visibilidad del audio */
    .sound audio {
        width: 90% !important;
        height: 30px !important;
    }

    .sound span {
        font-size: 0.7rem;
    }

    p.videoCaption {
        font-size: 0.7rem;
        margin-left: 0;
    }
}
