:root {
  --char-height: 50vmin;
  --char-width: 30vmin;
  --char-posl: 36vmin;
  --char-post: 14vmin;
  --map-height: 3vmin;
  --map-width: 24vmin;
  --map-background-color: white;
  --map-font-size: 2.5vmin;
}

/* Reset / base */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  background: black;
  overflow: hidden;
  font-family: 'Times New Roman', Times, serif;
}

/* Container that holds canvas + UI overlays */
.flex-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

/* Fullscreen canvas */
/* Fullscreen canvas */
#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
  object-fit: contain;
  position: absolute;
  /* overlay system */
  top: 0;
  left: 0;
  z-index: 0;
  /* behind the UI */
}

/* UI overlay container */
.ui-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  /* above the canvas */
  pointer-events: none;
  /* disabled by default */
}

.ui-container .clickable {
  pointer-events: auto;
  /* clickable again */
}

/* Re-enable pointer events only on clickable UI elements */
.ui-container .clickable {
  pointer-events: auto;
  display: block;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

/* --- NAVIGATION BAR --- */
/* .nav {
  pointer-events: auto;
  background: rgba(144, 205, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(200, 230, 250, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.42);
  position: absolute;
  display: flex;
  height: 7vmin;
  width: 30vmin;
  left: 50%;
  transform: translateX(-50%);
  top: 89vmin;
  border-style: ridge;
  border-width: 2px;
  align-items: center;
  justify-content: center;
  gap: 2vmin;

} */
.nav {
  pointer-events: auto;
    border-radius: 10.2vmin 9.8vmin 10.2vmin 9.8vmin;
  background: rgba(119, 178, 255, 0.05);
  backdrop-filter: blur(4px);
  box-shadow: inset 2px 2px 1px 0 rgba(247, 248, 255, 0.3),
    inset -2px -2px 2px 1px rgba(223, 224, 238, 0.3), 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);;
  position: absolute;
  display: flex;
  height: 7vmin;
  width: 30vmin;
  left: 50%;
  transform: translateX(-50%);
  top: 89vmin;

  align-items: center;
  justify-content: center;
  /* center all buttons together */
  gap: 2vmin;
  /* space between them */
}
.back,
.home,
.sound,
.fx {
  cursor: pointer;

  background-size: cover;
  background-position: center;
  height: 5vmin;
  width: 5vmin;
}

.back {
  background-image: url('../assets/img/ui/back2.png');
}

.home {
  background-image: url('../assets/img/ui/home.png');
}

.sound {
  background-image: url('../assets/img/ui/audio2.png');
}

.fx {
  background-image: url('../assets/img/ui/info.webp');
}

.back,
.home,
.sound,
.fx {
  transition: transform .3s ease-in-out;

}

.back:hover,
.home:hover,
.sound:hover,
.fx:hover {
  /* transform: scale(1.1) ; */
  transform: translateY(-6px);
}

/* --- ROOM CLICKABLES (examples) --- */
.hoverbook,
.hovercd,
.toComputer,
.hovermouse {

  position: absolute;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.hoverbook {
  height: 12vmin;
  width: 17vmin;
  left: 160vmin;
  top: 55vmin;
  rotate: 2deg;
  transform: skew(0deg, 5deg);
  border-radius: 10px;
}

.hoverbook:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}

.hovercd {
  height: 15vmin;
  width: 23vmin;
  left: 37vmin;
  top: 49vmin;
  rotate: 3deg;
  transform: skew(1deg, 1deg);
  border-radius: 10px;
}

.hovercd:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}

.toComputer {
  height: 38vmin;
  width: 41vmin;
  left: 48vmin;
  top: 30vmin;
  rotate: 5deg;
}

.toComputer:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}

.hovermouse {
  height: 16vmin;
  width: 61vmin;
  left: 12vmin;
  top: 54vmin;
  rotate: 11deg;
  border-radius: 10px;
}

.hovermouse:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}

/* --- LEFT / RIGHT NAVIGATION --- */
.toLeft,
.toRight {
  position: absolute;
  display: flex;
  height: 100%;
  width: 4vmin;
  top: 0;
  background-color: grey;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
}

.toLeft {
  left: 0;
}

.toRight {
  right: 0;
}

/* --- PROGRAM WINDOWS --- */
.vidDiv,
.menuDiv,
.oracle,
.programDiv {
  position: absolute;
  display: flex;
  height: 31vmin;
  width: 38vmin;
  left: 30vmin;
  top: 3vmin;
  border: 1px solid rgba(25, 25, 14, 0.85);
  box-shadow: 2px 2px 52px 25px rgba(178, 191, 192, 0.75);
  transform: skew(-6deg, 8deg);
  rotate: -3deg;
  border-radius: 22px 7px 15px 22px;
}

/* Specific backgrounds */
.menuDiv {
  z-index: 2;
  background-image: url('../assets/img/ui/eightyOS.jpg');
  background-size: cover;
  background-position: center center;
}

.oracle {
  z-index: 5;
  background-image: url('../assets/img/ui/drss.jpg');
  background-size: cover;
  background-position: center center;
}

.room-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* ensure it's on top */
}

.transition-overlay img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.notebookToMain {
  height: 38vmin;
  width: 41vmin;
  left: 48vmin;
  top: 30vmin;
  rotate: 5deg;
}

.notebookToMain:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}

.driveToMain {
  height: 38vmin;
  width: 41vmin;
  left: 48vmin;
  top: 30vmin;
  rotate: 5deg;
}

.driveToMain:hover {
  box-shadow: 0 0 52px rgba(255, 255, 255, 0.75),
    inset 0 0 26px rgba(255, 255, 255, 0.25);
}