/* General styling for the entire page */
h1 {
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: #0d6efd;
  font-size: 36px;
}

body {
  background-color: #f9fbfd;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.2;
  background-image: url("../images/cinema.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
}

/* Container styling */
.container {
  display: flex;
  justify-content: center;
  color: #ffffff;
}

/* Genre button container styling */
.genre-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 16px;
  gap: 15px;
}

/* Styling for individual genre buttons */
.genre-btn {
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  border: none;
  border-radius: 50px;
  color: #ffffff;
  cursor: pointer;
  font-size: 20x;
  font-weight: bold;
  padding: 12px 24px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Pseudo-element for hover effect */
.genre-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6f42c1, #0d6efd);
  transition: all 0.3s ease;
  z-index: 1;
}

/* Text container to keep it above the hover effect */
.genre-btn span {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

/* Hover effect for genre buttons */
.genre-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.genre-btn:hover::before {
  left: 0;
}

/* Active state for better UX */
.genre-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Focus state for accessibility */
.genre-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.5);
}

/* Optional: Add a subtle pulse animation */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.genre-btn:hover {
  animation: pulse 1s infinite;
}



/* Container for displaying movies */
.movies-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #000000;
  padding: 16px 0;
}

/* Container for displaying movie search results */
.movie-search-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #ffffff;
}

/* Styling for individual movie cards */
.movie-card {
  border: 1px solid #ddd;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px 0px;
  border-radius: 8px;
  padding: 10px;
  width: 225px;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}

/* Hover effect for movie cards */
.movie-card:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid #0d6efd;
  box-shadow: rgb(0, 0, 0) 0px 2px 8px 0px;
}

/* Styling for the poster box containing movie images */
.poster-box {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Styling for movie poster images */
.poster-box img {
  max-width: 100%;
  max-height: 400px;
  border-radius: 5px;
  cursor: pointer;
}

/* Styling for the details box containing movie title and description */
.details-box {
  padding: 10px 2px;
}

/* Styling for movie title */
.details-box h2 {
  font-size: 1em;
  font-weight: bold;
}

/* Styling for movie description */
.details-box p {
  font-size: 1em;
  color: #000000;
}

/* Styling for the "Add to Watchlist" button */
.add-to-watchlist-btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 5px 10px;
  cursor: pointer;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  width: 99%;
}

/* Hover effect for the "Add to Watchlist" button */
.add-to-watchlist-btn:hover {
  background-color: #0056b3;
}

/* Styling to change button colour to green when clicked */
.added-to-watchlist {
  background-color: #28a745;
}

/* Styling to change button colour to green when clicked */
.added-to-watchlist:hover {
  background-color: #28a745;
}

.glow-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: auto;
  /* margin: 0 auto; */
  margin-left: 16px
}

/* img.glow-logo {
  margin-top: 16px;
} */
