@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@400&display=swap");

body {
  padding: 0;
  margin: 0;
  max-width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 100vh;
  font-family: "Dosis", sans-serif;
  font-size: 20px;
  background-color: #000000;
  overflow-y: hidden;
  touch-action: pan-x pan-y;
  cursor: crosshair;
}
a{
  text-decoration: none;
  cursor: crosshair;
}


.blocker{
  display: none;
}

.canvas {
  position: absolute;
  z-index: 998 !important;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 100vh;
  display: grid;
  grid-template-rows: 0.1fr 0.8fr 0.1fr;
  width: 100vw;
  align-items: center;
  justify-items: center;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 0.1em;
  pointer-events: none;
}

#mycanvas {
  /* display: none; */
  position: absolute;
  z-index: 800 !important;
  background-color: rgb(172, 7, 7);
}


#cautionoverlaytextaft {
  display: none;
}

.instructions {
  max-width: 20vw;
  opacity: 0.8;
  display: none;
  transition-duration: 1s;
  justify-content: center;
  text-align: center;
}

.iconlink {
  color: white !important;
  text-decoration: none;
  display: inline-block;
  cursor: crosshair;
  width: 1.5em;
  height: 1.5em;
}

.iconlink:hover {
  opacity: 0.6;
  transition-duration: 0.5s;
}

.title {
  font-size: 1.5em;
  text-align: left;
  padding: 0.5em;
  transition-duration: 0.5s;
}

.smalltitle{
  /* margin-top: 0.5em;; */
  font-size: 0.5em;
}

.subtitle {
  text-align: right;
  font-size: 1em;
  padding: 1em;
  pointer-events: all;
  color: white !important;
}

.topbar {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr;
  text-align: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  /* padding-top:4em; */
  
}

.midbar {
  text-align: center;
}

.bottombar {
  overflow: hidden !important;
  text-align: center;
  transition-duration: 0.5s;
}

button {
  pointer-events: all;
  display: inline-block;
  cursor: crosshair;
  padding: 1em 4em;
  border: 0.3em solid #ffffff;
  margin: 0 0.2em 0.2em 0;
  box-sizing: border-box;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #ffffff;
  text-align: center;
  transition: all 0.15s;
  background-color: transparent;
  mix-blend-mode: exclusion;
  font-family: "Dosis", sans-serif;
  letter-spacing: 0.2em;
}
button:hover {
  color: #111111;
  border-color: #dddddd;
  background-color: #dddddd;
  transition-duration: 1s;
}
button:active {
  color: #bbbbbb;
  border-color: #bbbbbb;
}

#uibar {
  transition-duration: 0.5s;
}

/* ///////////////////////////// LOADER*/
#cautionoverlaytext {
  font-family: "Dosis", sans-serif;
  position: absolute;
  display: inline-block;
  font-size: 12px;
  color: #ffffff;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  /* overflow-y: hidden; */
}

#loading-logo {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.loader {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: 50px;
  height: 50px;
  filter: blur(15px);
}

.loader:before {
  content: "";
  position: relative;
  display: block;
  width: 300%;
  height: 300%;
  box-sizing: border-box;
  margin-left: -100%;
  margin-top: -100%;
  border-radius: 50%;
  background-color: #c7c7c7;
  -webkit-animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1)
    infinite;
  animation: pulse-ring 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.loader:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  width: 100%;
  height: 100%;
  background-color: #c7c7c7;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  -webkit-animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s
    infinite;
  animation: pulse-dot 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
}

@-webkit-keyframes pulse-ring {
  0% {
    -webkit-transform: scale(0.33);
    transform: scale(0.33);
  }
  80%,
  100% {
    opacity: 0;
  }
}

@keyframes pulse-ring {
  0% {
    -webkit-transform: scale(0.33);
    transform: scale(0.33);
  }
  80%,
  100% {
    opacity: 0;
  }
}

@-webkit-keyframes pulse-dot {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  50% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}

@keyframes pulse-dot {
  0% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
  50% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  100% {
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }
}

#loading-screen {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 100vh;
  background-color: #000000;
  opacity: 1;
  transition: 2s opacity;
  overflow-y: hidden !important;
}

#change-screen {
  position: fixed;
  z-index: 900;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  max-height: 100vh;
  background-color: #00000046;
  opacity: 1;
  transition-duration: 1;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: none;
}

.changeIcon {
  width: 10em;
  height: 10em;
  pointer-events: all;
  cursor: crosshair;
}

.closeChangeIcon {
  position: absolute;
  cursor: crosshair;
  top: 0;
  left: 50%;
  width: 10em;
  height: 10em;
  pointer-events: all;
  transform: translateX(-50%);
}

/* ///////////////////////////// */

@media (max-width: 600px) and (orientation: portrait) {
  .title {
    font-size: 1em;
  }

  .instructions {
    max-width: 50vw;
  }

  
.topbar {

  /* grid-template-columns: 0.8fr 0.2fr; */

}
  .subtitle {
    text-align: right !important;
    font-size: 1em;
    padding: 0em !important;
    pointer-events: all;
    color: white !important;
    display: flex;
    flex-direction: column-reverse;
    justify-content: end;
    align-items: flex-end;
  }
  #uibar {
    transition-duration: 0.5s;
  }

  .iconlink {
    padding: 0.5em 0.5em 0 0 !important;
    display: block !important;
  }

  .changeIcon {
    width: 5em;
    height: 5em;
  }

  .closeChangeIcon {
    width: 5em;
    height: 5em;
  }
}


@media (max-width: 800px) and (orientation: landscape) {

  .blocker{
    position: absolute;
    z-index: 2000;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: #000000;
    color: #ffffff;
    justify-content: center;
    align-items: center;
    
  }
}