@charset 'utf-8';

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,300;1,800&display=swap');
@import url('bootstrap.min.css');

html, body {
    height: 100%;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

main {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#player {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#player > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    min-height: 0;
    padding-top: 1vh;
    padding-bottom: 1vh;
}


.cover-site {
    min-width: 100%;
    min-height: 100%;
    position: fixed;
    background: url('../img/bg_site.jpg') no-repeat;
    background-position: center;
    background-size: cover;
    transition: background-image 1s;
    background-attachment: fixed;
}

/* FONDO DESENFOQUE */

#bgCover {
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: var(--ambient-color, #1a1a2e);
    transition: background-color 2s ease, opacity 1.5s ease;
    z-index: 1;
}

.bg-mask {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.9) 100%);
    z-index: 2;
}

.web-player {
    height: 100%;
    color: #fff;
    padding: 5px;
    position: relative;
    z-index: 3;
    margin-top: 25px;
}

.cover-album {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1/1;
    max-height: 35vh;
    margin: 0 auto;
    background: url('../img/cover.png') no-repeat;
    background-size: cover;
    border: 2px solid #fefefe;
    box-shadow: 0px 5px 10px 3px rgba(0, 0, 0, 0.4);
    transition: background-image 1s;
    border-radius: 10px;
    margin-bottom: 2vh;
}



#currentCoverArt {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    transition: opacity 1.5s ease-in-out;
}

.logo {
    display: none;
}

.info-current-song {
    font-family: 'Poppins', sans-serif;
    text-align: center;
}

.info-current-song h2 {
    font-size: 46px;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
   
}

.info-current-song h3 {
    font-size: 22px;
    font-weight: 600;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

.current-song {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
}

.current-artist {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-pause {
    font-size: 65px; 
    color: white; 
}

.play-pause i {
    cursor: pointer;
    color: white; 
}

.volume-icon {
    font-size: 28px;
    margin-top: -5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    border: none; /* Adicionado para remover a borda */
}

.volume-slide {
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    
}


.volume-control {
    display: none;
    padding: 10px;
    border-radius: 5px;
}

.volume-slide input[type="range"] {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    outline: none;
    border-radius: 5px;
    border: none; /* Adicionado para remover a borda */
}

.percentual-volume {
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    border: none; /* Adicionado para remover a borda */
}

.vagalume a {
    color: #fff;
    text-decoration: underline;
}

.lyrics, .support-btn {
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: .3s;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    padding: 8px 24px;
    border-radius: 30px;
    display: inline-block;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.lyrics:hover, .support-btn:hover {
    text-decoration: none;
    color: #00E1E7;
    border-color: #00E1E7;
}

.lyrics:active, .support-btn:active {
    text-decoration: none;
    color: #000;
    background-color: #fff;
    border-color: #fff;
    text-shadow: none;
}

.lyrics:visited, .support-btn:visited {
    text-decoration: none;
    color: #fff;
}

.modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff !important;
    border-radius: 20px;
}

.modal-content .btn {
    border-radius: 20px;
    background-color: #00E1E7;
}

/* Chrome */
input[type=range] {
    -webkit-appearance: none;
    background: transparent;
    width: 100%;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animation: 0.2s;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    background: #fff;
}

input[type=range]::-webkit-slider-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
}

/* Firefox */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animation: 0.2s;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    background: #fff;
}

input[type=range]::-moz-range-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    border: 0px solid #000000;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

/* IE e Edge */
input[type=range]::-ms-track {
    width: 100%;
    height: 5px;
    cursor: pointer;
    animation: 0.2s;
    background: transparent;
    border-color: transparent;
    border-width: 10px 0;
    top: -10px;
    color: transparent;
}

