@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans&display=swap');
*{
    margin:0px;
    padding:0px;
    box-sizing: border-box;
    font-family: 'Nunito Sans', sans-serif;
}
:root{
    --red:#FF0000;
}
body::-webkit-scrollbar {
    display: none;
}

.body_container{
    width: 100vw;
    height: 100vh;
    background: url('Image.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
/* Navigation bar */

#nav{
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}
h2{
    position: relative;
    font-size: 3.5rem;
    font-weight: bolder;
    color: white;
    text-transform: uppercase;
}
h2:before{
    content:attr(data-text);
    position: absolute;
    left:0;
    left: 0;
    width: 0%;
    height: 100%;
    color: var(--red);
    border-right: 4px solid var(--red);
    overflow: hidden;
    animation: animate 3.5s linear infinite;
    white-space: nowrap;
}
@keyframes animate {
    0%,10%,100%{
        width: 0%;
    }
    70%,90%{
        width: 100%;
    }
}


/* Search Bar */

#search_container{
    width: 100%;
    margin-top: 25px;
    margin-bottom: 35px;
    height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#search{
    width: 45rem;
    height: 50px;
    margin-right: 10px;
    border-radius: 4px;
    outline: none;
    font-size: 22px;
    font-weight: 700;
    padding-left: 15px;
}

#btn{
    width: 150px;
    height: 50px;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    background-color: #f44336;
    color: white;
    cursor: pointer;
    border:none;
    outline: none;
}
#btn:hover{
    box-shadow: inset 150px 0px 0px 0px  #008CBA;
    color: black;
    transition: all 0.3s ease-out;
}

/* For displaying and giving output according to it */
#hdn{
    display: none;
}
#invalid{
    display: none;
    color: white;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
}


/* Files section */
#Details{
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

/* Video info */
#Info{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 35rem;
    border-radius: 15px;
    height: 100%;
    background-color: rgba(255,255,255,0.8);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    margin-right: 20px;
}
#thumbnail{
    width: 400px;
    height: 300px;
    margin-bottom: 18px;
    border-radius: 15px;
    opacity: 1;
}
#name{
    font-size: 25px;
    color: black;
    font-weight: 700;
    text-align: center;
    width: 450px;
}

/* Download Files */
#Files{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: center;
    width: 35rem;
    height: 100%;
    margin-left:20px;
    border-radius: 15px;
}
.download_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 44%;
    border-radius: 15px;
    padding: 1.5rem;
    background-color: rgba(255,255,255,0.8);
    margin: 10px;
}

.Title{
    color: black;
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}
#Link1{
    color: white;
}
#Link2{
    color: white;
}

@media screen and (max-width: 1000px)
{  
    body{
        background: black;
    }
    .body_container{
        width: 100vw;
        height: auto;
        background: black;
    }
    /* Navbar */
    #nav{
        height: 100px;
    }
    h2{
        font-size: 28px;
    }

    /* Search and Download button */
    #search_container{
        flex-direction: column;
        margin-top: 10px;
        margin-bottom: 10px;
        height: auto;
    }
    #search{
        width: 85%;
        height: 40px;
        margin-bottom: 15px;
        font-size: 20px;
    }
    #btn{
        width: 180px;
        height: 40px;
        font-size: 18px;
    }
    #btn:hover{
        box-shadow: inset 0px 0px 0px 0px  #008CBA;
        color: white;
    }

    /* Vedio details */
    #Details{
        height: auto;
        margin: 0;
        flex-direction: column;
        align-items: center;
        justify-content: unset;
    }

    /* Video info */
    #Info{
        width: 80%;
        height:26rem;
        margin: 2rem 0;
    }
    #thumbnail{
        width: 250px;
        height: 200px;
    }
    #name{
        width: 90%;
        font-size: 22px;
        margin-bottom: 15px;
    }


    /* Download Files */
    .download_container{
        margin:2rem auto;
        padding:1rem;
        height:19.5rem;
        margin-top: 0;
        width: 80%;
    }
    #Files{
        flex-direction: column;
        width: 100%;
        height: auto;
        margin: 0;
    }
    
    #Link1{
        height: 250px;
    }
    #Link2{
        height: 250px;
    }
    /* Invalid message */
    #invalid{
        margin-top: 20px;
        font-size: 2rem;
    }

}