html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  /*font-family: Arial, sans-serif;*/
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header {
  background-color: #4b4b4b;
  color: white;
  padding: 20px;
  text-align: center;
}

nav {
  background-color: #333;
  padding: 10px 0;
  text-align: center;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
}

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

.content {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

footer {
  background-color: #4b4b4b;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  color: white;
  margin-top: auto; /* Zorgt dat footer onderaan blijft */
}

.kampioenschap {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.kampioenschap h2 { 
  margin-top: 0; 
}

.download-btn {
  display: inline-block;
  background-color: #4CAF50;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
}

.wedstrijd-box {
  background-color: #f2f2f2;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;           /* Mobiel: volle breedte */
  text-align: center;
}

.info {
  font-size: 1.1em;
}

.btn-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.uitslag-btn {
  display: flex;
  justify-content: center;  /* horizontaal centreren */
  align-items: center;      /* verticaal centreren */
  padding: 15px 20px;
  background-color: #007BFF;
  color: white;
  font-size: 1.2em;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
  border: none;
  text-align: center; /* fallback */
  transition: transform 0.4s ease-in-out, background-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.uitslag-btn:hover {
  transform: scale(1.1);
  background-color: #12b41a;
  color: #ffffff;
}

h2 {
  text-align: center;
  color: #444;
}

.vlucht {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
  padding-left: 30px;
}

.btns .uitslag {
  display: inline-block;
  background-color: #007BFF;
  color: white;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 5px;
}

.muurlijst {
  display: inline-block;
  background-color: #12b41a;
  color: white;
  padding: 8px 12px;
  margin-right: 10px;
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 5px;
  transition: transform 0.4s ease-in-out;
}

.muurlijst:hover {
  transform: scale(1.1);
}

.uitslag {
  transition: transform 0.4s ease-in-out;
}

.uitslag:hover {
  transform: scale(1.1);
}

.logo{
  width: 60px;
  height: auto;
}

.mirrored {
  transform: scaleX(-1);
}

.fade-in{
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appear{
  from {
    opacity: 0;
    scale: 0.7;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.block {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0 cover 30%;
}

#topButton {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: none;
  width: 48px;
  height: 48px;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  background-color: #4b4b4b;
  color: white;
}

.muurlijst {
  transition: transform 0.4s ease-in-out;
}

.muurlijst:hover {
  transform: scale(1.1);
}


.fancy-btn {
  overflow: hidden;
  padding: 0.75rem 1.5rem;
  position: relative;
  z-index: 1;
}

.fancy-btn .icon-wrap {
  position: absolute;
  bottom: -50%;
  left: 50%;
  transform: translateX(-50%);
  transition: bottom 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 0;
}

.fancy-btn .btn-icon {
  width: 24px;
  height: 24px;
  opacity: 0.15;
}

.fancy-btn:hover .icon-wrap {
  bottom: 0.4rem;
  opacity: 1;
}

.btn-hover-wrapper {
  position: relative;
  display: inline-block;
}

.hover-icon {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 32px;
  height: 32px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.btn-hover-wrapper:hover .hover-icon {
  transform: translate(-50%, -130%);
  opacity: 0.4;
}

.message-box {
  background-color: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.1);
  max-width: 500px;
}

.pigeon {
  font-size: 4rem;
}

.btn-home {
  margin-top: 2rem;
}

.wedstrijd-box.cancelled .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.7); /* lichte witte overlay voor mistig effect */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* zorgt dat klikken gewoon doorkomen */
}

.wedstrijd-box.cancelled .overlay-text {
    color: red;
    font-size: 3em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.wedstrijd-box.replacement {
    border: 1px solid #28a745; /* groene rand */
    background: #e9f7ef; /* lichtgroene achtergrond */
    padding: 1rem;
    box-sizing: border-box;
}

.replacement-label {
    background-color: #28a745; /* felgroen */
    color: white;
    font-weight: bold;
    padding: 0.5rem 1rem;
    font-size: 1.1em;
    border-radius: 5px 5px 0 0;
    margin-bottom: 1rem;
}

.replacement-label p {
    margin: 0;
    line-height: 1.2;
}

.replacement-label small {
    font-weight: normal;
    font-size: 0.85em;
    display: block;
}

.filter-btn {
  padding: 10px;
  margin: 2px;
}

.wedstrijd-box.special {
  background-color: #ffcc80;   /* warme oranje tint */
  /*border-left: 6px solid #e67e22;*/
  color: #212529;              /* donkere tekst, goed leesbaar */
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}