body {
  height: 100%;
  color: #000;
  overflow-x: hidden;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}

#home p {
  font-size: 1.3em;
}

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50em;
}

.fade-in-left {
  animation: fadeInLeft 2s forwards;
}

.fade-in-right {
  animation: fadeInRight 2s forwards; /* Animation anwenden */
}

.pulse {
  animation: pulse 4s infinite; /* Animation anwenden */
}

#logo {
  position: relative;
  max-width: 30em;
  height: auto;
  user-select: none;
}

#text-content-home {
  position: relative;
  margin-top: 2em;
  padding: 0 1em 0 1em;
  max-width: 45em;
  color: white;
  user-select: none;
  text-align: left;
}

#text-content-home h2 {
  color: #fe8e3c;
}

#video-container {
  z-index: -1;
  position: relative;
  width: 100%;
  height: 100%; /* Füllt die gesamte Höhe des Viewports */
  overflow: hidden;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#bg-torn-paper-bottom {
  position: absolute;
  z-index: 20;
  width: 100%;
  height: auto;
  bottom: -1px;
  object-fit: cover;
}

#bg-torn-paper-top {
  position: absolute;
  top: -1px;
  z-index: 20;
  width: 100%;
  height: auto;
  object-fit: cover;
}

#short-description {
  position: absolute;
  left: 0;
  top: 2em;
  background: #1a1a1a;
  padding: 10px 20px 10px 15px;
  border-radius: 0 20px 20px 0;
  color: white;
  user-select: none;
}

#overlay {
  position: absolute;
  display: flex;
  justify-content: center;
  gap: 3%;
  width: 100%;
  align-items: center;
  background: transparent;
}

h1 {
  margin: 0;
  font-family: "Edo Sz", sans-serif;
  font-size: 6em;
  font-weight: normal;
}

h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 2em;
}

h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 1.4em;
}

p,
ul {
  margin-bottom: 3em;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 1.1em;
}

.button {
  position: relative;
  display: inline-block;
  color: white;
  width: 12em;
  padding: 1em 1em 1em 1em;
  text-decoration: none;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.2em;
  background-color: #fe8e3c;
  border-radius: 2em;
  animation: pulse 4s infinite; /* Animation anwenden */
}

.button2 {
  position: relative;
  display: inline-block;
  color: white;
  width: 12em;
  padding: 0.6em;
  text-decoration: none;
  text-align: center;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.2em;
  background-color: #fe8e3c;
  border-radius: 2em;
}

.button:hover,
.button2:hover {
  transform: scale(1.1);
}

#tags {
  position: relative;
  z-index: 10;
  width: 100%;
  color: #34585f;
}
#tags h2 {
}

#tag-wrapper {
  height: 9.1em;
}

#scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  white-space: nowrap;

  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    white 20%,
    white 80%,
    transparent
  );
}

#tag-container-1,
#tag-container-2 {
  width: 2200px;
  background-color: white;
  z-index: 10;
  object-fit: contain;
  overflow: visible;
  position: absolute;
  white-space: nowrap;
  display: flex;
  justify-content: space-around;
}

#tag-container-1 {
  animation: scroll-horizontal 100s linear infinite;
  animation-delay: -50s;
}

#tag-container-2 {
  animation: scroll-horizontal 100s linear infinite;
  left: 100%;
  animation-delay: 0s;
}

@keyframes scroll-horizontal {
  0% {
    stransform: translateX(100%);
    left: 2200px;
  }
  100% {
    stransform: translateX(-100%);
    left: -2200px;
  }
}

.tag {
  margin: 0px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tag img {
  position: relative;
  width: 110px;
  user-select: none;
}

.tag p {
  color: #fe8e3c;
  margin: 0;
  margin-top: 14px;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1em;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
}

#bg-tag-top,
#bg-tag-bottom {
  z-index: 2;
  width: 100%;
  height: 100%;
  margin-bottom: 0em;
  object-fit: cover;
}

#bg-tag-bottom {
  background-color: #34585f;
}

