* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "poppins", sans-serif;
  font-size: 18x;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #78c1f3;
  margin: 0;
}


.container {
  max-width: 500px;
  margin: 40px auto;   /* pushes down from top */
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h4 {
  margin-bottom: 10px;
  font-size: 24px;
  color: white;
}
input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}

/* ✅ Style the Submit and Skip buttons to match */
button,
input[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease-in-out;
}

textarea {
  width: 100%;
  padding: 10px;
}
#submit,
#skipRegistration {
  border: none;
  background-color: rgb(0, 255, 157);
  color: black;
  width: 200px;
  margin-top: 10px;
  border-radius: 5px;
}
#submit:hover {
  background-color: #333333;
}

/* Help Modal Content Styling */
.help-text {
  text-align: left;
  font-size: 16px;
}

.help-text h3,
.help-text h4 {
  margin-top: 15px;
  color: #ff9800;
}

.help-text ul {
  list-style-type: none;
  padding: 0;
}

.help-text ul li {
  margin-bottom: 5px;
  padding-left: 20px;
  position: relative;
}

.help-text ul li::before {
  content: "✔️"; /* Add a checkmark before each point */
  position: absolute;
  left: 0;
  color: green;
}

/* Help Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto; /* ✅ Allow scrolling if content is too long */
}

/* Modal Content - Centered & Auto-Fitting */
.modal-content {
  background-color: white;
  margin: 5% auto; /* ✅ Adjusted margin for better centering */
  padding: 20px;
  width: 90%; /* ✅ Adjust width dynamically */
  max-width: 600px;
  max-height: 90vh; /* ✅ Ensure it doesn't overflow the screen */
  overflow-y: auto; /* ✅ Enable vertical scrolling if necessary */
  border-radius: 10px;
  text-align: left;
  position: relative;
}

/* Close Button */
.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal .close:hover {
  color: red;
}

.help-btn {
  font-weight: bold; /* ✅ Make text bold */
  background-color: #ff9800;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease-in-out;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.flash-text {
  font-weight: bold;
  color: red;
  animation: flash 1s infinite;
}

.marquee {
  width: 100%;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
  background: #ffd700;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.marquee::after {
  content: " 🎉 స్వాగతం! తెలుగు మాటల ఆటను ఆడుతూ ఆనందించండి! తెలుగు భాషని ప్రేమించుదాం! భావితరాలకు పంచుదాం! 🎉 ";
  display: inline-block;
  animation: marquee-scroll 20s linear infinite;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

h1.header {
  font-size: 24px;
  color: white;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
} /* Responsive styles for tablets (481px–768px) */
@media (max-width: 768px) {
  .container {
    width: 90%;
    padding: 20px;
  }

  input,
  textarea,
  button,
  input[type="submit"] {
    font-size: 16px;
    padding: 10px;
  }

  h1.header,
  h4 {
    font-size: 20px;
  }

  #submit,
  #skipRegistration {
    width: 100%;
  }
}

.kids-star-wrapper {
  text-align: center;
  margin-top: 30px;
  animation: float 2s ease-in-out infinite;
}

.kids-star {
  display: inline-block;
  padding: 15px 30px;
  background: #ffd700;
  color: #ff1493;
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
  transition: transform 0.4s ease;
  animation: pulse 1.5s infinite;
  font-family: "Comic Sans MS", cursive, sans-serif;
}

.kids-star:hover {
  transform: scale(1.15) rotate(360deg);
  background-color: #ffeb3b;
  color: #e91e63;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

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

/* Responsive styles for mobile phones (up to 480px) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 15px;
  }

  input,
  textarea,
  button,
  input[type="submit"] {
    font-size: 14px;
    padding: 8px;
  }

  h1.header,
  h4 {
    font-size: 18px;
  }

  .help-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  #submit,
  #skipRegistration {
    width: 100%;
    font-size: 15px;
  }
}

/* Large screens (1025px–1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .container {
    width: 600px;
  }
}

/* Extra large screens (1201px and above) */
@media (min-width: 1201px) {
  .container {
    width: 650px;
  }
}

.registration-box {
  margin-top: 40px;  /* adjust until it feels balanced */
}

.header {
  margin-top: 30px;    /* Push heading down */
  margin-bottom: 10px;
  text-align: center;
}

.tagline {
  text-align: center;
  font-weight: normal;
  color: #FFD700; /* golden yellow */
  margin-top: 10px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tagline-highlight {
  font-weight: bold;
  color: #e63946; /* keep AI-powered in red */
}

.tagline-secondary {
  color: #FFD700; /* yellow for the remaining text */
}


/* Event Ad Section */
.event-ad {
  text-align: center;
  margin: 20px 0;
}
.event-ad p {
  font-size: 1.1em;
  margin-bottom: 10px;
}
.event-ad button {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.event-ad button:hover {
  background-color: #45a049;
}

/* Modal Styling */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
}

/* Form Styling */
.event-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}
.event-form label {
  font-weight: bold;
  text-align: left;
}
.event-form input,
.event-form textarea {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.event-form button {
  background-color: #2196f3;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.event-form button:hover {
  background-color: #1976d2;
}
