body {
  font-family: "Quicksand", Arial, sans-serif;
  background: #23407a; /* deep blue */
  color: #f7c75a;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}
main,
header,
nav,
form,
.footer {
  position: relative;
  z-index: 1;
}
header {
  margin-top: 60px;
  text-align: center;
}
h1 {
  font-family: "Luckiest Guy", cursive, sans-serif;
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 0.5em;
  text-shadow: 2px 2px 0 #fff, 0 2px 12px #f7c75a55;
}
p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 2em;
}
nav {
  display: flex;
  gap: 1.5em;
  margin-bottom: 2em;
  padding: 0.7em 2em;
  box-shadow: none;
  background: none;
  border-radius: 0;
}
nav,
nav a,
h1,
.header-art-title {
  font-family: "Varela Round", "Quicksand", Arial, sans-serif !important;
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav a {
  position: relative;
  z-index: 1;
  transition: filter 0.3s ease;
  color: white;
}

nav a:hover,
nav a:focus {
  animation: neonFlicker 0.5s infinite;
}

nav a:focus-visible {
  outline: 2px solid #ffb3fa;
  outline-offset: 2px;
}

a {
  color: #23407a; /* deep blue */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.5rem;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
  padding: 0.2em 0.7em;
  border-radius: 8px;
}

.footer {
  margin-top: auto;
  padding: 2em 0 1em 0;
  /* color: #f7c75a; */
  font-size: 0.9em;
}
.email-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5em 2em;
  border-radius: 16px;
  margin-bottom: 2em;
}
.email-form label {
  margin-bottom: 0.5em;
  font-size: 1.1rem;
}
.email-form input[type="email"] {
  padding: 0.7em 1em;
  border: 2px solid #f7c75a;
  border-radius: 8px;
  margin-bottom: 1em;
  font-size: 1rem;
  width: 220px;
  background: #f7f7fa;
  color: black;
  transition: border 0.2s, box-shadow 0.2s;
}
.email-form input[type="email"]:focus {
  border: 2px solid #ff7ee7;
  box-shadow: 0 0 8px #ff7ee7cc;
  outline: none;
  animation: neonFlicker 0.5s infinite;
}
.email-form button {
  background: #f7c75a; /* yellow */
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  color: #23407a;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0002;
}
.email-form button:hover,
.email-form button:focus {
  background: #ff7ee7; /* neon pink */
  color: white;
  box-shadow: 0 0 8px #ff7ee7cc;
  outline: none;
  animation: neonFlicker 0.5s infinite;
}
.header-art {
  display: block;
  max-width: 420px;
  width: 90vw;
  transition: filter 0.3s ease, animation 0.3s ease;
  animation: neonFlicker 0.5s infinite;
}

.thank-you-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2em;
  border-radius: 16px;
  margin-bottom: 2em;
  text-align: center;
  animation: fadeIn 0.5s ease-in;
}

.thank-you-message h2 {
  color: #f7c75a;
  font-size: 1.8rem;
  margin-bottom: 0.5em;
  font-family: "Varela Round", "Quicksand", Arial, sans-serif;
}

.thank-you-message p {
  color: #fff;
  font-size: 1.1rem;
  margin: 0;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for thank you message */
@media (max-width: 600px) {
  .thank-you-message {
    padding: 1.5em 1em;
  }

  .thank-you-message h2 {
    font-size: 1.4rem;
  }

  .thank-you-message p {
    font-size: 1rem;
  }
}

/* Responsive styles */
@media (max-width: 900px) {
  h1 {
    font-size: 2.2rem;
  }
  nav {
    gap: 1em;
    padding: 0.7em 1em;
  }
  .email-form {
    padding: 1em 1.2em;
  }
}

@media (max-width: 600px) {
  body {
    padding: 0 0.5em;
  }
  h1 {
    font-size: 1.5rem;
  }
  p {
    font-size: 1rem;
  }
  nav {
    flex-direction: column;
    gap: 0.5em;
    align-items: center;
    margin-bottom: 1.2em;
    padding: 0.5em 0.5em;
  }
  a {
    font-size: 1rem;
  }
  .email-form {
    max-width: 350px;
    padding: 1em 0.5em;
  }
  .email-form input[type="email"] {
    font-size: 0.95rem;
  }
  .footer {
    font-size: 0.8em;
    padding: 1em 0 0.5em 0;
  }
}

@keyframes neonFlicker {
  0%,
  100% {
    filter: drop-shadow(0 0 2px #ffb3fa) drop-shadow(0 0 4px #ffb3fa)
      drop-shadow(0 0 6px #ffb3fa);
  }
  15% {
    filter: drop-shadow(0 0 1.8px #ffb3fa) drop-shadow(0 0 3.8px #ffb3fa)
      drop-shadow(0 0 5.8px #ffb3fa);
  }
  30% {
    filter: drop-shadow(0 0 2.2px #ffb3fa) drop-shadow(0 0 4.2px #ffb3fa)
      drop-shadow(0 0 6.2px #ffb3fa);
  }
  45% {
    filter: drop-shadow(0 0 1.8px #ffb3fa) drop-shadow(0 0 3.8px #ffb3fa)
      drop-shadow(0 0 5.8px #ffb3fa);
  }
  60% {
    filter: drop-shadow(0 0 2px #ffb3fa) drop-shadow(0 0 4px #ffb3fa)
      drop-shadow(0 0 6px #ffb3fa);
  }
  75% {
    filter: drop-shadow(0 0 1.8px #ffb3fa) drop-shadow(0 0 3.8px #ffb3fa)
      drop-shadow(0 0 5.8px #ffb3fa);
  }
  90% {
    filter: drop-shadow(0 0 2.2px #ffb3fa) drop-shadow(0 0 4.2px #ffb3fa)
      drop-shadow(0 0 6.2px #ffb3fa);
  }
}
