header {
  padding: 0 5px;
}

h5.card,
p.card {
  padding: 10px;
}

h1.card {
  margin: 8px 0;
  padding: 40px;
}

p.card {
  font-family: Inter, sans-serif;
  padding: 30px;
  margin: 0;
  line-height: 1.4em;
}

h2 {
  font-size: 2.3em;
  color: var(--light-cyan);
}

header h2 {
  margin: 30px 0;
}

div.card {
  border: 1px solid var(--green);
  border-radius: 20px;
  padding: 25px;
}

.hscroll {
  overflow-x: auto;
  scrollbar-width: none;
}

#timeline .events > div:not(.active) {
  display: none;
}

#timeline .date {
  color: var(--green);
  text-align: center;
  margin: 0;
}

#timeline .title {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 1.1em;
  margin-top: 0;
  margin-bottom: 30px;
  padding: 0 30px;
}

#timeline .dots {
  display: flex;
  flex-direction: row-reverse;
  padding: 10px 50%;
}

#timeline .dot {
  flex-shrink: 0;
  display: inline-block;
  padding: 0;
  width: 80px;
  border-top: 1px solid var(--green);
  position: relative;
  cursor: pointer;
}

#timeline .dot::after {
  content: "";
  border-radius: 100px;
  height: 17px;
  width: 17px;
  display: inline-block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--green);
}

#timeline .dot:first-of-type,
#timeline .dot:last-of-type {
  width: 40px;
}

#timeline .dot:first-of-type::after {
  left: 100%;
}

#timeline .dot:last-of-type::after {
  left: 0;
}

#timeline .dot.active::after {
  background-color: var(--light-cyan);
}

#timeline .years {
  color: var(--green);
  display: flex;
  gap: 10px;
  font-size: 0.6em;
  border-bottom: 1px solid var(--green);
  justify-content: space-between;
  margin-top: 20px;
}

#timeline .years > p {
  cursor: pointer;
}

#timeline .years .active {
  color: var(--light-cyan);
}

h3 {
  color: var(--green);
  font-weight: normal;
  font-size: 18px;
  margin-top: 0px;
  margin-bottom: 10px;
}

#timeline {
  background-color: var(--dark-turquoise);
}

@media (max-width: 700px) {
  .content-wrapper {
    background-image: url("../png/got-questions-banner.png");
    background-size: 730px auto;
    background-repeat: no-repeat;
    background-position: 90% 0;
    padding-top: 220px;
  }

  h5,
  h1 {
    text-align: center;
  }

  h5 {
    font-size: 14px;
  }

  p.card {
    font-size: 0.75em;
  }

  #timeline button {
    display: none;
  }

  #timeline .date {
    font-size: 0.8em;
  }

  #got-questions {
    margin-top: 40px;
  }
}

@media (min-width: 701px) {
  body {
    background-image: url("../png/got-questions-banner.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center 150px;
  }

  header {
    margin-top: 70px;
    width: 450px;
  }

  h5.card {
    padding: 15px 20px;
  }

  p.card {
    padding: 40px;
  }

  header h2 {
    font-size: 4em;
    margin-top: 85px;
  }

  #timeline {
    margin-top: 40px;
    margin-bottom: 30px;
    padding: 40px;
    background-image: url("../png/timeline-bg.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top;
  }

  #timeline .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #timeline .header img {
    border: 1px solid var(--green);
    border-radius: 100px;
    height: 40px;
    width: 40px;
    padding: 20px;
  }

  #timeline button {
    background-image: url("../svg/bracket_left_green.svg");
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    height: 40px;
    width: 40px;
  }

  #timeline button.right {
    background-image: url("../svg/bracket_right_green.svg");
  }

  #timeline .title {
    margin-top: 5px;
    font-size: 1.75em;
    margin-bottom: 0;
  }

  #timeline .dots {
    margin: 50px 0;
  }

  #timeline .years {
    font-size: 0.9em;
  }

  #timeline .years > p {
    margin: 5px;
  }

  h3 {
    font-size: 28px;
  }

  #got-questions {
    margin-top: 100px;
  }
}

@media (min-width: 1540px) {
  body {
    background-size: 1540px auto;
  }
}
