html,
body {
    height: 100%;
    margin: 0;
    background-color: #000;
    background-image: url('../images/background.svg');
    /* Imagem de fundo */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

header {
    border-bottom: 5px solid #000;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 0;
}

header div,
header a {
    padding: 0 4px;
}

header img {
    width: 40px;
}

main {
    height: 100%;
}

@media (max-width: 760px) {
    #logo {
        width: 250px;
    }

    #capa_mob {
        width: 250px;
    }
}



footer {
    color: white;
    padding: 10px;
    text-align: center;
}



/* _----------------------------- */


#preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: #fff;
    /* Fundo branco */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Estilo da Logo */
.logo {
    width: 150px;
    /* Ajuste o tamanho da logo */
    margin-bottom: 20px;
}

/* Estilo do GIF de Loading */
.loading {
    width: 80px;
    /* Ajuste o tamanho do gif */
}

/* Esconde o conteúdo principal antes do carregamento */
.hidden {
    display: none;
}

/* Mostra o conteúdo principal após o carregamento */
.visible {
    display: block;
}


.container-music {
    flex-direction: row;
    padding: 1px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Alterado para distribuir os elementos */
    gap: 10px;
}

@media (max-width: 460px) {
    .container-music {
        transform: scale(0.8);
        transform-origin: 20% 0%;
    }
}

.player-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    max-width: 100%;
    text-align: left;
    gap: 20px;
}

.volume-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    max-width: 100%;
    text-align: center;
}

.volume-info-p {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex: 1;
    max-width: 100%;
    text-align: left;


}

.player-info>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


#musica {
    /* Estilos gerais para #musica */
    color: white;
    /* Cor padrão */
    font-size: 24px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    white-space: nowrap;
}

.artista {
    /* Estilos para o artista */
    color: white;
    /* Cor vermelha para o artista */
}

.musica {
    /* Estilos para a música */
    color: #cacad0;
    /* Cor amarela para a música */
}

.player-info h2 {
    margin: 0 0 10px;
}

.player-info p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: bold;
}



.album-cover {
    margin-top: 10px;
    border-radius: 10px;
    object-fit: cover;
}

#botao {
    width: 100px;
    height: 100px;
    background-size: cover;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.play {
    background-image: url('../images/play.svg');
}

.pause {
    background-image: url('../images/stop.svg');
}

.load {
    background-image: url('../images/load.svg');
}

.audio-bars {
    display: flex;
    justify-content: flex-start;
    /* Alinha as barras ao início (esquerda) */
    align-items: flex-end;
    /* Mantém o alinhamento vertical na parte inferior */
    height: 50px;
    gap: 4px;
    margin-top: 10px;
}

.bar {
    width: 3px;
    height: 60px;
    background-color: #d76f1a;
    animation: bounce 0.8s infinite ease-in-out;
}

.bar.paused {
    animation-play-state: paused;
    /* Pausa a animação */
}

.bar:nth-child(2) {
    animation-delay: 0.1s;
}

.bar:nth-child(3) {
    animation-delay: 0.2s;
}

.bar:nth-child(4) {
    animation-delay: 0.3s;
}

.bar:nth-child(5) {
    animation-delay: 0.4s;
}

.bar:nth-child(6) {
    animation-delay: 0.5s;
}

.bar:nth-child(7) {
    animation-delay: 0.6s;
}

.bar:nth-child(8) {
    animation-delay: 0.7s;
}

.bar:nth-child(9) {
    animation-delay: 0.8s;
}

.bar:nth-child(10) {
    animation-delay: 0.9s;
}

.bar:nth-child(11) {
    animation-delay: 0.10s;
}

.bar:nth-child(12) {
    animation-delay: 0.11s;
}

.bar:nth-child(13) {
    animation-delay: 0.12s;
}

.bar:nth-child(14) {
    animation-delay: 0.13s;
}

.bar:nth-child(15) {
    animation-delay: 0.1s;
}

.bar:nth-child(16) {
    animation-delay: 0.2s;
}

.bar:nth-child(17) {
    animation-delay: 0.3s;
}

.bar:nth-child(18) {
    animation-delay: 0.4s;
}

.bar:nth-child(19) {
    animation-delay: 0.5s;
}

.bar:nth-child(20) {
    animation-delay: 0.6s;
}

.bar:nth-child(21) {
    animation-delay: 0.7s;
}

.bar:nth-child(22) {
    animation-delay: 0.8s;
}

.bar:nth-child(23) {
    animation-delay: 0.9s;
}

