/* Base styles */
body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  background-color: #000;
  color: #ffa500;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #000;
  border-bottom: 3px solid #ffa500;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  font-family: 'Monoton', cursive;
  font-size: 36px;
  font-weight: bold;
  text-transform: uppercase;
  color: #ffa500;
  text-shadow: 3px 3px 5px rgba(255, 165, 0, 0.8);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  background-color: #ffa500;
  border: 2px solid #ffa500;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar a:hover {
  background-color: #ff6600;
  color: #fff;
}

/* Slideshow section */
.slideshow-section {
  margin: 20px auto;
  text-align: center;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 800px; /* Maximum width for desktop */
  margin: 0 auto;
  aspect-ratio: 16/9; /* Maintain a responsive aspect ratio */
  overflow: hidden;
  border: 2px solid #ffa500;
  background-color: #000; /* Background for padding areas */
}

.slideshow-container img {
  width: 100%; /* Fit image to container width */
  height: 100%; /* Fit image to container height */
  object-fit: contain; /* Ensure entire image is visible */
  display: none;
  transition: opacity 1s ease-in-out;
}

.slideshow-container img.active {
  display: block;
  opacity: 1;
}

/* Movies Button */
.movies-button {
  display: inline-block;
  background-color: #ffa500;
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding: 10px 20px;
  margin-top: 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.movies-button:hover {
  background-color: #ff6600;
}

/* Footer Section */
.footer {
  text-align: center;
  padding: 20px;
  background-color: #000;
  color: #ffa500;
  font-size: 14px;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  border-top: 3px solid #ffa500;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .logo h1 {
      font-size: 24px;
  }

  .navbar ul {
      flex-direction: column;
      gap: 10px;
  }

  .slideshow-container {
      max-width: 100%; /* Full width for smaller devices */
  }
}

@media (max-width: 480px) {
  .logo img {
      width: 40px;
      height: 40px;
  }

  .logo h1 {
      font-size: 20px;
  }

  .navbar a {
      font-size: 12px;
  }
}

/* Movie Cards Section */
.movies-list {
  text-align: center;
  padding: 50px 20px;
}

.movie-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.movie-card {
  background-color: #333;
  border-radius: 10px;
  border: 2px solid #ffa500;
  width: 250px;
  padding: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(255, 165, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
}

/* Movie Card Poster */
.movie-card img {
  width: 100%;               /* Make the image span the entire width of the card */
  height: auto;              /* Maintain image aspect ratio */
  max-height: 400px;         /* Set a max height for the poster image */
  object-fit: contain;       /* Ensure the image fits within the container without distortion */
  border-radius: 10px;       /* Rounded corners for the image */
}

/* Movie Name and Language */
.movie-card h3 {
  font-size: 18px;
  color: #ffa500;
  margin-top: 15px;
  text-align: center;
}

.movie-card p {
  font-size: 14px;
  color: #fff;
  text-align: center;
}

/* Movie Rating */
.movie-card .rating {
  margin: 10px 0;
  text-align: center;
}

.movie-card .star {
  color: #ffcc00;
}

/* Download and Watch Buttons */
.movie-card .buttons {
  display: flex;
  flex-direction: column; /* Stack buttons vertically */
  gap: 10px; /* Space between buttons */
  align-items: center; /* Center the buttons horizontally */
  margin-top: auto; /* Push buttons to the bottom of the card */
}

.movie-card .buttons a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #ffa500;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  width: 100%; /* Ensure buttons fit inside the card */
  text-align: center;
  transition: background-color 0.3s;
}

.movie-card .buttons a:hover {
  background-color: #ff6600;
}

/* Download Select Dropdown */
.movie-card select {
  padding: 5px;
  background-color: #333;
  color: #fff;
  border: 1px solid #ffa500;
  border-radius: 5px;
  margin: 5px 0;
  width: 100%;
}

/* Reviews Section */
.reviews-section {
  text-align: center;
  margin-top: 50px;
  color: #ffa500;
}

.reviews-section h2 {
  font-size: 32px;
  color: #ffa500;
  font-family: 'Monoton', cursive;
  text-transform: uppercase;
}

/* Individual Review Styling */
.review {
  background-color: #222;
  border: 1px solid #ffa500;
  padding: 20px;
  margin: 20px 0;
  border-radius: 10px;
}

.rating {
  font-size: 20px;
  color: #ffcc00;
}

.star {
  margin: 0 2px;
}

.comment {
  font-size: 18px;
  font-style: italic;
  color: #fff;
  margin: 10px 0;
}

.user {
  font-size: 16px;
  font-weight: bold;
  color: #ffa500;
}

/* Responsive styling for reviews */
@media (max-width: 768px) {
  .reviews-section h2 {
      font-size: 28px;
  }

  .review {
      padding: 15px;
  }

  .comment {
      font-size: 16px;
  }

  .user {
      font-size: 14px;
  }
}

#search-bar {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  border: 1px solid #ffa500;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-size: 16px;
  transition: background-color 0.3s;
}

#search-bar:focus {
  background-color: #444;
}


