@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&family=Creepster&display=swap');

body {
  background-image: url("../images/coraline.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-color: #0b0b0d;
  font-family: "Shadows Into Light", cursive;
  color: #f6e9ff;
  margin: 0;
  padding: 0;
  text-shadow: 1px 1px 3px #000;
}

main {
  grid-column: 1 / 5;
}

img {
  display: none;
}

h1, h2, h3 {
  font-family: "Creepster", cursive;
  color: #ffcc00;
  letter-spacing: 2px;
  text-shadow: 2px 2px 6px #000;
  margin: 20px 0;
}

header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  width: 90%;
  background-color: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
  z-index: 1000;
  padding: 10px 0 15px;
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

header h1 {
  font-size: 2.7rem;
  font-weight: bold;
  color: #ffcc66;
  text-shadow:
    0 0 4px #ffcc66,
    0 0 8px #ff9900;
  letter-spacing: 2px;
  font-family: "Creepster", cursive;
  margin: 10px 0 5px;
  transition: text-shadow 0.4s ease;
}

header h1:hover {
  text-shadow:
    0 0 6px #ffffff,
    0 0 10px #ffcc00,
    0 0 15px #ff9900;
}

nav {
  margin-top: 10px;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 5px);
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

nav li {
  margin: 0;
}

nav a {
  font-family: "Creepster", cursive;
  font-size: 1.8rem;
  color: #ffcc00;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #ffcc00, 0 0 20px #ffcc00;
}

#wrapper {
  background-color: rgba(30, 40, 80, 0.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 180px auto 40px;
  padding: 30px;
  width: 90%;
  max-width: 1400px;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  justify-items: center;
  text-align: center;
}

#wrapper h1 {
  font-size: 3rem;
  margin: 0 0 30px;
  width: 100%;
  text-align: center;
  color: #ffcc00;
  text-shadow:
    0 0 4px #ffcc00,
    0 0 8px #ff9900,
    0 0 12px #ffcc00;
  animation: floatTitle 4s ease-in-out infinite;
  display: inline-block;
}

@keyframes floatTitle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

#wrapper > div {
  background-color: rgba(10, 10, 30, 0.6);
  border: 1px solid #2f005c;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#wrapper > div:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
}

a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #ffcc00;
}

footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background-color: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.2);
  text-align: center;
  color: #f6e9ff;
  font-family: "Shadows Into Light", cursive;
  font-size: 1rem;
  padding: 10px 0;
  z-index: 999;
  animation: float 6s ease-in-out infinite;
}

footer p {
  margin: 0;
  letter-spacing: 1px;
}
