@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito", serif;
}
html{
    scroll-behavior: smooth;
}
body{
    height: 100vh;
    width: 100%;
    background-color: rgb(240, 240, 240);
    background-image: url(selectsec1.png);
    background-size: cover;
}
/*header*/
header {
    display: flex;
    justify-content: space-between;
    padding: 15px 80px;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgb(216, 216, 216);
}

header #logo {
    height: 60px;
}

header nav a {
    margin: 0 15px;
    font-size: 14px;
    color: black;
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

header nav a::before {
    height: 15%;
    width: 0%;
    background-color: black;
    content: "";
    position: absolute;
    left: 50%;
    top: 95%;
    translate: -50% -50%;
    transition: all 0.25s;
}

header nav a:hover::before {
    width: 100%;
}

header .btn a {
    margin-left: 10px;
    font-size: 15px;
    color: black;
    font-weight: bolder;
    border-left: 2px solid black;
    text-decoration: none;
    padding-left: 10px;

}

header .btn label {
    margin-right: 15px;
    background-color: rgb(255, 255, 255);
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.486);
}

header .btn label input {
    background: transparent;
    border: none;
    outline: none;
    width: 0;
    transition: all 0.35s;
}

header .btn label:focus-within input {
    padding-left: 5px;
    width: 150px;

}

header .btn label:hover input {
    padding-left: 5px;
    width: 150px;

}

header .btn button {
    background-color: black;
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    font-weight: bolder;

}

header nav {
    position: absolute;
    left: 50%;
    top: 10px;
    translate: -50% 100%;

}
header .playlist{
    color: rgb(82, 82, 82);
    position: absolute;
    bottom: -30px;
    right: 10%;
    cursor: pointer;
}

/*hero section*/
.heading{
    place-items: center;
    margin-top: 30px;
}

#hero{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
#hero .main{
    height: 550px;
    width: 400px;
    position: relative;
    margin: 50px 0px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgb(228, 228, 228);
    box-shadow: 0px 0px 10px rgb(209, 209, 209);
}
#hero .main .back{
    position: absolute;
    height: 60%;
    width: 90%;
    background-size: cover;
    border-radius: 12px;
    overflow: hidden;
}
#hero .main .back::before{
    position: absolute;
    content:"";
    height: 100%;
    width: 100%;
    z-index: +2;
    background-color: rgba(0, 0, 0, 0.466);
    transition: all 0.25s;
}
#hero .main .back:hover::before{
    backdrop-filter: blur(5px);
}

#hero .main .back img{
    height: 45%;
    width: 35%;
    border-radius: 12px;
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: +3;
    box-shadow: 0px 0px 50px 5px rgb(240, 240, 240),
    0px 0px 30px white;
    border: none;
    transition: all 0.25s;
    animation: img 2s linear infinite alternate;
}
#hero .main .back img:hover{
    height: 100%;
    width: 100%;
    animation: none;
    right: 0;
    bottom: 0;
}

@keyframes img{
    from{
        bottom: 10px;
    }
    to{
        bottom: 30px;
    }
}

#hero .main .content{
    height: 40%;
    width: 90%;
    overflow: hidden;
    position: absolute;
    top: 65%;
    z-index: 5;
}
#hero .main .content .dis{
    height: 25px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
}
#hero .main .content .release{
    position: absolute;
    bottom: 20%;
    font-size: 12px;
    color: rgb(109, 109, 109);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 100%;
    padding-right: 40px;
}
#hero .main .content .name{
    width: 100%;
    height: 38px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
#hero .main .content .lan{
    font-size: 12px;
    color: rgb(109, 109, 109);
    padding: 5px 0px;
}
#hero .main .content .btn .save{
    cursor: pointer;
    padding: 8px 20px;
    border: none;
    background-color: black;
    color: white;
    font-weight: bolder;
    border-radius: 8px;
    font-size: 14px;
}
#hero .main .content .btn .wish{
    border: none;
    cursor: pointer;
    background: transparent;
    padding: 0;
    border-bottom: 2px solid black;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
    font-size: 12px;
}
#hero .main .content .btn{
    padding-top: 20px;
}

#hero .main .downbtn{
    background: transparent;
    border: none;
    position: absolute;
    right: 10px;
    top: 70%;
    color: grey;
    z-index: 15;
    cursor: pointer;
}

.popup{
    background-color: white;
    position: fixed;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    padding: 20px 80px 20px 25px;
    border: 1px solid rgb(211, 211, 211);
    box-shadow: 0px 0px 5px rgb(122, 122, 122);
    border-radius: 20px;
    scale: 0;
    transition: all 0.35s;
}
.popup p{
    color: rgb(90, 90, 90);
    font-size: 12px;
}
.popup .btn{
    margin-top: 12%;
}
.popup .btn a{
    text-decoration: none;
    color: white;
    background-color: black;
    padding: 8px 20px;
    border-radius: 10px;
    font-weight: 800;
}
.popup .btn button{
    background: transparent;
    border: none;
    color: grey;
    font-weight: 700;
    position: absolute;
    right: 10%;
}
#popupbg{
    z-index: +17;
    position: fixed;
    height: 100%;
    width: 100%;
    background-color: rgba(230, 230, 230, 0.39);
    top: 0;
    display: none;
}

