:root {
  --primary-color: #ff4786;
  --background-color: #141414;
  --text-color: #ffffff;
  --secondary-color: #564d4d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(20, 20, 20, 0.919) 10%, rgba(20, 20, 20, 0.564));
  padding: 1rem 4%;
  transition: background-color 0.3s;
  backdrop-filter: blur(1rem);
}




@media (max-width: 500px) {
 /* @media(min-width:500px){ */
  .movie-detail{
    /* padding-top: 8rem; */
  /* } */
}
}

.movie-detail {
  padding: 6rem 2rem;
}

.movie-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}

.movie-poster {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.movie-poster img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.movie-description {
  flex: 1;
}

.movie-description h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.movie-description a {
  color: var(--primary-color);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.movie-description button{
  width: fit-content;
  padding: 0.5rem 3rem;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.movie-synopsis {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.snacks-section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.snack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.snack-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

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

.snack-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.snack-info {
  padding: 1rem;
}

.snack-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.snack-info p {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.add-to-cart {
  width: 100%;
  padding: 0.5rem;
  background-color: var(--primary-color);
  color: var(--text-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.add-to-cart:hover {
  background-color: #ff0a16;
}



footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 2rem 4%;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

footer p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

@media (min-width: 768px) {
  .movie-info {
    flex-direction: row;
  }

  .movie-poster {
    flex: 0 0 300px;
    margin: 0;
  }

  .snack-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 767px) {
  .movie-detail {
    /* padding-top: 8rem; */
  }

  .movie-description h1 {
    font-size: 2rem;
  }

  .nav-links {
    display: none;
  }

  .nav-right input {
    display: none;
  }
} 

.cart-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    min-width: 250px;
    text-align: center;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}

.alert-error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}





