/* Remove default margins and ensure full viewport size */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.cv {
  font-family: 'Source Code Pro', monospace;
  text-transform: uppercase;
  word-spacing: -0.3em;
  /* Halve the spacing between words */
  letter-spacing: 0.1em;
  /* Add a bit of spacing between letters */
}

/* Slideshow container covering the entire viewport */
.slideshow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* All images are absolutely positioned and fill the container */
.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 4s ease-in-out;
}

/* The active image is visible */
.slideshow img.active {
  opacity: 1;
}

/* Darken slideshow when info panel is open */
body.info-panel-open .slideshow img {
  filter: brightness(0.75);
}

/* Logo styling */
.logo-link {
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 100;
  display: block;
}

.logo {
  width: 538px;
  /* 112% of original 480px */
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  /* Stronger shadow */
}

/* Info link styling */
.info-link {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100;
  text-decoration: none;
  color: white;
  padding: 0;
  transition: color 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.info-link svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
}

.info-link:hover {
  color: yellow;
}

/* Info panel styling */
.info-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
}

.info-panel.active {
  opacity: 1;
  visibility: visible;
}

.info-panel-content {
  margin: 0 auto;
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.35;
  color: white;
  /* Black text */
}

.close-btn {
  position: fixed;
  top: 20px;
  /* Same as info link */
  right: 20px;
  font-family: 'Source Code Variable', monospace;
  color: white;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 201;
  /* Ensure it's above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.close-btn svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.9));
  transform: rotate(45deg);
  /* Rotate to make X */
}

.close-btn:hover {
  color: yellow;
}

/* Typography */
.info-panel-content h1 {
  font-weight: 500;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 2em;
}

.info-panel-content h2 {
  font-weight: 600;
  /* Semibold */
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  font-size: 1.3em;
  text-transform: uppercase;
}

.info-panel-content h2.cv {
  font-weight: 600;
  /* Semibold */
  margin-bottom: 0.5em;
  font-size: 1.5em;
  text-transform: uppercase;
}

.info-title-logo {
  width: 180px;
  /* Adjust width to match the size of the original title */
  height: auto;
  padding-bottom: 0.75em;
  /* Same margin as the original title */
  display: block;
  margin-top: 0.4em;
  /* Remove top margin to match section box padding */
  margin-left: -5px;
  /* Ensure left alignment */
  text-align: left;
  /* Ensure left alignment */
}


.info-panel-content p {
  margin-bottom: 1em;
}

/* Link styling with arrow */
.info-panel-content a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.info-panel-content a::after {
  content: "↗";
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-left: 0.2em;
  font-size: 0.9em;
}

.info-panel-content a:hover {
  color: yellow;
}

.section-box {
  margin-bottom: 1em;
  /* Half the spacing */
  padding: 2.5em;
  /* Even more padding */
  color: #b0b0b0;
  background-color: black;
  /* Neutral gray without transparency */
  border-radius: 4px;
}

.intro-box {
  color: #ddd;
  /* Lighter color for the intro box */
}

.section-box h2 {
  margin-top: 0;
}

.section-box p:last-child {
  margin-bottom: 0;
}

.info-panel-content em {
  font-style: italic;
}

.news-image {
  width: 100%;
  height: auto;
  margin: 1em 0;
}

.support-text {
  color: #abfad6a4 !important;
  /* Darker gray */
}

/* Responsive layout */
/* Mobile styles */
@media (max-width: 767px) {
  .logo {
    width: 358px;
    /* 112% of original 320px */
  }

  .info-link {
    font-size: 1em;
    /* Match scrolling strip on mobile */
    top: 15px;
    /* Vertically centered with the logo */
    right: 15px;
    /* 60% of desktop distance (20px) */
  }

  .info-link svg {
    width: 28px;
    height: 28px;
  }

  .close-btn svg {
    width: 19px;
    height: 19px;
  }

  .info-panel {
    padding: 20px;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
  }

  .info-panel-content {
    width: 100%;
    /* Reduced margins (10px on each side) */
    margin: 0 auto;
    /* Center the content */
    padding: 0;
    font-size: 14.08px;
    /* 12% smaller for mobile */
    max-width: 100%;
    /* Ensure content doesn't exceed viewport width */
  }



  .section-box {
    padding: 1.5em;
    /* Slightly reduce padding on mobile */
  }

  .info-title-logo {
    width: 150px;
    /* Smaller logo size for mobile */
  }
}

/* Desktop styles - single column at right */
@media (min-width: 768px) {
  .info-panel {
    padding: 20px 50px;
    /* Reduced top padding */
  }

  .info-panel-content {
    max-width: 600px;
    font-size: 14px;
    /* Smaller text */
    margin-right: 20px;
    /* Equal to top padding */
    margin-left: auto;
    /* Push to the right side */
    padding-top: 0;
    /* Remove top padding */
  }



  .section-box:first-child {
    margin-top: 0;
    /* No margin for first section box */
  }
}

/* Scrolling text strip */
.scrolling-strip {
  position: fixed;
  top: 66.66%;
  left: 0;
  width: 100%;
  background-color: black;
  transform: translateY(-50%);
  z-index: 150;
  /* Above slideshow (0), below info panel (200) */
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.5s ease;
  /* Smooth fade transition */
}

/* Fade out scrolling strip when info panel is open */
body.info-panel-open .scrolling-strip {
  opacity: 0;
  pointer-events: none;
  /* Prevent clicks when faded out */
}

.scrolling-wrapper {
  display: inline-block;
  white-space: nowrap;
  animation: scroll-left linear infinite;
  /* Duration set by JS */
}

.scrolling-item {
  display: inline-block;
  font-family: 'Source Code Pro', monospace;
  color: #FFCBA4;
  /* Peach color */
  font-size: 1.2em;
  padding-right: 15ch;
  /* 15 character gap */
}

.mint-text {
  color: #abfad6da !important;
  /* Mint color */
}

.peach-text {
  color: #FFCBA4 !important;
  /* Peach color */
}

/* Opening hours table alignment */
.opening-hours-table {
  width: auto;
  /* Changed from 100% to prevent stretching */
  max-width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
  font-variant-numeric: tabular-nums;
}

.opening-hours-table td {
  padding: 0;
  padding-bottom: 0.2em;
  vertical-align: top;
  border: none;
}

.opening-hours-table .day {
  padding-right: 0.2em;
  /* Reduced from 0.5em */
  white-space: nowrap;
}

.opening-hours-table .date {
  padding-right: 0.2em;
  /* Reduced from 0.5em */
  white-space: nowrap;
}

.opening-hours-table .time {
  text-align: left;
  white-space: nowrap;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  .scrolling-item {
    font-size: 0.6em;
    /* Twice smaller on mobile */
  }
}