@font-face {
  font-family: "Saeada";
  src: url(assets/fonts/LTSaeada-Black.df28054e79bbffe69ff9.otf) format("opentype");
}
* {
  font-family: Saeada, sans-serif;
  margin: 0;
  padding: 0;
}

html,
body {
  background-color: #072446;
  overflow: hidden;
}

#webgl {
  width: 100vw;
  height: 100vh;
  pointer-events: auto;
  /* Let touch gestures drive the 3D camera instead of scrolling/zooming the page */
  touch-action: none;
}

#webgl canvas {
  touch-action: none;
}

#cssArcadeMachine {
  pointer-events: none;
  cursor: pointer;
}

#cssLeftMonitor {
  pointer-events: none;
  cursor: pointer;
}

#cssRightMonitor {
  pointer-events: none;
  cursor: pointer;
}

#drawing-canvas {
  background-color: #ffffff;
  display: none;
}

.banner {
  display: flex;
  background-color: #0a3362;
  color: #eda72d;
  padding: 10px 0px;
  text-align: center;
  font-size: 1.5vw;
  position: absolute;
  top: -90px;
  height: 60px;
  left: 0;
  width: 100vw;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: top 0.5s ease-in-out;
}

.banner-link {
  text-align: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  justify-content: center;
  cursor: pointer;
  margin: 0 1vw;
  transition: 0.2s ease-in-out;
}

.banner-link:hover {
  font-size: 1.75vw;
}

.circular-button {
  position: absolute;
  display: block;
  bottom: 50px;
  left: 50px;
  width: 100px;
  opacity: 0;
  height: 100px;
  border-radius: 50%;
  background-color: #0a3362;
  text-align: center;
  line-height: 100px;
  text-decoration: none;
  visibility: hidden;
  font-size: 16px;
  cursor: pointer;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  background-image: url(assets/images/arrow-back.72178d92e1249f02d8d6.svg);
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
}

.show-back-button {
  visibility: visible;
  opacity: 1;
}

.circular-button:hover {
  background-size: 75%;
}

.button-row {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  width: 100vw;
  bottom: 100px;
  display: flex;
  justify-content: center;
  z-index: 1;
  transition: opacity 1s, visibility 1s;
}

.show-button-row {
  visibility: visible;
  opacity: 1;
}

.circular-button-whiteboard {
  display: inline-block;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  width: 100px;
  height: 100px;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  border: 5px solid #ffffff00;
  border-radius: 50%;
  background-color: #0a3362;
  margin: 0px 20px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.whiteboard-selected {
  border: 5px solid #eda72d;
}

.rubik-message {
  text-align: center;
  visibility: hidden;
  opacity: 0;
  color: #eda72d;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-size: 1.5rem;
  transition: opacity 1s ease, visibility 1s ease;
}

.show-rubik-message {
  visibility: visible;
  opacity: 1;
}

.audio-button {
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out,
    0.2s ease-in-out, background-image 1s ease-in-out;
  position: absolute;
  display: block;
  bottom: 50px;
  right: 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0a3362;
  text-align: center;
  line-height: 100px;
  text-decoration: none;
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 1s, visibility 1s, background-size 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 2;
  background-image: url(assets/images/audio-volume-high.e735f2ace4717bfa3ee5.svg);
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}

.audio-button:hover {
  opacity: 1;
}
.audio-button-muted {
  background-image: url(assets/images/audio-volume-muted.6df72fdeb4b9dbcd9aa8.svg);
}

.circular-button-whiteboard:hover {
  background-size: 80%;
}

.loadingScreen {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: solid 0.5em #eda72d;
  width: 20vmin;
  aspect-ratio: 1;
  text-align: center;
  color: #eda72d;
  align-items: center;
  justify-content: space-around;
  border-radius: 50%;
  background: #0a3362;
  --mask: linear-gradient(#0a3362, #0a3362) padding-box,
    conic-gradient(#0a3362 var(--p, 0%), transparent 0%) border-box;
  visibility: hidden;
  opacity: 0;
  -webkit-mask: var(--mask);
  mask: var(--mask);
  transform: translate(-50%, -50%);
  display: flex;
  text-align: center;
  font-size: 1.7em;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  box-shadow: 0 2px 1px rgba(0, 0, 0, 1);
  transition: visibility 1s ease, opacity 1s ease, color 1s ease,
    font-size 0.5s ease;
}

.loading-screen-hover:hover {
  font-size: 2.5em;
}

.finished-load {
  color: #0a3362 !important;
}

.show-loading-screen {
  visibility: visible;
  opacity: 1;
}
.show-audio-button {
  visibility: visible;
  opacity: 0.4;
}
.mobile-text {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 20px;
  width: 60%;
  color: #eda72d;
  z-index: 9999;
}

.mobile-text-frown {
  font-size: 10em;
}

.mobile-text-body {
  font-size: 1em;
}

#black-marker {
  background-image: url(assets/images/black-marker.abc2fcb068cb1f7a844c.svg);
}

#red-marker {
  background-image: url(assets/images/red-marker.4a77d52d704c34f5cd25.svg);
}

#green-marker {
  background-image: url(assets/images/green-marker.156a63c120a70efe35c1.svg);
}

#blue-marker {
  background-image: url(assets/images/blue-marker.84dba3c5c4fed9476b4e.svg);
}

#eraser {
  background-image: url(assets/images/eraser.6447ed6e62d6734ff5c0.svg);
}

/* Chess HUD */
.chess-ui {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.show-chess-ui {
  visibility: visible;
  opacity: 1;
}

.chess-status {
  color: #eda72d;
  font-size: 1.4rem;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.chess-buttons {
  display: flex;
  gap: 12px;
}

.chess-btn {
  font-family: Saeada, sans-serif;
  color: #ffffff;
  background-color: #0a3362;
  border: none;
  border-radius: 22px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.chess-btn:hover {
  background-color: #14488a;
}

.chess-btn:active {
  transform: translateY(1px);
}

/* ----------------------------------------------------------------------------
   Mobile / touch responsive layer
   Makes the top menu readable & tappable, scales the round buttons and the
   chess HUD up for fingers. The 3D itself uses touch via OrbitControls.
---------------------------------------------------------------------------- */
@media (max-width: 768px), (pointer: coarse) {
  .banner {
    font-size: 3.4vw;
    height: auto;
    padding: 8px 4px;
    flex-wrap: wrap;
    justify-content: space-around;
    row-gap: 2px;
  }

  .banner-link {
    margin: 2px 1.5vw;
    white-space: nowrap;
  }

  /* Bigger touch targets */
  .circular-button {
    width: 56px;
    height: 56px;
    background-size: 45%;
  }

  .audio-button {
    width: 52px;
    height: 52px;
    bottom: 24px;
    right: 24px;
  }

  .circular-button-whiteboard {
    width: 44px;
    height: 44px;
  }

  .rubik-message {
    font-size: 4.2vw;
    width: 90%;
    bottom: 12px;
  }

  /* Chess HUD scales up for fingers */
  .chess-status {
    font-size: 4.6vw;
  }

  .chess-btn {
    font-size: 3.8vw;
    padding: 10px 14px;
  }
}

/* Very narrow phones: shrink the menu font a touch more so it wraps cleanly */
@media (max-width: 420px) {
  .banner {
    font-size: 3.9vw;
  }
}


/*# sourceMappingURL=main.css.map*/