@font-face {
  font-family: EYInterstate;
  src: url("./EYInterstate-Bold.ttf");
}

html, body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: EYInterstate, Arial, Helvetica, sans-serif;
  background: #181D29;
  width: 100%;
  height: 100%;
  max-width: 100vw;
}

.main_logo {
  position: absolute;
  top: 2rem;
  left: calc(50% - 15vh);
  width: 30vh;
  height: auto;
  z-index: 100;
}

.main_button-container{
  position: absolute;
  bottom: 0;
  height: 15%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_button-container-video {
  position: absolute;
  bottom: 0;
  height: 15%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main_button {
  background-color: #FFFFFF;
  color: #2C2C36;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 3rem 0rem;
  border-radius: 1px;
  transition: background-color 0.5s ease;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0px;
  z-index: 100000001;
}

.main_button_video {
  background-color: #e6e6e6;
  color: #2C2C36;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 3rem 0rem;
  border-radius: 1px;
  transition: background-color 0.5s ease;
  font-size: 1rem;
  font-weight: 700;
  z-index: 100000001;
}

.modal_button {
  background-color: #1A9AFA;
  color: #181D29;
  text-decoration: none;
  padding: 0.5rem 1rem;
  margin: 3rem 0rem;
  border-radius: 1px;
  transition: background-color 0.5s ease;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  z-index: 1050;
}

.modal_button:hover,
.main_button:hover,
.main_button_video:hover {
  color: #292930;
  background-color: #808080;
}

.webgl {
    position: fixed;
    top: 0;
    left: 0;
    outline: none;
}

.main_modal-container {
  z-index: 1000;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: none;
  color: white;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: fadeIn 5s;
  -webkit-animation: fadeIn 1s;
}

.modal_close-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: #2C2C36;
  background-color: #31A4FA;
  border: none;
  z-index: 1100;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal_container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  z-index: 1000;
  max-width: 100vw;
  justify-content: center;
  align-items: center;
}

.modal_container4 {
  position: relative;
  height: 65%;
  width: min-content;
  display: inline-block;
  z-index: 1000;
  max-width: 100vw;
}

.modal_container2 {
  position: relative;
  height: 75%;
  width: 45vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  background-color: #2C2C36;
  -webkit-touch-callout: none;
    -webkit-user-select: none;
     -khtml-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}

.moda_scale-fix {
  transform: translate(-18px, -10px) scale(1.6);
}

.modal_video {
  display: block;
  width: 60vw;
  height: 33.89vw;
  object-fit: contain;
  z-index: 1050;
}

.modal_video2{
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  z-index: 1050;
}


.modal_img-title-text {
  width: auto;
  height: 10%;
  object-fit: contain;
}

.modal_img-title-text3 {
  width: auto;
  height: 50%;
  object-fit: contain;
  margin-top: 1rem;
}

.modal_img-title-text-feedback {
  width: auto;
  height: 30%;
  object-fit: contain;
  margin-top: 1rem;
}

.modal_img-title-logo-container {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.modal_img-title-logo {
  width: 40%;
  height: auto;
  max-height: 7.9vh;
  margin-right: 30%;
  object-fit: contain;
}

.modal_speed-container {
  position: relative;
  width: 60%;
  margin-top: 1rem;
}

.modal_img-speed {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 1rem;
}

.modal_img-hand {
  position: absolute;
  display: block;
  width: 15%;
  top: 10%;
  left: 27%;
  animation: shake 1s ease-in-out infinite;
}

.modal_img-arrow {
  overflow: visible;
  position: absolute;
  height: 100%;
  width: auto;
  bottom: -10px;
  left: 45%;
  /* transition: transform 1.2s cubic-bezier(0.17, 0.67, 0.83, .67); */
  /* transition: transform 1.5s cubic-bezier(1, -0.44, 0.52, 1.35); */
  transform-origin: bottom center;
  transform-style: preserve-3D;
}

.modal_img-arrow2 {
  overflow: visible;
  position: absolute;
  height: 100%;
  width: auto;
  bottom: -20px;
  left: 45%;
  /* transition: transform 1.2s cubic-bezier(0.17, 0.67, 0.83, .67); */
  /* transition: transform 1.5s cubic-bezier(1, -0.44, 0.52, 1.35); */
  transform-origin: bottom center;
  transform-style: preserve-3D;
}

.modal_img-velocimeter {
  overflow: visible;
  position: absolute;
  height: 65%;
  width: 95%;
  bottom: 28%;
  left: 2%;
  z-index: -1;
}

.modal_img-pivot {
  overflow: visible;
  position: absolute;
  height: 18%;
  width: auto;
  bottom: 4%;
  left: 44%;
  z-index: -1;
}

.arrow-rotate-right {
}

.arrow-rotate-center {
  transform: rotate(0deg);
}

.arrow-rotate-left {
}

.modal_display-container {
  min-height: 30%;
  width: 70%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}

.modal_img-display01 {
  margin-top: 15%;
  width: 100%;
  height: auto;
  display: none;
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
}

.modal_img-display02 {
  margin-top: 15%;
  width: 100%;
  height: auto;
  display: none;
  animation: fadeIn 1s;
  -webkit-animation: fadeIn 1s;
}

.modal_true-arrow {
  fill: #919191;
  transition: fill 0.5s ease;
}

.modal_true-stroke {
  fill: #919191;
  transition: fill 0.5s ease;
}

.modal_false-cross {
  fill: #919191;
  transition: fill 0.5s ease;
}

.modal_false-stroke {
  fill: #919191;
  transition: fill 0.5s ease;
}

.modal_video-container {
  position: relative; 
  background-color: #000; 
  height: 100%; 
  width: 100%;
}

.modal_img-true {
  position: absolute;
  width: 15%;
  height: auto;
  bottom: -28%;
  left: -4%;
}

.modal_img-false {
  position: absolute;
  width: 15%;
  height: auto;
  bottom: -28%;
  right: -4%;
}

/* Animation */

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-5px);
  }
}
/* .pulse {
  fill: white;
  fill-opacity: 0;
  transform-origin: 50% 50%;
  animation-duration: 2s;
  animation-name: pulse;
  animation-iteration-count: infinite;
}

@keyframes pulse {
  from {
    stroke-width: 3px;
    stroke-opacity: 1;
    transform: scale(0.3);
  }
  to {
    stroke-width: 0;
    stroke-opacity: 0;
    transform: scale(2);
  }
} */

@keyframes fadeIn {
  0% {opacity:0;}
  100% {opacity:1;}
}

/* Loading */

.modal_loader-container {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lds-ring {
  display: inline-block;
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 999;
}
.lds-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 64px;
  height: 64px;
  margin: 8px;
  border: 8px solid #2d9ae5;
  border-radius: 50%;
  animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #2d9ae5 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes lds-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (min-width: 768px) {
  .modal_img-velocimeter {
    overflow: visible;
    position: absolute;
    height: 65%;
    width: 100%;
    bottom: 28%;
    left: 0%;
    z-index: -1;
  }

  .modal_video-container {
    height: fit-content; 
    width: fit-content;
  }
}

@media (max-width: 768px) and (orientation: landscape) { 
  .modal_video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1050;
  }

  .main_button-container-video {
    display: none;
  }
}

@media (max-width: 768px) and (orientation: portrait) { 
  .main_button-container-video{
    display: flex;
  }
}
