/* @import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css"; */
body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: "Poppins", sans-serif;

  line-height: 24px;
  overscroll-behavior: none;
}

.gemImage {
  width: 100%;
  height: 100%;
}

.gemContainier {
  width: 20px;
  height: 20px;
}

button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
video {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 200px;
  /* padding: 10px; */
  /* border-radius: 10px; */
}
/* .ubutton {
				position: relative;
				background-color: #04aa6d;
				border: none;
				font-size: 28px;
				color: #ffffff;
				width: 200px;
				-webkit-transition-duration: 0.4s;
				transition-duration: 0.4s;
				text-decoration: none;
				overflow: hidden;
				cursor: pointer;
				z-index: 10;
			} */

/* .ubutton:after {
				content: "";
				background: #e2adf4;
				display: block;
				position: absolute;
				padding-top: 400%;
				padding-left: 400%;
				margin-left: 0px !important;
				margin-top: -200%;
				opacity: 0;
				border-radius: 50%;
				transition: all 0.8s;
			}

			.ubutton:active:after {
				padding: 0;
				margin: 0;
				opacity: 1;
				transition: 0s;
			} */
#sound {
  height: 50px;
  position: absolute;
  fill: #000;
}
#mute {
  display: none;
}

/* slide */
#slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Bubblegum Sans", cursive;
  height: 100vh;
}

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.slide img {
  width: 100%;
  height: auto;
}

.slide p {
  margin-top: 20px;
  text-align: center;
}

#prevBtn,
#nextBtn {
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
}

#btnContainer {
  display: flex;
  align-items: center;
}

#three {
  display: none;
  align-items: center;
  justify-content: center;
}
#instructions {
  display: none;
  width: 100%;
  height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  /* bottom: 100px; */

  pointer-events: none;
}
#instructions div {
  /* background-color: #76163b; */
  width: 100px;
  /* position: fixed; */
  display: none;
  /* top: 0px; */
}
#instructions p {
  position: fixed;
  bottom: 80px;
  color: rgba(255, 255, 255, 0.7);
}
#story {
  /* width: 90vw; */
  background: rgb(255, 183, 252);
  background: linear-gradient(180deg, rgba(255, 183, 252, 1) 0%, rgba(193, 212, 255, 1) 37%, rgba(197, 255, 202, 1) 58%, rgba(227, 229, 172, 1) 76%, rgba(255, 177, 177, 1) 95%);
  padding: 5vw;
  padding-bottom: 70px;
  padding-top: 70px;
  display: flex;
  flex-direction: column;
}
.storyImage {
  max-width: 600px;
  width: 90vw;
  border-radius: 1.2rem;
}

#story button,
#unicornSelection > button,
.buttonStyle {
  padding: 15px 45px;
  text-align: center;
  width: 70%;
  /* text-transform: uppercase; */
  transition: 0.5s;
  background-size: 200% auto;
  color: rgb(255, 226, 250);
  border: 0px;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;

  position: sticky;
  bottom: 10px;
  font-size: 24px;

  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  /* height: 100vh; */
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

p {
  font-size: 18px;
  margin-top: 0px;
  color: rgb(73, 0, 69);
  padding: 8px;
}

#crystals {
  background-color: rgba(192, 192, 192, 0.461);
  height: 30px;
  width: 100%;
  position: fixed;
  width: 80%;
  max-width: 300px;
  border-radius: 30px;
  left: 10%;
  bottom: 10px;
  justify-content: space-around;
  padding: 10px;
  display: none;
}
#crystals div {
  /* position: relative; */
  flex-direction: row-reverse;
  height: 30px;
  display: none;
}

#splashScreen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("gemUI/splashScreen.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px;
  box-sizing: border-box;
}

#endScreen {
  height: 100vh;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-image: url("gemUI/endScreen.jpg");
  background-size: cover;
  background-position: center;
  padding: 20px;
  box-sizing: border-box;
}

#splashScreen p {
  justify-self: flex-end;
  color: white;
  position: sticky;
}

#splashScreen img {
  width: 80%;
  margin: auto;
  animation: float 4s ease infinite;
}

#overlay {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
  position: fixed;
  display: flex;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  /* cursor: pointer; */
  justify-content: center;
  align-items: center;
  display: none;
}

#overlay video {
  border-radius: 1.2rem;
  pointer-events: none;
}

#overlay button {
  padding: 0px;
}