/*footer*/
footer{
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    border-top: 1px solid rgb(124, 124, 124);
}
footer div img{
    height: 100px;
    width: 100px;
    border-radius: 50%;
}
footer div h6 span{
    display: block;
}
footer .designer{
    text-align: center;
    border-right: 1px solid black;
    padding-right: 60px;
}
footer .service_list{
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 20px 60px;
}
footer .service_list ul li{
    list-style-type: none;
    padding: 4px;
    font-size: 13px;
}
footer .service_list ul .service{
    font-weight: bolder;
    text-decoration: underline;
}

footer .copyright{
    display: flex;
    justify-content: space-between;
    padding: 5px 20px;
    background-color: rgb(0, 0, 0);
    width: 100%;
    color: white;
    font-size: 10px;
}
/*add section*/

#count{
    background-color: black;
    width: 20px;
    height: 20px;
    text-align: center;
    place-content: center;
    font-size: 10px;
    border-radius: 50%;
    position: absolute;
    left: 20%;
    top: -10px;
    color: white;
    display: none
}
#playlist_x{
    position: absolute;
    top: 10px;
    left: 3%;
    font-size: 25px;
    color: rgb(36, 36, 36);
}

#add {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 28%;
    position: fixed;
    background-color: rgb(255, 255, 255);
    right: -100%;
    top: 0;
    z-index: +10;
    padding: 15px 20px 20px 20px;
    border: 1px solid rgb(211, 211, 211);
    transition:all 0.35s;
}
#add .subhead{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0px 20px;
    border-top: 1px solid black;
}
#add .subhead h2{
    font-size: 18px;
    border-bottom: 1px solid black;
    padding: 5px 0px;
    cursor: pointer;
}
#add div .play{
   text-align: center;
}
#add .itm{
    display: flex;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    overflow-x: hidden;
    overflow-y: scroll;
    position: relative;
}
#add .itm #svitm,
#add .itm #whitm{
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 20px 40px;
    text-align: center;
    transition: all 0.35s;
}
#add .itm #svitm div,
#add .itm #whitm div{
    margin: 20px 0px;
    background-color: white;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0px 0px 5px grey;
    border: 1px solid rgb(219, 219, 219);
}
#add .itm #svitm div img,
#add .itm #whitm div img{
    height: 220px ;
    width: 100%;
}
#add .itm #svitm div h2,
#add .itm #whitm div h2{
    width: 100%;
    box-shadow: 0px -30px 40px 40px rgb(255, 255, 255);
    position: relative;
    height: 38px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 10px;
    padding: 0px 25px;
}
#add .itm #whitm{
    right: -100%;
}


/*responsive*/
@media screen and (min-width:300px) and (max-width: 450px) {
    header{
        padding: 15px;
    }
    header #logo{
        height: 45px;
        width: 150px;
    }

    header nav{
        display: none;
    }
    header .btn a{
        display: none;
    }
    header .btn button{
       font-size: 12px;
       padding: 7px 15px;
    }
    header .btn label{
       display: none; 
    }
    #hero{
        padding: 0px 20px;
    }
    
    footer .service_list{
        padding: 20px 10px;
        align-items: flex-start;
        gap: 10px;
    }
    footer .service_list ul li{
        font-size: 9px;
        padding: 0;
    }
    footer .designer{
        padding-right:10px ;
    }
    footer .designer img{
        height: 50px;
        width: 50px;
    }
    footer .designer h6{
        font-size: 8px;
    }
    .copyright p{
        font-size: 7px;
    }
    footer .copyright{
        padding: 5px 10px;
    }
    #add{
        width: 100%;
    }
    #add .subhead h2{
        font-size: 14px;
        border-bottom: 1px solid black;
        padding: 5px 0px;
        cursor: pointer;
    }
    #add .itm #svitm,
    #add .itm #whitm{
        padding: 20px;
    }

    #popupbg .popup{
        width: 80%;
        padding: 20px 40px 20px 25px;
    }
}
    

@media screen and (min-width:451px) and (max-width:780px) {
    header nav{
        display: none;
    }
    header{
        padding: 15px 40px;
    }
    header .btn a{
        margin: 0;
    }
    header .btn button{
        display: none
    }

    header .btn label:hover input{
        width: 48px;
        text-align: center;
    }
    header .btn label i{
        font-size: 14px;
    }
      footer .service_list{
        padding: 20px;
        align-items: flex-start;
      }
      #add{
        width: 50%;
      }
}
@media screen  and (min-width:781px) and (max-width:1024px) {
   header{
    padding: 15px 40px;
   }
   header nav{
    translate: -42% 100%;
   }
   header .btn label{
    display: none;
   }
  footer .service_list{
    align-items: flex-start;
  }
  #add{
    width: 40%;
  }
}
