@import url("https://fonts.googleapis.com/css?family=Sacramento&display=swap");

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    background: rgb(2, 0, 36);
}

::-webkit-scrollbar-thumb:horizontal {
    background: white;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:vertical {
    background: white;
    border-radius: 10px;
}


.reproductor {
    left: 0;
    bottom: 0;
    width: 100%;
    position: fixed;
    background-color: #181818;
    color: #fff;
    padding: 10px;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
}

.inter {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

.info-cancion {
    max-width: 50%;
    display: flex
;
    align-items: center;
}

.img-fluid {
    width: 120px; /* Ajusta el tamaño de la imagen */
    height: auto;
    border-radius: 4px;
}

b{
    font-size: 15px;
}

h2, h3 {
    margin: 0;
    padding-left: 10px;
    font-size: 30px;
}

.botonera {
    width: 60%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.custom-btn {
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 30%;
    padding: 4px;
    width: 40px;
    height: 40px;
    color: black;
    cursor: pointer;
    transition: background-color 0.2s;
}

.custom-btn:hover {
    background-color: #D40047; /* Color al pasar el mouse */
}

.vol {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

#volume {
    margin-left: 5px;
    width: 100px; /* Ajusta el ancho del control de volumen */
}

#playBackSlider {
    margin: auto;
    width: 95%;
    cursor: pointer;
}

#currentTime {
    color: #b3b3b3; /* Color para el tiempo actual */
    margin-left: 10px;
}

.range{
        bottom: 0px;
    position: relative;
    margin: 0px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: row-reverse;
    
}

/* Estilos para los controles tipo range del reproductor */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent; /* Fondo transparente */
}

input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px; /* Altura del riel del slider */
    background: white; /* Color del riel */
    border-radius: 5px; /* Bordes redondeados */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px; /* Ancho del thumb */
    height: 16px; /* Altura del thumb */
    background: rgb(255, 0, 85); /* Color del thumb */
    border-radius: 50%; /* Forma circular */
    margin-top: -7px; /* Ajuste vertical para centrar el thumb */
    cursor: pointer;
    transition: background-color 0.3s ease; /* Transición suave */
}

input[type="range"]::-webkit-slider-thumb:hover {
    background-color: #ff3366; /* Color al hacer hover sobre el thumb */
}

input[type="range"]:focus {
    outline: none; /* Quitar el contorno al enfocar */
}




/* Loader */

div#pre-loader {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: brightness(0.5);
    z-index: 9999999;
}

#loader-container {
    display: inline-block;
    position: fixed;
    width: 80px;
    height: 80px;
}

#loader-container div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #fff;
    animation: pre-loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

#loader-container div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

#loader-container div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

#loader-container div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes pre-loader {
    0% {
        top: 8px;
        height: 64px;
    }
    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}

#dImage {
    width: 100%;
    max-height: 15vh;
    object-fit: scale-down;
    object-position: center center;
    ;
}

img.mini-display-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    padding: 0.1em;
}

img#display-img {
    width: 100px;
    height: 100px;
    object-fit: scale-down;
    object-position: center center;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    

    
    .range{
        width:100%;
    bottom: 0px;
    position: relative;
    margin: 0px;
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    flex-direction: row-reverse;
    
}
    
    .reproductor {
        padding: 8px;
        flex-direction: column;
        align-items: center;
    }

    .inter {
        flex-direction: column;
        align-items: center;
    }

    .info-cancion {
        max-width: 80%;
        justify-content: center;
        text-align: center;
    }

    .img-fluid {
        width: 100px; /* Reducir tamaño de la imagen */
        height: auto;
    }

    h2, h3 {
        font-size: 24px; /* Reducir el tamaño de los encabezados */
        padding-left: 0;
    }

    .botonera {
        width: 80%;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        flex-direction: row;
    }

    .custom-btn {
        width: 30px;
        height: 30px;
        padding: 3px;
    }

    .vol {
        display:none;
    }

    #volume {
        width: 80px;
    }

    #playBackSlider {
        width: 90%;
    }

    #currentTime {
        font-size: 14px;
        margin-left: 5px;
    }

    input[type="range"]::-webkit-slider-runnable-track {
        height: 2px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
    }

    /* Loader */
    div#pre-loader {
        width: 100%;
        height: 100%;
        flex-direction: column;
    }

    #loader-container {
        width: 60px;
        height: 60px;
    }

    #loader-container div {
        width: 12px;
    }

    #dImage {
        max-height: 10vh;
    }

    img.mini-display-img {
        width: 90%;
        height: auto;
    }

    img#display-img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .reproductor {
        padding: 6px;
    }

    .info-cancion {
        max-width: 90%;
    }

    .img-fluid {
        width: 80px; /* Reducir aún más el tamaño de la imagen */
    }

    h2, h3 {
        font-size: 18px; /* Aún más pequeño en pantallas muy pequeñas */
    }

    .botonera {
        width: 90%;
        flex-direction: column;
    }

    .custom-btn {
        width: 25px;
        height: 25px;
        padding: 2px;
    }

    .vol {
        display:none;
    }

    #volume {
        width: 60px;
    }

    #playBackSlider {
        width: 85%;
    }

    #currentTime {
        font-size: 12px;
    }

    input[type="range"]::-webkit-slider-thumb {
        width: 12px;
        height: 12px;
    }

    #loader-container {
        width: 50px;
        height: 50px;
    }

    #loader-container div {
        width: 10px;
    }

    #dImage {
        max-height: 8vh;
    }

    img.mini-display-img {
        width: 80%;
        height: auto;
    }

    img#display-img {
        width: 70px;
        height: 70px;
    }
}