*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Mono', monospace;
}

html{
    scroll-behavior: smooth; /*permite que las transiciones al hacer click en un punto de ancla sea mas fluidas y suave*/
}

:root{
    --title:90px;
    --nav-item:32px;
    --projects:50px;
    --links: 32px;
    --section-bio-width: 100%;
    --section-bio-height: 100vh;
    --nav-padding: 35px;
    /*COLORES PARA EL REPRODUCTOR*/
    --sectionbgcolor: rgb(0, 0, 0);
    --playercolor: rgb(29, 29, 29);
    --list-color: rgb(124, 124, 124);
    --uitext-color: #dadada;
    --highlightelement: rgb(255, 127, 23);
    --gradient-a: navy;
    --gradient-b: rgb(0, 204, 255);

    --lightbshadow: rgba(0,0,0,0.15);
    --white: #ffffff;
    --darkwhite: #cecaca;

    /*VARIABLES para la ventana flotante de detalles*/
    --win-bg: #c0c0c0;
    --win-gray: #c0c0c0;
    --win-blue: #000080;
    --win-light: #ffffff;
    --win-shadow: #808080;
    --win-dark: #808080;
    --win-darker: #000000;
    --win-border: #000000;
    --win-button: #c0c0c0;
    --win-desktop: #008080;


}




/*SCROLL BAR STYLES By Twicker*/

::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: rgb(49, 49, 49);
  }
  ::-webkit-scrollbar-thumb {
    background: rgb(179, 179, 179);
  }
  ::-webkit-scrollbar-thumb:hover {
      background: white;
  }

/*ESTILOS DE LA BARRA DE NAVEGACION*/


/*ocultar boton de menu de la version movil*/

.menubtn-for-mobile{
    display: none;
}

nav{
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /*altura de la barra de navegacion*/
    padding: var(--nav-padding);
    display: flex;
    justify-content: space-between;
    z-index: 3;
    backdrop-filter: blur(2px);
}

/*ocultar boton de menu de la version movil*/

.menubtn-for-mobile{
    display: none;
}

nav ul{
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
}

nav ul li a{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-decoration: none;
}
nav ul li a p{
    font-size: 16px;
}
nav ul li a div{
    background-color: white;
    width: 0px;
    height: 2px;
    transition: .2s;
}
nav ul li a:hover div{
    width: 100%;
    transition: .2s;
}


/*---SECCION REPRODUCTOR MUSICA---*/

.sec-musicplayer{
    display: flex;
    gap: 100px; /*Espacio entre el reproductor de musica y la ventana de Detalles*/
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #111111;
    /*background: var(--sectionbgcolor);*/
}

.wrapper{
    width: 380px;
    overflow: hidden;
    position: relative;
    border-radius: 15px;
    padding: 25px 30px;
    background: var(--playercolor);
    border: 1px solid #cececea8;

    transition: all 0.3s;
}

.wrapper:hover{
    box-shadow: 0px 6px 24px rgba(167, 167, 167, 0.5);
}

.wrapper i{
    cursor: pointer;
}

