* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('../images/hk-arrow-28.png') 0 0, auto;
}

@font-face {
  font-family: 'iA Writer Quattro';
  src: url('../fonts/iAWriterQuattroS-Regular.woff2') format('woff2'),
       url('../fonts/iAWriterQuattroS-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

body, html {
  height: 100%;
  font-family: 'iA Writer Quattro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000;
  scroll-behavior: smooth;
}

.container {
  display: flex;
  height: 100vh;
  margin-left: 160px; /* Account for static navigation width */
  overflow: hidden;
}

/* RIGHT SIDE */
.right {
  width: 100%;
  background-color: #fff;
  position: relative;
  overflow-y: scroll;
  flex: 1;
}

.film-section {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
  scroll-margin-top: 50px;
}

.film-section:first-of-type {
  margin-bottom: 60px;
  margin-top: 0;
}

.film-section:first-of-type .section-image-wrapper {
  margin-top: 0;
}

.film-section:last-of-type {
  margin-bottom: 0;
}

.section-image-wrapper {
  width: 50%;
  flex-shrink: 0;
}

.section-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.perennials-image {
  height: auto;
}

.disappearing-image {
  height: auto;
}


.section-content {
  width: 50%;
  padding-top: 50px;
}

/* Align On Disappearing, A Killer Melody, and Sex Dream content with their images */
#on-disappearing .section-content,
#a-killer-melody .section-content,
#sex-dream .section-content {
  align-self: flex-start;
  padding-top: 0;
}

/* TICKER BAR */
.ticker {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 2px solid red;
  overflow: hidden;
  white-space: nowrap;
  z-index: 100;
  height: 28px;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  margin-left: 50%;
  margin-right: -60px;
  width: calc(50% + 60px);
  padding-right: 60px;
}


.ticker-text {
  display: inline-block;
  color: red;
  font-size: 12px;
  font-family: monospace;
  animation: ticker-scroll 25s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-text + .ticker-text {
  margin-left: 40px;
}

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

@media (max-width: 900px) {
  .ticker {
    display: none;
  }
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-indicator.hidden {
  opacity: 0;
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 5px;
  font-weight: 500;
}

.scroll-arrow {
  font-size: 24px;
  color: #666;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* CONTENT */
.content {
  padding: 0 60px 40px 20px;
  max-width: 100%;
  margin-top: -28px;
}

.content > .ticker {
  margin-bottom: 0;
}

.content > .scroll-indicator:first-child + .film-section,
.content > .film-section:first-of-type {
  margin-top: 28px;
  padding-top: 0;
}

.section-image-wrapper:first-child {
  margin-top: 0;
}

h1 {
  color: red;
  font-size: 32px;
  font-family: 'Archivo Black', sans-serif;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: normal;
  color: #000;
  text-decoration: none;
}

h2:nth-of-type(2) {
  border-top: 1px solid #ccc;
  padding-top: 30px;
}

h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: normal;
  color: #000;
  text-decoration: none;
}

p {
  margin-bottom: 15px;
  line-height: 1.4;
  font-size: 11px;
}

ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 6px;
  font-size: 11px;
}

em {
  font-style: italic;
}

.section-content a {
  color: black;
  text-decoration: underline;
  font-weight: 900;
  text-shadow: 0.1px 0 0 black, -0.1px 0 0 black;
}

.section-content a:hover {
  color: #000;
  text-decoration: underline;
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

.publication-list a {
  color: black;
  text-decoration: underline;
  font-weight: 900;
  text-shadow: 0.1px 0 0 black, -0.1px 0 0 black;
}

.publication-list a:hover {
  color: #000;
  text-decoration: underline;
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

.links {
  margin-top: 30px;
}

.links a {
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.links a:hover {
  color: #000;
  text-decoration: underline;
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

/* Static Navigation Menu */
.static-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 160px;
  height: 100vh;
  background-color: white;
  padding-top: 0;
  z-index: 30;
}

.static-nav a {
  display: block;
  padding: 14px 30px;
  text-decoration: none;
  font-size: 16px;
  color: black;
  font-weight: 500;
  transition: 0.2s;
}

.static-nav .nav-title {
  padding: 14px 30px;
  text-align: left;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: black;
  border-bottom: none;
  text-decoration: none;
  display: block;
}

.nav-title:hover {
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

.static-nav a:hover,
.static-nav a:active {
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

/* Dropdown Menu Styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: block;
  cursor: pointer;
}


/* Hide dropdown by default, only show on .film-page */
.dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding-left: 15px;
  transition: max-height 0.3s ease-out;
}

body.film-page .dropdown .dropdown-content,
body.film-page .dropdown.active .dropdown-content,
body.about-page .dropdown .dropdown-content,
body.about-page .dropdown.active .dropdown-content,
body.contact-page .dropdown .dropdown-content,
body.contact-page .dropdown.active .dropdown-content {
  max-height: 200px;
}

.dropdown-content a {
  padding: 5px 30px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  border-left: 2px solid transparent;
  text-transform: lowercase;
  line-height: 1;
}

.dropdown-content a:hover {
  color: #000;
  border-left: 2px solid #000;
  background-color: rgba(0,0,0,0.05);
  text-decoration: underline;
  text-shadow: 0 0 8px #FFD700, 0 0 16px #FFD700;
}

/* MOBILE */
@media (max-width: 900px) {
  .static-nav {
    width: 100%;
    height: auto;
    padding-top: 0;
    position: relative;
  }

  .static-nav a {
    display: inline-block;
    padding: 15px;
    font-size: 18px;
  }

  .ticker {
    display: none;
  }

  .container {
    flex-direction: column;
    margin-left: 0;
  }

  .left, .right {
    width: 100%;
    position: relative;
    margin: 0;
  }

  .left {
    height: 50vh;
    left: 0;
  }

  .right {
    height: auto;
  }
  
  .prev-btn, .next-btn {
    font-size: 1.5rem !important;
    padding: 5px 10px !important;
  }
  
  .slide-dots {
    bottom: 10px !important;
  }
  
  .dot {
    width: 10px !important;
    height: 10px !important;
  }
}

/* SLIDESHOW STYLES */
.slideshow-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: white;
}

.slideshow {
  width: 100%;
  position: relative;
  display: block;
  line-height: 0;
}

.slide {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide:first-child {
  position: relative;
  margin: 0;
  padding: 0;
  display: block;
}

.slide.active {
  opacity: 1;
}

.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 1.5rem;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.prev-btn:hover, .next-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.prev-btn {
  left: 5px;
}

.next-btn {
  right: 5px;
}

.slide-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: rgba(255, 255, 255, 1);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
