/* Global styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}

a {
  color: inherit;
}

/* Hero section */
.hero {
  height: 60vh;
  /* When deploying to your server, this path assumes the image is inside
     the `random-giveaway/assets/` folder relative to this CSS file. If your
     image is elsewhere, adjust the path accordingly. */
  background-image: url('random-giveaway/assets/confetti-bg.png');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .overlay {
  /* Semi-transparent overlay allows the confetti background to show through */
  background: rgba(0, 0, 0, 0.4);
  padding: 40px;
  text-align: center;
  color: #fff;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 2.5rem;
}

.hero p {
  margin: 0 0 20px;
  font-size: 1.2rem;
  max-width: 600px;
}

/* Button styles */
.button {
  background-color: #4caf50;
  color: #fff;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
  display: inline-block;
}

.button:hover,
.button:focus {
  background-color: #45a049;
}

.button.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Content sections */
.content-section {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2rem;
  text-align: center;
  color: #333;
}

.content-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Features list */
.features-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.features-list strong {
  color: #4caf50;
}

/* App container */
.app-container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

#entry-form {
  display: flex;
  gap: 10px;
}

#entry-input {
  flex-grow: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.participants h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

#entries-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

#entries-list li {
  background-color: #f1f1f1;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.winner-display {
  margin-top: 10px;
  font-size: 1.4rem;
  font-weight: bold;
  color: #4caf50;
  text-align: center;
}

/* Call to action */
.cta-section {
  background-color: #f0f0f0;
  text-align: center;
}

/* Small note inside CTA for data security */
.small-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact section */
.contact-section {
  background-color: #fff;
  text-align: center;
}

.contact-section h2 {
  margin-top: 0;
}

.contact-section p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-section p a {
  color: #4caf50;
  text-decoration: none;
}

.contact-section p a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}