* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  text-align: center;
  padding: 1.5em 2em;
  background-color: #ff4e50; /* Solid color instead of gradient */
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header h1 {
  font-size: 4em;
  margin-bottom: 0.5em;
  text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.3em;
  margin-bottom: 0.5em;
  color: rgba(255, 255, 255, 0.8);
}

#characters {
  padding: 60px 20px;
  text-align: center;
  background-color: #fff;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.3;
  background: linear-gradient(90deg, #ff7b7b, #ffb07d);
}


.section-description {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 50px;
  font-weight: 400;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.character-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  justify-items: center;
  padding: 0 20px;
}

.character {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 300px;
  text-align: center;
  padding: 20px;
  z-index: 1;
}

.character:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.character img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.character:hover img {
  transform: scale(1.1);
}

.character h3 {
  font-size: 1.7rem;
  color: #333;
  font-weight: 700;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.character p {
  font-size: 1.1rem;
  color: #777;
  margin-top: 10px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.character:hover h3,
.character:hover p {
  color: #ff4e50;
}

@media (max-width: 768px) {
  .character-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .section-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .character-list {
    grid-template-columns: 1fr;
  }
}

#about-me {
  background-color: #fff; /* Keeping a clean background */
  background-image: url('images.jpg'); /* Optional background image */
  background-size: cover;
  background-position: center;
  padding: 4em 2em;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: 3em;
  color: #333;
  position: relative;
}

#about-me::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for better contrast */
  border-radius: 12px;
  z-index: -1;
}

#about-me h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff4e50;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

#about-me p {
  font-size: 1.2em;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 1.5em;
  font-weight: 400;
}

footer {
  background: #1a1a1d;
  color: white;
  padding: 50px 0;
  text-align: center;
  font-family: 'Arial', sans-serif;
  position: relative;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

footer p {
  font-size: 18px;
  margin-bottom: 30px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #ffde00;
}

.footer-links {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: white;
  font-size: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease, letter-spacing 0.3s ease;
}

.footer-links a:hover {
  color: #ff4e50;
  transform: scale(1.1);
  letter-spacing: 1px;
}

footer::before {
  content: '';
  display: block;
  width: 50%;
  height: 1px;
  margin: 20px auto;
  background-color: #fff;
}

footer .social-icons {
  margin-top: 30px;
  font-size: 30px;
}

footer .social-icons a {
  color: white;
  margin: 0 20px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-icons a:hover {
  color: #ff4e50;
  transform: scale(1.2);
}

#fun-facts {
  background-color: #fff;
  padding: 4em;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  margin-top: 3em;
  text-align: center;
}

#fun-facts h2 {
  font-size: 3rem;
  color: #333;
  margin-bottom: 1.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ff7b7b;
}

.fun-facts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
  padding: 0 20px;
}

.fun-fact-item {
  background-color: #ff7b7b;
  color: white;
  padding: 2em;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fun-fact-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.fun-fact-item h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1em;
  font-weight: 700;
  text-transform: uppercase;
}

.fun-fact-item p {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.8;
}

.secret-room-images {
  margin-top: 1em;
  display: flex;
  gap: 1.5em;
  justify-content: center;
}

.secret-room-images img {
  width: 45%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.secret-room-images img:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .fun-facts-container {
    grid-template-columns: 1fr;
  }

  .secret-room-images img {
    width: 100%;
  }
}
