a {
    text-decoration: none;
}

.intro-content {
  margin: auto;
  background: rgba(0, 0, 0, 0.7);
  padding: 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 650px;
}

.intro-content h1 {
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.intro-content > div {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
}

.intro-content a {
  color: #87ceeb !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(135, 206, 235, 0.6);
  font-weight: 600;
  transition: all 0.2s ease-out;
}

.intro-content a:hover {
  color: #b0e0e6 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(176, 224, 230, 0.8);
  text-decoration: underline !important;
}

.intro-content hr {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.credits {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.7);
  margin-top: 1.5rem;
  padding-top: 1rem;
  line-height: 1.8;
}

.credits div {
  margin-bottom: 0.5rem;
}

.credits b,
.credits i {
  color: #ffd700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(255, 215, 0, 0.6);
}

.blog-post {
  display: block;
  margin: 10px;
  /* background: rgba(0, 0, 0, 0.6); */
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  /* -webkit-backdrop-filter: blur(8px); */
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); */
  margin-bottom: 2rem;
}

.blog-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.blog-text-content {
  flex: 0 0 600px; /* Increase fixed width for text */
  min-width: 450px; /* Minimum width */
}

.blog-image-container {
  flex: 1; /* Take up remaining space */
  min-width: 650px; /* Increase minimum width */
}

.blog-image {
  width: 100%;
  height: 100%;
  max-height: 600px; /* Limit height to reasonable size */
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.blog-line {
  padding: 1.5rem;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.blog-head {
  font-weight: bold;
  font-size: 2.5rem;
  color: #ffffff;
  /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 0, 0, 0.6); */
  padding: 1.5rem;
  /* background: rgba(0, 0, 0, 0.6); */
  border-radius: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4); */
  width: 100%;
  margin-bottom: 20px;
  border-bottom: none;
}

.blog-content-row {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

.blog-lines-container {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-post {
  display: block;
  margin: 10px;
}

.main-content {
  display: flex;
  flex: 1;
  justify-content: space-between;
  padding: 10px;
}

.left-content {
  width: 100%; /* Full width to allow timeline to span full screen */
  display: flex;
  flex-direction: column;
}

.timeline-container {
  position: sticky;
  top: 5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  height: 36px;
  overflow: visible;
  z-index: 1;
  margin-bottom: 50px;
  border-radius: 18px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 75%; /* Match the content width */
  max-width: 1400px; /* Match the content max-width */
  margin-left: auto; /* Center horizontally */
  margin-right: auto; /* Center horizontally */
}

.content {
  flex: 1;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.timeline-container {
  position: sticky;
  top: 5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  height: 36px;
  overflow: visible;
  z-index: 1;
  margin-bottom: 50px;
  border-radius: 18px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.timeline-container .timeline {
  position: relative;
  width: 100%;
  height: 100%;
}

.scrubber {
  position: absolute;
  width: 20px;
  height: 36px;
  background: linear-gradient(135deg, #333 0%, #000 100%);
  cursor: grab;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  z-index: 5;
}

.scrubber:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.scrubber:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.progress-bar {
  position: absolute;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ffed4e 50%,
    #ffd700 100%
  );
  opacity: 85%;
  z-index: 1;
  width: 0;
  transition: width 0.2s ease-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* Content class is now styled above in .left-content section */

/* Style links in blog posts */
.blog-post a,
.blog-line a {
  color: #87ceeb !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(135, 206, 235, 0.6);
  font-weight: 600;
  transition: all 0.2s ease-out;
}

.blog-post a:hover,
.blog-line a:hover {
  color: #b0e0e6 !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9),
    0 0 12px rgba(176, 224, 230, 0.8);
  text-decoration: underline !important;
}

.right-content {
  width: 50%;
}

/* Ensure all text in main content area is readable */
.main-content {
  color: #ffffff;
}

.main-content p,
.main-content
  div:not(.timeline-timestamp):not(.scrubber):not(.progress-bar) {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
    0 0 8px rgba(0, 0, 0, 0.7);
}

#vrview {
  margin-left: 2.5rem;
  margin-right: 2.5rem;
  position: sticky;
  top: 3.5rem;
  height: 85vh;
}

.sun-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.sun {
  border-radius: 50%;
  position: absolute;
  transition: all 0.3s ease-out;
}

#sun1 {
  width: 140px;
  height: 140px;
  background: radial-gradient(
    circle at 35% 35%,
    #fff9e6 0%,
    #ffe066 30%,
    #ffb347 60%,
    #ff8c42 100%
  );
  box-shadow: 0 0 40px rgba(255, 200, 50, 0.8),
    0 0 80px rgba(255, 150, 50, 0.5), 0 0 120px rgba(255, 100, 50, 0.3);
  opacity: 0;
}

#sun2 {
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle at 30% 30%,
    #ffffff 0%,
    #fff4cc 40%,
    #ffd966 80%,
    #ffb347 100%
  );
  box-shadow: 0 0 20px rgba(255, 220, 100, 0.9),
    0 0 40px rgba(255, 180, 80, 0.6), 0 0 60px rgba(255, 140, 60, 0.4);
  opacity: 0;
}

.timeline-timestamps {
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  pointer-events: none;
  z-index: 10;
}

.timeline-timestamp {
  position: absolute;
  cursor: pointer;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.7rem;
  padding: 4px 6px;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(20, 20, 20, 0.85) 100%
  );
  border-radius: 6px;
  transition: all 0.2s ease-out;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  min-width: 26px;
  text-align: center;
  pointer-events: auto;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timeline-timestamp:hover {
  z-index: 11;
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.2) 0%,
    rgba(255, 215, 0, 0.1) 100%
  );
  border-color: rgba(255, 215, 0, 0.6);
  color: #ffed4e;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(255, 215, 0, 0.3);
}

