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

body {
  font-family: 'Courier New', monospace;
  overflow: hidden;
}

/* Video Background Container */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

#video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none; /* Disables interaction with the video */
}

/* Hide native video controls (if they appear) */
#video-bg::-webkit-media-controls {
  display: none !important;
}

#video-bg::-webkit-media-controls-enclosure {
  display: none !important;
}

/* Overlay Content */
.overlay-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

/* Chair Image */
.chair-image {
  width: 300px; /* Adjust size as needed */
  height: auto;
  filter: grayscale(100%); /* Ensures the image is black and white */
}

/* Corner Navigation */
/* Corner Navigation */
.corner-nav a {
  position: absolute;
  font-family: 'Helvetica', sans-serif;
  font-weight: bold;
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  padding: 1rem;
  pointer-events: auto;
  transition: all 0.3s ease;
  background: none;
  border: none;
  animation: shake 0.5s infinite;
  animation-delay: var(--animation-delay);
  text-shadow: 
    -1px -1px 0 #00ff00,  
     1px -1px 0 #00ff00,
    -1px  1px 0 #00ff00,
     1px  1px 0 #00ff00;
}

.corner-nav a:hover,
.corner-nav a:active {
  color: white;
  animation: glitch 0.5s infinite;
  animation-delay: var(--animation-delay);
}

.top-left {
  top: 20px;
  left: 20px;
  --animation-delay: 0s;
}

.top-right {
  top: 20px;
  right: 20px;
  --animation-delay: 0.25s;
}

.bottom-left {
  bottom: 20px;
  left: 20px;
  --animation-delay: 0.5s;
}

.bottom-right {
  bottom: 20px;
  right: 20px;
  --animation-delay: 0.75s;
}

/* Continuous Shake Animation */
@keyframes shake {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-1px, 1px);
  }
  40% {
    transform: translate(1px, -1px);
  }
  60% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0);
  }
}

/* Glitch Animation for Text (on hover) */
@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 3px);
  }
  40% {
    transform: translate(3px, -3px);
  }
  60% {
    transform: translate(-3px, 3px);
  }
  80% {
    transform: translate(3px, -3px);
  }
  100% {
    transform: translate(0);
  }
}

.corner-nav a:active {
  transform: scale(1.1); /* Slightly enlarge the link when clicked */
  transition: transform 0.1s ease;
}

/* Minimalist Footer */
.minimalist-footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 0.5rem 0;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  z-index: 1;
}




/* Scrolling Text Container */
.scrolling-text {
  white-space: nowrap; /* Prevents text from wrapping */
  overflow: hidden; /* Hides overflowing text */
  position: fixed; /* Position relative to the viewport */
  left: 0;
  width: 100vw; /* Full viewport width */
  z-index: 1; /* Ensure text is above other elements */
  color: limegreen; /* Lime green text */
}

/* Scrolling Text Animation */
.scrolling-text span {
  display: inline-block;
  padding-right: 2rem; /* Adds space between "coming soon" phrases */
  animation: scroll-text 10s linear infinite; /* Continuous scroll animation */
}

@keyframes scroll-text {
  0% {
    transform: translateX(0%); /* Starts text at the far left of the page */
  }
  100% {
    transform: translateX(-100%); /* Moves text offscreen to the left */
  }
}

/* Position Scrolling Text Above and Below */
.scrolling-text-top {
  top: 30%; /* Adjust position as needed */
}

.scrolling-text-bottom {
  bottom: 30%; /* Adjust position as needed */
}








/* =========================
   STORE ADDITIONS (append)
   ========================= */

.center-hint {
  margin-top: 18px;
  font-family: 'Helvetica', sans-serif;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.75);
  text-shadow:
    -1px -1px 0 rgba(0,255,0,0.7),
     1px -1px 0 rgba(0,255,0,0.7),
    -1px  1px 0 rgba(0,255,0,0.7),
     1px  1px 0 rgba(0,255,0,0.7);
}

/* Let the store overlay be readable without killing the background */
.store-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(980px, 92vw);
  height: min(620px, 76vh);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
  pointer-events: auto;
}

.store-header, .store-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 14px;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.12);
}

.store-title {
  font-family: 'Helvetica', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: black;
  text-shadow:
    -1px -1px 0 #00ff00,
     1px -1px 0 #00ff00,
    -1px  1px 0 #00ff00,
     1px  1px 0 #00ff00;
  animation: shake 0.5s infinite;
}

.store-subtitle, .microcopy {
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.75);
}

.product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  overflow: auto;
  padding: 10px;
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.12);
}

@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* Product Card */
.product-card {
  position: relative;
  padding: 14px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.14);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.86);
}

.product-name {
  font-family: 'Helvetica', sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: black;
  text-shadow:
    -1px -1px 0 rgba(0,255,0,0.6),
     1px -1px 0 rgba(0,255,0,0.6),
    -1px  1px 0 rgba(0,255,0,0.6),
     1px  1px 0 rgba(0,255,0,0.6);
}

.product-desc {
  margin-top: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  color: rgba(0,0,0,0.72);
  line-height: 1.2;
  min-height: 2.4em;
}

.product-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.product-price {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.95rem;
}

.product-stock {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: rgba(0,0,0,0.6);
}

.buy-button {
  margin-top: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: 'Helvetica', sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  border: none;
  background: transparent;
  color: black;
  cursor: pointer;
  text-shadow:
    -1px -1px 0 #00ff00,
     1px -1px 0 #00ff00,
    -1px  1px 0 #00ff00,
     1px  1px 0 #00ff00;
  animation: shake 0.5s infinite;
}

.buy-button:hover {
  color: white;
  animation: glitch 0.5s infinite;
}

.buy-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  animation: none;
  text-shadow: none;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  z-index: 50;
  display: grid;
  place-items: center;
}

.modal {
  width: min(540px, 92vw);
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.2);
  padding: 16px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-title {
  font-family: 'Helvetica', sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-desc {
  font-family: 'Courier New', monospace;
  color: rgba(0,0,0,0.75);
  margin-bottom: 12px;
}

.modal-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.buy-status {
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.72);
}

.modal-backdrop[hidden] {
  display: none !important; 
}

/* Thumbnail container */
.product-thumb-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;      /* square thumb */
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

/* The image itself */
.product-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;        /* fills the box, crops overflow, preserves aspect ratio */
  object-position: center;
  filter: grayscale(100%);
}