.bar:nth-child(24) {
    animation-delay: 0.10s;
}

.bar:nth-child(25) {
    animation-delay: 0.11s;
}

.bar:nth-child(26) {
    animation-delay: 0.12s;
}

.bar:nth-child(27) {
    animation-delay: 0.13s;
}

.bar:nth-child(28) {
    animation-delay: 0.4s;
}

.bar:nth-child(29) {
    animation-delay: 0.5s;
}

.bar:nth-child(30) {
    animation-delay: 0.6s;
}

.bar:nth-child(31) {
    animation-delay: 0.7s;
}

.bar:nth-child(32) {
    animation-delay: 0.8s;
}

.bar:nth-child(33) {
    animation-delay: 0.9s;
}

.bar:nth-child(34) {
    animation-delay: 0.10s;
}

.bar:nth-child(35) {
    animation-delay: 0.11s;
}

.bar:nth-child(36) {
    animation-delay: 0.12s;
}

.bar:nth-child(37) {
    animation-delay: 0.13s;
}

.bar:nth-child(38) {
    animation-delay: 0.6s;
}

.bar:nth-child(39) {
    animation-delay: 0.7s;
}

.bar:nth-child(40) {
    animation-delay: 0.8s;
}

.bar:nth-child(41) {
    animation-delay: 0.9s;
}

.bar:nth-child(42) {
    animation-delay: 0.10s;
}

.bar:nth-child(43) {
    animation-delay: 0.11s;
}

.bar:nth-child(44) {
    animation-delay: 0.12s;
}

.bar:nth-child(45) {
    animation-delay: 0.14s;
}

@keyframes bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.3);
    }
}

.volume-control {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    text-align: left;
}

.volume-control img {
    width: 50px;
    height: 50px;
}

.volume-control input[type="range"] {
    width: 270px;
    height: 4px;
    background: transparent;
    /* Remove o fundo padrão */
    border-radius: 5px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    /* Remove o estilo padrão do navegador */
    appearance: none;
    /* Remove o estilo padrão do navegador */
}

.volume-control input[type="range"]:hover {
    opacity: 1;
}

/* Estilo para a barra no Chrome, Safari e Edge */
.volume-control input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #d76f1a var(--range-progress), white var(--range-progress));
    /* Parte preenchida e inativa */
    border-radius: 5px;
}

/* Estilo para o thumb no Chrome, Safari e Edge */
.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    /* Remove o estilo padrão */
    appearance: none;
    /* Remove o estilo padrão */
    width: 16px;
    height: 16px;
    background: #d76f1a;
    /* Cor do thumb (laranja) */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    /* Remove bordas padrão */
    margin-top: -6px;
    /* Centraliza o thumb na barra */
}

/* Estilo para a barra no Firefox */
.volume-control input[type="range"]::-moz-range-track {
    width: 100%;
    height: 4px;
    background: white;
    /* Cor da parte inativa (branca) */
    border-radius: 5px;
}

/* Estilo para a parte preenchida no Firefox */
.volume-control input[type="range"]::-moz-range-progress {
    background: #d76f1a;
    /* Cor da parte preenchida (laranja) */
    height: 4px;
    border-radius: 5px;
}

/* Estilo para o thumb no Firefox */
.volume-control input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #d76f1a;
    /* Cor do thumb (laranja) */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    /* Remove bordas padrão */
}

/* Estilo para a barra no IE e Edge (legado) */
.volume-control input[type="range"]::-ms-track {
    width: 100%;
    height: 4px;
    background: transparent;
    /* Remove o fundo padrão */
    border-color: transparent;
    /* Remove bordas */
    color: transparent;
    /* Remove a cor padrão */
    border-radius: 5px;
}

/* Estilo para a parte preenchida no IE e Edge (legado) */
.volume-control input[type="range"]::-ms-fill-lower {
    background: #d76f1a;
    /* Cor da parte preenchida (laranja) */
    border-radius: 5px;
}

/* Estilo para a parte inativa no IE e Edge (legado) */
.volume-control input[type="range"]::-ms-fill-upper {
    background: white;
    /* Cor da parte inativa (branca) */
    border-radius: 5px;
}

/* Estilo para o thumb no IE e Edge (legado) */
.volume-control input[type="range"]::-ms-thumb {
    width: 16px;
    height: 16px;
    background: #d76f1a;
    /* Cor do thumb (laranja) */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    /* Remove bordas padrão */
}


@keyframes bounce {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.3);
    }
}