*{
    margin: 0;
    padding: 0;
}

html{
    overflow-x: hidden;
}

body{
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    background-image: url(./Images/5a2311bc2642e7.3807955015122477401567.png), url(./Images/Galaxy-Download-PNG-Image.png);
    background-position: 0 3%, 130%;
    background-repeat: no-repeat;
    background-size: 200px, 500px;
    animation: spaceAnim 10s linear infinite;
    transition: 1s;
}

@keyframes spaceAnim {
    0%{
        background-position: 0 3%, 130%;
    }
    50%{
        background-position: 8% 0%, 132%;
    }
    100%{
        background-position: 0 3%, 130%;
    }
}

header{
    width: 100%;
    display: flex;
    padding: 2%;
    justify-content: space-around;
    align-items: center;
}
header h1{
    background: -webkit-linear-gradient(45deg, #fa7e1e, #f00, purple, #4f5bd5, royalblue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
header .form-container{
    width: 50%;
}
header form{
    position: relative;
    display: flex;
    width: 100%;
    justify-content: flex-end;
}
header form #search{
    padding: 2%;
    background: url(./Images/585e4ae1cb11b227491c3393.png);
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: 90%;
    outline: none;
    border: 1px solid #fff;
    color: #fff;
    width: 50%;
}

header #search-output-container{
    display: none;
    position: absolute;
    width: 50%;
    z-index: 5;
    top: 120%;
    height: 400px;
    overflow-y: auto;
    border: 1px solid #fff;
    background: url(./Images/Rolling-1s-200px.gif);
    background-color: #333;
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

header .output{
    display: flex;
    align-items: center;
    border: 1px solid #000;
    padding: 1%;
    cursor: pointer;
    transition: 0.3s;
}

header .output:hover{
    background-color: #222;
}

header .output p{
    margin-left: 5%;
}

header .output #output-img{
   margin-left: 10%;
}

header .output img{
    height: 70px;
}

.container{
    border-top-left-radius: 30px;
    width: 90%;
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    padding: 3%;
    background-color: #333;
}
#video-container{
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: center;
    align-items: center;
}
#video-container.hide{
    display: none;
}

#video-container video{
    border-top-left-radius: 30px;
}

#video-container .video-js{
    height: 500px;
    width: 100%;
    border-radius: 30px;
    border: none;
    outline: none;
}

#info-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1%; 
    background: url(./Images/—Pngtree—shiny\ starry\ sky\ universe\ galaxy_5428627.png);
    background-position: 0 80%;
    background-repeat: no-repeat;
    padding: 2%;
    border-radius: 15px;

}
#info-container.hide{
    display: none;
}

.container #info-container img{
    height: 50px;
    border-radius: 20px;
    transition: 0.5s;
}
.container #info-container img:hover{
    transform: rotate(10deg);
}

#info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin-top: 2%;
}

#info h1{
    font-family: 'Roboto';
    font-size: 42px;
}

#info p{
    font-size: 18px;
}

#info em{
    color: skyblue;
    font-weight: 900;
    font-size: 20px;
}

#info-container img{
    height: 100px;
}

#info #watch-btn{
    width: 40%;
    padding: 1%;
    background-color: #A020F0;
    font-family: 'open sans';
    font-weight: 900;
    font-size: 22px;
    border: 1px solid #000;
    border-radius: 30px;
    cursor: pointer;
    margin: 2% 0;
    transition: 0.5s;
}

#info #watch-btn a{
    text-decoration: none;
    color: #000;
}

#info #watch-btn:hover{
    background-color: #69179c;        
}

#episode-list{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    word-wrap: break-word;
    margin-top: 2%;
}
#episode-list.hide{
    display: none;
}

#episode-list .episode{
    padding: 1%;
    width: 50px;
    background-color: #222;
    font-size: 22px;
    cursor: pointer;
    margin: 3px;
    transition: 0.3s;
}

#episode-list .episode.clicked{
    background: #fff;
    color: #000;
} 

#episode-list .episode:active{
    background-color: #fff !important;
    color: #000;
}

#episode-list .episode:hover{
    background-color: #fff;
    color: #000;
}

#addtowatchlist{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 3%;
}

#addtowatchlist.hide{
    display: none;
}

#addtowatchlist i{
    font-size: 42px;
    margin: 1%;
    cursor: pointer;
    transition: 0.2s;
}

/* #addtowatchlist i:hover{
    color: #ffff00;
} */

#add-to-list.selected{
    color: #ffff00;
}

