body {
    background-image: url(newbg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
  }
  
/* Movie List Styling */
.movie-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Flexible columns */
  gap: 20px; /* Add spacing between cards */
  padding: 20px;
  justify-content: center; /* Center-align the movie cards */
}

/* Movie Card Styling */
.movie-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%; /* Allow the card to adjust within the grid column */
  max-width: 400px; /* Set a maximum width for each card */
  height: 500px; /* Set a fixed height for all movie cards */
  margin: 0 auto; /* Center the card within its grid cell */
}

/* Movie Card Image */
.movie-card img {
  width: 100%; /* Ensure the image fits the card width */
  height: 55%; /* Set the height as a percentage of the card */
  object-fit: cover; /* Ensure the image scales properly without distortion */
  border-bottom: 2px solid #ddd; /* Add a border to separate the image */
  display: block; /* Remove any inline spacing issues */
  margin: 0; /* Remove unnecessary margins */
}

/* Movie Card Text */
.movie-card h3 {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

.movie-card p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.movie-card .rate-btn {
    background-color: #f0a500;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 20px 0;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
  }
  
  .movie-card .rate-btn:hover {
    background-color: #e08900;
  }
  
  .movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

/* Watch Button Styling */
.watch-btn {
  background: linear-gradient(90deg, #ff7e5f, #feb47b); /* Gradient background */
  color: #fff; /* White text color */
  border: none; /* Remove default border */
  padding: 12px 24px; /* Add padding for better size */
  margin: 15px 0; /* Add spacing above and below */
  cursor: pointer; /* Change cursor to pointer */
  border-radius: 25px; /* Rounded corners */
  font-size: 16px; /* Adjust font size */
  font-weight: bold; /* Make text bold */
  text-transform: uppercase; /* Make text uppercase */
  text-decoration: none; /* Remove underline */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add subtle shadow */
  transition: all 0.3s ease; /* Smooth transition for hover effects */
  display: inline-block; /* Ensure proper alignment */
}

/* Hover Effect */
.watch-btn:hover {
  background: linear-gradient(90deg, #feb47b, #ff7e5f); /* Reverse gradient on hover */
  transform: scale(1.1); /* Slightly enlarge the button */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
}

/* Active Effect */
.watch-btn:active {
  transform: scale(1); /* Reset scale on click */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle shadow on click */
}
