/* FONT IMPORT LINKS*/

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch&family=Lato:wght@300&family=Niconne&family=Poppins:wght@300;400;500;600&family=Satisfy&family=Share+Tech+Mono&family=Ubuntu:wght@300&family=Yanone+Kaffeesatz:wght@300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch&family=Lato:wght@300&family=Lora:wght@400;500;600&family=Niconne&family=Poppins:wght@300;400;500;600&family=Satisfy&family=Share+Tech+Mono&family=Ubuntu:wght@300&family=Yanone+Kaffeesatz:wght@300&display=swap');

/* UNIVERSAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: "poppins", sans-serif;
}

 :root {
    --header-height: 3.5rem;
    --main-color: #ff0054;
    --bg-color: #fff;
    --title-color: hsl(207, 4%, 16%);
    --text-color: #000;
    --text-color-light: hsl(207, 4%, 56%);
    --hover: hsl(260, 100%, 51%);
    --big-font: 3.2rem;
    --medium-font: 1.8rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --p-font: 0.941rem;
    --header-height: 3.5rem;
    --smaller-font-size: .75rem;
    --card-color: #eaf4f4;
    --contain-color: #e4c1f9;
    --card-color: #cdb4db;
    --hue: 207;
    --sat: 90%;
    --lig: 61%;
    --first-color: hsl(var(--hue), var(--sat), var(--lig));
    --title-font: 'Lora', serif;
    --z-tooltip: 10;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--main-color);
    color: var(--bg-color);
    transition: background .4s;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.heading {
    text-align: left;
}

.heading h2 {
    font-size: 30px;
}

.heading span {
    font-size: var(--p-font);
    color: rgb(2, 166, 70);
}

.container {
    max-width: 1200px;
    /* margin-inline: auto; */
}


/* DARK THEME/MODE */

.nav__buttons {
    display: flex;
    align-items: center;
    column-gap: 1.5rem;
}

.change-theme {
    font-size: 1.25rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color .3s;
}

body.active {
    --text-color: #fff;
    --title-color: hsl(207, 4%, 95%);
    --bg-color: hsl(207, 4%, 10%);
    --card-color: #6c757d;
    transition: background .4s;
}


/* section {
    padding: 50px 10%;
} */

*::selection {
    color: var(--text-color);
    background: var(--main-color);
}

.grid {
    display: grid;
    gap: 1.5rem;
}


/* HEADER */

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    /* border: 1px solid #033a80; */
}

.header-white {
    background-color: var(--main-color);
    /* or any color you prefer */
}

.nav {
    width: 100%;
    height: calc(var(--header-height) + .2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--main-color);
    box-shadow: 0 4px 20px hsla(207, 24%, 35%, .1);
    padding-inline: 1.5rem;
    transition: background .4s;
    /* background: transparent; */
    /* border: 1px solid #6c757d; */
}

.nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: .25rem;
    font-size: var(--smaller-font-size);
    color: var(--bg-light);
    transition: .3s;
}

.nav__link:hover {
    color: var(--title-color);
}

.nav__link i,
.dropdown-content li {
    font-size: .95rem;
}

.nav__logo {
    color: var(--bg-color);
    font-weight: var(--medium-font);
    padding-right: 2rem;
}

.nav__owner {
    display: flex;
    gap: 1rem;
}

.navbar-toggle {
    font-size: .85rem;
    font-weight: var(--medium-font);
    cursor: pointer;
}

@media (max-width: 1023px) {
    .navbar {
        display: none;
        width: 160px;
        position: fixed;
        height: 220px;
        /* left: 120px; */
        top: 60px;
        /* margin: 0 auto; */
        background-color: var(--main-color);
        box-shadow: 0 4px 20px hsla(207, 24%, 35%, .1);
        /* padding: 2rem 1.5rem 5rem; */
        transition: bottom .3s;
        border: 1px solid silver;
        justify-content: flex-start;
        align-items: center;
    }
}

