/* ==========================================================================
   1. Global Styles & Font Imports
   ========================================================================== */

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 120vh;

  /* Prevents scrollbars on the body */
  font-family: Arial, sans-serif;
  /* Default fallback font */
  background-color: #000;
  /* Base background for the entire page */
  user-select: none;
  /* Prevents text selection on most elements */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* --- Font Faces --- */
@font-face {
  font-family: "Chalk Board";
  /* Used for? Review usage */
  src: url("Chalk Board.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "CHALK TALK Regular";
  /* Used for menu title */
  src: local("CHALK TALK Regular"), url("CHALK TALK.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Vanderchalk";
  /* Used for menu items, fallback for other chalk styles */
  src: url("Vanderchalk.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "3606 Marquee";
  /* Used for Home Page Digital Marquee */
  src: local("3606 Marquee"), url("3606-marquee-web.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

/* ==========================================================================
   2. Loading Screen & Intro Sequence
   ========================================================================== */

#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #1a1a1a;
  /* Dark background for loading */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  /* Above main content, below rotate overlay */
}

#curtain-static {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures the curtain image covers the screen */
  z-index: 10;
  /* Above loading screen background, below pull rope */
}

#pull-rope-container {
  position: absolute;
  top: -300px;
  /* Initial position for rope to slide in or be pulled from */
  right: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  /* Changes to 'grab' via JS */
  z-index: 20;
  /* Above static curtain */
  user-select: none;
}

#pull-rope-img {
  width: 100px;
  /* Adjust as needed */
  height: auto;
  margin-bottom: 10px;
  transition: transform 0.3s ease-out;
  /* For snapping back animation */
}

#loading-text-container {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 11, 11, 0.9);
  color: #fff;
  font-weight: bold;
  font-size: 1.2em;
  text-shadow: 1px 1px 3px black;
  z-index: 9999;
  position: absolute;
  opacity: 1;
  transition: all 500ms;
}

#curtain-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures canvas content scales correctly */
  z-index: 100;
  /* Above main content during animation, below loading screen elements */
  display: block;
  /* Initially block to be controlled by JS */
}

/* ==========================================================================
   3. Rotate Device Overlay
   ========================================================================== */

#rotate-device-overlay,
#unsupported-device-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  /* Semi-transparent black */
  z-index: 3000;
  /* Highest z-index to cover everything */
  display: none;
  /* Shown via JS by adding .active class */
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

#rotate-device-overlay.active,
#unsupported-device-overlay.active {
  display: flex !important;
  /* Ensure it overrides other display properties */
}

.rotate-device-message img {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  animation: rotate-animation 2s infinite linear;
}

.unsupported-device-message img {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

.rotate-device-message p,
.unsupported-device-message a,
.unsupported-device-message p {
  font-size: 1.2em;
  padding: 0 20px;
  color: white;
}

@keyframes rotate-animation {
  0% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-90deg);
  }

  100% {
    transform: rotate(-90deg);
    /* Stays at -90 for a bit */
  }
}

/* ==========================================================================
   4. Main Layout & Stage Elements
   ========================================================================== */

#main-content {
  position: fixed;
  /* Changed from absolute to fixed for better viewport control */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
}

#stage-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/stage/stage-half-optimized.jpg");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  z-index: 1;
  /* Base layer for the stage */
}

#stage-interactive-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  /* Vertically centers the flex items */
  justify-content: center;
  /* Horizontally centers, adjust if needed */
  gap: 100px;
  /* Space between chalkboard and content area */
  padding: 2vh 2vw;
  /* Responsive padding */
  box-sizing: border-box;
  z-index: 2;
  /* Above stage background */
}

/* ==========================================================================
   5. Chalkboard Navigation
   ========================================================================== */

#chalkboard-nav-container {
  position: relative;
  /* For shadow positioning */
  width: 28vw;
  /* Responsive width */
  max-width: 500px;
  /* Max size */
  min-width: 200px;
  /* Min size to prevent collapsing */
  height: auto;
  flex-shrink: 0;
  /* Prevents shrinking if stage-interactive-zone is too small */
  align-self: flex-end;
  /* Aligns to the bottom of the flex container */
  bottom: 13%;
  /* Fine-tunes vertical position from the bottom */
}

#chalkboard-img {
  width: 100%;
  height: auto;
  position: relative;
  /* For z-index stacking if needed */
  z-index: 0;
}

.chalkboard-shadow {
  position: absolute;
  bottom: 0;
  /* Position at the bottom of the container */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 10%;
  /* Adjust height of shadow */
  background-color: rgba(0, 0, 0, 0.8);
  border-radius: 100%;
  /* Creates an oval shadow */
  filter: blur(12px);
  z-index: -1;
  /* Behind the chalkboard image */
}

#chalkboard-menu {
  position: absolute;
  top: 9.7%;
  /* Positioning relative to chalkboard-nav-container */
  left: 9.5%;
  width: 82.8%;
  /* Dimensions based on the chalkboard image design */
  height: 56.92%;
  padding: 1.5vw 1vw;
  /* Responsive padding inside the menu area */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Align title and list to the top */
  align-items: center;
  /* Center items horizontally */
}

#menu-title {
  font-family: "CHALK TALK Regular", "Comic Sans MS", cursive;
  color: #f5f5f5;
  font-size: 3.5em;
  /* Responsive font size */
  margin-top: 0;
  margin-bottom: 1.2vh;
  /* Responsive margin */
  text-align: center;
  width: 100%;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  /* Prevents title from shrinking */
  line-height: normal;
  /* Ensure consistent line height */
}

#chalkboard-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  overflow-y: auto;
  /* Allows scrolling if menu items exceed height */
  scrollbar-width: none;
  /* For Firefox */
}

#chalkboard-menu ul::-webkit-scrollbar {
  display: none;
  /* For Chrome, Safari, Edge */
}

#chalkboard-menu li {
  margin-bottom: 1vh;
  /* Spacing between menu items */
  text-align: center;
}

#chalkboard-menu li a {
  font-family: "Vanderchalk", "Comic Sans MS", cursive;
  font-size: 2.3vw;
  /* Responsive font size */
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  /* Allows padding and transform */
  padding: 0.3vh 0;
  letter-spacing: 2px;
}

#chalkboard-menu li a:hover {
  color: #ffffff;
  transform: scale(1.05);
  /* Slight zoom on hover */
}

#chalkboard-menu li a.active-link {
  color: #fff799;
  /* Highlight color for active link */
  font-weight: bold;
  /* Or use a different visual cue */
}

/* ==========================================================================
   6. Page Content Area (General & Placeholders)
   ========================================================================== */

#page-content-area {
  /* This is the container for specific page content (Home, Events, etc.) */
  background-color: transparent;
  /* No specific background here, pages style themselves */
  padding: 0;
  border-radius: 0;
  width: 60vw;
  /* Responsive width */
  max-width: 900px;
  /* Max size */
  position: relative;
  /* For absolute positioning of content if needed */
  overflow: visible !important;
}

.page-content {
  width: 100%;
  height: 100%;
  display: none;
  /* Individual pages are shown by JS */
  box-sizing: border-box;
  /* Ensure padding/border are included in width/height */
}

#home-content {
  display: flex;
  /* Special display for home page layout, overridden by JS if needed */
}

/* Generic styles for placeholder pages (About, Contact) */
.page-content h2 {
  font-family: "Vanderchalk", "Comic Sans MS", cursive;
  color: #fff799;
  /* Chalk-like color */
  font-size: 2.5vw;
  margin-top: 1em;
  padding: 0 1em;
  text-align: center;
}

