html, body{
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    font-family: Arial, Helvetica, sans-serif;
}
.main{
    position: relative;
    display: flex;
    flex-direction: column;
    /* height: 100vh; */
}
nav{
    position: fixed;
    width: 100%;
    padding: 1em 0;
    background-color: #283593;
}
.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar div{
    display: flex;
    align-items: center;
}
.navbar a{
    margin: 0 1em;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}
.navbar a:hover{
    text-decoration: underline;
}
#NAVsearch{
    display: flex;
    flex-grow: 1;
    justify-content: center;
    margin-right: 0.2em;
}
.navbar i{
    padding: 0.4em;
    background-color: #1a237e;
    border-radius: 10px 0 0 10px;
    color: #fff;
}
#searchbar{
    width: 100%;
    max-width: 300px;
    padding: 0.5em;
    background-color: #3949ab;
    border: none;
    border-radius: 0 10px 10px 0;
    color: #fff;
}
.searchresults{
    position: absolute;
    top: 3.4em;
    left: 50%;
    transform: translate(-20%);
    max-width: 300px;
    margin: 0.5em auto;
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #fff;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    z-index: 100;
    background-color: rgba(57, 73, 171, 0.7);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.searchItemClass{
    padding: 0.3em 0;
    border-bottom: 1px solid #4f4f4f;
}
.searchItemClass:hover{
    cursor: pointer;
}
.player, .favplayer{
    width: 500px;
    margin: auto;
    margin-top: 6em;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.player h1, .favplayer h1{
    margin: 0.2em;
    margin-bottom: 15px;
    color: #283593;
}
.playlist, .favplaylist{
    margin: auto;
    margin-bottom: 150px;
    overflow-y: auto;
}
.playlist ul, .favplaylist ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.playlist li, .favplaylist li, .listitems{
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: background-color 0.3s;
}
.playlist li:hover, .favplaylist li:hover, .listitems:hover{
    background-color: #e3f2fd;
}
.playlist li.active, .favplaylist li.active, .listitems.active{
    background-color: #283593;
    color: #fff;
}
.playlist i:hover, .favplaylist i:hover{
    font-size: large;
}
.listitems{
    display: flex;
    align-items: center;
}
.listcoverimg{
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 10px;
}
.listtitle{
    flex-grow: 1;
}
.listfavicon{
    margin-right: 10px;
}
.playpauseicon{
    margin: 1em auto;
    background-color: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    outline: none;
}
.footer{
    position: fixed;
    bottom: 0;
    height: 130px;
    width: 100%;
    padding: 0.5em 0;
    display: flex;
    flex-direction: column;
    background-color: #1a237e;
    align-items: center;
    z-index: 2;
}
.nowplaying{
    margin-bottom: 3px;
    color: #fff;
    text-align: center;
    font-weight: bold;
}
.timeTrack{
    margin: 0 10px 10px 10px;
    display: flex;
    color: #fff;
    align-items: center;
    justify-content: space-between;
}
#progressbar{
    width: 80vw;
    flex-grow: 1;
}
.controls{
    margin-bottom: 10px;
    display: flex;
    justify-content: space-around;
}
.controls button{
    margin-right: 1vw;
    padding: 5px;
    background-color: #3949ab;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}
.controls button:hover, .controls input:hover{
    background-color: #283593;
}
#skip{
    border-radius: 0 10px 10px 0;
}
.controls input{
    width: 4em;
    padding: 5px;
    background-color: #3949ab;
    border: none;
    border-radius: 10px 0 0 10px;
    color: #fff;
    cursor: pointer;
}
.controls span{
    font-size: 10px;
}
.volumeControls{
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#volumebar{
    margin: 0 5px;
}
.volumeControls button{
    padding: 5px 10px;
    background-color: #3949ab;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}
.volumeControls button:hover{
    background-color: #283593;
}
.pic img{
    position: absolute;
    left: 2.5vh;
    margin-top: -5px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}
.Gif{
    position: absolute;
    right: 2.5vh;
    margin-top: 100px;
}

/* Media Query */
@media (max-width: 768px){
    .player, .favplayer{
        width: 90%;
    }
    .nowplaying{
        font-size: 0.9em;
    }
    .timeTrack span{
        font-size: 0.9em;
    }
}
@media (max-width: 480px){
    .player, .favplayer{
        width: 90%;
    }
    .nowplaying{
        font-size: 0.8em;
    }
    .timeTrack span{
        font-size: 0.8em;
    }
    .controls, .volumeControls{
        position: relative;
        left: 50px;
    }
    .Gif{
        visibility: hidden;
    }
}