#why {
  position: relative;
  color: white;
  background-color: #34585f;
  padding: 6vw 0;
}

.container-flex {
  display: flex;
  padding: 0 15vw;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5vw;
  justify-content: space-around;
  align-items: center;
  height: auto;
  z-index: 1;
}

.container2 {
  padding: 0 15vw;
}

.content-text {
  flex: 1 1 28em;
}

#trailer-container {
  position: relative;
  flex: 1 1 28em;
  width: 80vw; /* Width is 80% of the viewport width */
  max-width: 28em; /* Max width to ensure it doesn't grow too large */
  height: 70vw; /* Height is 80% of the viewport height */
  max-height: 24em; /* Max height to ensure it doesn't grow too large */
  margin: 2em;
  background: url(/assets/bg3.png) no-repeat center center;
  background-size: contain;
  transform: rotate(
    15deg
  ); /* Fixed the property name from 'rotate' to 'transform' */
}

#trailer {
  width: calc(100% - 5em);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  height: calc((100% - 7em) * (3 / 4));
}

#game {
  margin: 4em 0;
  color: black;
}

#game h2 {
  color: #34585f;
}

.image_agent {
  max-width: 25em;
  flex: 1 1 28em;
}

#items {
  margin: 4em 0;
  margin-bottom: 5em;
}

#items h2 {
  color: #34585f;
}

#items-space {
  flex: 1 1 28em;
}

.flip-card {
  background-color: transparent;
  width: 160px;
  height: 180px;
  perspective: 1000px; /* Perspektive für den 3D-Effekt */
  margin: 0, 50px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg); /* Drehen um die Y-Achse */
}

/* Vorderseite der Karte */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: black;
  border-radius: 30px;
  padding: 0px;
  text-align: center;
  font-size: 0.8em;
}

.flip-card-front p,
.flip-card-back p {
  margin: 0;
  padding: 10px;
}

#item-cards {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  gap: 10px; /* Abstand zwischen den Grid-Elementen */
}

.item_image {
  width: 80px;
  filter: invert(28%) sepia(42%) saturate(410%) hue-rotate(142deg)
    brightness(97%) contrast(88%);
}

.flip-card-front {
  background-color: #e8e8e8;
}

.flip-card-back {
  background-color: #e8e8e8;
  transform: rotateY(180deg); /* Rückseite umdrehen */
}

.slider-container {
  display: block;
  align-items: center;
  padding: 0 30px;
  position: relative;
  overflow: hidden;
}

.card-slider {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  overflow: hidden;
  gap: 0;
}

.nav-button {
  width: 50px;
  height: 50px;
  position: absolute;
  outline: none;
  top: 40%;
  background-color: transparent;
  color: #fff;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent; /* Safari, Chrome */
}

.nav-button:hover {
  width: 53px;
  height: 53px;
}

.prev {
  left: 0;
  transform: scaleX(-1);
  background-image: url(/assets/button1.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.next {
  right: 0;
  background-image: url(/assets/button1.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.next:active {
  transform: scale(0.9);
}
.prev:active {
  transform: scale(-0.9);
}

@media only screen and (max-width: 1300px) {
  #logo {
    display: none;
  }
  #text-content-home {
    text-align: center;
  }

  #trailer-container {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  #tag-container-1,
  #tag-container-2 {
    width: 1500px;
  }
  .container-flex {
    padding: 0 8vw;
  }

  .content-text ul {
    padding-left: 1.5em;
  }

  @keyframes scroll-horizontal {
    0% {
      stransform: translateX(100%);
      left: 1500px;
    }
    100% {
      stransform: translateX(-100%);
      left: -1500px;
    }
  }

  #trailer {
    width: calc(80%);
    height: calc((80% - 5em) * (3 / 4));
  }

  #text-content-home h1 {
    font-size: 3em;
  }

  #text-content-home h2 {
    font-size: 1.2em;
  }

  #text-content-home p,
  #container2 p {
    font-size: 1em;
  }

  .tag img {
    width: 80px;
  }
  .tag p {
    font-size: 0.9em;
  }

  #container2 h2 {
    font-size: 1.2em;
    margin-top: -2em;
  }

  #container2 ul {
    padding-left: 1em;
  }
  .flip-card {
    width: 120px;
    height: 140px;
    font-size: 15px;
    perspective: 1000px; /* Perspektive für den 3D-Effekt */
    margin: 0, 50px;
  }
  .item_image {
    width: 60px;
  }

  .nav-button {
    width: 40px;
    height: 40px;
  }
  .nav-button:hover {
    width: 40px;
    height: 40px;
  }
}

