@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;400;700&display=swap');

:root {

    --main-bg-color: #222831;
    --button-color : #aa0a22;
    --text-color: #EEEEEE;

}

*{
    box-sizing: border-box;
}

:root{
    --primary-color:#22254b;
    --secondary-color: #373b69;
}

body{
  margin: 0;
  padding: 0;
    background-color:black;
    background-image: url("8728.jpg");
    background-repeat: no-repeat, repeat; /* Do not repeat the image */
  background-size:contain;
}



header{
    padding:1rem;
    display:flex;
    align-items: center;
    justify-content: space-between;
    
    background-color:black;
}

.left_nav {
  display: inline-flex;
  justify-content: flex-start;
}

.left_nav li img{
 position: relative;
  image-rendering: optimizeSpeed;
}

.nav_center{
  width: 10%;
  /* position: absolute; */
  display: inline-flex;
  /* justify-content: flex-end; */
  /* width: 100vw; */
  /* justify-content: center; */
}
.nav_center ol{

  text-decoration: none;
 
  display: inline-flex;
  /* justify-content:center ; */
  align-items: center;
  gap: 50px;
  list-style: none;
  color:white ;
  font-size: larger;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
.nav_center li a{
  color: var(--button-color);
  text-decoration: none;
}
.nav_right{
  /* width: 100vw; */
  display:inline-flex;
  justify-content: flex-end;
}

.search{
    background-color: transparent;
    border: 2px solid var(--button-color);
    padding:0.5rem 1rem;
    border-radius: 50px;
    font-size: 1rem;
    color:#fff;
    font-family: inherit;
    height: 40px;
    

}

section.slider {
    margin-top: 80px; /* To account for the fixed navbar */
    padding: 20px;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    position: relative;
  }

  .slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease-in-out;
    width: fit-content;
    position: relative;
  }

  .movie-card {
    width: 150px;
    margin: 0 10px;
    background-color:none;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.5;
    position: relative;
    z-index: 1;
  }

  .movie-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .movie-title {
    padding: 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
  }

  /* Center card styling: larger and no opacity */
  .movie-card.center {
    transform: scale(1.2);
    opacity: 1;
    z-index: 10;
  }

  /* Left and right card effects */
  .movie-card.left {
    transform: scale(0.9) translateX(-50px);
    opacity: 0.7;
    z-index: 5;
  }

  .movie-card.right {
    transform: scale(0.9) translateX(50px);
    opacity: 0.7;
    z-index: 5;
  }

  /* Responsive */
  @media screen and (max-width: 768px) {
    .movie-card {
      width: 120px;
    }
  }

  @media screen and (max-width: 480px) {
    .movie-card {
      width: 90px;
    }
  }


.search:focus{
    outline:0;
    background-color: var(--main-bg-color);
}

.search::placeholder{
    color:var(--button-color);
}

main{
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
}

.movie {
    width: 300px;
    margin: 1rem;
    border-radius: 3px;
    box-shadow: 0.2px 4px 5px rgba(0,0,0,0.1);
    background-color: var(--button-color);
    position:relative;
    overflow: hidden;
    
}
.movie p {
  display: flex;
  justify-content: center;
  font-size: larger;
  font-family:'Times New Roman', Times, serif;
  color:var(--text-color);
  font-weight: 300;
}


.movie img{
    width:100%;
}

.movie-info{
    color:#eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 1rem;
    letter-spacing: 0.5px;
}

.movie-info h3{
    margin-top: 0;
}

.movie-info span{
    background-color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.movie-info span.green{
    color:var(--button-color);
}

.movie-info span.orange{
    color:var(white);
}

.movie-info span.red{
    color:red;
}

.overview{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    background-color: #fff;
    padding: 1rem;
    max-height: 100%;
    transform:translateY(101%);
    transition:transform 0.3s ease-in;
}

.movie:hover .overview{
    transform:translateY(0)
}

#tags{
    width:80%;
    display:flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 10px auto;
}
#tags {
  display: none; /* Initially hide the tags div */}
.tag{
    color:white;
    padding:10px 20px;
    background-color:var(--button-color);
    border-radius: 50px;
    margin:5px;
    display:inline-block;
    cursor: pointer;
}

.tag.highlight{
    background-color: red;
}
.no-results{
    color:white;
}

.pagination{
    display:flex;
    margin:10px 30px;
    align-items: center;
    justify-content: center;
    color:white;
}

.page{
    padding:20px;
    cursor:pointer;
}

.page.disabled{
    cursor:not-allowed;
    color:grey;
}

.current{
    padding: 10px 20px;
    border-radius: 50%;
    border: 5px solid var(--button-color);
    font-size: 20px;
    font-weight: 600;
}

.know-more{
    background-color:var(--button-color);
    color:white;
    font-size: 16px;
    font-weight: bold;
    border:0;
    border-radius: 50px;
    padding: 10px 20px;
    margin-top: 5px;
}
/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */   
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
  }
  
  /* Position the content inside the overlay */
  .overlay-content {
    position: relative;
    top: 10%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
  }
  
  /* The navigation links inside the overlay */
  .overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
  }
  
  /* When you mouse over the navigation links, change their color */
  .overlay a:hover, .overlay a:focus {
    color: #f1f1f1;
  }
  
  /* Position the close button (top right corner) */
  .overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
  }
  
  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
    .overlay a {font-size: 20px}
    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }


  .embed.hide{
      display: none;
  }

  .embed.show{
      display: inline-block;
  }

  .arrow{
      position: absolute;
      font-size: 40px;
  }

  .arrow.left-arrow{
      top:50%;
      left:5%;
      transform: translateY(-50%);
  }

  
  .arrow.right-arrow{
    top:50%;
    transform: translateY(-50%);
    right:5%;
}

.dots{
    margin-top: 30px;
}

.dots .dot {
    padding: 5px 15px;
    border-radius: 50%;
    border: 5px solid var(--secondary-color);
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin: 5px;
}

.dots .dot.active{
    border-color: orange;
}

.heart-btn {
  font-size: 2rem; /* Make the heart emoji larger */
  background: none; /* Remove background */
  border: none; /* Remove border */
  cursor: pointer; /* Change cursor to pointer */
  transition: transform 0.2s; /* Smooth transition */
}

.heart-btn:active {
  transform: scale(1.2); /* Scale up the heart when pressed */
}
.heart-btn.pressed {
  transform: scale(1.5); /* Scale up the heart further for effect */
  transition: transform 0.2s; /* Ensure smooth transition */
}


.recommend{
  display: flex;
padding-top: 10px;
  height: 10vh;
  /* width: 100vw; */
  background-color:black;
  justify-content:center;
  align-items: center;
}


.recommendation-container {
  display: flex;
  flex-wrap: wrap;        /* Allows wrapping of recommendations */
  justify-content: center; /* Center the container */
}

.recommended-movie {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Center horizontally */
  margin: 10px;        /* Add some spacing */
}

.recommended-movie img {
  max-width: 100%;     /* Responsive image size */
  height: auto;        /* Maintain aspect ratio */
}

.recommended-movie p {
  text-align: center;   /* Center the movie titles */
  font-weight: bold;    /* Optional: Make titles bold */
  margin: 5px 0;       /* Add some margin for spacing */
}