.timeline-timestamp:active {
  transform: translateX(-50%) translateY(0);
}

/* Time of day specific styling */
.timeline-timestamp.night-time {
  border-color: rgba(100, 100, 200, 0.4);
  background: linear-gradient(
    135deg,
    rgba(20, 20, 60, 0.85) 0%,
    rgba(30, 30, 80, 0.85) 100%
  );
}

.timeline-timestamp.night-time:hover {
  border-color: rgba(100, 100, 255, 0.6);
  background: linear-gradient(
    135deg,
    rgba(80, 80, 180, 0.3) 0%,
    rgba(60, 60, 140, 0.2) 100%
  );
}

.timeline-timestamp.morning-time {
  border-color: rgba(255, 180, 100, 0.4);
  background: linear-gradient(
    135deg,
    rgba(60, 40, 20, 0.85) 0%,
    rgba(80, 50, 20, 0.85) 100%
  );
}

.timeline-timestamp.morning-time:hover {
  border-color: rgba(255, 180, 100, 0.7);
  background: linear-gradient(
    135deg,
    rgba(255, 180, 100, 0.3) 0%,
    rgba(255, 140, 80, 0.2) 100%
  );
}

.timeline-timestamp.day-time {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(
    135deg,
    rgba(40, 40, 20, 0.85) 0%,
    rgba(50, 50, 30, 0.85) 100%
  );
}

.timeline-timestamp.day-time:hover {
  border-color: rgba(255, 220, 100, 0.8);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3) 0%,
    rgba(255, 215, 0, 0.2) 100%
  );
}

.timeline-timestamp.evening-time {
  border-color: rgba(255, 100, 100, 0.4);
  background: linear-gradient(
    135deg,
    rgba(60, 20, 20, 0.85) 0%,
    rgba(80, 30, 30, 0.85) 100%
  );
}

.timeline-timestamp.evening-time:hover {
  border-color: rgba(255, 120, 100, 0.7);
  background: linear-gradient(
    135deg,
    rgba(255, 100, 100, 0.3) 0%,
    rgba(255, 80, 60, 0.2) 100%
  );
}

.tour-guide {
  text-align: center;
  align-self: center;
  font-size: large;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(0, 0, 0, 0.7);
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Add subtle pulsing animation to current hour */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
      0 0 12px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(255, 215, 0, 0.5);
  }
}

/* Progress bar shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 940px) {
  .main-content {
    flex-direction: column-reverse;
    align-items: center;
    margin-left: 0;
  }

  .left-content,
  .right-content {
    width: 100%; /* Full width for smaller screens */
  }
  .left-content {
    padding-top: 5rem;
  }

  .content {
    width: 100%; /* Full width on mobile */
  }

  .timeline-timestamps {
    top: -32px;
  }
  .timeline-container {
    top: 5rem;
    height: 32px;
    margin-bottom: 15px;
  }
  .timeline-timestamp {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 4px 5px;
    min-width: 24px;
  }
  .scrubber {
    width: 18px;
    height: 32px;
  }
  .progress-bar {
    height: 32px;
  }

  /* Mobile blog wrapper layout - stack vertically */
  .blog-wrapper {
    flex-direction: column;
  }

  /* Reset fixed widths for mobile */
  .blog-text-content {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .blog-image-container {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  /* Make blog content rows stack vertically */
  .blog-content-row {
    flex-direction: column;
  }

  .blog-lines-container {
    flex: 1 1 auto;
    width: 100%;
  }

  .blog-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
  }

  #sun1 {
    width: 100px;
    height: 100px;
  }

  #sun2 {
    width: 60px;
    height: 60px;
  }

  /* Mobile text adjustments */
  .intro-content {
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 1.5rem;
  }

  .intro-content h1 {
    font-size: 2rem;
  }

  .blog-post {
    padding: 1rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .blog-head {
    font-size: 2rem;
    padding: 1rem;
  }

  .blog-line {
    font-size: 0.95rem;
    padding: 1rem;
  }
}

