* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto";
}

html {
  scroll-behavior: smooth;
}

/* Här skriver du design för mobil */

#wrapper {
  margin-top: -10dvh;
  transition: transform 0.5s;

  display: flex;
  flex-direction: column;
  align-items: center;
}

#wrapper.active {
  transform: translateY(0);
}

#slideshow-container {
  position: relative;
  width: 100%;
  height: 90dvh;
}

#slideshow-picture {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
}

#slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s;
}

#over-pickture-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#learn-more-button {
  margin: 32dvh 0 5dvh 0;
  width: 55vw;
  height: 9vh;
  border: none;
  background-color: #ff7f11;
  color: #f6f7eb;
  border-radius: 2rem;
  font-weight: bold;
  font-style: normal;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
  display: inline-block;
}

#short-text {
  margin-bottom: 12dvh;
  font-family: "Montserrat";
  font-size: 0.8rem;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid #f6f7eb;

  margin-top: 7%;

  animation: arrowJump 1s infinite alternate;
  cursor: pointer;
}

@keyframes arrowJump {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(2dvh);
  }
}
/* image och text section */

#page-about-text {
  margin-top: 5dvh;
  font-size: 2rem;
  text-align: center;
  font-weight: normal;
}

#person-container-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.person-container {
  height: auto;
  width: 80%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;

  margin: 5dvh 0 0 0;
  padding: 2rem;

  border-radius: 2rem;
  box-shadow: 0px 0px 152px 3px rgba(73, 73, 73, 0.49);
}

.profile-picture {
  height: auto;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(40%);
}

.info-container {
  height: 30%;
  width: 100%;

  display: flex;
  flex-direction: column;
  row-gap: 2%;
}

.info-container h3 {
  font-size: 2rem;
}

.info-container p {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 4%;
}

.info-container a {
  color: black;
  word-wrap: break-word;
}

/* text del */
#justification-section {
  margin-top: 15dvh;
  width: 90%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 3dvh;
}

#justification-section h2 {
  font-size: 2rem;
  font-weight: normal;
  text-align: center;
}

#justification-section p {
  font-family: "Montserrat";
}

#justification-section picture {
  width: 90%;
}

#justification-section picture * {
  width: 100%;
}

@media only screen and (min-width: 600px) {
  /* Här skriver du design för tablet */

  #learn-more-button {
    font-size: 1.7rem;
    width: 45dvw;
  }

  #short-text {
    font-size: 1.35rem;
  }

  /* img och text section */

  #page-about-text,
  #justification-section h2 {
    font-size: 3rem;
  }

  .person-container {
    width: 90%;
    flex-direction: row;
  }

  .info-container {
    width: 40%;
    height: 100%;
    justify-content: center;
  }

  .info-container h3 {
    font-size: 2.5rem;
  }

  .info-container p {
    font-size: 1.2rem;
  }

  .info-container a {
    font-size: 0.77rem;
  }
}

@media only screen and (min-width: 769px) {
  /* Här skriver du design för desktop */

  #wrapper {
    margin: 0;
  }

  #learn-more-button {
    font-size: 2rem;
  }

  #short-text {
    font-size: 1.6rem;
  }

  /* img och text section */
  #page-about-text,
  #justification-section h2 {
    font-size: 3.5rem;
  }

  #page-about-text {
    margin-top: 20dvh;
  }

  #person-container-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }

  .person-container {
    height: 70dvh;
    width: 90%;

    flex-direction: column;
  }

  .info-container {
    height: 40%;
    width: 100%;
  }

  .info-container h3 {
    font-size: 2.5rem;
  }
}

@media only screen and (min-width: 1300px) {
  #page-about-text {
    font-size: 4rem;
  }

  .person-container {
    height: 40dvh;
    width: 90%;

    flex-direction: row;
  }

  .info-container {
    height: 100%;
    width: 40%;
  }

  .info-container h3 {
    font-size: 2.5rem;
  }

  .info-container a {
    font-size: 0.9rem;
  }

  /* text del */
  #justification-section {
    display: grid;
    grid-template-areas: "h2 h2" "img text1" "img .";
    row-gap: 0;
  }

  #justification-section h2 {
    grid-area: h2;
    margin-bottom: 5dvh;
  }

  #justification-section picture {
    grid-area: img;
  }

  #text1 {
    grid-area: text1;
  }

  #text2 {
    grid-area: text2;
  }
}

@media (hover: hover) {
  /* Alla enheter som har hover */
  #learn-more-button:hover {
    background-color: #ff9b43;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
}