input[type=range]::-ms-fill-lower {
    background: #fff;
    border: 0px solid #000101;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}

input[type=range]::-ms-fill-upper {
    background: #fff;
    border: 0px solid #000101;
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
}

input[type=range]::-ms-thumb {
    box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
    border: 0px solid #000000;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}


.historic h2 {
    color: #fefefe;
    border-bottom: 2px solid #fefefe;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px 0;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);   
    
}


/* ZONA FONDO CANCIONES SONADAS */

.historic article {
    margin: 5px 0;
    padding: 10px;
    background-color: none;
}

.historic .cover-historic { 
    width: 95px;
    height: 95px;
    margin-right: 15px;
    float: left;
    border-radius: 10px;
    background: url('../img/cover.png') no-repeat;
    background-size: cover;
    border: 2px solid #fefefe;
   
    box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-image 1s;
}

/* COLOR TEXTO INFO ARTISTA */
.historic .music-info {
    color: white;
    font-family: 'Poppins', sans-serif;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}


/* COLOR TEXTO CANCION */

.historic .music-info .song {
    width: 100%;
    font-weight: bold;
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: -5px;
    color: white;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
}

@media(max-width: 370px) {
    .cover-album {
        max-width: 100%;
    }
}

@media(max-width: 767px) {
    .info-current-song h2 {
        font-size: 26px !important;
        white-space: normal;
        max-width: 100%;
    }
    .info-current-song h3 {
        font-size: 18px !important;
        white-space: normal;
        max-width: 100%;
    }
    .lyrics, .support-btn {
        font-size: 14px;
        padding: 6px 14px;
    }
    .percentual-volume {
        margin-top: 15px;
    }
}

@media(min-width: 576px) {
    .volume-control {
        display: flex;
    }

    .call-lyrics {
        margin-top: 20px;
    }
}

@media(min-width: 768px) {
    body {
        align-items: center;
    }

    .h1-logo {
        text-align: center;
    }

    .logo {
        display: block;
        z-index: 2;
    }

    .logo img {
        max-width: 200px;
    }

    .web-player {
        height: auto;
        margin-top: 0;
    }

    .cover-album {
        margin: 1vh auto;
    }

    .logo img {
        max-width: 300px;
        margin: 65px 0;
    }

    .info-current-song {
        margin-top: 20px;
        text-align: left;
    }

    .volume-control {
        margin-top: 10%;
    }
}

#buttonPlay {
    padding-left: 10px;
}
#playerButton {
    color: white;
}

.btn-play {
    background-color: white;
    border: none;
    color: black;
    padding: 10px 20px; /* Reduzindo o preenchimento */
    font-size: 14px; /* Reduzindo o tamanho da fonte */
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    width: auto; /* Largura automática */
    transition: transform .2s;
    box-shadow: 1px 3px #30303022;
}

.btn-play:focus {outline:0;}

.btn-play:hover {
    box-shadow: 1px 5px #30303022;
    transform: scale(1.1);
}

.btn-play-circle {
    background-color: white;
    border: none;
    color: black;
    padding: 10px 20px; 
    font-size: 20px; 
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;  /* Torna o botão circular */
    width: 60px;          /* Define uma largura fixa */
    height: 60px;         /* Define uma altura fixa (igual à largura) */
    align-items: center;
    justify-content: center;
    transition: transform .2s;
    box-shadow: 1px 3px #30303022;
}

.btn-play-circle:focus {outline:0;}

.btn-play-circle:hover {
    box-shadow: 1px 5px #30303022;
    transform: scale(1.1);
}

/* Ícone de play */
.fa-play-circle { 
    color: white; 
  }
  
  /* Ícone de pause */
  .fa-pause-circle { 
    color: white;
  }

.close{
    color: white;

}

.slide-up-out {
    animation: slideUpOut 0.5s forwards ease-in;
}

.slide-down-in {
    animation: slideDownIn 0.5s forwards ease-out;
}

@keyframes slideUpOut {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-30px); opacity: 0; }
}

@keyframes slideDownIn {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.historic-item {
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}
.historic-item:hover {
    background: rgba(255,255,255,0.05);
    transform: scale(1.02);
}

#startupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #00E1E7;
    transition: opacity 3s ease;
}

@media (max-height: 750px) {
    .cover-album {
        max-height: 25vh;
        margin-bottom: 1vh;
    }
    .info-current-song h2 {
        font-size: 20px !important;
    }
    .info-current-song h3 {
        font-size: 16px !important;
    }
    .historic h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    .cover-historic {
        width: 35px;
        height: 35px;
    }
    .music-info .song {
        font-size: 13px;
    }
    .music-info .artist {
        font-size: 11px;
    }
    .historic-item {
        padding: 5px;
        margin-bottom: 2px !important;
    }
}

@media(max-width: 767px) {
    body, main {
        height: auto;
        overflow: visible;
        display: block;
    }
    #player, #player > .container {
        display: block;
        height: auto;
    }
    .historic {
        margin-top: 3rem !important;
        margin-bottom: 2rem !important;
    }
    .cover-album {
        max-height: 50vh;
    }
}

:root {
  --animate-duration: 1.2s;
}