.nav__menu {
    grid-template-columns: repeat(1, max-content);
    justify-content: center;
    gap: 1rem 0;
    transition: background .4s;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    /* z-index: 1; */
}

.dropdown:hover .dropdown-content {
    display: block;
    position: absolute;
    top: 40px;
    right: 0;
    width: 170px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: var(--main-color);
}

.dropdown-content a {
    padding: 9px 11px;
    text-decoration: none;
    display: block;
    font-size: var(--smaller-font-size);
    color: var(--bg-color);
}

.dropdown-content a:hover {
    background-color: var(--main-color);
}

.dropdown-content hr {
    width: 80%;
    margin: 5px auto;
    border: 0;
    border-top: 1px solid #ccc;
}

.navbar-item {
    padding: 9px 10px;
    text-decoration: none;
    display: block;
}

.show-menu {
    bottom: 2rem;
}

.active-link {
    color: var(--title-color);
}


/* MAIN */

.main {
    width: 100%;
    flex-direction: row;
    margin-top: var(--header-height);
    justify-content: center;
    align-items: center;
    /* border: 1px solid #033a80; */
    /* position: fixed; */
}

.image-container {
    width: 100%;
    height: 70%;
    overflow: hidden;
    /* border: 1px solid darkkhaki; */
    position: relative;
    display: flex;
}

.image-container img {
    width: 100%;
}

.image-container.active {
    display: block;
}

.mySlides {
    display: flex;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
}

.overlay {
    position: absolute;
    bottom: 2%;
    left: 50%;
    right: 0;
    background-color: rgba(195, 215, 255, 0.3);
    backdrop-filter: blur(10px);
    /* background-color: transparent; */
    padding: 2%;
    text-align: center;
    width: 55%;
    transform: translate(-49%, -5%);
}

.overlay h2 {
    margin: 0;
    /* font-size: var(--h2-font-size); */
    font-size: 2.9vw;
    color: var(--title-color);
}

.overlay p {
    margin: 0;
    /* font-size: var(--p-font); */
    font-size: 2.5vw;
    color: var(--title-color);
}

.details {
    display: flex;
    width: 65%;
    /* border: 1px solid #033a80; */
    padding: 0 .2rem;
    justify-content: space-around;
    align-items: center;
}

.genre,
.duration {
    display: flex;
    border: 1px solid;
    border-color: var(--text-color);
    padding: 5px;
    border-radius: 15px;
}

.genre h3,
.duration h3 {
    margin: 0;
    /* font-size: var(--p-font); */
    font-size: 2.2vw;
    color: var(--title-color);
}


/* SCROLL UP */

.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -30%;
    background-color: var(--bg-color);
    box-shadow: 0 4px 12px hsl(207, 24%, 35%, .15);
    display: inline-flex;
    padding: .35rem;
    border-radius: .25rem;
    font-size: 1.1rem;
    color: var(--title-color);
    z-index: var(--z-tooltip);
    transition: bottom .3s transform .3s;
}

.scrollup:hover {
    transform: translateY(-.25rem);
    transition: background .4s;
}


/* SHOW SCROLL UP */

.show-scroll {
    bottom: 5.5rem;
    transition: background .4s;
}


/* GENRE SECTION AND CARDS */

.series,
.movies,
.new {
    width: 90%;
    margin: 20px auto;
}

section h2 {
    font-size: var(--h2-font-size);
    color: var(--bg-color);
    margin-left: 10px;
    margin-top: 50px;
}

.swiper {
    width: 100%;
    height: auto;
    padding: 10px;
    /* border: 1px solid brown; */
}

.serieCard,
.movieCard,
.newCard {
    display: none;
    cursor: pointer;
    flex-direction: column;
    background-color: var(--card-color);
    padding: 5px;
    margin: 10px 0;
    /* width: 200px; */
    height: 400px;
    color: white;
    border-radius: 10px;
    transition: all 0.4s ease-in-out;
    box-shadow: 0px 7px 10px rgba(black, 0.9);
    /* box-shadow: 1px 1px 1px 1px whitesmoke;
    box-shadow: 0 0 8px 0 rgba(35, 35, 35, .2); */
    align-items: center;
    justify-content: center;
    position: relative;
}