.page-content p {
  font-size: 1.2vw;
  line-height: 1.6;
  padding: 0 2em;
  color: #f0f0f0;
  /* Light color for readability on dark backgrounds */
}

/* ==========================================================================
   7. Home Page - Digital Marquee
   ========================================================================== */

.digital-marquee {
  width: 100%;
  height: 100%;
  background-color: #e6e6e6;
  /* Light gray marquee background */
  border: 30px solid #c00000;
  /* Red border, characteristic of marquees */
  border-radius: 10px;
  box-sizing: border-box;
  position: relative;
  /* For bulb positioning */
  overflow: visible;
  /* Allows bulbs to sit on the border */
  animation: marqueeFrameFlicker 5s infinite;
  /* Subtle frame flicker */
  font-family: "3606 Marquee", Arial, sans-serif;
  /* Marquee-style font */
  padding: 30px 5px;
  /* Inner padding for content */
}

.marquee-content-wrapper {
  width: 100%;
  height: 100%;
  padding: 1.5vw;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  /* Distributes space between elements */
  align-items: center;
  text-align: center;
  overflow-y: auto;
  /* Scroll if content exceeds height */
  position: relative;
  z-index: 1;
  /* Above marquee background, below bulbs */
}

.marquee-bulb {
  position: absolute;
  width: 35px;
  /* Bulb size */
  height: 35px;
  /* background-image is set by JS if using individual images per bulb state,
     or use a single image and toggle class for glow */
  background-image: url("../img/bulb.png");
  /* Assuming one bulb image */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 5;
  /* Above marquee content and border */
  transition: filter 0.2s ease-in-out;
  /* Smooth glow transition */
}

.marquee-bulb.glow {
  /* Defines the glowing effect for bulbs */
  filter: drop-shadow(0 0 4px rgba(255, 255, 180, 0.95)) drop-shadow(0 0 8px rgba(255, 255, 100, 0.8)) drop-shadow(0 0 15px rgba(255, 220, 0, 0.6)) saturate(1.8) brightness(1.3);
}

@keyframes marqueeFrameFlicker {

  0%,
  100% {
    box-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 15px #ffff00,
      0 0 20px #ffff00, 0 0 40px rgba(0, 0, 0, 0.7) inset,
      0 0 0 3px rgba(128, 0, 0, 0.5);
  }

  4% {
    box-shadow: 0 0 5px #ccc, 0 0 8px #ccc, 0 0 12px #dddd00,
      0 0 15px #dddd00, 0 0 40px rgba(0, 0, 0, 0.7) inset,
      0 0 0 3px rgba(128, 0, 0, 0.3);
  }

  39% {
    box-shadow: 0 0 7px #fff, 0 0 10px #fff, 0 0 15px #ffff00,
      0 0 20px #ffff00, 0 0 40px rgba(0, 0, 0, 0.7) inset,
      0 0 0 3px rgba(128, 0, 0, 0.5);
  }

  40%,
  95% {
    box-shadow: 0 0 2px #333, 0 0 40px rgba(0, 0, 0, 0.9) inset,
      0 0 0 3px rgba(80, 0, 0, 0.4);
  }

  95.1% {
    box-shadow: 0 0 5px #ccc, 0 0 8px #ccc, 0 0 12px #dddd00,
      0 0 15px #dddd00, 0 0 40px rgba(0, 0, 0, 0.7) inset,
      0 0 0 3px rgba(128, 0, 0, 0.3);
  }
}

.marquee-header {
  margin-bottom: 20px;
  /* Space below header */
}

.marquee-title-main-normal {
  font-size: 4em;
  /* Base size, adjusted in media queries */
  color: #222222;
  /* Dark text on light marquee */
  display: block;
  line-height: 1.1;
  margin-bottom: 10px;
  /* Space from subtitle if present */
}

/* .marquee-title-sub-normal {} -> Style if you add a subtitle */

.marquee-text-table {
  /* For dot-matrix style text */
  border-collapse: collapse;
  margin: 5px auto;
  /* Spacing for event lines */
}

.marquee-text-table td {
  padding: 0;
  text-align: center;
  vertical-align: middle;
  border: 1px solid #c0c0c0;
  /* Light border for cells */
  color: #222222;
  /* Dark text */
  font-family: Arial, Helvetica, sans-serif;
  /* Clear, blocky font */
  font-weight: bold;
  min-width: 1.2em;
  /* Ensure cells have some width */
  min-height: 1em;
  /* Ensure cells have some height */
  /* Font size for these tables is set in JS or media queries if needed for specific tables */
}

/* Specific marquee title table styles - not currently used in HTML structure */
/* #marquee-main-title-table td {} */
/* #marquee-sub-title-table td {} */

.marquee-featured-event {
  width: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* .marquee-featured-event h3 {} -> Style if using an h3 for featured event title */

.marquee-ticket-link {
  display: inline-block;
  padding: 1vh 2vw;
  background-color: #c00000;
  /* Brand red */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1.5em;
  /* Relative to marquee base font-size */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #800000;
  /* Darker red border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  /* Clear, readable font */
  margin-top: 20px;
  /* Space above ticket link */
}

.marquee-ticket-link:hover {
  background-color: #d03c3c;
  /* Lighter red on hover */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   8. Events Page - Poster Wall & Modal
   ========================================================================== */

/* --- Events Content Container (Corkboard) --- */
#events-content {
  background-image: url("../img/cork-board-texture.jpg");
  background-size: cover;
  background-position: center;
  padding: 25px 10px;
  /* Space inside the frame */
  box-sizing: border-box;
  display: block;
  /* Overrides generic .page-content display:none */
  overflow-y: auto;
  /* Scroll for many posters */
  height: 100%;
  /* Fill the #page-content-area */
  position: relative;
  /* For pagination controls positioning */
  padding-bottom: 70px;
  /* Space for pagination controls at the bottom */
  border: 15px solid #6F4E37;
  /* Wooden frame color */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) inset,
    /* Inner shadow for depth */
    0 5px 15px rgba(0, 0, 0, 0.3);
  /* Outer shadow for the board */
  border-radius: 5px;
  /* Slightly rounded corners for the board */
}

/* Hide generic h2/p if they were for placeholders */
#events-content>h2,
/* Direct child selector */
#events-content>p {
  display: none;
}

/* --- Poster Wall --- */
.poster-wall {
  display: flex;
  flex-wrap: wrap;
  /* Posters wrap to next line */
  gap: 10px;
  /* Space between posters */
  justify-content: space-between;
  /* Center posters horizontally */
  align-items: flex-start;
  /* Align to top, good for varying rotated heights */
  padding-bottom: 30px;
}

.poster-wall.loading-wall {
  /* Styles for when the wall is loading content */
  min-height: 200px;
  /* Ensure it has some height during load */
  align-items: center;
  /* Center loading message */
}

.event-poster-thumbnail {
  width: 160px;
  /* Adjust poster size as needed */
  max-height: 220px;
  /* Maintain aspect ratio or set fixed height */
  background-color: transparent;
  /* Fallback background */
  border: 1px solid #333;
  /* Simple border for the poster paper */
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  /* For pin positioning */
  margin: 8px;
  /* Extra margin for rotated posters not to overlap too much */
}

.event-poster-thumbnail .poster-event-image {
  width: 100%;
  object-fit: contain;
  /* Ensures image covers poster area, may crop */
  display: block;
  transition: opacity 0.3s ease-in-out;
  /* For fade-in */
}

.event-poster-thumbnail:hover {
  transform: scale(1.08) rotate(0deg) !important;
  /* Override inline rotation for hover */
  box-shadow: 6px 6px 15px rgba(0, 0, 0, 0.5);
  z-index: 10;
  /* Bring hovered poster to the front */
}

