@font-face {
  font-family: "CookieRun Regular";
  src: url("assets/fonts/CookieRun\ Regular.woff") format("woff2"),
    url("assets/fonts/CookieRun\ Regular.woff") format("woff");
}

@font-face {
  font-family: "CookieRun Bold";
  src: url("assets/fonts/CookieRun\ Bold.woff") format("woff2"),
    url("assets/fonts/CookieRun\ Bold.woff") format("woff");
}

@font-face {
  font-family: "CookieRun Italic";
  src: url("assets/fonts/CookieRun\ Italic.woff") format("woff2"),
    url("assets/fonts/CookieRun\ Italic.woff") format("woff");
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    display: block;
    width: 200px; /* or whatever width works best */
    text-align: center;
  }

  footer {
    padding: 10px;
    font-size: 12px;
  }
}

body {
  margin: 24px;
  background-color: #e3f2fd; /* Light blue background */
  background-image: url("assets/images/linedpaper.jpg");
  font-family: "CookieRun Regular", Tahoma, sans-serif;
  color: #1565c0;
}

h1 {
  font-size: 32px;
  color: #1976d2;
  text-align: center;
  text-shadow: 2px 2px 0 #e3f2fd, 4px 4px 0 #2196f3;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

h2 {
  font-size: 24px;
  color: #0d47a1;
  text-align: center;
  text-shadow: 1px 1px 0 white;
  transform: rotate(-0.5deg);
}

a {
  color: #1976d2;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: #2196f3;
  transform: scale(1.1);
}

/* Special styling for header section */
#header section {
  background-color: #1565c0;
  border: 3px solid #2196f3;
  border-radius: 25px;
  padding: 20px;
  margin: 20px;
  box-shadow: 0 8px 0 #e3f2fd, 0 15px 20px rgba(0, 0, 0, 0.1);
}

#header h1 {
  color: white;
  text-shadow: 2px 2px 0 #0d47a1, 4px 4px 0 #1976d2;
}

/* Regular sections */
section {
  background-color: white;
  border: 3px solid #2196f3;
  border-radius: 25px;
  padding: 20px;
  margin: 12px;
  box-shadow: 0 8px 0 #e3f2fd, 0 15px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
}

section:hover {
  transform: translateY(-5px);
  box-shadow: 0 13px 0 #e3f2fd, 0 20px 25px rgba(0, 0, 0, 0.15);
}

/* Add text animation on section hover */
section h1,
section h2,
section p,
section a {
  transition: all 0.3s ease;
}

section:hover h1 {
  transform: scale(1.05);
  color: #2196f3;
}

section:hover h2 {
  transform: scale(1.03);
  color: #1976d2;
}

section:hover p {
  /* Remove scaling, keep transitions for smoothness */
  color: #1565c0;
}

section:hover a {
  transform: scale(1.1);
  color: #2196f3;
}

/* Add a fun bounce animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

section:hover nav a {
  animation: bounce 1s ease infinite;
}

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

nav a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 20px;
  background-color: #1976d2;
  border: 2px solid #2196f3;
  transition: all 0.3s ease;
}

nav a:hover {
  background-color: #2196f3;
  color: white;
  transform: scale(1.1) rotate(-1deg);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* Footer */
footer {
  background: #1976d2;
  border-radius: 20px 20px 0 0;
  padding: 15px;
  text-align: center;
  font-family: "CookieRun Regular", sans-serif;
  font-size: 14px;
  color: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -5px 15px rgba(33, 150, 243, 0.3);
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
  background-color: #1565c0;
  display: inline-block;
  margin: 2px 0;
}

footer a:hover {
  background-color: #e3f2fd;
  color: #1565c0;
}

footer span {
  display: inline-block;
  margin: 0 5px;
}

@media screen and (max-width: 768px) {
  footer {
    padding: 10px;
    font-size: 12px;
    width: auto;
    margin: 0;
    border-radius: 15px 15px 0 0;
  }

  footer span {
    display: block;
    margin: 5px 0;
  }

  footer a {
    display: inline-block;
    margin: 5px 0;
  }
}

/* Decorative elements */
section::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 20px;
  width: 20px;
  height: 20px;
  background: #2196f3;
  border-radius: 50%;
  box-shadow: 30px 0 0 #e3f2fd, 60px 0 0 #1976d2;
}
