/* General Styles */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(to bottom, #0b0d17, #1c1f2e, #2b2e45);
  color: #e0e0e0; /* Softer white for text to reduce eye strain */
  overflow: auto;
  position: relative;
  z-index: 0; /* Keep background behind stars */
}

/* Navigation Bar */
nav {
  background-color: #1f1f30; /* Dark navy for a softer, celestial look */
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid #4a4a6a; /* Subtle accent for separation */
}

.nav-container {
  max-width: 600px;
  margin: 0 auto;
}

/* Navigation Text */
nav a {
  color: #c8c8ff; /* Light lavender for contrast and elegance */
  margin: 0 15px;
  text-decoration: none;
  font-size: 1.2em;
}

nav a:hover {
  color: #ffffff; /* Bright white for a glowing effect */
}

/* Container for Content */
.container {
  padding: 20px;
  text-align: center;
}

h1 {
  color: #e0e0e0; /* offwhite to accentuate the genres */
}

/* Grid and Table Styles */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.table {
  border: 1px solid #4a4a6a; /* Matches nav accent for consistency */
  border-radius: 5px;
  background-color: #2a2a40; /* Deep gray-blue for a starry night feel */
  padding: 10px;
  overflow: hidden;
}

.table-header {
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 10px;
  color: #ffffff; /* bright white header text for emphasis */
  border-bottom: 1px solid #4a4a6a;
  padding-bottom: 5px;  

  /* Glowing Effect */
 /* text-shadow: 0 0 2px #2929297a, 0 0 2px #2929297a, 0 0 2px #2929297a, 0 0 2px #ff4500, 0 0 2px #ff4500, 0 0 3px #ff4500; */
}

.table-row {
  position: relative;
}

.table-row a {
  color: #c8c8ff; /* Lavender links for consistency */
  text-decoration: none;
  display: block;
  padding: 10px;
  cursor: pointer;
}

.table-row a:hover {
  color: #94e6f5; /* Bright orange for a glowing effect */
  background-color: #39395b; /* Softer highlight */
}

.table-row:last-child {
  border-bottom: none;
}

/* Dropdown Content Styling */
.dropdown-content {
  display: none;
  padding: 10px;
  background-color: #39395b; /* Matches hover background for uniformity */
  border-top: 1px solid #4a4a6a;
  font-size: 0.9em;
  color: #c0c0e0; /* Soft lavender-gray for secondary text */
  animation: slideDown 0.5s ease;
}

.dropdown-content a {
  display: inline;
  color: #94e6f5; /* Bright orange links for contrast */
  text-decoration: underline;
}

.table-row.active .dropdown-content {
  display: block;
}

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}

/* Starry Sky */
/* Ensure the .stars container covers the whole page */
.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Ensures stars don't interfere with other content */
  z-index: -1; /* Make sure stars appear behind the content */
}

.star {
  position: absolute;
  width: 2px; /* Small size for the stars */
  height: 2px;
  background-color: white;
  border-radius: 50%;
  animation: twinkle 1.5s infinite ease-in-out;
}

/* Twinkling animation */
@keyframes twinkle {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