.poster-pin {
  position: absolute;
  top: -8px;
  /* Position pin slightly above poster */
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  /* Pin size */
  height: auto;
  z-index: 5;
  /* Pin above poster content */
}

/* --- Pagination Controls --- */
.pagination-controls {
  position: absolute;
  /* Position relative to #events-content */
  bottom: 15px;
  /* Distance from bottom of corkboard frame */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px;
  width: 80%;
  /* Shrink to content */
  z-index: 20;
  /* Above posters */
}

.pagination-btn {
  background-color: #A0522D;
  /* Sienna/brown button color */
  color: white;
  border: 2px solid #5C4033;
  /* Darker brown border */
  padding: 10px 20px;
  font-family: "Vanderchalk", cursive;
  /* Chalk-like font */
  font-size: 1.1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  align-self: center;
  /* Align with page indicator if heights differ */
}

.pagination-btn:hover {
  background-color: #8B4513;
  /* Darker sienna on hover */
  border-color: #4a3123;
}

/* .pagination-btn:disabled {} -> Style if implementing disabled state */

.page-indicator {
  font-family: "Vanderchalk", cursive;
  color: #333333;
  /* Dark text on light paper */
  font-size: 1.1em;
  font-weight: bold;
  background-color: #fff;
  /* Fallback paper color */
  background-image: url("../img/white-paper-texture.jpg");
  /* Paper texture */
  background-size: cover;
  padding: 10px 20px;
  border-radius: 3px;
  border: 1px solid #ccc;
  /* Subtle border for paper */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  /* For pin pseudo-element */
  margin: 0 10px;
  /* Space from buttons */
  text-align: center;
  line-height: 1.4;
}

.page-indicator::before {
  /* Pin on page indicator */
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 30px;
  background-image: url("../img/pin.png");
  /* Default pin */
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
  /* Pin above paper */
}

.no-events-message,
.loading-message,
/* Added style for loading-message class */
.error-message {
  /* Added style for error-message class */
  color: #333;
  /* Darker text for readability on corkboard/paper */
  font-size: 1.5em;
  text-align: center;
  width: 100%;
  padding: 50px 20px;
  font-family: "Vanderchalk", cursive;
  /* text-shadow: 1px 1px 2px #fff; Optional: light shadow for dark text */
}

.error-message {
  color: #c00000;
  /* Red for error messages */
}

/* --- Event Detail Modal --- */
.event-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2500;
  /* High z-index */
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff;
  /* Fallback paper color */
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 30px rgba(255, 210, 113, 0.3), 0px -5px 10px rgba(0, 0, 0, 0.3) inset;
  /* Glow effect */
  max-width: 700px;
  width: 90%;
  /* Responsive width */
  max-height: 70vh;
  /* Prevent modal from being too tall */
  overflow-y: auto;
  /* Scroll for long content */
  position: relative;
  /* For close button */
  font-family: Arial, sans-serif;
  /* Readable content font */
  color: #333;
  /* Default text color */
  background-image: url("../img/white-paper-texture.jpg");
  /* Paper texture */
  background-size: cover;
  border: 10px solid #d2b48c;
  /* Tan "old paper" border */
}

/* Ensure modal h2/p are styled and visible */
.modal-content h2 {
  font-family: "Vanderchalk", cursive;
  /* Or a more prominent headline font */
  color: #c00000;
  /* Brand red */
  font-size: 2.5em;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  display: block;
  /* Ensure visibility */
}

.modal-content p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
  /* Dark gray for text */
  margin-bottom: 15px;
  display: block;
  /* Ensure visibility */
  padding: 0;
  /* Reset generic .page-content padding */
}

.modal-content p.event-description {
  font-style: italic;
}

.modal-content p strong {
  color: #000;
  /* Black for strong text */
}

.modal-poster-img {
  width: 100%;
  max-width: 400px;
  /* Limit image size within modal */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  /* Center image */
  border: 3px solid #eee;
  /* Light border around image */
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s ease-in-out;
  /* For fade-in */
}

.close-modal-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: #888;
  /* Gray close button */
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.close-modal-btn:hover {
  color: #000;
  /* Black on hover */
}

.modal-ticket-link,
.event-status {
  /* Shared style for ticket link and status text */
  display: inline-block;
  padding: 12px 25px;
  background-color: #c00000;
  /* Brand red */
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border: 1px solid #800000;
  /* Darker red border */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
  text-align: center;
  width: auto;
  /* Fit content, or set a specific width */
}

.modal-ticket-link:hover {
  background-color: #d03c3c;
  /* Lighter red on hover */
}

.event-status {
  /* For non-link statuses like "Sold Out" */
  background-color: #555;
  /* Gray for general status */
  border-color: #333;
  cursor: default;
}

/* ==========================================================================
   9. Utility & Image Loading Animations
   ========================================================================== */

/* Shimmer animation for loading images */
.poster-event-image.loading,
.modal-poster-img.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite linear;
  min-height: 150px;
  /* Give some placeholder height, adjust per use case */
  opacity: 0.7;
  /* Indicate loading state */
}

@keyframes loading-shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* Fade-in for loaded images */
.poster-event-image:not(.loading),
.modal-poster-img:not(.loading) {
  animation: fadeInImage 0.3s ease-in-out;
}

@keyframes fadeInImage {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ==========================================================================
   10. Gallery Page - TV, VCR & VHS
   ========================================================================== */

/* --- Font Imports (Scoped) --- */
#gallery-content {
  font-family: "Digital-7", sans-serif;
  /* Default for the component */
}

/* --- Main Layout --- */
#gallery-content {
  display: block;
  height: 100%;
  position: relative;
}

#gallery-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  /* Align TV/VCR to the bottom */
  align-items: center;
  position: relative;
  gap: 43px;
}

#tv-vcr-unit-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 10;
  transform: translateY(10%);
  /* Overlap with shelf slightly */
}

/* --- Shelf for VHS Tapes --- */
#vhs-shelf-wrapper {
  width: 100%;
  position: relative;
  perspective: 1000px;
  z-index: 500;
  overflow-x: clip;
}

.shelf-top,
.shelf-bottom {
  height: 20px;
  width: 100%;
  background: #3a2a1a;
}

.shelf-top {
  border-radius: 5px 5px 0 0;
  border-top: 2px solid #5c4033;
}

.shelf-bottom {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid #5c4033;
}

#vhs-shelf {
  display: flex;
  min-height: 220px;
  transition: transform 0.5s ease-in-out;
}

.vhs-shelf-page {
  width: 100%;
  /* Each page takes up the full width of the visible container */
  flex-shrink: 0;
  /* Prevents pages from shrinking */
  display: flex;
  justify-content: center;
  /* Center the tapes on the page */
  align-items: flex-end;
  gap: 20px;
  padding: 0 20px;
  /* Padding inside each page */
  box-sizing: border-box;
  height: 220px;
}

/* --- Individual VHS Tape Styling --- */
.vhs-tape-container {
  width: 100px;
  /* Width of the tape */
  height: 200px;
  /* Height of the tape */
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(10deg);
  transition: transform 0.5s ease-in-out, z-index 0s 0.5s, opacity 0s;
  cursor: pointer;
  z-index: 1;
  opacity: 1;
}

.vhs-tape-container:hover {
  transform: rotateX(-5deg) rotateY(0deg);
  z-index: 5;
  transition: transform 0.3s ease-in-out, z-index 0s 0s;
}

/* Focus animation classes */
#gallery-content .vhs-tape-container.focused {
  position: fixed;
  left: none;
  top: none;
  transform: translateX(25%) translateY(-100%) rotateY(90deg) rotateZ(-5deg) rotateX(90deg) scale(2);
  z-index: 100;
}

