body {
  margin: 0;
  background: #0e0e0e;
  color: #f3f3f3;
  font-family: 'Crimson Pro', serif;
  font-size: 18px;
  font-weight: 500;
  overflow-x: hidden;
  overflow-y: auto;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.content {
  position: relative;
  z-index: 1;
  padding: 4rem;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: orange;
  border-radius: 50%;
  opacity: 0.7;
  animation: float 5s linear infinite;
}

@keyframes float {
  0% {
  transform: translateY(0) scale(1);
  opacity: 0.8;
}

100% {
  transform: translateY(-100vh) scale(0.5);
  opacity: 0;
}
}

#lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

#lang-switch a {
  text-decoration: none;
  font-size: 1.5rem;
  margin-left: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.3rem 0.6rem;
}

#logo-container {
  position: relative;
  text-align: center;
  z-index: 1;
  margin-top: 4.5rem;
}

#logo {
  cursor: pointer;
  max-width: 30%;
  height: auto;
}

#chapters {
  text-align: center;
  margin-top: 4rem;
}

#chapters h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

#chapters ul {
  list-style: none;
  padding: 0;
}

#chapters li {
  margin: 0.5rem 0;
}

#chapters a {
  text-decoration: none;
  color: #f3f3f3;
  font-size: 3rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

#chapters a:hover {
  color: orange;
}

#dialogue {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 6rem auto 1rem;
  padding: 1rem 2rem;
  line-height: 2;
  outline: none;
  text-align: center;
}

.line {
  opacity: 0;
  transition: opacity 1s ease-in;
  font-size: 30px;
}

.line.visible {
  opacity: 1;
}

.dialogue-instructions {
  text-align: center;
  opacity: 0.7;
  margin: 0.5rem 0 3rem;
  font-size: 1rem;
  transition: opacity 0.5s ease-out;
}

#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(14, 14, 14, 0.95);
  z-index: 3;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar li a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.2s;
}

.navbar li a:hover {
  color: orange;
}

.content {
  padding-top: 6rem;
}

#lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 3;
}

#lang-switch a {
  color: #f3f3f3;
  margin-left: 0.5rem;
  text-decoration: none;
  font-size: 1.1rem;
}

#main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  z-index: 3;
  padding: 1.2rem 3rem;
}

.navbar {
  list-style: none;
  display: flex;
  gap: 3rem;
  margin: 0;
  padding: 0;
}

.navbar li a {
  color: #f3f3f3;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.navbar li a:hover {
  color: orange;
}

.content {
  padding-top: 7rem;
}

.navbar li a.active {
  color: orange;
  border-bottom: 2px solid orange;
}