* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1 {
font-family: "calvino", sans-serif;
font-weight: 700;
font-style: normal;
color: #ad2424;
font-size: 18px;
}

p {
  font-family: "calvino", sans-serif;
font-weight: 300;
font-style: normal;
color: black;
font-size: 12px;
}

body {
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
font-family: calvino, sans-serif;
font-weight: 700;
font-style: normal;
color: #ad2424;
}

.scene-counter {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: calvino, sans-serif;
font-weight: 700;
color: black;
font-size: 30px !important;
}

.outer-frame {
  position: fixed;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  z-index: 1;
}

.outer-top {
  padding: 20px 40px;
  pointer-events: auto;
  flex-shrink: 0;
}

.scene-tracker {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 400px;
    height: auto;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out, left 0.1s ease-out, top 0.1s ease-out;
    transform-origin: center center;
    
}

.scene-tracker img {
    width: 100%;
    height: auto;
    display: block;
}

.outer-top h1 {
  font-size: 28px;
  margin-bottom: 5px;
  font-weight: 600;
}

.outer-top p {
  font-size: 14px;
  opacity: 0.9;
}

/* pin board */
.viewport-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 50px;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

#canvas-container {
  width: 60%;
  height: 74%;
  background-size: cover;
  overflow: hidden;
  position: relative;
}

#canvas-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/silhouette.png'); /* Your silhouette image */
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0; /* Hidden by default */
  z-index: 4;
  pointer-events: none;
}

#canvas-container canvas {
  width: 80%;
  height: 80%;
  display: block;
}

/* bottom frame */
.outer-bottom {
  padding: 20px 40px;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-shrink: 0;
}

/* progress */
.progress-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.progress-map {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* prduct info */
.product-info {
  width: 100%;
  padding: 10px 40px;
  left: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#product-text {
  font-size: 14px;
  color: '#ad2424';
  font-weight: 500;
  font-family: calvino, sans-serif;
font-weight: 400;
font-style: normal;
color: #ad2424;
}

#countdown-timer {
  position: fixed;
bottom: 90px;
left: 48%;
  font-size: 1.5rem;
  padding: 6px 12px;
  z-index: 9999;
  font-family: "calvino", sans-serif;
font-weight: 300;
font-style: normal;
color: #ad2424;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .outer-bottom {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .progress-section {
    width: 100%;
  }

  .product-info {
    width: 100%;
  }

}

@media (max-width: 768px) {
  .outer-top h1 {
    font-size: 20px;
  }

  .outer-top p {
    font-size: 12px;
  }

  #canvas-container {
    width: 80%;
    height: 80%;
  }

  .viewport-container {
    padding: 15px;
  }
}

#landing-page {
  position: fixed;       /* cover entire viewport */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  opacity: 0;           /* start hidden */
  transition: opacity 2s ease;
  z-index: 2000;         /* above chute and other content */
}

#landing-page.visible {
  opacity: 1;            /* fade in */
}

.landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.landing-content {
  max-width: 768px;
  line-height: 1.6;
  font-size: 1.2rem;
  font-family: calvino, sans-serif;
  font-weight: 700;
  color: black;
}

.gallery-wrapper {
  position: relative;
  z-index: 0;
}

/* background video layer — fixed so it stays put */
#gallery-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 0;
}

/* iframe style */
#gallery-video iframe {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  width: 320px;
  height: 180px;
  border: none;
  transition: all 1s ease;
}

/* scrollable gallery */
.gallery-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 100px;
  padding: 50px 100px;
  z-index: 10;
}

.floating-menu {
  position: fixed;
  top: 20px;
  left: 30px;
  display: flex;
  gap: 24px;
  z-index: 1000;
  font-family: "calvino", sans-serif;
font-weight: 100;
font-style: normal;
color: black;
font-size: 12px;
}

.floating-menu a {
  color: black;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.floating-menu a:hover {
  opacity: 1;
}


#diagram-container {  /* Changed from .diagram-container to #diagram-container */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Diagrams (images or SVGs) */
#diagram-container img {
  max-width: 80%;  /* Changed: Max 80% of viewport width */
  max-height: 80%; /* Changed: Max 80% of viewport height */
  width: auto;     /* Changed: Let it scale naturally */
  height: auto;    /* Changed: Let it scale naturally */
  object-fit: contain;
  display: block;
}