*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  color: #333;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-image: linear-gradient(135deg, #FFD700, #FF69B4);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


main {
  flex: 1 0 auto;
}

/* Remove spacing below the last section so it touches the footer */
main > *:last-child {
  margin-bottom: 0;
}

nav {
    background: rgba(255, 255, 255, 0.85);
    padding: 5px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  transition: color 0.2s;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  display: block;
}

nav ul li a:hover,
nav ul li a.active {
  color: #FF1493;
  border-bottom: 2px solid #FF1493;
}

header {
  text-align: center;
  padding: 80px 20px 80px;
}

header h1 {
  font-family: 'Fredoka One', cursive;
  font-size: 3em;
  margin: 20px 0 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero {
  padding-top: 60px;
  padding-bottom: 40px;
  color: #fff;
  background: none;
}

.subpage-hero {
  padding-top: 60px;
  padding-bottom: 40px;
  background: none;
  color: #fff;
}

header p {
  font-size: 1.2em;
  margin: 0 0 40px;
}

.header-content {
  max-width: 800px;
  margin: 0 auto;
}

.button {
  display: inline-block;
  background: #fff;
  color: #FF1493;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 600;
}

.cta .button {
  background: #FF1493;
  color: #fff;
}

.button-group {
  margin: 20px 0 40px;
}

.button-group a {
  margin: 0 10px;
}

.offer-card,
.feature,
.container {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.offers {
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 60px 20px;
}

.offer-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.offer-card {
  display: block;
  background: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  width: 280px;
  flex: 1 1 280px;
  text-decoration: none;
  color: inherit;
}

.offer-card .button {
  margin-top: 15px;
}

.offer-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.offer-card h3 {
  font-family: 'Fredoka One', cursive;
  color: #FF1493;
  margin: 10px 0;
}

.features {
  background: rgba(255,255,255,0.9);
  color: #333;
  padding: 60px 20px;
}

.pub-quizzes, .private-events-info, .contact {
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  padding: 40px 20px;
  width: 100%;
}

/* Results section shares the white strip style used on subpages */
.results-section {
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  padding: 40px 20px;
  width: 100%;
}

.pub-quizzes .cards,
.private-events-info .cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pub-quizzes .cards > div,
.private-events-info .cards > div {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pub-quizzes .cards > div:nth-child(3),
.private-events-info .cards > div:nth-child(3) {
  grid-column: 1 / -1;
}

.pub-quizzes h2,
.private-events-info h2 {
  font-family: 'Fredoka One', cursive;
  color: #FF1493;
  margin-top: 0;
}

.pub-quizzes ul,
.private-events-info ul {
  list-style: none;
  padding-left: 0;
}

.pub-quizzes li,
.private-events-info li {
  margin-bottom: 8px;
}



.booking, .testimonials {
  text-align: center;
  padding: 20px 20px;
}

.testimonials {
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking {
  background: rgba(255,255,255,0.9);
  color: #333;
  margin: 20px auto;
  padding: 30px 20px;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Highlighted call to action used on sub pages */
.cta {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  color: #333;
  margin: 40px auto 0;
  padding: 40px 20px;
  max-width: 1000px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.cta h2 {
  font-family: 'Fredoka One', cursive;
  color: #FF1493;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.8em;
}

.cta p {
  color: #333;
}

.cta p:last-child {
  margin-bottom: 0;
}

.testimonials blockquote {
    position: relative;
    font-style: italic;
    font-size: 1.4em;
    line-height: 1.6;
    margin: 40px auto 20px;
    max-width: 800px;
    padding: 20px 30px;
    color: #fff;
    background: rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ff0080;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonials blockquote::before {
    content: "“";
    font-size: 3em;
    position: absolute;
    left: 10px;
    top: -10px;
    color: #ffb3d1;
    opacity: 0.6;
}

.testimonials blockquote cite {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    font-style: normal;
    text-align: right;
    color: #ffe6f2;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.feature img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}

.feature h2 {
  font-family: 'Fredoka One', cursive;
  color: #FF1493;
  margin-top: 0;
}

footer {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.3);
  margin-top: auto;
  color: #eee;
}

footer a {
  margin: 0 8px;
  text-decoration: none;
  color: inherit;
}

footer a:hover {
  text-decoration: underline;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-links, .social, .contact {
  margin: 5px 0;
}

.logo {
  max-width: 60px;
}

main form {
  display: flex;
  flex-direction: column;
}

main input, main textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

main select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 15px;
}

#contact-form label {
  font-weight: 600;
}

#pub-fields,
#event-fields {
  margin-top: 10px;
}

main button {
  background: #FF1493;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

#contact-form {
  margin-bottom: 40px;
}

.success-message {
  color: green;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.error-message {
  color: #c00;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}


.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  color: #333;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.subheading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}


table {
  width: 100%;
  margin: 0 auto 20px;
  border-collapse: collapse;
}

th, td {
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

th {
  background: #FF1493;
  color: #fff;
}

tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.search-form {
  text-align: center;
  margin-bottom: 20px;
}

.view-link a {
  color: #FF1493;
  text-decoration: none;
  font-weight: bold;
}

.no-events {
  text-align: center;
  font-size: 1.2em;
}

@media (max-width: 600px) {
  .nav-container {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
  }
  .menu-toggle {
    display: flex;
    position: absolute;
    top: 5px;
    right: 20px;
    transform: none;
  }
  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
  nav li {
    margin-bottom: 10px;
  }
  nav a {
    display: block;
  }
  header h1 {
    font-size: 2.2em;
  }
  .offer-cards {
    flex-direction: column;
  }
  .offer-card {
    width: 100%;
    flex: 1 1 auto;
  }
  .pub-quizzes .cards,
  .private-events-info .cards,
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .button-group {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .button-group a {
    margin: 10px 0;
  }
  body {
        background-image: linear-gradient(135deg, #FFD700, #FF69B4);
        background-size: cover;
        background-repeat: no-repeat;
    }
}
