/*Imports*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,400;0,600;1,100&display=swap');


/*Colors*/
:root{
    --card-color: #1D212B;
    --background-color: #F3f3f3;
    --border-color: rgba(0, 0, 0, 0.04);
    --color-white: #ffffff;
    --font-color: #1a1a1a;
    --font-light-color: #585858;
    --hover-color: #1e81b0;
}

/*General Style*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
}

ul{
    list-style: none;
}

a{
    text-decoration: none;
}

/*Style Header*/
nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--color-white);
}

nav .logo{
    display: flex;
}

.logo img{
    display: inline-flex;
    align-items: center;
    height: 40px;
    width: auto;
    margin: 10px 0;
    transition: all .3s ease-in-out;
}

.logo span{
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5%;
    font-size: 20px;
    color: #000;
}

.logo-container:hover{
    transform: scale(1.15);
}

nav .menu{
    display: flex;
}

nav .menu li a{
    height: 40px;
    line-height: 43px;
    margin: 0px;
    padding: 0px 22px;
    display: flex;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--font-light-color);
    transition: all .3s ease-in-out;
}

nav .menu li a:hover{
    color: var(--hover-color);
    transform: scale(1.15);
}

/*Style Title*/
.title{
    margin: 1rem 1rem 0 1rem;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

/*Style Carousel*/
.owl-dots{
    text-align: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

.owl-dot{
    height: 10px;
    width: 10px;
    border: 2px solid var(--hover-color)!important;
    cursor: pointer;
    border-radius: 25px;
    margin: 0 5px;
    outline: none;
    transition: all .4s ease-in-out;
}

.owl-dot:hover, .owl-dot.active{
    background: var(--hover-color)!important;
}


/*Style Cards*/
.wrapper{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wrapper .movies{
    max-width: 100%;
    margin: auto;
    padding: 0 30px;
}

.movies .movie-card{
    z-index: 1;
    background: var(--card-color);
    position: relative;
    width: 300px;
    height: 420px;
    margin: 40px;
    border-radius: 10px;
    transition: all .3s ease-in-out;
}

.movies .movie-card:hover{
    transform: translateY(5px);
    border-bottom: 4px solid var(--hover-color);
}

.movies .movie-card .movie-img{
    z-index: 1;
    position: absolute;
    max-width: 350px;
    top: 32%;
    left: 50%;
    height: 300px;
    object-fit: cover;
    transform: translate(-50%, -50%);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.movies .movie-card .name{
    z-index: 2;
    color: var(--color-white);
    position: absolute;
    width: 100%;
    text-align: center;
    bottom: 130px;
    font-size: 20px;
    top: 70%;
    letter-spacing: 1px;
}

.movies .movie-card .popup-btn{
    z-index: 2;
    color: var(--color-white);
    background: #555;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-50%);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
}

.movies .movie-card .popup-btn:hover{
    background: var(--hover-color);
}

/*Style Popup or Modal*/
.wrapper .popup-view{
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.wrapper .popup-view.active{
    opacity: 1;
    visibility: visible;
}

.wrapper .popup-card{
    position: relative;
    display: flex;
    width: 700px;
    height: 650px;
    margin: 20px;
}

.wrapper .popup-card .movie-img{
    z-index: 2;
    background: var(--card-color);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45%;
    height: 90%;
    transform: translateY(32px);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.wrapper .popup-card .movie-img img{
    z-index: 2;
    position: relative;
    width: 320px;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.wrapper .popup-card .info{
    z-index: 2;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    width: 55%;
    height: 100%;
    box-sizing: border-box;
    padding: 40px;
    border-radius: 10px;
}

.wrapper .popup-card .info h2{
    font-size: 30px;
    line-height: 30px;
    margin: 10px;
}

.wrapper .popup-card .info p{
    font-size: 15px;
    margin: 10px;
}

.wrapper .popup-card .info h3{
    font-size: 20px;
    margin: 10px;
}

.wrapper .popup-card .close-btn{
    color: #555;
    z-index: 3;
    position: absolute;
    right: 0;
    font-size: 20px;
    margin: 20px;
    cursor: pointer;
}

.wrapper .popup-card .close-btn:hover{
    color: var(--hover-color);
}

.wrapper .popup-card .info .star-rating .rate-btn{
    z-index: 3;;
    background: transparent;
    width: 33px;
    height: auto;
    padding: 5px;
    color: #1ECD97;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid #1ECD97;
    margin-left: 1rem;
    font-size: 10px;
}

.wrapper .popup-card .info .star-rating .rate-btn:hover{
    background: #1ECD97;
    color: var(--color-white);
}

/*Card Style 2*/
#popular{
    width: 100%;
    border-top: 4px solid var(--border-color);
    margin-top: 10px;
}

#popular-movies{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#popular .wrapper .movies{
    padding: 0;
    margin: 0;
}

#favs{
    width: 100%;
    margin-top: 10px;
}

#favs-movies{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#favs .wrapper .movies{
    padding: 0;
    margin: 0;
}

/*Star Rating Style*/
.wrapper .popup-card .info .star-rating{
	font-size: 25px;
    display: flex;
    justify-content: space-evenly;
    margin: 10px;
    margin-top: 5px;
    width: 100%;
    height: 20px;
}

.wrapper .popup-card .info .star-rating .rate-1-btn{
    z-index: 3;;
    background: transparent;
    width: 40px;
    height: auto;
    padding: 5px;
    color: red;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid red;
    transition: all .4s ease-in-out;
}

.wrapper .popup-card .info .star-rating .rate-1-btn:hover{
    color: var(--color-white);
    background: red;
}

.wrapper .popup-card .info .star-rating .rate-1-btn.active{
    color: var(--color-white);
    background: red;
}

.wrapper .popup-card .info .star-rating .rate-2-btn{
    z-index: 3;;
    background: transparent;
    width: 40px;
    height: auto;
    padding: 5px;
    color: orange;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid orange;
    transition: all .4s ease-in-out;
}

.wrapper .popup-card .info .star-rating .rate-2-btn:hover{
    color: var(--color-white);
    background: orange;
}

.wrapper .popup-card .info .star-rating .rate-2-btn.active{
    color: var(--color-white);
    background: orange;
}

.wrapper .popup-card .info .star-rating .rate-3-btn{
    z-index: 3;;
    background: transparent;
    width: 40px;
    height: auto;
    padding: 5px;
    color: #ffd600;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid #ffd600;
    transition: all .4s ease-in-out;
}

.wrapper .popup-card .info .star-rating .rate-3-btn:hover{
    color: var(--color-white);
    background: #ffd600;
}

.wrapper .popup-card .info .star-rating .rate-3-btn.active{
    color: var(--color-white);
    background: #ffd600;
}

.wrapper .popup-card .info .star-rating .rate-4-btn{
    z-index: 3;;
    background: transparent;
    width: 40px;
    height: auto;
    padding: 5px;
    color: greenyellow;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid greenyellow;
    transition: all .4s ease-in-out;
}

.wrapper .popup-card .info .star-rating .rate-4-btn:hover{
    color: var(--color-white);
    background: greenyellow;
}

.wrapper .popup-card .info .star-rating .rate-4-btn.active{
    color: var(--color-white);
    background: greenyellow;
}

.wrapper .popup-card .info .star-rating .rate-5-btn{
    z-index: 3;;
    background: transparent;
    width: 40px;
    height: auto;
    padding: 5px;
    color: green;
    cursor: pointer;
    text-align: center;
    border-radius: 20px;
    border: 2px solid green;
    transition: all .4s ease-in-out;
}

.wrapper .popup-card .info .star-rating .rate-5-btn:hover{
    color: var(--color-white);
    background: green;
}

.wrapper .popup-card .info .star-rating .rate-5-btn.active{
    color: var(--color-white);
    background: green;
}

/*Responsive*/
@media (max-width: 900px){
    .wrapper .popup-card{
        flex-direction: column;
        width: 550px;
        height: auto;
    }

    .wrapper .popup-card .movie-img{
        z-index: 3;
        width: 100%;
        height: 200px;
        transform: translateY(0);
        border-bottom-left-radius: 0;
        border-top-right-radius: 10px;
    }
    
    .wrapper .popup-card .movie-img img{
        left: initial;
        max-width: 100%;
    }

    .wrapper .popup-card .info{
        width: 100%;
        height: auto;
        padding: 20px;
        border-top-right-radius: 0;
        border-top-left-radius: 0;
    }

    .wrapper .popup-card .info h2{
        margin: 20px 5px 5px 5px;
        font-size: 25px;
    }

    .wrapper .popup-card .info p{
        margin: 5px;
        font-size: 13px;
    }

    .wrapper .popup-card .close-btn{
        z-index: 4;
        color: var(--color-white);
    }
}