#gallery-content .vhs-tape-container.inserting {
  transition: all 1s ease-in;
  transform: translate(-52%, -305%) rotateY(90deg) rotateZ(0deg) rotateX(90deg) scale(0.5);
  /* Animate towards VCR */
}

#gallery-content .vhs-tape-container.focused .tape-cover__face--front,
#gallery-content .vhs-tape-container.inserting .tape-cover__face--back {
  filter: none;
}

/* Keyframes (Global, but only used by gallery components) */
@keyframes gallery-cassetteOpenClose {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(100%);
  }
}

@keyframes gallery-flashingIcon {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes gallery-scanlines {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -10px;
  }
}

/* --- TV + VCR SCOPED STYLES --- */
#gallery-content .vcr {
  width: 70%;
  min-width: 250px;
  aspect-ratio: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.5rem;
  line-height: 0.5rem;
  margin: 0 auto;
}

#gallery-content .vcr .vcrtop {
  width: 100%;
  aspect-ratio: 12.5;
  min-height: 20px;
  overflow: hidden;
}

#gallery-content .vcr .vcrtop .carriage {
  width: 40%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 10%;
  cursor: default;
  /* Not clickable directly */
}

#gallery-content .vcr .vcrtop .carriage--close {
  animation: gallery-cassetteOpenClose 1s ease-in-out forwards;
}

#gallery-content .vcr .vcrtop .carriage--open {
  animation: gallery-cassetteOpenClose 1s ease-in-out forwards reverse;
}

#gallery-content .vcr .vcrtop .carriage .top {
  width: 100%;
  height: 10%;
  background: silver;
  border: 2px solid darkgray;
}

#gallery-content .vcr .vcrtop .carriage .middle {
  width: 94%;
  height: 100%;
  display: flex;
  justify-content: space-around;
}

#gallery-content .vcr .vcrtop .carriage .middle .strut {
  border: 1px solid black;
  width: 1%;
  height: 100%;
}

#gallery-content .vcr .vcrtop .carriage .middle .tapespace {
  width: 98%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

#gallery-content .vcr .vcrtop .carriage .middle .tapespace .cassette {
  width: 98%;
  height: 75%;
  background: black;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#gallery-content .vcr .vcrtop .carriage .middle .tapespace .cassette__label {
  width: 75%;
  height: 80%;
  border-radius: 3px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: "Marker", "Comic Sans MS", cursive;
}

#gallery-content .vcr .vcrtop .carriage .middle .tapespace .cassette__spacer {
  width: 15%;
  height: 80%;
}

#gallery-content .vcr .vcrtop .carriage .middle .tapespace .holder {
  width: 100%;
  height: 1%;
  border: 1px solid black;
}

#gallery-content .vcr .vcrfront {
  width: 100%;
  height: 80%;
  min-height: 2.5rem;
  background: silver;
  border: 3px solid darkgray;
  display: flex;
  flex-direction: row;
  align-items: center;
}

#gallery-content .vcr .vcrfront__power,
#gallery-content .vcr .vcrfront__controls,
#gallery-content .vcr .vcrfront__display {
  height: 86%;
}

#gallery-content .vcr .vcrfront__power {
  width: 24%;
  position: relative;
}

#gallery-content .vcr .vcrfront__power .powerbtn {
  width: 30%;
  aspect-ratio: 1.25;
  position: relative;
  top: 5%;
  left: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: black;
  cursor: pointer;
}

#gallery-content .vcr .vcrfront__power .powerbtn .powerbutton {
  background: silver;
  width: 94%;
  height: 92%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gallery-content .vcr .vcrfront__power .powerbtn .powerbutton__light {
  width: 40%;
  aspect-ratio: 1.5;
  border: 2px solid darkgray;
  background: darkgray;
}

#gallery-content .vcr .vcrfront__power .powerbtn .powerbutton__light--on {
  background: chartreuse;
}

#gallery-content .vcr .vcrfront__power .powerbtn .powerbutton__lbl {
  width: 20%;
  text-align: center;
}

#gallery-content .vcr .vcrfront__power .powerbtn .powerbutton:active {
  transform: translate(0, 0.0625rem);
}

#gallery-content .vcr .vcrfront__controls {
  width: 35%;
  background: black;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff {
  width: 46%;
  height: 96%;
  background: silver;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .playbtn,
#gallery-content .vcr .vcrfront__controls .playrecrewff .recordbtn,
#gallery-content .vcr .vcrfront__controls .playrecrewff .rewbtn,
#gallery-content .vcr .vcrfront__controls .playrecrewff .ffbtn {
  width: 50%;
  height: 50%;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .playbtn {
  position: relative;
  background: silver;
  cursor: pointer;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .playbtn .playbutton {
  transform: rotate(90deg);
  position: absolute;
  top: 10%;
  left: 15%;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .playbtn:active {
  transform: translate(-0.0625rem, -0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .recordbtn {
  background: black;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .recordbtn .recordbutton {
  width: 95%;
  height: 95%;
  background: orange;
  position: absolute;
  top: 0;
  right: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .recordbtn .recordbutton .recordicon {
  position: absolute;
  top: 5%;
  right: 15%;
  font-size: 0.9rem;
  line-height: 0.6rem;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .recordbtn:active {
  transform: translate(0.0625rem, -0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .rewbtn {
  position: relative;
  cursor: pointer;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .rewbtn .rewbutton {
  position: absolute;
  bottom: 20%;
  left: 15%;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .rewbtn:active {
  background: silver;
  transform: translate(-0.0625rem, 0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .ffbtn {
  position: relative;
  cursor: pointer;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .ffbtn .ffbutton {
  position: absolute;
  bottom: 20%;
  right: 15%;
}

#gallery-content .vcr .vcrfront__controls .playrecrewff .ffbtn:active {
  background: silver;
  transform: translate(0.0625rem, 0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .stoppause {
  width: 25%;
  height: 96%;
  background: silver;
  display: flex;
  flex-direction: column;
}

#gallery-content .vcr .vcrfront__controls .stoppause .stopbtn,
#gallery-content .vcr .vcrfront__controls .stoppause .pausebtn {
  width: 100%;
  height: 50%;
  cursor: pointer;
  background: silver;
  position: relative;
}

#gallery-content .vcr .vcrfront__controls .stoppause .stopbtn .stopbutton {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translate(-50%, 0);
}

#gallery-content .vcr .vcrfront__controls .stoppause .stopbtn:active {
  transform: translate(0, -0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .stoppause .pausebtn .pausebutton {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translate(-50%, 0);
}

#gallery-content .vcr .vcrfront__controls .stoppause .pausebtn:active {
  transform: translate(0, 0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .eject {
  width: 25%;
  height: 96%;
  background: silver;
}

#gallery-content .vcr .vcrfront__controls .eject .ejectbtn {
  width: 100%;
  height: 100%;
  background: silver;
  position: relative;
  cursor: pointer;
}

#gallery-content .vcr .vcrfront__controls .eject .ejectbtn .ejectbutton {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translate(-50%, 0);
}

#gallery-content .vcr .vcrfront__controls .eject .ejectbtn:active {
  transform: translate(0, 0.0625rem);
}

#gallery-content .vcr .vcrfront__controls .fullscreen {
  width: 25%;
  height: 96%;
  background: silver;
}

#gallery-content .vcr .vcrfront__controls .fullscreen .fullscreen-btn {
  width: 100%;
  height: 100%;
  background: silver;
  position: relative;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #333;
}

#gallery-content .vcr .vcrfront__controls .fullscreen .fullscreen-btn:active {
  transform: translate(0, 0.0625rem);
}

#gallery-content .vcr .vcrfront__display {
  width: 41%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery-content .vcr .vcrfront__display .displayarea {
  width: 90%;
  height: 80%;
}

#gallery-content .vcr .vcrfront__display .displayarea .displaytext {
  width: 100%;
  height: 100%;
  font-family: "Digital-7", monospace;
  font-size: 1.5rem;
  color: darkgray;
  display: flex;
  justify-content: center;
  align-items: center;
}

#gallery-content .vcr .vcrfront__display .displayarea .displaytext--on {
  color: white;
}

#gallery-content .vcr .base {
  width: 90%;
  height: 20%;
  min-height: 10px;
  background: black;
  clip-path: polygon(0 0, 100% 0, 97% 100%, 3% 100%);
}

#gallery-content .tv {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gallery-content .tv .woodframe {
  border: 1rem solid SaddleBrown;
  width: 100%;
}

#gallery-content .tv .woodframe .crt {
  width: 100%;
  aspect-ratio: 1.3333333333;
  background-color: #181818;
  border-style: solid;
  border-color: silver;
  border-width: 0.5rem;
  position: relative;
}

#gallery-content .tv .woodframe .crt__contents {
  width: 100%;
  aspect-ratio: 1.3333333333;
  position: relative;
  overflow: hidden;
}

#gallery-content .tv .woodframe .crt__image {
  width: 100%;
  height: 100%;
  /* Changed to 100% for video fill */
  background-repeat: no-repeat;
  background-size: cover;
  /* Changed to cover */
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  /* For video element */
}

#gallery-content .tv .woodframe .crt__image--on {
  background-color: blue;
}

#gallery-content .tv .woodframe .crt__image--hidden {
  visibility: hidden;
}

#gallery-content .tv .woodframe .crt__image--static {
  background-image: url("https://assets.codepen.io/8841541/static.gif");
  object-fit: cover;
  object-position: center;
}

