@import url("./_reset.css");
@import url("./_variables.css");


body {
  color: var(--color-primary);
  background-color: var(--color-secondary);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

main,
section,
.film-grid,
.category-grid,
.product-layout {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 40px 20px;
}

.centered {
  text-align: center;
}


.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
}

.main-nav a:hover {
  opacity: 0.8;
}


.hero {
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.hero p {
  margin-top: 10px;
  font-size: 1.1rem;
}


.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.category-box {
  padding: 40px 0;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
}

/* CATEGORY COLORS */
.action { background-color: #e63946; }
.horror { background-color: #1d3557; }
.romance { background-color: #ff6b6b; }
.independent { background-color: #6a4c93; }
.documentary { background-color: #457b9d; }
.comedy { background-color: #f4a261; }
.scifi { background-color: #2a9d8f; }
.drama { background-color: #8d99ae; }


.films-title {
  padding: 60px 20px;
  text-align: center;
}

.films-title h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
}

.film-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 20px;
}

.film-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
}

.film-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.film-card h2 {
  margin-bottom: 10px;
  color: var(--color-primary);
}

.film-card p {
  margin-bottom: 15px;
  color: #000000;
}


.product-title {
  padding: 40px 20px;
  text-align: center;
}

.product-title h1 {
  font-size: 2.2rem;
  color: var(--color-primary);
}

.product-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
}

.product-image img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.product-info {
  color: #000000;
}

.product-info h3,
.product-info h2 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

.product-description {
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 20px;
}

/* CTA BUTTON */
.cta-button {
  display: inline-block;
  background-color: #e63946;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
}

.cta-button:hover {
  opacity: 0.9;
}


.payment-form {
  max-width: 600px;
  margin: 0 auto;
}

.payment-row {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.payment-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.payment-field label {
  font-weight: bold;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.payment-field input {
  padding: 12px;
  height: 45px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background-color: #f7f7f7;
  font-size: 1rem;
}

.payment-button-wrapper {
  text-align: center;
  margin-top: 20px;
}


.confirmation-wrapper {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.confirmation-circle {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, #a8ffb0, #4caf50);
  border-radius: 50%;
  margin: 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.check-text {
  font-size: 2rem;
  font-weight: bold;
  color: #000000;
}

.confirmation-message {
  font-size: 1.4rem;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 25px;
  color: var(--color-primary);
}

.confirmation-button-wrapper {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}


footer {
  margin-top: 60px;
  padding: 20px;
  text-align: center;
  color: var(--color-primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  opacity: 0.8;
}



/* TABLET */
@media (min-width: 600px) {
  .product-title h1 {
    font-size: 2.5rem;
  }

  .product-description {
    font-size: 1.1rem;
  }
}

/* DESKTOP */
@media (min-width: 900px) {
  body {
    font-size: 18px;
  }

  .product-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-image,
  .product-info {
    flex: 1;
  }

  .product-description {
    font-size: 1.15rem;
  }

  section {
    padding: 60px 20px;
  }

  footer {
    margin-top: 40px;
  }
}

