/* ---------- sidens properties ---------- */

/* hero logo'et */
main img:nth-child(2) {
  padding-top: 150px;
  width: 40%;
  min-width: 350px;
  max-width: 500px;
  margin: 0 auto;
}

/* teksten til mobilvisning */
.mobile-text {
  text-align: center;
  color: #fff;
  font-family: "Oswald", sans-serif;
  font-weight: 200;
  display: none;
  font-size: 2.2em;
}

/* størrelsen til tekst */
p {
  font-size: 1.25em;
  margin-bottom: 1em;
}

/* alt med tables */
table th,
table td {
  text-align: left;
  padding-bottom: 2em;
}

.top-table th,
.top-table td {
  padding-bottom: 4em;
  padding-top: 0.5em;
}

/* ---------- grid og placering ---------- */

/* grid containeren */
.grid-synopsis {
  font-family: "Oswald", sans-serif;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, 1fr);
  padding: 0 1.5em;
  padding-top: 70px;
}

/* placeringer til text, overskrift og tabel */
.p-text {
  grid-area: 2/1/5/6;
}

h2 {
  font-size: 1.875em;
  margin-bottom: 2em;
  font-weight: 400;
  grid-area: 1/1/1/6;
}

table {
  grid-area: 1/7/3/9;
  align-self: start;
}

/* ---------- media queries ---------- */

/* til tablet */
@media only screen and (max-width: 776px) {
  .grid-synopsis {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    padding-bottom: 150px;
  }
  h2 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 1em;
  }
  .p-text {
    grid-area: 3/1/3/6;
  }
  table {
    grid-area: 2/2/3/4;
  }
  tr td {
    text-align: center;
  }
  tr th {
    text-align: center;
  }
}

/* til smartphone */
@media only screen and (max-width: 500px) {
  main img:nth-child(2) {
    display: none;
  }
  .mobile-text {
    display: block;
  }
  .grid-synopsis {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    padding: 0 1em 5em 1em;
    gap: 0;
  }
  h2 {
    grid-area: 1/1/2/3;
  }
  table {
    grid-area: 2/1/2/3;
  }
  tr td {
    padding-left: 0;
  }
  .p-text {
    grid-area: 3/1/3/4;
  }
  .weight-light {
    font-weight: 200;
  }
}
