* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: poppins, sans-serif;
}

a {
  color: black;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  text-shadow: 1px 1px 10px black;
}

h1 span {
  font-size: 1.8rem;
  display: block;
  text-transform: none;
  font-weight: 500;
  margin-top: 10px;
}

h2 {
  font-size: 2.6rem;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 1.5rem 0 1rem;
}

section {
  padding: 23vh 15vw 15vh;
}

section:nth-last-of-type(even) {
  background-color: rgb(238, 238, 238);
}

.hero {
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.techicons {
  display: flex;
  flex-wrap: wrap;
  column-gap: 6vw;
  row-gap: 4vw;
  justify-content: center;
  margin: 10vh 0 0;
}

.techicons img {
  width: 5vw;
  object-fit: contain;
}

.techicons img:hover {
  animation-duration: .5s;
  animation-iteration-count: 1;
  animation-name: react;
  animation-timing-function: linear;
}

.opbygning {
  display: grid;
  grid-template-columns: 2fr 5fr;
  row-gap: .8rem;
  margin: 1.5rem 0;
}

.gf {
  background-color: hotpink;
  height: 50px;
  border-radius: 5px 0 0 5px;
}

.hf {
  background-color: #5365FC;
  border-radius: 0 5px 5px 0;
  height: 50px;
}

.thin {
  font-size: .9rem;
  font-weight: 400;
  display: block;
  padding-right: 6px;
}


article {
  padding: 60px 0;
}

.box__list {
  list-style-position: inside;
  line-height: 1.7;
  margin-top: 20px;
}

.boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem
}

.box {
  background-color: white;
  padding: 4rem 3rem;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.box h3 {
  text-decoration: underline;
  text-underline-offset: .8rem;
  text-decoration-thickness: 3px;
  text-decoration-color: hotpink;
  margin-bottom: 40px;
}

h3.blueunderline {
  text-decoration-color: #5365FC;
}


.deltagerforuds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 2rem;
  margin-top: 40px;
}

.df {
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: .3s ease;
}

.df:hover {
  transform: scale(1.1);
}

.deltagerforuds p {
  font-size: 2.8rem;
  color: hotpink;
}

.df:hover p {
  color: #5365FC;
}

.become {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  color: hotpink;
}

.become p {
  transition: .3s ease;
}



.become p:nth-of-type(4n) {
  font-size: 2.2rem;
  font-style: italic;
  color: black;
}

.become p:nth-of-type(4n -1) {
  font-size: 2.2rem;
}

.become p:nth-of-type(4n -2) {
  font-size: 2rem;
  font-style: 700;
  text-transform: uppercase;
  transform: rotate(-3deg);
  color: black;
}

.become p:nth-of-type(4n -3) {
  font-size: 2.2rem;
  font-style: 700;
  transform: rotate(2deg);
  font-weight: 300;
  text-decoration: underline;
}

.rotation {
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-name: react;
  animation-timing-function: linear;
}

@keyframes react {
  50% {
    transform: rotate(180deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.become p:hover {
  transform: rotate(-5deg);
}



.teachers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 15px;
  row-gap: 25px;
  margin: 50px 10vw;
  max-width: auto;
}

.teacher_section {
  padding: 80px 20px 60px;
}

.teacher {
  background-color: white;
  padding: 8px;
  border-radius: 5px;
  transition: .3s ease;
  width: 100%;
}

.teacher img {
  width: 100%;
}

.contact p {
  margin: 0;
}

.contact p:first-of-type {
  font-weight: 600;
  margin-top: 10px;
}

.teacher:hover {
  transform: scale(1.1);
}

@media screen and (max-width: 1024px) {
  .teachers {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 50px auto;
  }

  section {
    padding: 80px 50px 60px;
  }
}

@media screen and (max-width: 769px) {

  .boxes {
    display: grid;
    grid-template-columns: 1fr;
    padding: 2rem 0;
    gap: 2rem
  }

  section {
    padding: 60px 40px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  h1 span {
    font-size: 2.8rem;
    margin-top: -10px;
  }

  .techicons {
    gap: 40px;
    margin: 60px 0 0;
  }

  .techicons img {
    width: 70px;
  }

  .become {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    color: hotpink;
  }

  .become p:nth-of-type(3n) {
    font-size: 2.2rem;
    font-style: italic;
    color: black;
  }

  .become p:nth-of-type(3n -1) {
    font-size: 2.2rem;
  }

  .become p:nth-of-type(3n -2) {
    font-size: 2rem;
    font-style: 700;
    text-transform: uppercase;
    transform: rotate(-3deg);
    color: black;
  }

  .become p:nth-of-type(3n -3) {
    font-size: 2.2rem;
    font-style: 700;
    transform: rotate(2deg);
    font-weight: 300;
    color: hotpink;
    text-decoration: none;
  }

  .deltagerforuds {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 1rem;
    row-gap: 2rem;
    margin-top: 40px;
    text-align: center;
  }

  .df {
    flex-direction: column;
    gap: 0;
  }

  .df p {
    margin: 0;
  }

}

@media screen and (max-width: 426px) {


  .deltagerforuds {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  h1 span {
    font-size: 2rem;
    margin-top: 10px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .become p:nth-of-type(3n),
  .become p:nth-of-type(3n -1),
  .become p:nth-of-type(3n -3) {
    font-size: 1.5rem;
  }

  .become p:nth-of-type(3n -2) {
    font-size: 1.4rem;
  }

  section {
    padding: 80px 15px 60px;
  }

  article {
    padding: 0;
  }

  .box {
    background-color: white;
    padding: 40px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(0 0 0 / 20%);
  }

  .teachers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    margin: 50px;
  }

}