html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #000;
    border: none;
    box-shadow: none;
    font-family: Arial, sans-serif;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    background-color: #000;
}

.video-container video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    pointer-events: auto;
}

.hamburger-icon {
    z-index: 3001;
    pointer-events: auto;
}

.menu-items {
    z-index: 3000;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    display: block;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 9px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

/* Hamburger Menu Overlay */
.menu-items {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    transition: 0.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-items.active {
    right: 0;
}
.menu-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.menu-items ul li {
    margin: 20px 0;
}
.menu-items ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    font-family: 'HeliosExt', Arial, Helvetica, sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    transition: 0.3s ease;
    display: inline-block;
    padding: 10px 20px;
}
.menu-items ul li a:hover {
    color: #888;
    transform: scale(1.1);
}

@font-face {
  font-family: 'HeliosExt';
  src: url('/fonts/HeliosExt.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body.story-page {
  font-family: 'HeliosExt', Arial, Helvetica, sans-serif;
}

body.zero-page {
  font-family: 'HeliosExt', Arial, Helvetica, sans-serif;
} 
/* SUB-MENU: style only the nested links */
.menu-items ul li ul.sub-menu {            /* indent the group */
  margin: 0 0 20px 0;
  padding-left: 0;
  border-left: none;
  text-align: center;                      /* center the sub-menu items */
}

.menu-items ul li ul.sub-menu li a {       /* more specific than the global rule */
  font-size: 10px !important;              /* much smaller than 2em */
  font-family: 'HeliosExt', Arial, Helvetica, sans-serif !important;
  color: #999 !important;                  /* grey color */
  font-weight: 200 !important;
  letter-spacing: 0.5px !important;
  padding: 3px 10px !important;
  display: inline-block !important;        /* easier click target */
  opacity: 0.8 !important;
}

.menu-items ul li ul.sub-menu li a:hover {
  color: #fff;
  transform: none;                         /* prevent the big scale effect */
  opacity: 1;
}

/* Grey color and small font size for ZERO, DARKSIDE, and KINDRED */
.menu-items ul li a[href="zero.html"],
.menu-items ul li .sub-menu li a[href="darkside.html"],
.menu-items ul li .sub-menu li a[href="kindred.html"],
.menu-items ul li a[href="darkside-soundtrack.html"] {
  color: #666 !important;
  font-weight: 300 !important;
  font-size: 10px !important;
  letter-spacing: 0.5px !important;
  padding: 3px 10px !important;
  opacity: 0.8 !important;
  text-align: center !important;
  display: inline-block !important;
}

/* Make SOUNDTRACK page non-clickable but larger */
.menu-items ul li a[href="soundtrack.html"]:not(.zero-soundtrack) {
  color: #fff !important;
  font-weight: 300 !important;
  font-size: 1.5em !important;
  letter-spacing: 2px !important;
  padding: 10px 20px !important;
  opacity: 1 !important;
  text-align: center !important;
  display: inline-block !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* Make ZERO SOUNDTRACK clickable and small */
.menu-items ul li a[href="soundtrack.html"].zero-soundtrack {
  color: #666 !important;
  font-weight: 300 !important;
  font-size: 10px !important;
  letter-spacing: 0.5px !important;
  padding: 3px 10px !important;
  opacity: 0.8 !important;
  text-align: center !important;
  display: inline-block !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Make SOUNDTRACKS page non-clickable */
.menu-items ul li a[href="soundtracks.html"] {
  pointer-events: none !important;
  cursor: default !important;
}

/* Typewriter cursor animation */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.typewriter-cursor {
  animation: blink 1s infinite;
  color: #888;
}


/* STORY menu item styling to match HOME and other main menu items */
.story-menu-item {
    color: #fff !important;
    font-size: 1.5em !important;
    font-weight: 300 !important;
    letter-spacing: 2px !important;
    display: inline-block !important;
    padding: 10px 20px !important;
    text-decoration: none !important;
    transition: 0.3s ease !important;
}

/* Remove bottom margin from li elements that contain submenus */
.menu-items ul li:has(ul.sub-menu) {
    margin-bottom: 0;
}

/* Mobile Optimization - Responsive Design */

/* Large Mobile and Small Tablet (480px - 768px) */
@media screen and (max-width: 768px) {
    .hamburger-icon {
        width: 35px;
        height: 25px;
    }
    
    .hamburger-icon span {
        height: 3px;
    }
    
    .hamburger-icon span:nth-child(2) {
        top: 11px;
    }
    
    .hamburger-icon span:nth-child(3) {
        top: 22px;
    }
    
    .menu-items ul li a {
        font-size: 1.8em;
        padding: 15px 25px;
    }
    
    .menu-items ul li .sub-menu li a {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }
    
    .menu-items ul li {
        margin: 25px 0;
    }
}

/* Mobile (320px - 480px) */
@media screen and (max-width: 480px) {
    .hamburger-menu {
        top: 15px !important;
        right: 15px !important;
    }
    
    .hamburger-icon {
        width: 25px !important;
        height: 18px !important;
    }
    
    .hamburger-icon span {
        height: 2px !important;
    }
    
    .hamburger-icon span:nth-child(2) {
        top: 8px !important;
    }
    
    .hamburger-icon span:nth-child(3) {
        top: 16px !important;
    }
    
    .menu-items ul li a {
        font-size: 1.2em !important;
        padding: 15px 20px !important;
        letter-spacing: 2px !important;
    }
    
    .menu-items ul li .sub-menu li a {
        font-size: 10px !important;
        padding: 8px 15px !important;
        letter-spacing: 1px !important;
    }
    
    .menu-items ul li {
        margin: 20px 0 !important;
    }
    
    .menu-items ul li .sub-menu {
        margin: 0 0 20px 0 !important;
    }
}

/* Small Mobile (320px and below) */
@media screen and (max-width: 320px) {
    .hamburger-menu {
        top: 10px !important;
        right: 10px !important;
    }
    
    .hamburger-icon {
        width: 22px !important;
        height: 16px !important;
    }
    
    .hamburger-icon span {
        height: 2px !important;
    }
    
    .hamburger-icon span:nth-child(2) {
        top: 7px !important;
    }
    
    .hamburger-icon span:nth-child(3) {
        top: 14px !important;
    }
    
    .menu-items ul li a {
        font-size: 1em !important;
        padding: 12px 18px !important;
        letter-spacing: 1.5px !important;
    }
    
    .menu-items ul li .sub-menu li a {
        font-size: 9px !important;
        padding: 6px 12px !important;
        letter-spacing: 0.5px !important;
    }
    
    .menu-items ul li {
        margin: 15px 0 !important;
    }
}

/* Touch-friendly improvements for all mobile devices */
@media (hover: none) and (pointer: coarse) {
    .menu-items ul li a:hover {
        transform: none;
    }
    
    .menu-items ul li a:active {
        color: #888;
        transform: scale(0.95);
    }
    
    .hamburger-icon:active {
        transform: scale(0.9);
    }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .menu-items ul li {
        margin: 15px 0;
    }
    
    .menu-items ul li a {
        font-size: 1.4em;
        padding: 10px 20px;
    }
    
    .menu-items ul li .sub-menu li a {
        font-size: 10px !important;
        padding: 5px 10px !important;
    }
}