#gallery-content .tv .woodframe .crt .channel {
  width: 15%;
  aspect-ratio: 1;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: blue;
  position: absolute;
  top: 7.5%;
  left: 7.5%;
  font-family: "Press-Start-2P", monospace;
}

#gallery-content .tv .woodframe .crt .channel--on {
  display: flex;
}

#gallery-content .tv .woodframe .crt .indicator {
  width: 15%;
  aspect-ratio: 1;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: blue;
  position: absolute;
  top: 7.5%;
  right: 7.5%;
  font-family: "Press-Start-2P", monospace;
}

#gallery-content .tv .woodframe .crt .indicator__icon {
  width: 80%;
  display: none;
}

#gallery-content .tv .woodframe .crt .indicator__icon--on {
  display: flex;
}

#gallery-content .tv .woodframe .crt .indicator__icon--flashing {
  animation: gallery-flashingIcon;
  animation-iteration-count: infinite;
  animation-duration: 2s;
}

#gallery-content .tv .woodframe .crt .indicator__icon--fastflashing {
  animation: gallery-flashingIcon;
  animation-iteration-count: infinite;
  animation-duration: 0.5 s;
}

#gallery-content .tv .woodframe .crt .indicator--on {
  display: flex;
}

#gallery-content .tv .woodframe .crt__glass {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

#gallery-content .tv .woodframe .crt__glass--on {
  background: linear-gradient(to top, #fff, #fff, #666, #666);
  background-size: cover;
  background-size: 100% 0.3125rem;
  animation: gallery-scanlines;
  animation-duration: 1s;
  animation-iteration-count: infinite;
  opacity: 0.25;
}

#gallery-content .tv .woodframe .crt__bezel {
  width: 100%;
  height: 100%;
  background-image: url("https://assets.codepen.io/8841541/bezel.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 1;
}

#gallery-content .tv .base {
  height: 1.5rem;
  width: 80%;
  background: #010101;
  border-radius: 0 0 0.625rem 0.625rem;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
}

#gallery-content .tv .base .buttons {
  width: 60%;
  height: 1.25rem;
  margin-right: 1.25rem;
  background: #191919;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#gallery-content .tv .base .buttons .button {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 0.75rem;
  color: white;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#gallery-content .tv .base .buttons .button--volumedown:active,
#gallery-content .tv .base .buttons .button--volumeup:active,
#gallery-content .tv .base .buttons .button--channeldown:active,
#gallery-content .tv .base .buttons .button--channelup:active,
#gallery-content .tv .base .buttons .button--power:active {
  transform: translateY(0.0625rem);
}

#gallery-content .tv .base .buttons .button--label {
  font-size: 0.4rem;
  font-family: "Press-Start-2P", monospace;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- VHS TAPE SCOPED STYLES --- */
#gallery-content .vhs-tape-container .tape-cover {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-12px);
  /* Adjusted for new dimensions */
  transition: transform 1s;
}

#gallery-content .vhs-tape-container .tape-cover__face {
  position: absolute;
  border: 0.5px dotted gray;
  background-color: #faf3de;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

#gallery-content .vhs-tape-container .tape-cover__face--front,
#gallery-content .vhs-tape-container .tape-cover__face--back {
  width: 100px;
  height: 180px;
}

#gallery-content .vhs-tape-container .tape-cover__face--right {
  display: none;
  /* We don't need this complex case */
}

#gallery-content .vhs-tape-container .tape-cover__face--left,
#gallery-content .vhs-tape-container .tape-cover__face--right {
  width: 25px;
  /* tape width */
  height: 180px;
  left: 37.5px;
}

#gallery-content .vhs-tape-container .tape-cover__face--top,
#gallery-content .vhs-tape-container .tape-cover__face--bottom {
  width: 100px;
  height: 25px;
  top: 77.5px;
}

#gallery-content .vhs-tape-container .tape-cover__face--front {
  transform: rotateY(0deg) translateZ(12.5px);
  background-size: cover;
  background-position: center;
  filter: drop-shadow(5px 5px 5px black)
}

#gallery-content .vhs-tape-container .tape-cover__face--back {
  transform: rotateY(180deg) translateZ(12.5px);
  background-color: #eee;
}

#gallery-content .vhs-tape-container .tape-cover__face--left {
  /* This is the spine label we will see */
  transform: rotateY(-90deg) translateZ(50px);
}

#gallery-content .vhs-tape-container .tape-cover__face--top {
  transform: rotateX(90deg) translateZ(90px);
}

#gallery-content .vhs-tape-container .tape-cover__face--bottom {
  transform: rotateX(-90deg) translateZ(90px);
}

/* Simplified tape inner label */
#gallery-content .vhs-tape-container .vhs-tape__label {
  background: white;
  width: 90%;
  height: 90%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#gallery-content .vhs-tape-container .vhs-tape__labeltext {
  transform: rotate(90deg);
  font-family: "Vanderchalk", "Comic Sans MS", cursive;
  font-size: 14px;
  white-space: nowrap;
  color: #333;
}

/* --- Focused State Play Button --- */
.play-tape-button {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(50%) translateY(-50%);
  background-color: #c00000;
  color: white;
  border: 2px solid #800000;
  font-family: 'Vanderchalk', cursive;
  font-size: 24px;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
  z-index: 101;
  opacity: 0;
  transition: opacity 0.3s ease-in-out 0.5s;
  pointer-events: none;
  z-index: 999;
}

.play-tape-button.visible {
  opacity: 1;
  pointer-events: auto;
}

@keyframes shake-disabled {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

#vhs-shelf.shake-disabled {
  animation: shake-disabled 0.3s ease-in-out;
}

