html {
  font-size: 18px;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
  background-color: #fff;
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: 45%;
  color: #222;
}
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  z-index: 1001;
  display: none;
}
.backdrop.active {
  display: block;
}
header {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img {
  height: 80px;
}
@media (max-width: 600px) {
  header img {
    height: 60px;
  }
}
nav a {
  margin-left: 1.5rem;
  color: #007f94;
  text-decoration: none;
  font-weight: bold;
}
section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto 0.5rem auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
section.visible {
  opacity: 1;
}
section#sponsors {
  opacity: 1;
  transition: none;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  padding: 4rem 0;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1000px;
  z-index: 999;
}
h2 {
  color: #f7931e;
  border-bottom: 2px solid #007f94;
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}
.button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #007f94;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: background 0.3s ease;
  text-shadow: 8px 8px 8px #f7931e;
}
.button:hover {
  background: #005f6e;
}
#inschrijven .button {
  display: block;
  margin: 1rem auto;
  text-align: center;
}
.faq-item {
  margin-bottom: 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: bold;
  color: #007f94;
}
footer {
  background: #f5f5f5;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 140px;
}
.ticker {
  position: fixed;
 // overflow: hidden;
  width: 100%;
  background: #f5f5f5;
  padding: 1rem 0;
  position: fixed;
    max-width: 1000px;
  bottom: 0;
  left: 0;
  z-index: 999;
  
}

.ticker__wrap {
  display: flex;
  width: 100%;
  
}

.ticker__move {
  display: flex;
  animation: ticker-scroll 40s linear infinite;
}

.ticker-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin: 0 2rem;
}

.ticker-item img {
  height: 100px;
  transition: transform 0.3s ease;
}

.ticker-item img:hover {
  transform: scale(1.1);
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
.contact-form, .signup-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}
.contact-form label, .signup-form label {
  font-weight: bold;
  color: #007f94;
}
.contact-form input,
.contact-form select,
.contact-form textarea,
.signup-form input,
.signup-form select,
.signup-form textarea {
  padding: 0.8rem;
  border: 1px solid #007f94;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}
.contact-form textarea, .signup-form textarea {
  resize: vertical;
  min-height: 150px;
}
.contact-form .button, .signup-form .button {
  width: fit-content;
  margin: 0 auto;
}
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}
.form-message.success {
  background: #d4edda;
  color: #155724;
}
.form-message.error {
  background: #f8d7da;
  color: #721c24;
}
.g-recaptcha {
  margin: 1rem auto;
  display: flex;
  justify-content: center;
}
.home-logo {
  display: block;
  margin: 0 auto 1rem auto;
  height: 150px;
}
@media (max-width: 600px) {
  .home-logo {
    height: 150px;
  }
}
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #007f94;
  font-family: 'Montserrat', sans-serif;
  max-width: 90%;
  width: 600px;
  z-index: 1003;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  overflow-y: auto;
  max-height: 90vh;
}
.popup.visible {
  display: block;
  opacity: 1;
}
.popup h3 {
  margin-top: 0;
  color: #f7931e;
  text-align: center;
}
.popup .close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #007f94;
  cursor: pointer;
}
.spinner {
  border: 4px solid rgba(0, 127, 148, 0.2);
  border-top: 4px solid #007f94;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}
.floating-cta .button {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  box-shadow: 1px 4px 8px rgba(0, 0, 0, 0.2);
}
@media (max-width: 600px) {
  .floating-cta .button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}
#inschrijven p {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #222;
}
.intro-popup {
  display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 90%;
  width: 800px;
  z-index: 1002;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  overflow-y: auto;
  max-height: 90vh;
  cursor: pointer;
}
.intro-popup.hidden {
  display: none;
  opacity: 0;
}
.intro-popup section {
  opacity: 1;
  transition: none;
  box-shadow: none;
  margin: 0;
  padding: 2rem;
}
.intro-popup h1 {
  color: #f7931e;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}
.intro-popup h2 {
  color: #007f94;
  text-align: center;
  font-size: 1.25rem;
  border-bottom: none;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  display: block; /* override global inline-block */
  width: 100%;    /* ensure full width */
}
.intro-popup p {
  color: #222;
  font-size: 1.1rem;
  text-align: center;
}
#turnstile-shared {
  margin-top: 10px;
  display: block;
  text-align: center;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}
.admin-table th, .admin-table td {
  border: 1px solid #007f94;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  background: #007f94;
  color: white;
}
.admin-table tr:nth-child(even) {
  background: #f5f5f5;
}
.admin-table select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #007f94;
  font-family: 'Montserrat', sans-serif;
}
.summary {
  margin-bottom: 1rem;
  font-weight: bold;
  color: #007f94;
}
section#admin-login {
  display: block;
  opacity: 1;
}
section#admin-portal {
  display: none;
  opacity: 0;
}
section#admin-portal.visible {
  display: block;
  opacity: 1;
}
.admin-table th:first-child,
.admin-table td:first-child {
  min-width: 250px;
  max-width: 500px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
#teams-table th, #teams-table td {
  min-width: 100px;
}

#teams-table th:nth-child(6), #teams-table td:nth-child(6) {
    min-width: 250px;
  max-width: 500px;
    white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

#teams-table th:nth-child(8), #teams-table td:nth-child(8) {
  min-width: 150px;
}


.stats p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  color: #007f94;
}
.stats span {
  font-weight: bold;
  color: #222;
}
.admin-table {
  table-layout: auto;
  width: 100%;
}

