/* 1. GRUNDINSTÄLLNINGAR */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: black;
  font-family: "Montserrat", sans-serif;
  color: white;
}

.wrapper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  padding: 2rem 0;
}

h1 {
  font-family: 'Trebuchet MS', sans-serif;
  font-size: clamp(2.5rem, 8vw, 60px);
  margin: 0;
  color: white;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.box {
  background-color: #111;
  flex: 1 1 300px;
  max-width: 350px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
}

.box .poster-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  background-color: #000;
}

.box h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  min-height: 1.2em;
}

.box .facts {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.box .button-buy {
  background-color: rgba(80, 6, 6, 0.9);
  color: white;
  border: none;
  padding: 12px;
  font-size: 0.9rem;
  width: 100%;
  cursor: pointer;
  margin-top: auto;
  transition: background 0.3s ease;
}

.box .button-buy:hover {
  background-color: rgb(180, 10, 10);
}

.row-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: center;
}

.box-bottom {
  background-color: white;
  color: black;
  flex: 1 1 450px;
  max-width: 540px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
}

.box-bottom .bottom-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

.box-bottom h2 {
  margin: 20px 0 10px 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  margin-top: 50px;
  padding: 40px 20px;
  background-color: rgb(40, 40, 40);
  color: white;
  justify-content: space-around;
  gap: 30px;
  text-align: center;
}

.footer h3 {
  font-size: 1.1rem;
  margin-top: 0;
}

.footer-text {
  font-size: 0.85rem;
  line-height: 1.8;
}

.fa {
  padding: 15px;
  font-size: 24px;
  width: 55px;
  text-decoration: none;
  border-radius: 50%;
  background: #222;
  color: white;
  margin: 5px;
  transition: opacity 0.3s;
}

.fa:hover {
  opacity: 0.7;
}

@media (max-width: 600px) {
  .wrapper {
    padding: 30px 20px;
  }

  .row, .row-bottom {
    gap: 40px;
  }

  .box {
    padding: 25px;
    max-width: 100%; 
  }
  
  h1 {
    margin-bottom: 40px;
  }
}