@font-face {
  font-family: "edo";
  src: url("fonts/edosz.ttf");
}

body {
  margin: 0;
  background-color: #ffffff;
}

nav {
  position: absolute;
  width: 100%;
  z-index: 10;
  display: flex;
  height: 4em;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  color: white;
}

nav div {
  display: flex;
  align-items: center;
}

#instagram {
  width: 2em;
  height: auto;
  margin: 0 1em;
  filter: invert(100%) sepia(66%) saturate(13%) hue-rotate(244deg)
    brightness(103%) contrast(100%);
}

#instagram:hover {
  filter: brightness(0) saturate(100%) invert(71%) sepia(26%) saturate(3978%)
    hue-rotate(332deg) brightness(101%) contrast(99%);
}

nav img {
  width: auto;
  height: 3em;
}

nav ul {
  display: flex;
  margin: auto;
}

nav li {
  list-style: none;
  margin: 0.5em;
  padding: 0;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-family: sans-serif;
  font-weight: bold;
  font-size: 1.2em;
}

.nav-link:hover {
  color: #fe8e3c;
}

.nav-link:hover::before {
  transform: scaleX(1);
}

footer {
  position: relative;
  height: auto;
  background-color: #eeeeeeff;
  margin: 0;
  align-self: self-end;
  font-size: 0.8em;
}

footer ul {
  min-height: 6em;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

footer li {
  list-style: none;
  margin: 1em;
  padding: 0;
}

footer p {
  margin: 0;
  color: black;
  font-family: sans-serif;
  font-size: 1em;
}

footer a {
  color: black;
  text-decoration: none;
  font-family: sans-serif;
}

footer a:hover {
  text-decoration: underline;
}

#burger-menu,
#burger-menu-btn {
  display: none;
}

/* MOBILE VERSION*/

@media only screen and (max-width: 600px) {
  nav ul {
    display: none;
  }

  #burger-menu-btn {
    display: block;
    width: 2em;
    height: 2em;
    margin: 0 1em;
    background-image: url(/assets/icon/menu.png), url(/assets/icon/close.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center, center left 2em;
    filter: invert(100%) sepia(28%) saturate(0%) hue-rotate(171deg)
      brightness(113%) contrast(101%);
  }

  #burger-menu {
    display: none;
    position: fixed;
    margin-top: 4em;
    width: 100%;
    height: auto;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.925);
  }

  #burger-menu ul {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 0;
  }

  #burger-menu ul li {
    height: 100%;
    flex-basis: 100%;
    margin: 0;
  }

  #burger-menu ul li:last-child {
    flex-basis: 100%;
  }

  #burger-menu ul li a {
    display: block;
    height: 100%;
    padding: 1em 0em;
    align-content: center;
    flex-basis: 100%;
    text-align: center;
    color: #34585f;
    text-decoration: none;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-size: 1.2em;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    border-radius: 0.6em;
  }

  #burger-menu ul li:first-child a {
    padding-bottom: 0.5em;
  }
  #burger-menu ul li:last-child a {
    padding-top: 0.5em;
  }

  .textContent {
    padding: 1.5em;
  }

  #tags h2 {
  }

  h2 {
    font-size: 1.5em;
  }

  h3 {
    font-size: 1.1em;
  }

  p,
  ul {
    font-size: 1em;
  }

  #tag-container-1 {
    animation: scroll-horizontal 70s linear infinite;
    animation-delay: -35s;
  }

  #tag-container-2 {
    animation: scroll-horizontal 70s linear infinite;
    left: 100%;
    animation-delay: 0s;
  }
}

