/* ________________ load fonts _________________ */
@font-face {
  font-family: "IBM-BOLD";
  src: url("fonts/IBMPlexSans-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "IBM-MEDIUM";
  src: url("fonts/IBMPlexSans-Medium.ttf") format("truetype");
}

@font-face {
  font-family: "IBM-REGULAR";
  src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "IBM-LIGHT";
  src: url("fonts/IBMPlexSans-Light.ttf") format("truetype");
}

/* ________________ styles for body, header and footer _________________ */

header {
  position: fixed;
  background: rgb(255, 250, 20);
  z-index: 10;
  height: 4.5vh;
  top: 0;
  left: 0;
}

.header-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding: 0.25rem;
}

.header-content > *:first-child {
  grid-column: 1;
  justify-self: start;
  align-items: start;
  margin-left: 1vw;
}

.header-content > *:nth-child(2) {
  grid-column: 2;
  justify-self: center;
  align-items: center;
}

.header-content > *:last-child {
  grid-column: 3;
  justify-self: end;
  align-items: end;
  margin-right: 1vw;
}

footer {
  position: fixed;
  background: rgb(255, 250, 20);
  width: 100%;
  z-index: 10;
  height: 8vh;
  bottom: 0;
  left: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  padding: 0.55rem;
}

.footer-content > *:first-child {
  grid-column: 1;
  justify-self: start;
  align-items: start;
  margin-left: 1vw;
}

.footer-content > *:nth-child(2) {
  grid-column: 2;
  justify-self: center;
  align-items: center;
}

.footer-content > *:last-child {
  grid-column: 3;
  justify-self: end;
  align-items: end;
  margin-right: 1vw;
}

body {
  font-family: IBM-REGULAR;
  background-color: white;
  overflow-y: scroll;
  overflow-x: hidden;
  margin: 40px;
  margin-bottom: 80px;
}

body.stop-scroll {
  overflow: hidden;
}

body::-webkit-scrollbar {
  display: none;
}

.overflow-hidden {
  overflow-y: hidden;
  height: 100%;
}

a {
  text-decoration: none;
}

/* ________________ styles for text _________________ */

.float {
  font-family: IBM-REGULAR;
  text-decoration: none;
  font-size: 1em;
  color: black;
  text-align: justify;
  hyphens: auto;
  max-width: 66ch;
  line-height: 1.3em;
}

.float-popup {
  font-family: IBM-REGULAR;
  text-decoration: none;
  font-size: 1em;
  color: black;
  text-align: justify;
  hyphens: auto;
  max-width: 66ch;
  line-height: 1.3em;
}

.float-bold {
  font-family: IBM-BOLD;
  text-decoration: none;
  font-size: 1em;
  color: black;
  text-align: justify;
  hyphens: auto;
  max-width: 66ch;
  line-height: 1.3em;
}

.link {
  font-family: IBM-BOLD;
  text-decoration: none;
  font-size: 1.3em;
  text-decoration: underline;
  color: black;
  background-color: rgb(255, 250, 20);
  letter-spacing: 0.5pt;
}

.button-small {
  font-family: IBM-BOLD;
  text-decoration: none;
  font-size: 1.3em;
  color: black;
  letter-spacing: 0.5pt;
  cursor: pointer;
  margin-top: 6vh;
}

.button-smaller {
  font-family: IBM-MEDIUM;
  text-decoration: none;
  font-size: 1.3em;
  color: black;
  letter-spacing: 0.5pt;
  cursor: pointer;
}

.title {
  text-align: center;
  justify-self: center;
  font-family: IBM-BOLD;
  text-decoration: none;
  font-size: 1.3em;
  color: black;
}

.title-left {
  text-align: left;
  font-family: IBM-BOLD;
  text-decoration: none;
  font-size: 1.3em;
  color: black;
}

/* ________________ pop-up window _________________ */

.popup-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.popup-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-content {
  background: rgb(255, 250, 20);
  padding: 1rem;
  max-width: 340px;
  text-align: left;
  position: relative;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

/* ________________ Aufklapptexte _________________ */

.read-more-container {
  position: relative;
  max-height: 11.2em;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.read-more-container.expanded {
  max-height: 1200px;
}

.read-more-toggle {
  cursor: pointer;
  display: inline-block;
  color: black;
  font-family: IBM-REGULAR;
  font-size: 1em;
}

/* ________________ styles for videos _________________ */

.aspect-cheat {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
}

.video-container {
  position: relative;
  display: inline-block;
}

.gray-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  pointer-events: none;
  z-index: 2;
}

.not-collected {
  color: rgb(255, 250, 20);
  font-size: 1rem;
  font-family: IBM-REGULAR;
  letter-spacing: 0.5pt;
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ________________ styles for ar-elements _________________ */

#scanning-overlay {
  border: 2px dashed rgb(255, 250, 20);
  opacity: 0.6;
  height: 300px;
  width: 200px;
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.scanline {
  width: 300px;
  border: 1.5px dashed rgb(255, 250, 20);
  animation: scan 4s linear infinite;
  position: absolute;
  top: 0;
}

@keyframes scan {
  0% {
    top: 0%;
  }
  50% {
    top: 100%;
  }
  100% {
    top: 0%;
  }
}

/* ________________ styles for desktop _________________ */

@media (min-width: 768px) {
  .delete {
    display: none !important;
  }

  .float,
  .read-more-toggle {
    margin-left: 25%;
  }

  .link {
    display: inline-block;
    text-align: center;
    width: 30%;
    margin-left: 35%;
  }

  .button-small {
    text-align: center;
  }

  .poster-video,
  .gray-overlay,
  .not-collected {
    width: 30%;
  }

  .gray-overlay {
    margin-left: 35%;
  }

  .popup-content {
    max-width: 600px;
  }

  /* .header-content > *:last-child {
    margin-right: 10vw;
  }

  .header-content > *:first-child {
    margin-left: 10vw;
  }

  .footer-content > *:first-child {
    margin-right: 10vw;
  }

  .footer-content > *:last-child {
    margin-left: 10vw;
  } */
}
