@import url(https://fonts.googleapis.com/css2?family=Handlee&display=swap);
@import url(https://fonts.googleapis.com/css2?family=WindSong:wght@500&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Amaranth:wght@100;200;300;400;500;600;700&display=swap);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth;
}

:root {
    --sec_value: 'Genre list';
    --sec_bg: rgb(54, 54, 54);
}

body {
    background: linear-gradient(to top, #ff277a, #d01b5a, #ce1851, #a50b36, #79001a);
    background-image: linear-gradient(to bottom, #580032, #6f0c42, #871a53, #a02664, #b93376, #c83e7e, #d64985, #e5548d, #eb5f8d, #f06b8e, #f57690, #f98192);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    height: 12%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    color: white;
    border-bottom: 2px solid whitesmoke;
    
}

header .logo {
    /* flex-grow: 1; */
    display: flex;
    font-family: 'Handlee', sans-serif;
    cursor: pointer;
}

header .logo .M {
    font-size: clamp(3em, 10vw, 4em);
    font-weight: bold;
    font-family: 'WindSong', cursive;
}

header .logo div {
    margin: clamp(5px, 1vw, 10px) 0 0 clamp(5px, 1vw, 10px);
    font-weight: bold;
    font-family: 'Handlee', handwriting;
}

.logo div h2:nth-child(1) {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-left: 5px;
    letter-spacing: clamp(2px, .5vw, 5px);
}

.logo div h2:nth-child(2) {
    letter-spacing: clamp(2px, .5vw, 5px);
    font-size: clamp(1em, 5vw, 1.5em);
    margin-top: -10px;
    margin-left: 3px;
}

header .search-box {
    /* flex-grow: 1; */
    display: flex;
    justify-content: center;
}

.search {
    margin-right: 20px;
    width: clamp(100px, 20vw, 200px);
    height: 40px;
    border-radius: 5px;
    text-indent: 10px;
    background: rgba(245, 245, 245, 0.514);
    outline: none;
    transition: .3s;
    /* box-shadow: 0 0 2px whitesmoke; */
}

.search:hover {
    border: 1px solid rgba(223, 255, 253, 0.904);
}

.search::placeholder, .search {
    color: rgba(245, 233, 233, 0.866);
    letter-spacing: 1px;
    font-family: 'Amaranth', sans-serif;
    font-size: clamp(15px, 3vw, 20px);
}

.search:focus::placeholder {
    color: transparent;
    transition: .2s;
}

.search:focus {
    outline: none;
    background: blanchedalmond;
    color: black;
    /* letter-spacing: 1px; */
    transition: .3s;
}

.submit {
    visibility: hidden;
}

.section {
    width: 100vw;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 0;
}

.section .genreBox, .prev, .next {
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(50px, 10%, 120px);
    height: 40px;
    margin: 0 clamp(3px, .6vw, 10px) 10px;
    font-size: clamp(10px, 1.6vw, 16px);
    font-family: 'Amaranth', sans-serif;
    color: whitesmoke;
    word-break: break-all;
    word-wrap: break-word;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    outline: none;
    border-radius: 5px;
    background-size: 120% 120%;
    background-image: linear-gradient(to bottom, #ED4264 50%, #FFEDBC);
    box-shadow: 3px 3px 10px rgba(110, 18, 18, 0.4), -1px -1px 1px whitesmoke;
}

.genreBox:hover {
    background-position: bottom right;
}

.genreBox:active {
    top: 3px;
}

.section .active-genre {
    background: linear-gradient(to bottom, #1a2980, #26d0ce);
    background-position: 100% 100%;
}

.prevNext-btn {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
}

.next, .prev {
    overflow: hidden;
    border-radius: 10px;
    border: none;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.403), -2px -2px 3px rgba(245, 245, 245, 0.788);
    letter-spacing: 2px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.582);
}

.prev {
    background-image: linear-gradient(to right, #4ddc00, #56e452, #66eb7d, #7bf1a0, #96f6bf);
}

.next {
    background-image: linear-gradient(to left, #4ddc00, #56e452, #66eb7d, #7bf1a0, #96f6bf);
}

.prev:after, .next::after {
    position: absolute;
    transition: 0.4s;
    /* top: 30%; */
    align-self: center;
    font-size: clamp(10px, 2vw, 20px);
    text-shadow: none;
}

.next::after {
    content: "\00BB";
    right: -20px;
}

.prev::after {
    content: "\00AB";
    left: -20px;
}

.next:hover {
    padding-right: 14px;
}

.prev:hover {
    padding-left: 14px;
}

.prev:hover:after {
    left: 20%;
}

.next:hover::after {
    right: 20%;
}

.prev:active {
    left: -3px;
}

.next:active {
    right: -3px;
}

.btn-wraper {
    /* position: absolute; */
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    overflow: visible;
    z-index: 2;
}

.main {
    position: absolute;
    bottom: 0;
    height: 87%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* padding-top: 10%; */
    padding-top: 20vh;
    overflow: scroll;
    z-index: 1;
}

.main .movieBox {
    position: relative;
    width: clamp(50px, 30%, 250px);
    height: clamp(90px, 60%, 400px);
    margin: clamp(20px, 2vw, 30px);
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgb(0, 0, 0);
    cursor: pointer;
    overflow: hidden;
    transition: .15s linear;
}

.movieBox .img-div {
    position: relative;
    width: 100%;
    height: 80%;
}

.img-div img {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.movieBox .title .overview {
    width: 100%;
    text-align: center;
    font-size: clamp(10px, 1.6vw, 16px);
    border-radius: 10px 10px 0 0;
    border-top: 1px double whitesmoke;
    display: none;
}

.overview::after {
    content: '\2934';
    position: absolute;
    top: -2px;
    left: 45%;
    color: whitesmoke;
    text-shadow: 0 0 2px black;
}

.overview:hover {
    height: 80%;
    overflow: scroll;
    color: whitesmoke;
}

.overview:hover::after {
    content: "";
}

.movieBox .title {
    /* position: relative; */
    /* bottom: 0; */
    height: 20%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    font-size: clamp(10px, 2vw, 20px);
    font-family: 'Amaranth', sans-serif;
    background: linear-gradient(to bottom right, #1a2980, #26d0ce);
    color: whitesmoke;
}

.title svg {
    fill: rgba(0, 0, 0, 0.507);
}

.movieBox .vote {
    position: absolute;
    z-index: 2;
    width: 40px;
    aspect-ratio: 1;
    top: 5%;
    right: 2%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: whitesmoke;
    text-shadow: 0 0 2px black;
    font-size: clamp(10px, 1.5vw, 15px);
    backdrop-filter: blur(20px);
}

.vote-border-green {
    border: 2px solid rgb(56, 255, 56);
    box-shadow: 0 0 5px rgb(56, 255, 56), 0 0 15px rgb(56, 255, 56);
}

.vote-border-yellow {
    border: 2px solid rgb(214, 218, 0);
    box-shadow: 0 0 5px rgb(252, 255, 104), 0 0 15px rgb(252, 255, 104);
}

.vote-border-red {
    border: 2px solid rgb(255, 40, 40);
    box-shadow: 0 0 5px rgb(255, 40, 40), 0 0 15px rgb(252, 255, 104);
}

.movieBoxActive {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    padding-top: 0;
    z-index: 10;
    overflow: hidden;
    background: linear-gradient(to top, #573d6e, #8f3b76, #c7417b, #f5487f);
    
}

.movieBoxActive .movieBox {
    display: none;
}

.movieBoxActive .movieBoxExpand {
    position: absolute;
    height: 100%;
    width: 100%;
    bottom: 0;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    z-index: 10;
    border-radius: 0;
    box-shadow: none;
    pointer-events:none;
}

.movieBoxActive .movieBoxExpand .img-div {
    position: static;
    width: clamp(200px, 45%, 500px);
    height: clamp(200px, 60%, 500px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 0 10px 4px rgba(0, 0, 0, 0.279), 0 10px 15px rgba(0, 0, 0, 0.742);
}

.movieBoxActive .movieBoxExpand .title {
    flex-direction: column;
    width: 50%;
    height: clamp(200px, 60%, 500px);
    justify-content: space-evenly;
    background: none;
    color: cornsilk;
    font-size: clamp(20px, 4vw, 35px);
}

.movieBoxActive .movieBoxExpand .title .overview {
    display: block;
    width: 100%;
    width: clamp(200px, 100%, 500px);
    height: auto;
    font-size: clamp(18px, 2vw, 25px);
    color: #0d1f35;
    text-shadow: none;
    border-top: none;
    font-family: sans-serif;
    overflow: scroll;
    pointer-events: auto;
    cursor: text;
}

.movieBoxExpand .overview::after {
    content: none;
}

.movieBoxExpand span {
    position: absolute;
    bottom: 5%;
    left: 45%;
    width: 10%;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(to bottom right, #1a2980, #26d0ce);
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.742);
    pointer-events: auto;
}

.movieBoxExpand span::after {
    content: 'Download';
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    font-size: clamp(14px, 2vw, 20px);
    color: cornsilk;
}

.movieBoxExpand span svg {
    display: none;
}

.movieBoxActive .movieBoxExpand .vote {
    position: absolute;
    top: 77%;
    left: 10%;
    transform: scale(1.5);
    border-radius: 10px;
    text-shadow: none;
    font-weight: bold;
}

.movieBoxExpand .vote-border-green {
    background: rgb(56, 255, 56);
    box-shadow: 0 0 5px rgb(56, 255, 56), 0 0 25px rgb(56, 255, 56);
    color: rgb(224, 255, 247) !important;
}

.movieBoxExpand .vote-border-yellow {
    background: rgb(214, 218, 0);
    box-shadow: 0 0 5px rgb(252, 255, 104), 0 0 25px rgb(252, 255, 104);
    color: black !important;
}

.movieBoxExpand .vote-border-red {
    background: rgb(255, 40, 40);
    box-shadow: 0 0 5px rgb(255, 40, 40), 0 0 25px rgb(255, 40, 40);
    color: rgb(255, 255, 255) !important;
}

.movieBoxActive .back {
    position: absolute;
    left: 10px;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(245, 222, 179, 0.459);
    box-shadow: 2px 2px 8px #5f5e5e, -2px -2px 5px white;
    pointer-events: painted;
    cursor: pointer;
}

footer {
    position: absolute;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    bottom: 5px;
    right: 5px;
    width: 60px;
    height: 60px;
    background: linear-gradient(to bottom right, #1a2980, #26d0ce);
    /* overflow: hidden; */
    border-radius: 50%;
    cursor: pointer;
    transition: .7s;
    z-index: 2;
}

footer div {
    display: flex;
    justify-content: space-evenly;
}

footer div img {
    position: relative;
    right: 0;
    min-width: 50px;
    min-height: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

footer a {
    display: none;
}

footer a svg {
    transform: scale(.7);
}

footer a:nth-child(3) svg:hover {
    fill: skyblue;
}

footer a:nth-child(2) svg:hover {
    fill: rgb(0, 0, 0);
}

footer:hover {
    width: 80px;
    border-radius: 20px;
    background: #363636;
}

footer:hover img {
    display: none;
}

footer:hover a {
    display: block;
}

@media screen and (max-width: 700px) {
    .section {
        position: relative;
        width: 100px;
        height: 50px;
        /* left: 30%; */
        overflow: hidden;
        align-self: center;
        box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.403), 2px 3px 5px rgba(0, 0, 0, 0.503);
        border-radius: 20px;
        z-index: 5;
        transition: .3s;
    }
    .section:after {
        content: var(--sec_value);
        position: absolute;
        display: flex;
        justify-content: center;
        align-items: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--sec_bg);
        color: white;
        z-index: 6;
        cursor: pointer;
    }
    .genreListExpand {
        position: absolute;
        width: 300px;
        height: 400px;
        /* background: rgba(0, 0, 0, 0.527); */
        background: linear-gradient(to bottom right, #2643e96c, #12eeea60);
        /* border: 3px ridge wheat; */
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.803);
    }
    .genreListExpand::after {
        display: none;
    }
    .genreListExpand .genreBox {
        margin: 0 10px;
    }
    .genreListExpand span {
        position: absolute;
        top: 0;
        right: 0;
        cursor: pointer;
        transform: scale(.8);
    }
    .main .movieBox {
        width: clamp(50px, 40%, 250px);
        height: clamp(90px, 40%, 400px);
        margin: clamp(10px, 2vw, 20px);
    }
    .movieBoxActive .movieBoxExpand {
      width: 100%;
      height:100% ;
        flex-direction: column;
        justify-content: space-evenly;
    }
    .movieBoxActive .movieBoxExpand .img-div {
        width: clamp(200px, 70%, 350px);
        height: clamp(200px, 50%, 400px);
        border-radius: 10px;
    }
    .movieBoxActive .movieBoxExpand .title {
        width: 80%;
        height: 30%;
        justify-content: space-between;
    }
    .movieBoxActive .movieBoxExpand .title .overview {
        margin-top: 10px;
        text-align: left;
    }
    .movieBoxActive .movieBoxExpand .vote {
        top: 10%;
        left: clamp(50px, 18%, 200px);
        transform: scale(1);
    }
    .movieBoxExpand span {
        bottom: 3%;
    }
    .movieBoxExpand span::after {
        display: none;
    }
    .movieBoxExpand span svg {
        display: block;
    }
    .movieBoxActive .back {
        left: 5px;
        top: 5px;
        transform: scale(.6);
    }
}

::-webkit-scrollbar {
    width: 0;
    height: 0;
}

@media screen and (max-width:480px) {
    .movieBoxActive .movieBoxExpand .title .overview {
        margin-top: 10px;
    }
    .movieBoxExpand span {
        height: 40px;
        width: 40px;
        border-radius: 50%;
        bottom: 0;
    }
}

@media screen and (max-width:1370px) and (min-width:700px) {
    .main {
        padding-top: 25vh;
    }
}

@media screen and (max-width:980px) {
    footer {
        /* transform: scale(.6); */
        background: none;
        flex-direction: column;
        bottom: 5px;
        right: -7px;
        width: auto;
        height: auto;
    }
    footer:hover {
        background: none;
        width: auto;
    }
    footer div img {
        display: none;
    }
    footer a {
        display: block;
    }
    footer a:nth-child(3) svg {
        fill: rgb(0, 132, 255);
    }
    footer a:nth-child(2) svg {
        fill: #0E76A8;
    }
}