#vhs-shelf-interactive-area {
  position: relative;
  background-image: linear-gradient(to top, #4a382a, #6f5643);
  padding: 20px 0;
  display: flex;
  align-items: center;
  box-shadow: 0px 0 20px 2px rgb(33 25 19) inset;
}

#vhs-shelf-scroll-container {
  width: 100%;
}

.shelf-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 501;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: 1px solid #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.shelf-nav-btn:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.8);
}

.shelf-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.shelf-nav-btn.prev {
  left: 10px;
}

.shelf-nav-btn.next {
  right: 10px;
}

/* ==========================================================================
   11. About Page - Magazine Feature (V2 - Robust & Realistic)
   ========================================================================== */


/* --- Keyframe Animations for Page Flip --- */
@keyframes flip-over {
  0% {
    transform: rotateY(0deg) rotateZ(0deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  100% {
    transform: rotateY(-180deg) rotateZ(0deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }
}

@keyframes flip-back {
  0% {
    transform: rotateY(-180deg) rotateZ(0deg);
  }

  100% {
    transform: rotateY(0deg) rotateZ(0deg);
  }
}

#about-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.magazine-viewport {
  width: 90%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 2500px;
}

#magazine-container {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 7 / 4.88;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-out;
}

#magazine-container.on-cover {
  transform: translateX(-25%);
}

#magazine-container.on-back-cover {
  transform: translateX(25%);
}

#magazine {
  width: 100%;
  height: 100%;
  position: relative;
}

/* --- Magazine Page & Animation Trigger --- */
.magazine-page {
  position: absolute;
  width: 50%;
  height: 100%;
  right: 0;
  transform-origin: left;
  transform-style: preserve-3d;
  border-radius: 0 6px 6px 0;
  background-color: #fdfaf2;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* This is the key change: we now use animations instead of transitions */
.magazine-page.flip {
  animation: flip-over 1.2s ease-in-out forwards;
}

.magazine-page.flipping-back {
  animation: flip-back 1.2s ease-in-out forwards;
}

/* --- Front, Back, and Shadow Styling --- */
.page-front,
.page-back {
  margin: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-image: url('../img/white-paper-texture.jpg');
  background-size: cover;
}

.page-front {
  border-radius: 0 6px 6px 0;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.page-back {
  transform: rotateY(180deg);
  border-radius: 6px 0 0 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.page-back::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 15%);
  opacity: 0;
  transition: opacity 0.6s ease-in-out 0.2s;
  /* Fade in shadow during flip */
}

.magazine-page.flip .page-back::after {
  opacity: 1;
}


/* Magazine Content Styling */
.magazine-content-wrapper {
  padding: 2.5vw;
  /* A bit more space */
  font-family: 'Georgia', serif;
  color: #333;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Webkit scrollbar styling for a cleaner look */
.magazine-content-wrapper::-webkit-scrollbar {
  width: 8px;
}

.magazine-content-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.magazine-content-wrapper h2 {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: #c00000;
  font-size: clamp(16px, 2vw, 28px);
  /* Responsive font size with min/max */
  margin: 0 0 1vh 0;
}

.magazine-content-wrapper h3 {
  font-family: 'Helvetica Neue', sans-serif;
  font-size: clamp(14px, 1.5vw, 22px);
  margin: 1vh 0;
}

.magazine-content-wrapper p {
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.6;
  text-align: left;
  padding: 0;
  color: #333;
}

.magazine-image {
  width: 100%;
  height: auto;
  margin: 1vh 0;
  border: 5px solid white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.magazine-image.full-bleed {
  width: 100%;
  /* No bleed needed with new padding structure */
  height: 100%;
  /* Example fixed height */
  object-fit: cover;
  border: none;
  box-shadow: none;
  margin-bottom: 15px;
}

.pull-quote {
  font-size: clamp(13px, 1.4vw, 18px);
  font-style: italic;
  color: #000;
  padding: 1vw;
  border-left: 4px solid #c00000;
  margin: 2vh 0;
}

.magazine-content-wrapper ul {
  list-style: none;
  padding: 0;
}

.magazine-content-wrapper ul li {
  font-family: 'Helvetica Neue', sans-serif;
  padding: 0.5vh 0;
  border-bottom: 1px dotted #aaa;
  font-size: clamp(12px, 1vw, 16px);
}


/* Magazine Cover Styling */
#magazine-cover {
  background-image: url('../img/magazine-cover.jpg');
  color: white;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

#magazine-cover .magazine-content-wrapper {
  text-align: center;
}

#magazine-cover h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: bold;
  letter-spacing: 5px;
  border-bottom: 2px solid white;
  border-top: 2px solid white;
  padding: 1vh 0;
  margin-bottom: 2vh;
}

#magazine-cover h2 {
  font-size: clamp(20px, 3vw, 36px);
  color: #fff;
  margin: 2vh 0;
  text-transform: uppercase;
}

#magazine-cover .issue-date {
  font-size: clamp(12px, 1vw, 16px);
  color: #ddd;
  text-align: center;
  padding: 0;
}

#magazine-cover .cover-subtitle {
  font-size: clamp(14px, 1.2vw, 18px);
  color: #f0f0f0;
  font-style: italic;
  text-align: center;
  padding: 0;
}


/* Magazine Navigation Arrows */
.magazine-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;
  /* High z-index */
  font-size: clamp(30px, 4vw, 50px);
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0 1vw;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
  display: none;
  text-shadow: 1px 1px 3px black;
}

.magazine-nav-arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

#magazine-nav-prev {
  left: -5%;
}

#magazine-nav-next {
  right: -5%;
}

/* ==========================================================================
   12. Contact Page - Postcard Envelope (REVISED)
   ========================================================================== */

#contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

#contact-content p {
  color: black !important;
  padding: 0 !important;
}

#contact-content h2 {
  padding: 0 !important;
  text-align: left !important;
  margin: 0 !important;
}


#postcard-envelope {
  width: 700px;
  /* Wider to accommodate new layout */
  height: 420px;
  position: relative;
  perspective: 1500px;
  transition: transform 1s ease-in, opacity 1s ease-in;
}

/* --- Main Flipper --- */
#postcard-flipper {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.7s;
}

#postcard-flipper.is-flipped {
  transform: rotateY(180deg);
}

.postcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background-image: url('../img/postcard-texture.jpg');
  background-size: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  display: flex;
  /* Using flex for layouts */
  padding: 25px;
  box-sizing: border-box;
  background-repeat: repeat;
}

/* --- Postcard Front (Visible side) --- */
.postcard-front {
  justify-content: space-between;
  font-family: 'Georgia', serif;
  color: #4a382a;
}

.postcard-front-left {
  width: 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.postcard-front-left h2 {
  font-family: 'Vanderchalk', cursive;
  color: #c00000;
  font-size: 3em;
  margin-top: 0;
}

.postcard-front-left p {
  font-size: 1.2em;
  line-height: 1.4;
  margin-bottom: 20px;
}

.postcard-front-right {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: end;
  border-left: 2px dashed #bba995;
  padding-left: 25px;
}

#decorative-stamp {
  width: 120px;
}

.social-stickers img {
  width: 40px;
  transition: transform 0.2s ease;
  margin: 0 5px;
}

.social-stickers img:hover {
  transform: scale(1.1) rotate(5deg);
}


/* --- Postcard Back (Envelope side) --- */
.postcard-back {
  transform: rotateY(180deg);
  background-color: #6F4E37;
  /* Darker 'inside envelope' color */
}

/* --- Envelope Lid --- */
#envelope-lid {
  position: absolute;
  width: 100%;
  height: 50%;
  top: 0;
  left: 0;
  perspective: 800px;
  z-index: 10;
}