.other-sections{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.other-sections h1{
    margin-top: 3%;
}

.other-sections h1::after{
    content: '';
    background-color: rgb(255, 0, 55);
    display: flex;
    height: 3px;
    width: 60%;
}

#watch-list-container{
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
    text-align: center;
}

#watch-list-container::-webkit-scrollbar{
    height: 10px;
    border-radius: 20px;
    background-color: #ffffffd3;
}

#watch-list-container::-webkit-scrollbar-thumb{
    /* background-color: #f1204dda; */
    border-radius: 20px;
    background-color: rgb(255, 0, 55);
}
#watch-list-container::-webkit-scrollbar-thumb:hover{
    /* background-color: #f1204dda; */
    background-color: rgb(221, 0, 48);
}

/* #watch-list-container p{
    width: 200px;
} */

.watch-list{
    margin: 1%;
    cursor: pointer;
}

.watch-list button{
    padding: 2%;
    background-color: #f00;
    color: #fff;
    font-family: 'Roboto';
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.watch-list button:hover{
    background-color: rgb(177, 0, 0);
}

#watch-list-container img{
    height: 200px;
    border-radius: 7px;
    transition: 0.5s;
    filter: brightness(80%);
}
#watch-list-container img:hover{
    height: 230px;
    filter: brightness(100%);
}

#recent-episode-container{
    width: 90%;
    margin: auto;
    /* border: 2px solid #000; */
    display: flex;
    align-items: center;
    /* flex-wrap: wrap; */
    overflow-x: auto;
}

#recent-episode-container::-webkit-scrollbar{
    height: 10px;
    border-radius: 20px;
    background-color: #ffffffd3;
}

#recent-episode-container::-webkit-scrollbar-thumb{
    /* background-color: #f1204dda; */
    border-radius: 20px;
    background-color: rgb(255, 0, 55);
}
#recent-episode-container::-webkit-scrollbar-thumb:hover{
    /* background-color: #f1204dda; */
    background-color: rgb(221, 0, 48);

}

.recent-episode{
    margin: 1%;
    cursor: pointer;
}

#recent-episode-container img{
    height: 200px;
    border-radius: 7px;
    transition: 0.5s;
    filter: brightness(80%);
}


#recent-episode-container img:hover{
    height: 230px;
    filter: brightness(100%);
}
#top-airing-container{
    display: flex;
    align-items: center;
    width: 90%;
    margin: auto;
    /* border: 2px solid #000; */
    display: flex;
    overflow-x: auto;
}

#top-airing-container::-webkit-scrollbar{
    height: 10px;
    border-radius: 20px;
    background-color: #ffffffd3;
}

#top-airing-container::-webkit-scrollbar-thumb{
    /* background-color: #f1204dda; */
    border-radius: 20px;
    background-color: rgb(255, 0, 55);
}
#top-airing-container::-webkit-scrollbar-thumb:hover{
    /* background-color: #f1204dda; */
    background-color: rgb(221, 0, 48);

}

#top-airing-container .top-airing-episode{
    margin: 1%;
    cursor: pointer;
}

#top-airing-container img{
    height: 200px;
    border-radius: 7px;
    filter: brightness(80%);    
    transition: 0.5s;
}
#top-airing-container img:hover{
    height: 230px;
    filter: brightness(100%);    
}

.character-img img:first-child{
    position: fixed;
    right: 0;
    bottom: 0;
    height: 250px;
    /* z-index: -1; */
}

footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1%;
    width: 94%;
    background-color: #333;
}

footer ul li{
    list-style-type: none;
    font-size: 28px;
}

footer ul li::after{
    content: '';
    height: 2px;
    width: 100%;
    background-color: #f00;
}

footer ul li a{
    text-decoration: none;
    color: #fff;
}

footer ul li a i:hover{
    color: #00acee;
}


@media screen and (max-width: 500px) {
    header{
        flex-direction: column;
        align-items: center;
    }
    header #search-output-container{
        width: 100%;
    }
    header .form-container{
        width: 60%;
    }
    header form #search{
        width: 100%;
        padding: 4%;
        background-color: #fff;
        border-radius: 20px;
    }
    #info-container{
        margin-top: 1%; 
        background: url(./Images/—Pngtree—shiny\ starry\ sky\ universe\ galaxy_5428627.png);
        background-position: 0 0;
        background-repeat: no-repeat;    
    }
    #info #watch-btn{
        width: 90%;
    }
    #info h1{
        width: 300px;
    }
    #info p{
        font-size: 22px;
        width: 250px;
    }
    .character-img img:first-child{
        height: 200px;
    }
}