@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --font-display: "Cormorant Garamond", serif;
  --font-sans: "Manrope", sans-serif;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

img {
  cursor: pointer;
}

#viewer {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scene-indicator {
  position: absolute;
  top: 1.5rem;
  left: 50%;
  z-index: 10;
  min-width: min(16rem, 45vw);
  padding: 0.6rem 1rem;
  color: #fff;
  text-align: center;
  background: rgba(7, 19, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.4rem;
  transform: translateX(-50%);
  pointer-events: none;
}

#scene-name,
.tour-status {
  margin: 0;
  font-family: var(--font-sans);
}

#scene-name {
  font-size: 1rem;
  font-weight: 700;
}

.tour-status {
  margin-top: 0.35rem;
  color: #d9f3e8;
  font-size: 0.8rem;
  line-height: 1.35;
}

/* #viewer canvas {
  position: relative;
  z-index: 0;
} */

#landing-page {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #f7f4ec;
  background: rgba(7, 13, 20, 0.5);
  transition:
    opacity 700ms ease,
    visibility 700ms ease;
}

#landing-page::before {
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -2;
  background: url("./assets/021.webp") center / cover no-repeat;
  filter: blur(10px) saturate(0.8);
  transform: scale(1.06);
}

#landing-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    rgba(4, 16, 28, 0.82),
    rgba(4, 16, 28, 0.28)
  );
}

.landing-content {
  width: min(90vw, 680px);
  padding: 3rem;
  text-align: center;
  animation: landing-arrival 900ms ease both;
}

.landing-kicker {
  margin: 0 0 1rem;
  color: #a8d8dc;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-family: var(--font-sans);
}

.landing-content h1 {
  max-width: 620px;
  margin: 0 auto;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
  font-family: var(--font-display);
}

.landing-copy {
  max-width: 430px;
  margin: 1.5rem auto 2.25rem;
  color: rgba(247, 244, 236, 0.82);
  font-size: 1.1rem;
  line-height: 1.6;
  font-family: var(--font-display);
}

#start-walkthrough {
  padding: 0.95rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #07131c;
  background: #d9f3e8;
  font: 700 1rem/1.2 var(--font-sans);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.about h1 {
  font-family: var(--font-sans);
}
.about p {
  font-family: var(--font-sans);
}

#start-walkthrough:hover,
#start-walkthrough:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
}

#landing-page.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes landing-arrival {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.grid_menu_cover {
  position: absolute;
  width: 70vw;
  background-color: rgba(61, 139, 152, 0.6);
}

.grid_font {
  letter-spacing: 0.7px;
  font-family: var(--font-sans);
}

.grid_menu {
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-content: center;
  height: 75vh;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

.cancle_btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 10;
}

.video_item {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.video_item.is-current {
  background: rgba(217, 243, 232, 0.22);
  outline: 2px solid #d9f3e8;
  outline-offset: -2px;
}

.video_item.is-current h3::after {
  content: "Current scene";
  display: block;
  margin-top: 0.25rem;
  color: #d9f3e8;
  font-size: 0.7rem;
  font-weight: 700;
}

.video_item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: #d8e5e6;
}

.video_item img.is-unavailable {
  display: grid;
  place-items: center;
  color: #31545a;
  font: 600 0.8rem/1.2 var(--font-sans);
}

.video_item video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
}

.video_item h3 {
  text-align: center;
  color: #fff;
}

.grid_video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #000;
}

.grid_menu::-webkit-scrollbar {
  width: 10px;
}

.grid_menu::-webkit-scrollbar-track {
  background: rgba(5, 15, 21, 0.35);
}

.grid_menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 15, 21, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.grid_menu {
  scrollbar-color: rgba(255, 255, 255, 0.8) rgba(5, 15, 21, 0.35);
  scrollbar-width: thin;
}

