@font-face {
  font-family: 'Comic Sans MS Custom';
  src: url('./assets/ComicSansMS.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* 1. Global Reset and Box-Sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* 2. Body Styles */
body {
  background-color: black;
  color: #4A90E2;
  font-family: "Comic Sans MS", "Comic Sans MS Custom", sans-serif;
  text-align: center;
  background-image: url('./assets/background.webp');
  background-repeat: repeat;
  font-size: 1.2em;
}

/* 3. Header & Animation */
header {
  background: linear-gradient(to right, #ff0000, #0000ff);
  padding: 10px 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  border-bottom: 5px ridge yellow;
  animation: flashColors 2s infinite alternate;
}

@keyframes flashColors {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(360deg);
  }
}

/* 4. Logo */
.logo {
  width: 20vw;
  margin: 0 auto;
  display: block;
}

/* 7. Headings (for Sections) */
h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: red;
  font-family: "Comic Sans MS", "Comic Sans MS Custom", sans-serif;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.7);
}

/* 8. Section Styles */
section {
  margin: 20px;
  padding: 20px;
  border: 5px groove hotpink;
  background: rgba(0, 0, 0, 0.8);
}

.signup-form {
  margin: 0 auto 30px;
  max-width: 640px;
  background-color: rgba(0, 0, 0, 0.85);
  background-image: linear-gradient(120deg, rgba(255, 0, 255, 0.35), rgba(0, 255, 255, 0.35));
  background-blend-mode: screen;
  -webkit-background-blend-mode: screen;
  border: 4px dashed yellow;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

.signup-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1 1 240px;
  padding: 12px 14px;
  font-size: 1.1em;
  border-radius: 10px;
  border: 3px solid #40a0ff;
  background: rgba(0, 0, 0, 0.7);
  color: #4A90E2;
  box-shadow: inset 0 0 10px rgba(64, 160, 255, 0.6);
}

.email-input:focus {
  outline: none;
  border-color: #ff4081;
  box-shadow: 0 0 15px #ff4081, inset 0 0 12px rgba(255, 64, 129, 0.6);
}

.signup-status {
  min-height: 22px;
  margin-top: 12px;
  font-weight: bold;
}

.signup-status.success {
  color: #8cff8c;
  text-shadow: 0 0 8px #00ff9d;
}

.signup-status.error {
  color: #ffb347;
  text-shadow: 0 0 8px #ff4081;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 12. Fun Button */
.fun-button {
  display: inline-block;
  padding: 12px 20px;
  background: #40a0ff;
  color: white;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 10px;
  margin: 10px;
  transition: 0.3s;
  font-family: "Comic Sans MS", "Comic Sans MS Custom", sans-serif;
  box-shadow: 0px 0px 10px #40a0ff;
}

.fun-button:hover {
  background: #ff4081;
  box-shadow: 0px 0px 15px #ff4081;
}

/* 16. Responsive Adjustments */
@media (max-width: 768px) {
  .logo {
    width: 50vw;
    /* Adjusted for smaller screens */
  }

  h2 {
    font-size: 6vw;
    /* Responsive font size */
  }

  body {
    font-size: 4vw;
    /* Responsive font size */
  }

  .signup-row {
    flex-direction: column;
  }

  .email-input {
    width: 100%;
    font-size: 16px;
    padding: 5px 8px;
    line-height: 1.3;
    border-width: 2px;
  }

  .fun-button {
    font-size: 3vw;
    padding: 8px 15px;
    width: 80%;
    /* Adjusted for smaller screens */
  }

  iframe {
    width: 100%;
  }
}
