/* Ensure no horizontal scroll */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Reset and basic styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cinzel', serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  padding: 1em 1em 0 1em; /* top, right, bottom, left */
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation Menu */
.main-nav {
  position: relative;
  margin-bottom: 1em;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #ff4444;
  font-size: 2rem;
  cursor: pointer;
}
.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 2em;
  padding: 0;
}
.nav-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-weight: 600;
}
.nav-menu a:hover {
  color: #fe2631;
} 

/* Responsive adjustments for small screens */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    margin: 0 auto;
    margin-bottom: 1em;
  }
  .nav-menu {
    flex-direction: column;
    display: none;  /* Hidden by default on mobile */
    width: 100%;
    text-align: center;
    gap: 0.8em;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 0.5em 0;
  }
}

/* Main Container */
/* Added extra bottom padding so content is not hidden by fixed footer */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  padding-bottom: 0px;  /* Adjust this value if your footer height changes */
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

/* Background Image */
.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/images/bg7.png') center/cover no-repeat;
  z-index: -3;
  filter: brightness(40%);
}

/* Background Video */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(80%);
}

h1 {
  text-align: center;
  font-size: 3rem;
  font-family: 'Special Elite', cursive;
  color: #ff0000;
  text-shadow: 2px 2px 10px rgba(255, 0, 0, 0.7);
  margin-bottom: 0.3em;
  }

.subtitle {
  text-align: center;
  margin-bottom: 1em;
}

.subtitle a {
    color: #ff4444; /* Blood red links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }
  
  .subtitle a:hover {
    color: #ff0000; /* Brighter red on hover */
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.8);
  }



/* Dark Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 1em;
}

header h1 {
  font-family: 'Special Elite', cursive;
  font-size: 3rem;
  color: #ff0000;
  text-shadow: 2px 2px 10px rgba(255, 0, 0, 0.7);
}

/* Breadcrumb */
.breadcrumb {
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.1rem;
}

.breadcrumb a {
  color: #ff4444;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #ff0000;
}

/* Timeline Intro */
.timeline-intro {
  text-align: center;
  margin-bottom: 2em;
  font-size: 1.1rem;
}
  /* Back to Top Arrow */
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #660000; /* Blood-red background */
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    text-align: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1000;
  }
  
  .back-to-top:hover {
    background: #ff0000;
  }

/* Timeline Section */
.timeline {
  border-left: 3px solid #660000;
  padding-left: 2em;
}

.timeline-event {
  margin-bottom: 2em;
  position: relative;
  padding-left: 1em;
}

.timeline-event::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: #ff0000;
  border-radius: 50%;
  border: 3px solid #660000;
}

.year {
  font-size: 1.5rem;
  color: #ff0000;
  margin-bottom: 0.5em;
  font-family: 'Special Elite', cursive;
}

.event-description {
  font-size: 1rem;
  color: #fff;
}




.footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  text-align: center;
  font-size: 1rem;
  font-family: 'Cinzel', serif;
  color: #bbb;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 1em;
  border-top: 2px solid #660000; /* Blood-red top border */
  text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.5);
}


/* Footer links */
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: #ff0000;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }
  .breadcrumb {
    font-size: 1rem;
  }
  .timeline-intro {
    font-size: 1rem;
  }
  .year {
    font-size: 1.3rem;
  }
  .event-description {
    font-size: 0.9rem;
  }
}
@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  .breadcrumb {
    font-size: 0.9rem;
  }
  .timeline-intro {
    font-size: 0.9rem;
  }
  .year {
    font-size: 1.1rem;
  }
  .event-description {
    font-size: 0.8rem;
  }
  .container {
    padding: 1em;
  }
}