/* Explore page */
    #floor-plan-container {
      max-width: 800px;
      height: auto;
      overflow-x: hidden;
      display: flex;
      padding: 40px;
      margin: auto;
      justify-content: center;
    }

    #svg1 {
      width: 100%;
      height: auto;
      overflow-x: hidden;
      display: block;
      filter: drop-shadow(2px 2px 15px white);
      transform: rotate(90deg);
    }

    .room-overlay {
      cursor: pointer;
      fill: rgba(255, 165, 0, 0);
      stroke: none;
      transition: all 0.3s ease;
    }

    .room-overlay:hover {
      fill: rgba(241, 90, 36, 0.2);
      stroke: #f15a24;
      stroke-width: 5;
    }

    .room-overlay.active {
      fill: rgba(241, 90, 36, 0.3);
      stroke: #f15a24;
      stroke-width: 5;
    }

    #popup {
      position: fixed;
      background: rgba(255, 255, 255, 0.98);
      border: 2px solid #00224e;
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      z-index: 1000;
      display: none;
      max-width: min(400px, 90vw);
      min-width: min(300px, 80vw);
    }

    #popup.visible {
      display: block;
    }

    #popup-title {
      color: #00224e;
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      font-weight: bold;
      margin: 0 0 15px 0;
      padding-bottom: 10px;
      border-bottom: 2px solid #00224e;
      padding-right: 40px;
    }

    #close-button {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid #00224e;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s ease;
    }

    #close-button:hover {
      background: rgba(241, 90, 36, 0.3);
      border-color: #f15a24;
    }

    #close-button::before,
    #close-button::after {
      content: '';
      position: absolute;
      width: 16px;
      height: 2.5px;
      background: #00224e;
      border-radius: 2px;
    }

    #close-button::before {
      transform: rotate(45deg);
    }

    #close-button::after {
      transform: rotate(-45deg);
    }

    #close-button:hover::before,
    #close-button:hover::after {
      background: #f15a24;
    }

    #popup-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .popup-link {
      color: #00224e;
      text-decoration: none;
      padding: 12px 15px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(0, 34, 78, 0.3);
      border-radius: 6px;
      transition: all 0.2s ease;
      display: block;
      font-size: clamp(0.9rem, 2vw, 1.1rem);
      line-height: 1.4;
    }

    .popup-link:hover {
      background: rgba(241, 90, 36, 0.3);
      border-color: #f15a24;
    }

    .popup-link::after {
      content: ' →';
    }

    .instruction-box {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
        padding: 1rem;
        font-size: 16pt;
        text-align: center;
        max-width: 400px;
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        color: white;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }

    .instruction-text {
        text-align: center;
    }

    #article-grid {
        display: flex;
        flex-wrap: wrap;
        max-width: 800px;
        padding: 30px;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin: 0 auto;
    }

    .article {
      display:flex;
      width:300px;
      height:250px;
      padding:6px 10px;
      flex-direction:column;
      justify-content:center;
      align-items:center;
      gap:10px;
      border-radius:5px;
      border:3px solid #fff;
      background:black;
      box-shadow:0 4px 4px 0 rgb(0 0 0 / .25);
    }

    .article-subtitle {
      color:#fff;
      text-transform:uppercase;
      font-weight:700
    }
    .article-media {
      height:130px;
      border-radius:5px;
      overflow:hidden;
      object-fit:cover;
      margin:0
    }
    .article-title {
      display:flex;
      color:#fff;
      font-size:12pt;
      height:70px;
      flex-direction:column;
      justify-content:center;
      flex-shrink:0;
      text-align:center;
    }

    .compass {
        width: 50px;
    }

    @media (max-width: 768px) {

      #popup {
        padding: 15px;
        max-width: 95vw;
      }

      #popup-title {
        font-size: clamp(1rem, 4vw, 1.5rem);
        margin-bottom: 12px;
      }

      .popup-link {
        padding: 10px 12px;
        font-size: clamp(0.85rem, 3vw, 1rem);
      }
    }