.serieCard:hover,
.movieCard:hover,
.newCard:hover {
    box-shadow: 0 0 18px 0 rgba(35, 35, 35, .3);
    /* transform: translateY(-10px); */
}

.serieCard img,
.movieCard img,
.newCard img {
    width: 95%;
    margin: 5px auto;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.title {
    font-size: var(--p-font);
    color: var(--bg-color);
    text-transform: uppercase;
    font-weight: 600;
    margin: 10px 0;
    margin: .2rem auto;
}

.serieDetails,
.newDetails,
.movieDetails {
    height: 90px;
    /* overflow-y: scroll; */
    margin: 0 auto;
    transition: height 0.3s ease-in-out;
    margin-bottom: 1rem;
    display: none;
    flex-direction: column;
    flex-wrap: wrap;
    width: 80%;
    /* border: 1px solid #033a80; */
    margin-top: .2rem;
    padding: .7rem;
    /* background: transparent; */
}

.serieCard:hover .serieDetails,
.movieCard:hover .movieDetails,
.newCard:hover .newDetails {
    display: flex;
    border-radius: 5px;
}

.serieDetails p,
.newDetails p,
.movieDetails p {
    font-size: var(--p-font);
    line-height: 1.6;
    opacity: .9;
    margin: .4rem;
}

.buttons {
    width: 80%;
    height: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    /* border: 1px solid red; */
    margin: .2rem auto;
}

.buttons button {
    display: flex;
    width: 25px;
    height: 25px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid gray;
    outline: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.buttons button:hover {
    transform: translateY(-3px);
}

.buttons button i {
    position: relative;
    font-size: var(--p-font);
    background: transparent;
    color: var(--bg-color);
}

.age_Seasons,
.age_Duration {
    width: 90%;
    height: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    /* border: 1px solid saddlebrown; */
    margin: 0 auto;
    color: var(--bg-color);
}

.the_genre {
    width: 90%;
    height: 30px;
    display: flex;
    /* flex-wrap: wrap; */
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    /* border: 1px solid saddlebrown; */
    text-align: center;
    margin: auto;
}

.the_genre p {
    font-size: var(--smaller-font-size);
    margin: 2px;
    color: var(--bg-color);
}

.type {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--bg-color);
}

.show-Details {
    height: 270px;
}


/* FOOTER */

.footer__container {
    padding: 1.5rem 0 7rem;
    text-align: center;
    transition: background .4s;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.footer__title {
    font-size: var(--h1-font-size);
    font-weight: 600;
    margin-bottom: 1rem;
    transition: background .4s;
}

.footer__list {
    display: flex;
    justify-content: center;
    transition: background .4s;
}

.footer__list {
    margin: 2rem 0;
    column-gap: 1.3rem;
}

.footer__link {
    color: var(--bg-color);
    transition: background .4s;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__copy {
    display: block;
    margin-top: 3.5rem;
    font-size: var(--smaller-font-size);
    color: var(--bg-light);
    transition: background .4s;
}


/* .footer__list,
.footer__social {
    display: flex;
    justify-content: center;
    transition: background .4s;
}

.footer__list {
    margin: 2.5rem 0;
    column-gap: 2.5rem;
}

.footer__link {
    color: var(--title-color);
    transition: background .4s;
}

.footer__link:hover {
    text-decoration: underline;
}

.footer__social {
    column-gap: 1.25rem;
}

.footer__social-link {
    font-size: 1.25rem;
    color: var(--title-color);
    transition: transform .3s;
}

.footer__social-link:hover {
    transform: translateY(-.15rem);
} */


/* SCROLLBAR */

 ::-webkit-scrollbar {
    width: .4rem;
    border-radius: .5rem;
    background-color: #fff;
}

 ::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: var(--text-color-light);
}

 ::-webkit-scrollbar-thumb:hover {
    background-color: var(--title-color);
}

hr {
    width: 90%;
    margin: auto;
    margin-top: 40px;
}


/* MEDIA QUERIES */

@media (max-width: 340px) {
    .navbar {
        padding-bottom: 4rem;
    }
    .serieDetails,
    .newDetails,
    .movieDetails {
        width: 100%;
    }
    .age_Seasons,
    .age_Duration {
        width: 100%;
        margin: 0;
    }
}

@media (min-width:576px) {
    .nav,
    .navbar {
        width: 100%;
    }
    .nav {
        margin: 0 auto;
    }
    .overlay h2 {
        font-size: 2vw;
    }
    .overlay p {
        font-size: 1.8vw;
    }
    .serieDetails,
    .newDetails,
    .movieDetails {
        width: 100%;
        margin: 0;
    }
    .age_Seasons,
    .age_Duration {
        width: 100%;
        margin: 0;
    }
    @media (min-width: 768px) {
        .swiper-container {
            overflow-x: hidden;
        }
        .overlay h2 {
            font-size: 2.2vw;
        }
        .overlay p {
            font-size: 2vw;
        }
        .serieDetails,
        .newDetails,
        .movieDetails {
            width: 100%;
            margin-bottom: 1rem;
            margin-top: .2rem;
        }
        .age_Seasons,
        .age_Duration {
            width: 90%;
            margin: 0;
        }
    }
    @media (min-width: 1023px) {
        .header {
            top: 0;
            bottom: initial;
            background-color: var(--main-color);
            transition: .4s;
            box-shadow: 0 4px 20px hsla(207, 24%, 35%, .1);
        }
        .nav {
            width: 100%;
            height: calc(var(--header-height) + .5rem);
            box-shadow: none;
            border-radius: 0;
            column-gap: 3rem;
            /* margin-inline: 1.5rem; */
            padding: 0;
        }
        .nav__link i,
        .navbar-toggle {
            display: none;
        }
        .navbar {
            width: initial;
            margin: auto;
            background-color: var(--main-color);
            transition: background .4s;
        }
        .nav__menu {
            display: flex;
        }
        .navbar-item {
            display: inline-flex;
            flex-direction: row;
            margin-right: 1rem;
        }
        .dark-theme .nav,
        .dark-theme .nav__menu {
            background-color: var(--main-color);
            box-shadow: none;
        }
        .change-theme {
            color: var(--text-color-light);
        }
        .change-theme:hover {
            color: var(--title-color);
        }
        .section {
            padding-block: 8rem 0;
        }
        .scrollup {
            right: 3rem;
        }
        .show-scroll {
            bottom: 5rem;
        }
        .bg-header {
            box-shadow: 0 4px 20px hsla(207, 24%, 35%, .1);
        }
        .dark-theme .bg-header {
            box-shadow: 0 6px 24px hsla(207, 24%, 8%, .6);
        }
        .dropdown:hover .dropdown-content {
            display: block;
            position: absolute;
            top: 100%;
            right: -40px;
            width: 170px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        .serieDetails,
        .newDetails,
        .movieDetails {
            width: 90%;
            margin: 0 auto;
            margin-bottom: 1rem;
            margin-top: .2rem;
        }
    }
    @media (min-width:1048px) {
        .container {
            margin-inline: auto;
        }
        .serieDetails,
        .newDetails,
        .movieDetails {
            width: 90%;
            margin: 0 auto;
            margin-bottom: 1rem;
            margin-top: .2rem;
        }
    }
    @media (min-width: 1200px) {
        .serieDetails,
        .newDetails,
        .movieDetails {
            width: 80%;
            margin: 0 auto;
            margin-bottom: 1rem;
            margin-top: .2rem;
        }
        .footer__container {
            padding: 2rem 0 3rem;
        }
        .footer__list {
            column-gap: 3rem;
            margin: 2rem 0;
        }
        .footer__social {
            column-gap: 2rem;
        }
        .footer__social-link {
            font-size: 1.5rem;
        }
        .footer__copy {
            margin-top: 5rem;
        }
    }
}