/* Mobile Responsiveness Fixes */
@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }

  .search-box {
    flex-direction: column; 
    gap: 15px;
  }

  #search-btn {
    width: 70%;
    align-self: center;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #121212; /* Dark theme background */
  color: #ffffff;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  min-height: 100vh;
}

.container {
  background-color: #1e1e1e;
  width: 100%;
  max-width: 95vw;
  margin-bottom: 20px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
  text-align: center;
}

h1 {
  margin-bottom: 20px;
  color: #f5c518;
}

/*Styling for search box and btn*/
.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

#movie-input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

#search-btn {
  padding: 12px 20px;
  background-color: #f5c518;
  color: #121212;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

#search-btn:hover {
  background-color: #d4a80e;
}

/* Styling for the movie data */
.movie-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.movie-card img {
  max-width: 250px;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

.movie-card h2 {
  font-size: 24px;
}

.movie-info {
  display: flex;
  justify-content: center;
  gap: 15px;
  color: #b3b3b3;
  font-size: 14px;
}

.movie-plot {
  font-size: 15px;
  line-height: 1.5;
  color: #dddddd;
  margin-top: 10px;
}

/*Grid layout for multiple search results*/
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-card {
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.grid-card:hover {
  transform: scale(1.05);
}

.grid-card img {
  width: 100%;
  border-radius: 5px;
}

.grid-card h3 {
  font-size: 16px;
  margin-top: 10px;
  color: #ffffff;
}

.grid-card p {
  color: #b3b3b3;
  font-size: 14px;
}

/* back button */
.back-btn {
  background-color: transparent;
  color: #f5c518;
  border: 1px solid #f5c518;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
}
.back-btn:hover {
  background-color: #f5c518;
  color: #121212;
}
