/* 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: clamp(180px, 22vw, 300px); /* responsive chair size */
  height: auto;
  filter: grayscale(100%); /* Ensures the image is black and white */
}

/* 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;

  /* Helps smooth animation */
  will-change: transform;

  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;
  /* Keep it simple: don’t override transform animation on hover */
}

/* Positions */
.top-left {
  top: 20px;
  left: 20px;

  /* Independent movement */
  animation: wiggleTL 0.63s steps(2, end) infinite;
  animation-delay: -0.17s;
}

.top-right {
  top: 20px;
  right: 20px;

  animation: wiggleTR 0.49s steps(2, end) infinite;
  animation-delay: -0.41s;
}

.bottom-left {
  bottom: 20px;
  left: 20px;

  animation: wiggleBL 0.78s steps(2, end) infinite;
  animation-delay: -0.29s;
}

.bottom-right {
  bottom: 20px;
  right: 20px;

  animation: wiggleBR 0.56s steps(2, end) infinite;
  animation-delay: -0.53s;
}

/* Four DIFFERENT wiggle paths (varied, not diagonal-in-sync) */
@keyframes wiggleTL {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  12%  { transform: translate(-1px, 2px) rotate(-0.4deg); }
  25%  { transform: translate(2px, 0px) rotate(0.2deg); }
  39%  { transform: translate(-2px, -1px) rotate(0.5deg); }
  54%  { transform: translate(1px, -2px) rotate(-0.2deg); }
  71%  { transform: translate(3px, 1px) rotate(0.3deg); }
  86%  { transform: translate(-1px, -3px) rotate(-0.5deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes wiggleTR {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  10%  { transform: translate(2px, -1px) rotate(0.3deg); }
  23%  { transform: translate(-1px, 2px) rotate(-0.6deg); }
  37%  { transform: translate(3px, 1px) rotate(0.1deg); }
  52%  { transform: translate(-2px, -2px) rotate(0.5deg); }
  68%  { transform: translate(1px, 3px) rotate(-0.2deg); }
  84%  { transform: translate(-3px, 0px) rotate(0.4deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes wiggleBL {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  14%  { transform: translate(-2px, -1px) rotate(0.2deg); }
  28%  { transform: translate(1px, 3px) rotate(-0.4deg); }
  43%  { transform: translate(2px, -3px) rotate(0.6deg); }
  59%  { transform: translate(-3px, 1px) rotate(-0.1deg); }
  74%  { transform: translate(0px, -2px) rotate(0.4deg); }
  89%  { transform: translate(3px, 2px) rotate(-0.3deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

@keyframes wiggleBR {
  0%   { transform: translate(0px, 0px) rotate(0deg); }
  11%  { transform: translate(1px, 2px) rotate(-0.3deg); }
  26%  { transform: translate(-3px, 0px) rotate(0.5deg); }
  40%  { transform: translate(2px, -2px) rotate(-0.2deg); }
  56%  { transform: translate(-1px, 3px) rotate(0.2deg); }
  72%  { transform: translate(3px, 1px) rotate(-0.6deg); }
  87%  { transform: translate(-2px, -3px) rotate(0.3deg); }
  100% { transform: translate(0px, 0px) rotate(0deg); }
}

.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 (relative to chair) */
.scrolling-text-top,
.scrolling-text-bottom {
  top: 50%;
}

/* how far from the chair the bars sit */
:root {
  --bar-gap: 60px; /* adjust this to taste */
  --chair-size: clamp(180px, 22vw, 300px); /* matches chair-image width */
}

/* bar just ABOVE the chair */
.scrolling-text-top {
  transform: translateY(calc(-1 * ((var(--chair-size) * 0.5) + var(--bar-gap))));
}

/* bar just BELOW the chair */
.scrolling-text-bottom {
  transform: translateY(calc((var(--chair-size) * 0.5) + var(--bar-gap)));
}
``
