
@font-face {
  font-family: 'defaultFont';
  src: url('../../assets/fonts/Nunito-Bold.ttf');
  font-weight: bold;

  src: url('../../assets/fonts/Nunito-Regular.ttf');
  font-weight: normal;

  src: url('../../assets/fonts/Nunito-Light.ttf');
  font-weight: lighter;

  src: url('../../assets/fonts/Nunito-Black.ttf');
  font-weight: bolder;

  src: url('../../assets/fonts/Nunito-SemiBold.ttf');
  font-weight: semi-bold;
}


@font-face {
    font-family: 'NunitoRegular';
    src: url('../../assets/fonts/Nunito-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'NunitoBold';
    src: url('../../assets/fonts/Nunito-Bold.ttf') format('truetype');
    font-weight: bold;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  font-family: 'NunitoRegular', sans-serif;
  height: 100vh;
}

html {
  overflow-y: hidden; /* oder scroll */
  overflow: hidden;
}

canvas {
  touch-action: none; /* Deaktiviert standardmäßige Touch-Aktionen */
  user-select: none;  /* Verhindert, dass der Inhalt ausgewählt wird */
}

@media screen and (orientation:portrait) {
    #gameDiv {
        display: none;
    }
    #landscape-message {
        display: block;
    }
}

@media screen and (orientation:landscape) {
    #gameDiv {
        display: block;
    }
    #landscape-message {
        display: none;
    }
}

#threejsContainer{
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;

}

.center {
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  z-index: 1;
  font-family: 'defaultFont';
  font-size: 25px;
}

#consent {
  background-color:#d7e8e7;
  border-radius: 75px;
  width: 50vw;
  height: 50vh;
  display: none;
  justify-content: center;
  align-items: center;
  justify-items: center;
  text-align: center;
  @media (max-width: 1000px) {
    font-size: 11px;
  }
  @media (max-width: 500px) {
    font-size: 7px;
  }
}

.title {
  font-size: 50px;
  @media (max-width: 1000px) {
    font-size: 25px;
  }
  @media (max-width: 500px) {
    font-size: 15px;
  }
}

.text {
  font-weight: bolder;
  width: 70%;
}

.btn {
  width: 450px;
  height: 100px;
  background-color: transparent;
  font-size: 35px;
  font-weight: bolder;
  background-image: url('../../assets/img/UI/popup/TextBarGreen.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  transform: scale(0.7);
  border: none;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3%;

  @media (max-width: 1000px) {
    width: 225px;
    height: 50px;
    font-size: 15px;
  }

  @media (max-width: 500px) {
    width: 180px;
    height: 40px;
    font-size: 15px;
  }
}

.blurred {
  filter: blur(10px);
  -webkit-filter: blur(10px);
}

#bodyBG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #ffffff;
  z-index: 0; /* hinter dem Spielcanvas */
}

#qrscan {
  pointer-events: none;
}

#phaser-container{
  z-index:1;
}

.overlayDiv {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 10%;
  z-index: 1;
}

.sensor-value {
  font-size: 2em;
  margin: 10px;
  color: #ffffff;
}

.request-permission {
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
}
