.theme-light {
    --color-primary: #ededed;
    --color-secondary: #fbfbfe;
    --color-accent: #fd6f53;
    --text-primary:black;
    --text-secondary:#80868B;
    --shadow:rgb(202, 202, 202);
    --border:#DFE1E5;
    --hover-color:#fff;
    --result-hover:#eee;
    --font-color: #000000;
}
.theme-dark {
    --color-primary: #202124;
    --color-secondary: #303134;
    --text-primary:#E8EAED;
    --text-secondary:#969BA1;
    --color-accent: #fd6f53;
    --shadow:#1E1E21;
    --border:#5D6065;
    --hover-color:#303134;
    --result-hover:#3C4043;
    --font-color: #ffffff;
}

body{
    color-scheme: light;
    background-color: var(--color-primary);
    color: var(--font-color);
}


.search-wrap{
    position: absolute;
    top: 110px;
    height: 45px;
    width: 50%;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 30px;
    background-color: var(--color-primary);
    left: 25%;
    font-size: 1.2rem;
    font-family:Work sans;
    font-weight: 600;
    border: solid 1.5px var(--border);
    outline: 0;
    z-index: 500;
}

.search-box{
    background-color: transparent;
    color: var(--text-primary);
    height: 44px;
    font-size: 1.2rem;
    font-family:Work sans;
    font-weight: 600;
    border: 0;
    /* border-bottom: solid 1.5px var(--border); */
    outline: 0;
    transition: 0.5s ease;
    width: calc(100% - 67.4px);
}

.search_result:hover{
    background-color: var(--result-hover);
    cursor: pointer;
}
.search_result_btn{
    background-color: var(--color-secondary);
    border: 1px solid var(--border);
}
.search_result_btn:hover{
    border: 1px solid var(--border);
}

.result-img img{
    height: 60px;
    width: 60px;
}
.search-wrap:focus-within{
    background-color: var(--hover-color);
    border: solid 1.5px transparent;
    box-shadow: 2px 2px 10px var(--shadow);
}

.search-wrap:hover{
    background-color: var(--hover-color);
    border: solid 1.5px transparent;
    box-shadow: 2px 4px 10px var(--shadow);
}

.song_name{
    color: var(--text-primary);
}

.extra_details{
    color: var(--text-secondary);
}

.song_name,.extra_details{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


.controls{
    transform: translateX(-120%);
    display: none;
    align-items: center;
    box-sizing: border-box;
    position: sticky;
    position:"-webkit-sticky";
    bottom: 0;
    margin: auto;
    margin-bottom: 15px;
    margin-top: 20px;
    padding: 1rem;
    height: 8rem;
    width: 80vw;
    box-shadow: 5px -5px 20px var(--shadow);
    border-radius: 10px;
    background-color: var(--color-secondary);
    z-index: 1;
    -o-transition: 0.5s;
    -moz-transition: 0.5s;
    -webkit-transition: 0.5s;
    transition: 0.5s; 
}
/* code for progress bar */
.progress_container{
    width: 100%;
    height: auto;
}
.progress_duration{
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-family: 'Roboto';
}
.progress_bar{
    position: relative;
    width: 100%;
    height: 5px;
    background-color: #949494;
    border-radius: 30px;
    -o-transition: width 1s linear;
    -moz-transition: width 1s linear;
    -webkit-transition: width 1s linear;
    transition: width 1s linear;
    cursor: pointer;
}
.progress-indicator{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 30px;
    background-color: var(--color-accent);
    cursor: pointer; 
}
.controls #close-btn{
    position: absolute;
    right: 0.5%;
    top: 1%;
    font-family: "sans-serif";
    font-size: 1.2rem;
    color: var(--font-color);
    cursor: pointer;
}
.controls #close-btn:hover{
    transform: scale(1.1);
    color: var(--color-accent);
}
.controls #close-btn:active{
    transform: scale(0.9);
}
.controls #song-image{
    height: 6rem;
    width: 6rem;
}
.controls #song-title{
    margin-left: 2rem;
    display: flex;
    flex-direction: column;
    font-family: Roboto;
    width: 20vw;
    color: var(--text-primary);
}
#name{
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}
#artist{
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
}
.button_container{
    margin-top: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 150px;
}
.controls #buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(100px,250px,300px);
    margin-left: 15px;
    margin-right: 15px;
}
.play-btn,.pause-btn{
    color: var(--color-accent);
    -o-transition: 0.5s ease;
    -moz-transition: 0.5s ease;
    transition: 0.5s ease;
    cursor: pointer;

}
#pause-btn{
    display: none;
}
.play-btn:hover,.pause-btn:hover{
    transform: scale(1.1);
    text-shadow: 0px 2px 5px var(--shadow);
}
.play-btn:active,.pause-btn:active{
    transform: scale(0.9);
    box-shadow: 0 0;
}
.prev-btn{
    cursor: pointer;
}
.prev-btn:active{
    transform: scale(0.9);
    -o-transition: 0.1s ease;
    -moz-transition: 0.1s ease;
    transition: 0.1s ease;

}
.prev-btn:hover{
    color: grey;
}
.next-btn{
    cursor: pointer;
}
.next-btn:hover{
    color: grey;
}
.next-btn:active{
    transform: scale(0.9);
    -o-transition: 0.1s ease;
    -moz-transition: 0.1s ease;
    transition: 0.1s ease;
}
.controls #more-controls{
    margin: auto;
}

.mob-song-title{
    display: none;
}

.ads{
    display:flex;
    justify-content: center;
    align-items: center;
}

/* code for making page responsive */
@media (max-width:1050px){
    .search-wrap{
        width: 60%;
        left: 20%;
    }
}
@media (max-width:1000px){
    .search-wrap{
        width: 65%;
        left: 17.5%;
    }
}
@media (max-width:900px){
    .search-wrap{
        width: 70%;
        left: 15%;
    }
}
@media (max-width:840px){
    .search-wrap{
        top: 95px;
        height: 38px;
        width: 90%;
        left: 5%;
        font-size: 1rem;
        padding-right: 0%;
        padding-left: 10px;
    }
    .search-box{
        font-size: 1rem;
        height: 36.5px;
    }
    .result-img img{
        height: 50px;
        width: 50px;
    }
    
}

@media (max-width:730px) {
    .controls{
        height: 10rem;
        width: 90vw;
    }
    .controls #song-image{
        display: none;
    }
    .controls #song-title{
        display:none;
    }
    .controls #buttons{
        margin: auto;
    }
    .mob-song-title{
        display: inline-block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: Work sans;
        font-size: 1rem;
        font-weight: 600;
        height: 20px;
        width:240px;
        margin-bottom: 10px;
    }
}