#envelope-lid.is-open {
  z-index: 0;
  transition: z-index 0s 0.5s;
}

.lid-flipper {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transform-origin: top center;
  transition: transform 0.5s;
}

#envelope-lid.is-open .lid-flipper {
  transform: rotateX(-180deg);
}

.lid-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lid-front {
  background-image: url('../img/postcard-texture-dark.jpg');
  background-size: auto;
  background-repeat: repeat;
  border-radius: 0 0 20px 20px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lid-front .lid-content {
  width: 80%;
  text-align: center;
}

.lid-front .lid-content label {
  font-family: 'Vanderchalk', cursive;
  color: #4a382a;
  display: block;
  margin-bottom: 5px;
}

.lid-front .lid-content input {
  width: 100%;
  padding: 8px;
  border: none;
  border-bottom: 1px dashed #4a382a;
  background: transparent;
  font-size: 16px;
  margin-bottom: 15px;
}

.lid-front .lid-content input:focus {
  outline: none;
  border-bottom: 1px solid #c00000;
}

.lid-back {
  transform: rotateX(180deg);
  background-color: #6F4E37;
  border-radius: 20px 20px 0 0;
}

.lid-front .lid-content .instruction-text {
  text-align: center;
  margin-top: 20px;
  color: #c00000;
  font-style: italic;
  cursor: pointer;
  /* Reinforce that the area is clickable */
  font-family: 'Georgia', serif;
}

#envelop-cover-back {
  border-radius: 0px 0px 5px 5px;
  height: 60%;
  background-image: url(../img/postcard-texture.jpg);
  background-repeat: repeat;
  width: 100%;
  z-index: 9;
  position: absolute;
  left: 0;
  bottom: 0;
  box-shadow: 0px -4px 4px 0px #00000017;
}

/* --- Letter Content & SLIDE-OUT ANIMATION --- */
#letter-content {
  background-image: url('../img/white-paper-texture.jpg');
  background-size: cover;
  position: absolute;
  width: 95%;
  height: 50%;
  left: 2.5%;
  top: 50%;
  /* Start inside the envelope */
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  /* Center it vertically */
  transition: top 0.6s ease-out 0.3s, opacity 0.5s ease-out 0.3s;
  /* This is our slide animation! */
  opacity: 0;
}

#letter-content.lid-is-opened {
  top: 2.5%;
  /* Slide up to the top */
  opacity: 1;
}

#message {
  flex-grow: 1;
  padding: 15px;
  background: transparent;
  border: 1px dashed #aaa;
  font-family: 'Vanderchalk', cursive;
  font-size: 18px;
  color: #333;
  resize: none;
  margin-bottom: 15px;
}

#message:focus {
  outline: none;
  border-color: #c00000;
}

/* --- Buttons --- */
.postcard-button {
  font-family: 'Vanderchalk', cursive;
  font-size: 1.2em;
  padding: 8px 20px;
  border-radius: 4px;
  border: 1px solid #c00000;
  background-color: #c00000;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.postcard-button:hover {
  background-color: #fff;
  color: #c00000;
}

.send-btn {
  align-self: flex-end;
  /* Push to the right */
  font-size: 1.1em;
  padding: 10px 25px;
}

.send-btn:disabled {
  background-color: #999;
  border-color: #777;
  color: #ccc;
  cursor: wait;
}

/* --- Send & Confirmation Animation --- */
#postcard-envelope.is-sent {
  transform: translateY(-150vh) rotate(35deg) scale(0.4);
  opacity: 0;
}

#confirmation-message {
  text-align: center;
  color: white !important;
  font-family: "Vanderchalk", cursive;
  text-shadow: 2px 2px 4px #000;
}

#confirmation-message h2 {
  font-size: 3em;
  color: #fff799 !important;
}

#confirmation-message p {
  font-size: 1.5em;
  color: white !important;
}

/* ==========================================================================
   13. Responsive Design (Media Queries)
   ========================================================================== */

@media (max-width: 1440px) {
  #stage-interactive-zone {
    gap: 70px;
  }

  #postcard-envelope {
    width: 600px;
    height: 380px;
  }

  #menu-title {
    font-size: 3.2vw;
  }

  #chalkboard-menu li a {
    font-size: 2.3vw;
  }

  .event-poster-thumbnail {
    width: 130px;
    max-height: 180px;
  }

  #vhs-shelf {
    min-height: 180px;
  }

  .vhs-shelf-page {
    height: 180px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container {
    height: 180px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 90px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(90px);
  }

  #tv-vcr-unit-wrapper {
    max-width: 300px;
    transform: translateY(12%);
  }

  #gallery-content .vhs-tape-container.focused {
    transform: translateX(0%) translateY(-100%) rotateY(90deg) rotateZ(-5deg) rotateX(90deg) scale(2);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(-57%, -298%) rotateY(90deg) rotateZ(0deg) rotateX(90deg) scale(0.5);
  }
}

@media (max-width: 1024px) {
  #stage-interactive-zone {
    gap: 50px;
  }

  #page-content-area {
    width: 50vw;
  }

  #menu-title {
    font-size: 3.2vw;
  }

  #chalkboard-menu li a {
    font-size: 2.3vw;
  }

  .event-poster-thumbnail {
    width: 70px;
    max-height: 110px;
  }

  .pagination-btn {
    padding: 7px 13px;
    font-size: 0.7em;
  }

  .page-indicator {
    padding: 10px 15px;
    padding-top: 15px;
    font-size: 1em;
  }

  .digital-marquee {
    border-width: 25px;
    font-size: 0.6em;
  }

  .marquee-ticket-link {
    font-size: 1.4em;
  }

  .marquee-title-main-normal {
    font-size: 3.5em;
  }

  .poster-pin {
    width: 22px;
  }

  #vhs-shelf {
    min-height: 150px;
  }

  .vhs-shelf-page {
    height: 150px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container {
    height: 150px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 80px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(60px);
  }

  #tv-vcr-unit-wrapper {
    max-width: 250px;
    transform: translateY(13%);
  }

  #gallery-content .vhs-tape-container.focused {
    transform: translateX(0%) translateY(-100%) rotateY(90deg) rotateZ(-5deg) rotateX(90deg) scale(2);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(-57%, -298%) rotateY(90deg) rotateZ(0deg) rotateX(90deg) scale(0.5);
  }
}

@media (max-width: 768px) {
  #stage-interactive-zone {
    padding: 1vh 1vw;
    gap: 20px;
  }

  #chalkboard-nav-container {
    width: 60vw;
    min-width: 280px;
    max-width: 320px;
    align-self: center;
    bottom: 0 !important;
  }

  #page-content-area {
    max-height: 50vh;
    margin-bottom: 20px;
  }

  #menu-title {
    font-size: 3.5vw;
  }

  #chalkboard-menu li a {
    font-size: 2.8vw;
    letter-spacing: 1px;
  }

  .digital-marquee {
    border-width: 20px;
    padding: 15px 5px;
    font-size: 0.8em;
  }

  .marquee-bulb {
    width: 28px;
    height: 28px;
  }

  .marquee-title-main-normal {
    font-size: 3em;
  }

  .marquee-ticket-link {
    font-size: 1.3em;
    padding: 0.8vh 1.5vw;
  }

  /* Events Page */
  #events-content {
    padding: 15px;
    border-width: 10px;
    padding-bottom: 60px;
  }

  .event-poster-thumbnail {
    width: 120px;
    max-height: 170px;
  }

  .poster-pin {
    width: 20px;
  }

  .pagination-btn,
  .page-indicator {
    font-size: 1em;
    padding: 8px 15px;
  }

  .page-indicator::before {
    width: 20px;
    height: 25px;
    top: -6px;
  }

  .postcard-button {
    padding: 8px 10px;
  }

  /* Modal Adjustments */
  .modal-content {
    padding: 20px;
    border-width: 8px;
  }

  .modal-content h2 {
    font-size: 2em;
  }

  .modal-content p {
    font-size: 1em;
  }

  .modal-ticket-link,
  .event-status {
    font-size: 1.1em;
    padding: 10px 20px;
  }

  #gallery-content .vcr {
    width: 70%;
    font-size: 1rem;
    line-height: 0.75rem;
  }
}