#gifContainer {
  display: grid;
  grid-template-columns: auto auto;
}

#unicornSelection {
  height: 100vh;
  display: none;
  flex-direction: column;
  padding: 5vh;
  justify-content: center;
  align-items: center;
  background: linear-gradient(45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  /* background-color: rgb(49, 10, 27); */

  gap: 10px;
  /* transition: all 0.5s linear; */
}

#unicornSelection p {
  color: rgba(255, 255, 255, 0.7);
  animation: float 4s ease infinite;
}

@keyframes swooshText {
  0% {
  }
  50% {
    scale: 1.3;
    display: none;
  }
  80% {
    display: block;
  }

  100% {
    scale: 1;
  }
}
#unicornSelection video {
  width: 100%;
  border-radius: 200px;
  box-shadow: 0px 0px 100px#23a6d5;
}

#unicornVideo {
}

#unicornIcons {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff58;
  padding: 20px;
  border-radius: 20px;
}

#unicornIcons img {
  width: 16%;
  border-radius: 100px;
  -webkit-transition: all 0.2s linear;
  -moz-transition: all 0.2s linear;
  -o-transition: all 0.2s linear;
  transition: all 0.2s linear;
}

#unicornSelection button {
  /* position: fixed;
	bottom: 20px; */
  /* margin: auto; */
  width: auto;
  align-self: flex-end;
}

#unicornSelection h2 {
  font-size: 40px;
  color: #d0ec90;
  text-transform: uppercase;
  transition: all 400ms linear;
}

.borderGlow {
  box-shadow: 0 0 10px #b6ffa2;
  scale: 1.2;
}

/* ── CROSS-PLATFORM LAYOUT ──────────────────────────────────────────────────
   Handhelds (coarse pointer) play portrait; PCs and laptops play landscape.
   src/index.ts stamps data-platform and data-orientation onto <html>.

   The 2D screens were authored as a narrow phone column, so on a wide desktop
   window they are centred and capped rather than stretched edge to edge. The
   3D canvas itself already fills the window at any aspect. */

/* Centre the story column instead of left-aligning it on a wide window. */
#story {
  align-items: center;
}

#story p {
  max-width: 600px;
}

html[data-platform="desktop"] .storyImage {
  width: min(90vw, 600px);
}

html[data-platform="desktop"] #story button,
html[data-platform="desktop"] #unicornSelection > button,
html[data-platform="desktop"] .buttonStyle {
  width: auto;
  min-width: 320px;
  max-width: 480px;
}

/* Character select: keep the portrait video card phone-shaped on a wide screen
   by sizing it from the viewport height rather than its full-width column. */
html[data-platform="desktop"] #unicornVideo,
html[data-platform="desktop"] #unicornIcons {
  width: min(42vh, 340px);
}

html[data-platform="desktop"] #unicornSelection video {
  width: 100%;
}

html[data-platform="desktop"] #splashScreen img {
  width: min(80vw, 640px);
}

html[data-platform="desktop"] #endScreen img {
  width: min(70vw, 560px) !important;
  margin: 0 auto !important;
}

/* The gem HUD is pinned to left:10% for a phone; centre it on a wide window. */
html[data-platform="desktop"] #crystals {
  left: 50%;
  transform: translateX(-50%);
}

/* ── PORTRAIT-ONLY HANDHELDS ────────────────────────────────────────────────
   The scene is framed for an upright phone, so a sideways handheld gets a
   rotate prompt instead of a letterboxed game. Desktops never see this. */
#rotateDevice {
  display: none;
}

html[data-platform="handheld"][data-orientation="landscape"] #rotateDevice {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  box-sizing: border-box;
  text-align: center;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

#rotateDevice img {
  width: min(50vw, 320px);
  animation: float 4s ease infinite;
}

#rotateDevice p {
  color: #fff;
  font-size: 20px;
  margin: 0;
}

/* ── BACK TO THE PORTFOLIO ──────────────────────────────────────────────────
   The game is one page on govindbmohan.com, so it owes the visitor a way
   back. It sits over the splash screen only — index.ts removes it as soon as
   the story starts, so nothing floats over the game itself or competes with
   the orbit controls for a corner of the screen. */
#exit {
  position: fixed;
  top: 16px;
  left: 18px;
  z-index: 200;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  transition: color 0.2s linear, background 0.2s linear;
}

#exit:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}