.top-bar, .progress-area .timer, 
.controls, .music-list .header, .music-list li{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar i{
    font-size: 30px;
    color: var(--uitext-color);
}

.top-bar span{
    font-size: 18px;
    color: var(--uitext-color);
}

.img-area{
    height: 256px;
    width: 100%;
    margin-top: 25px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0px 6px 12px var(--lightbshadow);
}

.img-area img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.song-details{
    text-align: center;
    margin: 30px 0;
    color: var(--uitext-color);
}

.song-details .name{
    font-size: 21px;
}

.song-details .artist{
    opacity: 0.9;
    font-size: 18px;
}

.progress-area{
    height: 6px;
    width: 100%;
    background: #f0f0f0;
    border-radius: 50px;
    cursor: pointer;
}

.progress-area .progress-bar{
    height: inherit;
    width: 0%; /*Ancho inicial de la barra de progreso de la cancion*/
    position: relative;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
}

.progress-bar::before{
    content: "";
    position: absolute;
    height: 12px;
    width: 12px;
    background: #000;
    border-radius: inherit;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    background: inherit;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.progress-area:hover .progress-bar::before{
    opacity: 1;

}

.progress-area .timer{
    margin-top: 2px;
}

.timer span{
    font-size: 13px;
    color: var(--uitext-color);
}

.controls{
    margin: 40px 0 5px 0;

}

.controls i{
    font-size: 28px;
    user-select: none;
    background: linear-gradient(90deg, var(--gradient-a) 0%, var(--gradient-b) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.controls i:nth-child(2),
.controls i:nth-child(4){
    font-size: 43px;
}

.controls #prev{
    margin-right: -13px;
}

.controls #next{
    margin-left: -13px;
}

.controls .play-pause{
    height: 54px;
    width: 54px;
    background: linear-gradient(90deg, var(--white) 0%, var(--darkwhite) 100%);
    box-shadow: 0px 0px 5px var(--gradient-a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause::before{
    content: "";
    position: absolute;
    height: 43px;
    width: 43px;
    border-radius: inherit;
    background: linear-gradient(var(--gradient-a) 0%, var(--gradient-b) 100%);
}

.play-pause i{
    height: 43px;
    width: 43px;
    line-height: 43px;
    text-align: center;
    border-radius: inherit;
    background-clip: text;
    background: inherit;
    position: relative;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.music-list{
    position: absolute;
    left: 0;
    bottom: -55%;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    padding: 15px 30px;
    border-radius: 15px;
    background: var(--list-color);
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.14s ease-out;
}

/*Esta clase .show la usaremos en el javascript*/
.music-list.show{
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.music-list .header .row{
    display: flex;
    align-items: center;
    font-size: 19px ;
    color: var(--uitext-color);
}

.header .row i{
    cursor: default;
}

.header .row span{
    margin-left: 5px;
}

.header #close{
    font-size: 22px;
    color: var(--uitext-color);
}

.music-list ul{
    margin: 10px 0;
    max-height: 260px; /*Altura maxima de la playlist desplegable*/
    overflow-y: auto; /*Hace que la playlist tenga un scroll cuando son muchas canciones*/
}

.music-list ul::-webkit-scrollbar{
    width: 0px;
}

.music-list ul li{
    cursor: pointer;
    list-style: none;
    padding-bottom: 10px;
    margin-bottom: 5px;
    color: var(--uitext-color);
    border-bottom: 1px solid #e5e5e5;
}

.music-list ul li:last-child{
    border-bottom: 0px;
}

.music-list ul li .row span{
    font-size: 17px;
}

ul li .row p{
    opacity: 0.5;
}

ul li .audio-duration{
    font-size: 16px;
}

ul li.playing{
    color: var(--highlightelement);
    pointer-events: none;
}

/*-----------ESTILOS de la ventana de DETALLES----------------*/

.window{
    width: 400px;
    /*background: var(--win-bg);*/
    border: 1px solid #ffffff;
    box-shadow: 4px 4px 24px rgba(167, 167, 167, 0.5);
}

.window-title-bar {
    height: 24px;
    background: #000;
    /*background: linear-gradient(90deg, navy, #1084d0);*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    padding: 0px 5px;
}

.window-title{
    font-weight: 700;
    font-size: 12px;
    color: #ffffff;
}

.window-controls {
    display: flex;
    gap: 2px;
}


.window-ctrl {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    box-shadow: inset 1px 1px 0 #ffffff, inset -1px -1px 0 #808080;
    color: var(--win-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    cursor: pointer;
    line-height: 1;
    border: 1px solid var(--win-border);
}


.window-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    overflow: hidden;
    border-top: 1px solid var(--win-light);
    border-bottom: 1px solid var(--win-border);
}

.details{
    background: #000;
    /*background-color: var(--win-bg);*/
    padding: 20px;
}

.details p{
    font-size: 12px;
    color: #fff;
    /*color: var(--win-darker);*/
}


.window-status-bar {
    height: 20px;
    background-color: var(--win-bg);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--win-light);
    padding: 0px 5px;
}


.status-item {
    display: flex;
    align-items: center;
    font-size: 12px;
    padding: 0px 10px;
    border-right: 1px solid var(--win-shadow);
    color: rgb(0, 0, 0);
}


.taskbar{
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) opacity(1);
    background: rgb(0, 0, 0);
    height: 50px;
    width: 20%;
    position: absolute;
    bottom: 4em;
    cursor: pointer;
    
    transition: all 0.3s;
}

.taskbar:hover {
    background: linear-gradient(90deg, navy, #1084d0);
    border: 1px solid #ffffff;
    backdrop-filter: invert(100%);
}

.taskbar i{
    color: #fff;
    font-size: 24px;
    position: absolute;
    left: 1em;
    user-select: none;
}

.details-button{
    position: relative;
    height: 40px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    border: none;
    background: transparent;
    cursor: pointer;
}


/*-----------ESTILOS PARA MOVIL----------------*/

@media (max-width: 900px){

    .black{
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(20px);
        height: 100vh;
    }

    .nav_Bar {
        width: 100%;
    }

    .nav_Bar .ul-1{
        position: absolute;
        gap: 20px;
    }

    .ul-1{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        padding: 20px;
        height: calc(100vh - 100px);
    }

    .ul-1.active{
        display: flex;
    }

    .ul-1 li a p{
        font-size: 40px;
        font-weight: 200;
    }

    .ul-1 li a div{
        display: none;
    }

    .menubtn-for-mobile{
        display: flex;
        background: transparent;
        border: none;
        height: 30px;
    }

    .menubtn-for-mobile img{
        filter: invert();
        width: 30px;
        
    }



    /*----------Estilos para movil de la seccion del reproductor de musica------------*/

    .sec-musicplayer{
        flex-direction: column;
        gap: 40px; /*Espacio entre el reproductor de musica y la ventana de Detalles*/
    }

    .wrapper{
    width: 340px;
    }


    .window{
    width: 340px;
    }

    .taskbar{
        width: 35%;
    }

    .details-button{
        padding: 0 0px;
    }

    .taskbar i{
        display: none;
        font-size: 20px;
        left: 0.5em;
    }





}