@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08); /* Vergrößert das Bild um 5% */
  }
}

.rotate-1 {
  transform: rotate(4deg); /* Beispielrotation */
}

.rotate-2 {
  transform: rotate(-6deg); /* Beispielrotation */
}

.rotate-3 {
  transform: rotate(1deg); /* Beispielrotation */
}

/* Weitere Klassen für mehr Bilder */
.rotate-4 {
  transform: rotate(-2deg);
}

.rotate-5 {
  transform: rotate(5deg);
}

@keyframes slide-left {
  0% {
    transform: translateX(0); /* Startposition */
  }
  50% {
    transform: translateX(
      -100%
    ); /* Halbzeitpunkt (links außerhalb des Containers) */
  }
  100% {
    transform: translateX(0); /* Endposition (zurück zur Startposition) */
  }
}

#screenshots {
  padding-bottom: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #34585f;
  background: #ffffff;
}

/* Wrapper & Navigation Buttons */
.wrapper {
  display: flex;
  max-width: 1456px;
  width: 100%;
  position: relative;
  overflow: hidden;
  align-items: center;
}
.wrapper i {
  position: absolute;
  top: 50%;
  height: 44px;
  width: 44px;
  background: #fe8e3c;
  color: white;
  cursor: pointer;
  font-size: 1.15rem;
  text-align: center;
  line-height: 44px;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: transform 0.1s linear;
  z-index: 10;
}
.wrapper i:active {
  transform: translateY(-50%) scale(0.9);
}
.wrapper i:first-child {
  left: 5px;
}
.wrapper i:last-child {
  right: 5px;
}

/* Carousel (Draggable & Responsive) */
.carousel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  white-space: nowrap;
  cursor: pointer;
  padding-bottom: 10px;
  padding: 20px;
}
.carousel img,
.video-container {
  flex: 0 0 auto;
  height: 400px;
  max-width: 100%;
  object-fit: cover;
  user-select: none;
  border-radius: 15px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
  user-select: none;
}

/* YouTube Video im 16:9 Format */
.video-container {
  width: calc(400px * 16 / 9);
  height: 400px;
  min-width: 350px;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Leichter Schatten */
}
.video-container iframe {
  width: 100%;
  height: 100%;
  border-radius: 15px;
}

/* Fullscreen Mode */
.fullscreen-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
}
.fullscreen-prev,
.fullscreen-next,
.close-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
}
.fullscreen-prev {
  left: 10px;
}
.fullscreen-next {
  right: 10px;
}
.close-btn {
  top: 25px;
  right: 20px;
  font-size: 2.5rem;
}

/* Responsive Anpassungen */
@media screen and (max-width: 900px) {
  .carousel {
    gap: 10px;
  }
  .carousel img,
  .video-container {
    height: 300px;
    width: auto;
  }
  .video-container {
    width: calc(300px * 16 / 9);
  }

  footer ul {
    flex-direction: column;
    padding: 0;
    padding-bottom: 20px;
    padding-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  #screenshots {
    padding: 3em 1em;
  }
  .wrapper i {
    display: none;
    height: 36px;
    width: 36px;
    font-size: 1rem;
  }
  .carousel {
    gap: 5px;
  }

  .carousel img,
  .video-container {
    height: 250px;
    width: auto;
  }
  .video-container {
    width: calc(250px * 16 / 9);
  }

  .center-div {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media screen and (max-width: 400px) {
  .carousel img,
  .video-container {
    height: 200px;
    width: auto;
  }
  .video-container {
    width: calc(200px * 16 / 9);
  }
}

@media screen and (min-width: 600px) {
  .carousel::-webkit-scrollbar {
    display: none;
  }

  .carousel img:hover,
  .carousel div:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2);
  }

  .wrapper i:hover {
    transform: translateY(-50%) scale(1.1);
  }
}
