/* global selector (applies to everything */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Pixelify Sans", sans-serif;
}
/* Experience */
* {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#experience{
    position: fixed;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

#experience-canvas{
    width: 100%;
    height: 100%;
}
/* Utilities */
.hidden{
    display: none;   
}

#next-scene-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.next-scene-button {
    background: none;
    border: none;
    color: #faf2b6;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5)
}

.next-scene-button:hover {
    background: rgba(255, 255, 255, 0.1);
}



/* Loading Screen ------------------------------------------------------------------------------------------------------*/
.loadingScreen{
    position: absolute;
    flex-direction: column-reverse;
    z-index: 1000;
    width: 100%;
    height: 100vh;
    background-color: #ff5793;
    color: #faf2b6;
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Intro Modal Overlay */
#intro-modal {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  min-height: 100vh;

  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.3); /* dark overlay */
  backdrop-filter: blur(3px);    /* blurred scene background */

  perspective: 1000px; 
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Hide when not in use */
#intro-modal.hidden {
  display: none;
}

/* Animate shrink/vanish */
#intro-modal.shrink {
  transform: scale(6.2);
  opacity: 0;
}

/* Modal Content Container */
.modal-wrapper {
  background-color: #faf2b6;
  border: 16px solid #fff;
  border-radius: 14px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 10px 18px 16px rgba(0, 0, 0, 0.3);
  text-align: center;

  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.5),     /* deep outer shadow */
    inset 0 0 10px rgba(255, 255, 255, 0.5); /* inner glow */

  transform: rotateX(5deg) rotateY(-5deg); /* initial 3D tilt */
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

/* Hover effect for desktop: increase depth */
@media (hover: hover) {
  .modal-wrapper:hover {
    transform: rotateX(0deg) rotateY(0deg) scale(1.02);
    box-shadow:
      0 25px 30px rgba(0, 0, 0, 0.4),
      inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
}

/* Modal Header */
.modal-header {
  font-size: 3rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 24px;
  justify-content: center;
}

/* Title text */
.modal-title {
  font-family: 'Pixelify Sans', sans-serif;
  caret-color: transparent;
}

/* Main description */
.modal-description {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Mobile instructions */
.modal-mobile-instructions {
  
  font-size: 1.2 rem;
  color: #444;
  line-height: 1.0;
  margin-bottom: 24px;
}
@media (pointer: coarse) {
  .modal-mobile-instructions {
    display: block;
  }
}

/* Reusable hidden class */
.hidden {
  display: none !important;
}

/* Play button */
.modal-next-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: #333;
  color: #faf2b6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-next-button:hover {
  background-color: #555;
}

.instructions-panel {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.instructions-panel.visible {
  opacity: 1;
}


/* Responsive adjustments */
@media (max-width: 600px) {
  .modal-wrapper {
    padding: 20px;
    max-width: 320px;
  }

  .modal-description,
  .mobile-instructions {
    font-size: 1rem;
  }

  .modal-header {
    font-size: 1.5rem;
  }

  .modal-next-button {
    width: 100%;
    font-size: 1.1rem;
  }
}


@media (pointer: coarse) {
  .instructions-panel {
    display: none !important;
    }
}

@media (max-width: 600px) {
  .modal {
    width: 90% ;             /* shrink from 100% to 90% of the viewport */
    max-width: 320px;       /* cap the width so it never gets too wide */
    padding: 16px;          /* optionally tighten up the padding */
    /* if your modal is very tall, you can also: */
    max-height: 80vh;       /* keep some breathing room */
    overflow-y: auto;       /* scroll content if it overflows */
  }
}
html, body, #experience-canvas {
  /* Prevent any browser touch gestures (pan, zoom, etc.) */
  touch-action: none;

  /* Disable text selection/highlighting completely */
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;

  /* Disable the long-press callout on iOS */
  -webkit-touch-callout: none;
}

/* (Optional) globally suppress the context menu */
body {
  overflow: hidden;                /* if you also want to lock scrolling */
}