@media (max-height: 699px) {
  #chalkboard-nav-container {
    margin-bottom: 1vh;
    height: 74vh;
    width: auto;
    bottom: 10%;
    min-width: auto;
    max-width: auto;
  }

  #chalkboard-img {
    width: auto;
    height: 100%;
  }

  #menu-title {
    font-size: 6.5vh;
    margin-bottom: 0.5vh;
  }

  #chalkboard-menu li a {
    font-size: 5.5vh;
  }

  #pull-rope-container {
    top: -630px;
  }

  .poster-wall {
    padding: 0px;
  }

  .event-poster-thumbnail {
    width: 80px;
    max-height: 100px;
    margin: 0px;
    margin-bottom: 14px;
  }

  .pagination-btn,
  .page-indicator {
    font-size: 0.8em;
    padding: 5px 10px;
  }

  #tv-vcr-unit-wrapper {
    max-width: 150px !important;
    transform: translateY(0%) !important;
  }

  #vhs-shelf {
    min-height: 100px !important;
  }

  .shelf-top,
  .shelf-bottom {
    height: 5px !important;
  }

  #postcard-envelope {
    height: 250px !important;
  }

  .postcard-front-left h2 {
    font-size: 24px !important;
  }

  .postcard-front-left p {
    font-size: 1.5vw;
  }

  .lid-front .lid-content label {
    margin: 0 !important;
  }

  .lid-front .lid-content input {
    margin-bottom: 4px !important;
    font-size: 10px !important;
    padding: 2px;
  }

  .lid-front .lid-content .instruction-text {
    font-size: 12px !important;
    margin-top: 4px !important;
  }

  .send-btn {
    font-size: 0.8em !important;
    padding: 5px 15px !important;
  }

  #message {
    padding: 6px !important;
  }

  #gallery-content .vcr {
    position: absolute;
    left: 35%;
    bottom: -150px;
  }

  #gallery-content .tv {
    position: absolute;
    right: 90%;
    bottom: -150px;
  }

  #gallery-content .tv .woodframe .crt {
    left: -10px;
  }

  #gallery-container {
    gap: 150px !important;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container,
  .vhs-shelf-page,
  #vhs-shelf {
    height: 100px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 60px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(10px);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(50%, -158%) rotateY(90deg) rotateZ(0deg) rotateX(90deg);
  }

  .play-tape-button {
    left: 70%;
    top: 45%;
    z-index: 999;
  }
}

/*
--- Height-based Adjustments --- 
*/

@media (max-height: 799px) {



  /** Home Page **/
  .digital-marquee {
    border-width: 20px;
    padding: 10px 2px;
  }

  .marquee-bulb {
    width: 24px;
    height: 24px;
  }

  .marquee-title-main-normal {
    font-size: 4vw;
    margin-bottom: 0px;
  }

  .marquee-ticket-link {
    font-size: 1.6em;
    padding: 0.5vh 1vw;
    margin-top: 10px;
  }

  .marquee-text-table td {
    font-size: 1em;
  }

  /** Events Page **/
  #chalkboard-nav-container {
    margin-bottom: 1vh;
    height: 74vh;
    width: auto;
    bottom: 10%;
    min-width: auto;
    max-width: auto;
  }

  #chalkboard-img {
    width: auto;
    height: 100%;
  }

  #menu-title {
    font-size: 6.5vh;
    margin-bottom: 0.5vh;
  }

  #chalkboard-menu li a {
    font-size: 5.5vh;
  }

  /** Gallery Page **/
  #vhs-shelf {
    min-height: 10px;
  }

  .vhs-shelf-page {
    height: 150px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container,
  .vhs-shelf-page,
  #vhs-shelf {
    height: 100px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 60px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(10px);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(50%, -158%) rotateY(90deg) rotateZ(0deg) rotateX(90deg);
  }
}

@media (max-height: 599px) {

  /** Home Page **/
  .digital-marquee {
    border-width: 10px;
    font-size: 0.6em;
    padding: 10px 2px;
  }

  .marquee-bulb {
    width: 18px;
    height: 18px;
  }

  .marquee-title-main-normal {
    font-size: 4vw;
    margin-bottom: 0px;
  }

  .marquee-ticket-link {
    font-size: 1.6em;
    padding: 0.5vh 1vw;
    margin-top: 10px;
  }

  .marquee-text-table td {
    font-size: 1em;
  }

  /** Events Page **/
  #chalkboard-nav-container {
    margin-bottom: 1vh;
    height: 74vh;
    width: auto;
    bottom: 10%;
    min-width: auto;
    max-width: auto;
  }

  #chalkboard-img {
    width: auto;
    height: 100%;
  }

  #menu-title {
    font-size: 6.5vh;
    margin-bottom: 0.5vh;
  }

  #chalkboard-menu li a {
    font-size: 5.5vh;
  }

  /** Gallery Page **/
  #vhs-shelf {
    min-height: 10px;
  }

  .vhs-shelf-page {
    height: 150px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container,
  .vhs-shelf-page,
  #vhs-shelf {
    height: 100px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 60px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(10px);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(50%, -158%) rotateY(90deg) rotateZ(0deg) rotateX(90deg);
  }
}

@media (max-height: 499px) {

  /** Home Page **/
  .digital-marquee {
    border-width: 10px;
    font-size: 0.6em;
    padding: 10px 2px;
  }

  .marquee-bulb {
    width: 18px;
    height: 18px;
  }

  .marquee-title-main-normal {
    font-size: 4vw;
    margin-bottom: 0px;
  }

  .marquee-ticket-link {
    font-size: 1.6em;
    padding: 0.5vh 1vw;
    margin-top: 10px;
  }

  .marquee-text-table td {
    font-size: 1em;
  }

  /** Events Page **/
  #chalkboard-nav-container {
    margin-bottom: 1vh;
    height: 74vh;
    width: auto;
    bottom: 10%;
    min-width: auto;
    max-width: auto;
  }

  #chalkboard-img {
    width: auto;
    height: 100%;
  }

  #menu-title {
    font-size: 6.5vh;
    margin-bottom: 0.5vh;
  }

  #chalkboard-menu li a {
    font-size: 5.5vh;
  }

  /** Gallery Page **/
  #vhs-shelf {
    min-height: 10px;
  }

  .vhs-shelf-page {
    height: 150px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--left,
  #gallery-content .vhs-tape-container .tape-cover__face--right,
  .vhs-tape-container,
  .vhs-shelf-page,
  #vhs-shelf {
    height: 100px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--front,
  #gallery-content .vhs-tape-container .tape-cover__face--back,
  #gallery-content .vhs-tape-container .tape-cover__face--top,
  #gallery-content .vhs-tape-container .tape-cover__face--bottom,
  .vhs-tape-container {
    width: 60px;
  }

  #gallery-content .vhs-tape-container .tape-cover__face--bottom {
    transform: rotateX(-90deg) translateZ(10px);
  }

  #gallery-content .vhs-tape-container.inserting {
    transform: translate(87%, -158%) rotateY(90deg) rotateZ(0deg) rotateX(90deg);
  }
}