*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

:root{
    --headerColor: #131621;
    --backgroundColor : #121924;
    --textColor: white;
    --secondaryTextColor : #E0E0E0;
    --hoverTextColor : #2F81EC;
    --secondaryBackground: rgba(21,31,48,0.75);
}

body{
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    min-height: 100vh;
    height: 100%;
    font-family: "Inter", "Cabin", "Lato", sans-serif;
    color: var(--textColor);
    background-color: var(--backgroundColor);
}

header{
    width: 100%;
    height: 4.5rem;
    background-color: var(--headerColor);
    padding: 1rem 2rem;
    color: var(--textColor);
}

nav{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo{
    font-size: 2rem;
    font-weight: 700;
}

.logo:hover{
    cursor: pointer;
    color: var(--hoverTextColor);
}

nav ul{
    width: 30%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}
a:hover {
    color: var(--hoverTextColor);
}

ul a{
    color: inherit;
    text-decoration: none;
}

input{
    justify-content: flex-end;
    width: 20%;
    outline: none;
    border: none ;
    padding: 0.7rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--secondaryTextColor);
    background-color: var(--secondaryBackground);
}

input::placeholder{
    color: var(--secondaryTextColor);
}

main{
    padding: 2rem 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 3rem;
}

.hero, .popular, .top-rated{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
}

h1{
    font-size: 2.5rem;
    font-weight: 400;
}

.movie-scroll{
    width: 100%;
    height: 22rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;;
    gap: 2rem;
    padding: 1rem;
    overflow-x: scroll;
}

.movie-scroll::-webkit-scrollbar, .movie-scroll-small::-webkit-scrollbar{
    /* display: none; */
    height: 0;
}

.movie-scroll-item{
    width: 25rem;
    height: 100%;
    background-image: url("");
    background-position: center;
    background-size: cover;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 1rem;
    cursor: pointer;
}
.movie-scroll-item:hover{
    background-position: top;
    background-size: 110%;
}

.movie-background{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1rem;
    width: 25rem;
    height: 100%;
    border-radius: 1rem;
    background-color: rgb(0, 0, 0, 0.3);
    padding: 1rem 2rem;
}

.icons{
    align-self: flex-end;
    justify-self: flex-start;
    width: auto;
    background-color: var(--secondaryBackground);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    opacity: 0;
}

.icons i{
    color: var(--hoverTextColor);
}

.rating{
    color: var(--textColor);
}

.movie-name{
    width: 100%;
    font-size: 1.2rem;
    font-weight: 600;
}

.movie-scroll-item:hover .movie-name,.movie-scroll-item:hover .icons{
    color: var(--hoverTextColor);
    opacity: 1;
}

.movie-scroll-item:hover .movie-background{
    background-color: rgb(0, 0, 0, 0.7);
}

.movie-details{

    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 0.9rem;
    color: var(--secondaryTextColor);
}

.movie-scroll-small{
    width: 100%;
    height: 30rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1rem;
    overflow-x: scroll;
    overflow-y: hidden;
}

.movie-container{
    width: 15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
}

.movie-scroll-item-small{
    width: 15rem;
    height: 80%;
    background-image: url("");
    background-position: center;
    background-size: cover;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 1rem;
}

.movie-background-small{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1rem;
    width: 15rem;
    height: 100%;
    border-radius: 1rem;
    background-color: rgb(0, 0, 0, 0.3);
    padding: 1rem 2rem;
}

.details{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.6rem;
}

.details .movie-details{
    width: 100%;
    gap: 0.7rem;
    justify-content: flex-start;
    font-size: 0.8rem;
}

.movie-name-small{
    font-size: 1.1rem;
    font-weight: 700;
}

.movie-container:hover .movie-scroll-item-small {
    background-size: 110%;
}

.movie-container:hover .movie-name-small{
    color: var(--hoverTextColor);
}

.movie-container:hover .movie-background{
    backdrop-filter: blur(0.2rem);
}

.icons-small{
    opacity: 0;
    color: var(--hoverTextColor);
    background-color: var(--secondaryBackground);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.movie-container:hover .icons-small{
    opacity: 1;
    color: var(--hoverTextColor);
}

.search{
    flex-wrap: wrap;
    overflow-y: scroll;
}

#page{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

button{
    padding: 0.8rem 1rem;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

footer{
    width: 100%;
    height: 15rem;
    background-color: var(--headerColor);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


/* <------------- Scrollbar Styling ----------> */

/* width */
::-webkit-scrollbar {
    width: 8px;
    height: 0px;
    border: none;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    border-radius: 10px;
  }
  
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: var(--hoverTextColor);
    border-radius: 10px;
  }
