@font-face {
  font-family: Montserrat;
  src: url("assets/Montserrat-VariableFont_wght.ttf");
  font-weight: medium;
}

@font-face {
  font-family: "Verdana";
  src: url("assets/webfonts/331C2F_0_0.eot");
  src: url("assets/webfonts/331C2F_0_0.eot?#iefix") format("embedded-opentype"),
    url("assets/webfonts/331C2F_0_0.woff2") format("woff2"),
    url("assets/webfonts/331C2F_0_0.woff") format("woff"),
    url("assets/webfonts/331C2F_0_0.ttf") format("truetype");
}

@font-face {
  font-family: "Verdana-Bold";
  src: url("assets/webfonts/331C2F_1_0.eot");
  src: url("assets/webfonts/331C2F_1_0.eot?#iefix") format("embedded-opentype"),
    url("assets/webfonts/331C2F_1_0.woff2") format("woff2"),
    url("assets/webfonts/331C2F_1_0.woff") format("woff"),
    url("assets/webfonts/331C2F_1_0.ttf") format("truetype");
}

/* This keeps child nodes hidden while the element loads */
:not(:defined) > * {
  display: none;
}

body {
  margin: 0px;
  padding: 0px;
  background-color: #008e6f;
  font-family: "Verdana", sans-serif;
  color: white;
}

.container {
  vertical-align: middle;
  text-align: center;
  position: absolute;
  inset: 0px;
  padding: 8px;
  display: flex;
  flex-direction: column;
}

.model-viewer-container {
  height: 70%;
  margin-top: 80px;
  flex: 1 1 0%;
}

.logo {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.logo > img {
  height: 60px;
  width: auto;
}

model-viewer {
  overflow-x: hidden;
  height: 100%;
  width: auto;
  margin: auto;
}

#ar-button {
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #e3007b;
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 0px 16px 0px 16px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color: white;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
}

#ar-button:active {
  background-color: black;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }
  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }
  to {
    transform: translateX(-100px);
  }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  top: 30px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

model-viewer > #ar-failure {
  position: absolute;
  left: 50%;
  /* transform: translateX(-50%); */
  top: 30px;
  display: none;
}

model-viewer[ar-tracking="not-tracking"] > #ar-failure {
  display: block;
}

.hide {
  display: none;
}

#request-press-play {
  position: absolute;
  width: 40%;
  height: 40px;
  margin: 0 auto 0 auto;
  top: 20%;
  left: 0;
  right: 0;
  z-index: 1000;
}

#request-press-play button {
  padding: 20px;
  margin: 5px;
  border-radius: 0px;
  font-size: 20px;
  width: 100%;
}

.vertical-center {
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.loading-spinner {
  position: absolute;
  inset: 0px;
}

.loader {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
  margin: 15px auto;
  position: relative;
  background: #fff;
  box-shadow: -24px 0 #fff, 24px 0 #fff;
  box-sizing: border-box;
  animation: shadowPulse 2s linear infinite;
  margin: 0 auto;
}

@keyframes shadowPulse {
  33% {
    background: #fff;
    box-shadow: -24px 0 #e3007b, 24px 0 #fff;
  }
  66% {
    background: #e3007b;
    box-shadow: -24px 0 #fff, 24px 0 #fff;
  }
  100% {
    background: #fff;
    box-shadow: -24px 0 #fff, 24px 0 #e3007b;
  }
}
