
:root {
  --font-size: 16px;
  --line-height: 1.6;
  --gap-size: 20px;
  --padding-size: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #5a0c0c;
}

/* Paragraph Styling */
p {
  color: #dddd77;
}

/* Anchor Styling */
a {
  color: #cc8800;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #ffcc00;
  text-decoration: underline;
}

/* Container Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--padding-size);
}

/* Header Styling */
header h1 {
  font-size: 3em;
  text-align: center;
  background: linear-gradient(90deg, #ffaa00, #ffcc44, #ff8888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

/* Animated underline for the title */
header h1::after {
  content: '';
  display: block;
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, #ff9999, #ff7777, #ff5555);
  margin: 10px auto 0 auto;
  border-radius: 2px;
  animation: underline-grow 1s ease forwards;
}

/* Animation Keyframes */
@keyframes underline-grow {
  from {
      width: 0%;
  }
  to {
      width: 80%;
  }
}

/* Preliminary Section Styling */
.Preliminary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--gap-size);
  padding: var(--padding-size);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.intro-item p {
  font-size: var(--font-size);
  line-height: var(--line-height);
}

.intro-item a {
  text-decoration: none;
  font-weight: bold;
}

.intro-item a:hover {
  text-decoration: underline;
}

/* Category Styling */
.category {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Ensures child elements stay within the category */
  overflow: hidden; /* Prevent hover effects from spilling out */
}

.category:hover {
  background: #e6f7ff;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.category ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
/* Styling for facts */
.category ul li {
  margin: 15px 0;
  position: relative;
  padding: 10px 15px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.category ul li:hover {
  background: #e6f7ff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Styling for item text */
.item {
  font-weight: bold;
  color: #333;
  display: block;
  margin-bottom: 10px;
}

/* Styling for nested references list */
.references {
  list-style-type: square;
  margin-left: 20px;
  padding-left: 20px;
}

.references li {
  margin: 5px 0;
}

.references li a {
  text-decoration: none;
  color: #0056b3;
  transition: color 0.3s ease;
}

.references li a:hover {
  color: #ff6c65;
}


/* Use a grid layout for better responsiveness */
main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* Sticky Footer */
footer {
  text-align: center;
  margin-top: 40px;
  color: #777;
  background: #f1f1f1;
  padding: 10px 20px;
  position: sticky;
  bottom: 0;
  width: 100%;
}

footer p {
  color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
      font-size: 2em;
  }

  .category h2 {
      font-size: 1.5em;
  }

  .category ul li a {
      font-size: 0.9em;
  }
}
@media (min-width: 1024px) {
  .Preliminary {
    grid-template-columns: 1fr 1fr 1fr; /* Three columns */
  }
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 10px;
  right: 10px;
}

.language-selector button {
  margin: 0 5px;
  padding: 5px 10px;
}