.audio {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.audio span {
  font-size: 4rem;
  position: absolute;
  transform: rotateX(50deg);
  color: red;
  opacity: 0.6;
}

.video_player {
  display: none;
  position: absolute;
  width: min(70vw, 1000px);
  height: min(80vh, 720px);
  padding: 3.5rem 1.5rem 1.5rem;
  box-sizing: border-box;
  background-color: rgba(61, 139, 152, 0.8);
  border-radius: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 0.75rem;
}

.video_player {
  z-index: 200;
}

.text-center {
  text-align: center;
}

.video-status {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0.25rem;
  transform: translateX(-50%);
  font: 600 0.9rem/1.3 var(--font-sans);
}

.video-title {
  max-width: calc(100% - 3rem);
  color: #fff;
  font: 700 1.2rem/1.3 var(--font-sans);
  text-align: center;
  overflow-wrap: anywhere;
}

.video_player .cancle_btn {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.45rem;
  box-sizing: border-box;
  border-radius: 50%;
}

.info_video_player {
  position: absolute;
  width: 80vw;
  height: 80vh;
  background-color: rgba(256, 256, 256, 0.5);
  border-radius: 0.5rem;
}

.info_video {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play {
  position: absolute;
  background-color: rgba(256, 256, 256, 0.7);
  border-radius: 50%;
  padding: 1rem;
  width: 5rem;
  height: 5rem;
  font-size: 2rem;
  color: red;
  cursor: pointer;
}

.logo1,
.logo2 {
  position: absolute;
}

.logo2 {
  width: 8rem;
}

.logo1 {
  width: 20rem;
}

.logo1 {
  top: 3%;
  left: 1%;
}

.logo2 {
  bottom: 1%;
  right: 1%;
}

.powered {
  position: absolute;
  bottom: 1%;
  left: 1%;
  z-index: 10;
  max-width: calc(100% - 11rem);
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 0.25rem;
  color: #fff;
  background: rgba(5, 15, 21, 0.78);
  font: 500 0.8rem/1.4 var(--font-sans);
}

.info_model {
  position: absolute;
  width: 50vw;
  height: 50vh;
  background-color: rgba(61, 139, 152, 0.8);
  border-radius: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem;
}

.info_model h1 {
  font-weight: bolder;
  color: #fff;
  font-size: 2rem;
}

.info_model p {
  color: #fff;
  font-weight: bold;
  font-size: 1.3rem;
  letter-spacing: 0.4px;
}

#threeCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

#sceneUI {
  width: 100%;
  height: 100%;
  position: relative;

  .box {
    background-color: rgba(0, 0, 255, 0.5);
    /* 50% transparent */
  }
}

/* #sceneUI button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
} */

.menu {
  position: absolute;
  right: 3%;
  top: 3%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hambergur {
  width: 1.8rem;
  color: #ffff;
  margin-bottom: 1rem;
  background-color: #3d8b98;
  padding: 0.5rem;
  border-radius: 50%;
}

#VRButton {
  display: none;
}

.menu-img {
  width: 2rem;
  height: 2rem;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.icon-button:focus-visible,
.audio:focus-visible {
  outline: 2px solid #d9f3e8;
  outline-offset: 4px;
}

.icon-button img {
  width: 100%;
  height: 100%;
}

.hamburger {
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1rem;
  background-color: #3d8b98;
  border-radius: 50%;
}

.hamburger img {
  width: 1.8rem;
  height: 1.8rem;
}

.menu-drop {
  display: flex;
  flex-direction: column;
  justify-items: center;
  gap: 1rem;
}

.vr-status {
  width: 12rem;
  margin: 0.75rem 0 0;
  color: #fff;
  font: 600 0.75rem/1.3 var(--font-sans);
  text-align: center;
}

.menu-side {
  display: flex;
  gap: 2rem;
  position: absolute;
  bottom: 2%;
  background-color: rgba(255, 255, 255, 0.5);
  padding: 0.5rem 3rem;
  border-radius: 3rem;
  cursor: pointer;
}

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

.hide {
  display: none !important;
}

.ztop {
  z-index: 20;
}

.video_player.is-open,
.info_model.is-open,
.grid_menu_cover.is-open {
  display: flex;
}

.info_video_player.is-open {
  display: grid;
}

.video_player.is-open {
  z-index: 20;
}

#vr-control {
  cursor: pointer;
}

.scene-loader {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.scene-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.4rem;
  background: rgba(5, 15, 21, 0.78);
  font: 600 0.9rem/1.3 var(--font-sans);
}

.scene-loader-content p {
  margin: 0;
}

.scene-loader-spinner {
  display: block;
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scene-loader-spin 800ms linear infinite;
}

.scene-loader-content progress {
  width: min(12rem, 60vw);
  height: 0.4rem;
  accent-color: #a8d8dc;
}

.hotspot-tooltip {
  position: absolute;
  z-index: 12;
  max-width: min(16rem, 75vw);
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.3rem;
  color: #fff;
  background: rgba(5, 15, 21, 0.9);
  font: 600 0.8rem/1.3 var(--font-sans);
  pointer-events: none;
}

.hotspot-tooltip[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .grid_menu_cover {
    width: 92vw;
  }

  .grid_menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 3.25rem 1rem 1rem;
  }

  .video_player {
    width: 94vw;
    height: 76vh;
    padding: 3.25rem 0.75rem 0.75rem;
  }

  .video-title {
    font-size: 1rem;
  }

  .menu-side {
    gap: 1rem;
    padding: 0.5rem 1.25rem;
  }

  .powered {
    max-width: calc(100% - 9rem);
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
}

@keyframes scene-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
