/* stylesheet for abonnement */

/* ---------- ikke klassificeret ---------- */

/* wrapper */
.wrapper {
  padding: 0 20px;
  max-width: 805px;
  margin: 0 auto;
  margin-bottom: 130px;
  margin-top: 40px;
}

/* hovedoverskriften */
article h1 {
  margin-bottom: 20px;
  text-align: center;
  font-size: 3.5em;
}

.abonnementer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* ---------- de 3 abonnementer ---------- */

section {
  flex-direction: column;
  background-color: #eeeeee;
  height: 435px;
}

section h2 {
  margin-top: 2em;
  margin-bottom: 2.5em;
  text-align: center;
  font-size: 1.125em;
}

section ul {
  width: 80%;
  margin: 0 auto;
}

section ul li {
  font-size: 0.75em;
  line-height: 2;
}

section p.text {
  font-size: 0.625em;
  text-align: center;
}

section a p.text {
  margin: 0 auto;
  margin-top: 1em;
  width: 193px;
  background-color: #e30613;
  border-radius: 5px;
  color: #fff;
  padding: 12px 0;
  font-size: 1.125em;
  font-weight: 600;
}

section p:first-of-type {
  text-align: center;
}

section p:first-of-type {
  margin-top: 0.22em;
  margin-bottom: 0.5em;
  font-size: 3.5em;
}

section:first-of-type p:first-of-type {
  margin-top: 0.72em;
}

/* ---------- bottom baren ---------- */

/* bottom bar div */
.bottom-bar {
  grid-area: bottombar;
  margin-top: 50px;
  padding: 10px;
  text-align: center;
  background-color: #eeeeee;
}

/* knappen (skriv til os) */
.bottom-bar button {
  width: 160px;
  border: none;
  border-radius: 5px;
  margin: 15px 0 10px 0;
  padding: 10px;
  background-color: #e30613;
  font-size: 0.75em;
  color: #fff;
  cursor: pointer;
}

/* ændre farve onclick */
.bottom-bar button:active {
  background-color: #bd0713;
}

/* ---------- media queries ---------- */
@media only screen and (max-width: 860px) {
  .wrapper {
    padding-top: 60px;
    margin-top: 0;
  }
  article h1 {
    font-size: 2.5em;
    padding-top: 40px;
  }
  /* for sektionerne */
  .abonnementer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    max-width: 600px;
    margin: 0 auto;
  }
  section {
    width: 100%;
    max-width: 300px;
  }
}

@media only screen and (max-width: 580px) {
  .abonnementer {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 40px;
    justify-items: center;
  }
  section {
    flex-direction: column;
    background-color: #eeeeee;
    width: 300px;
  }
}

@media only screen and (max-width: 420px) {
  .wrapper {
    padding-top: 0;
  }
}
