@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&family=Open+Sans:wght@400;600;700&display=swap");

html,
body {
  background: #dff4ff;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: #222;
}

.site-header {
  background: #fff;
}

.header-inner {
  width: calc(100% - 40px);
  max-width: 925px;
  min-height: 145px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo-link {
  flex: 0 0 auto;
  padding: 0;
}

.logo-link img {
  width: auto;
  max-width: 260px;
  max-height: 120px;
  display: block;
}

.menu-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  position: relative;
  border: 0;
  border-radius: 50%;
  background: #febcd4;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
}

.menu-toggle span {
  width: 24px;
  height: 3px;
  display: block;
  position: absolute;
  left: 12px;
  border-radius: 999px;
  background: #222;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 22px;
}

.menu-toggle span:nth-child(3) {
  top: 29px;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
  flex-wrap: wrap;
}

.menu a,
.submenu-toggle {
  color: #222;
  background: none;
  border: 0;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  padding: 12px 0;
  cursor: pointer;
}

.menu a:hover,
.submenu-toggle:hover,
.submenu-toggle:focus {
  color: #237fa8;
}

.menu-item {
  position: relative;
}

.menu-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}

.submenu {
  min-width: 190px;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: none;
  background: #fff;
}

.submenu a {
  display: block;
  padding: 14px 18px;
  font-size: 16px;
  white-space: nowrap;
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu {
  display: block;
}

.slider {
  width: 100%;
  max-height: 1000px;
  aspect-ratio: 1600 / 750;
  position: relative;
  overflow: hidden;
  background: #111;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  height: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide:not(.active) img {
  opacity: 1;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
  color: #222;
  cursor: pointer;
  font-size: 30px;
  line-height: 50px;
}

.slider-button:hover {
  background: #fff;
}

.previous {
  left: 20px;
}

.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: #fff;
}

main {
  max-width: 925px;
  margin: 0 auto;
  padding: 40px 20px 30px;
}

h1 {
  font-family: "Indie Flower", cursive;
  text-align: center;
  margin: 0 0 20px;
  font-size: 32px;
}

section {
  background: #fff;
  border-radius: 35px;
  padding: 20px;
  margin-bottom: 20px;
}

h2 {
  font-family: "Indie Flower", cursive;
  margin-top: 0;
}

.bouncing-volleyball {
  width: 72px;
  height: 72px;
  position: fixed;
  left: -90px;
  bottom: 28px;
  z-index: 20;
  pointer-events: none;
  object-fit: contain;
  animation: volleyball-bounce 5s cubic-bezier(0.55, 0, 0.25, 1) 1 forwards;
}

@keyframes volleyball-bounce {
  0% {
    left: -90px;
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  10% {
    left: calc((100vw + 180px) * 0.1 - 90px);
    transform: translateY(-92px) rotate(144deg);
  }

  20% {
    left: calc((100vw + 180px) * 0.2 - 90px);
    transform: translateY(0) rotate(288deg);
  }

  30% {
    left: calc((100vw + 180px) * 0.3 - 90px);
    transform: translateY(-88px) rotate(432deg);
  }

  40% {
    left: calc((100vw + 180px) * 0.4 - 90px);
    transform: translateY(0) rotate(576deg);
  }

  50% {
    left: calc((100vw + 180px) * 0.5 - 90px);
    transform: translateY(-84px) rotate(720deg);
  }

  60% {
    left: calc((100vw + 180px) * 0.6 - 90px);
    transform: translateY(0) rotate(864deg);
  }

  70% {
    left: calc((100vw + 180px) * 0.7 - 90px);
    transform: translateY(-80px) rotate(1008deg);
  }

  80% {
    left: calc((100vw + 180px) * 0.8 - 90px);
    transform: translateY(0) rotate(1152deg);
  }

  90% {
    left: calc((100vw + 180px) * 0.9 - 90px);
    transform: translateY(-76px) rotate(1296deg);
  }

  100% {
    left: calc(100vw + 90px);
    transform: translateY(0) rotate(1440deg);
    opacity: 1;
  }
}

.button-center {
  margin: 44px 0 20px;
  text-align: center;
}

.replay-volleyball {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.memory-section {
  text-align: center;
}

.memory-intro {
  margin-top: 0;
}

.memory-timer {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: bold;
}

.memory-game {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.memory-card {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 25px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  perspective: 900px;
}

.memory-card.is-disabled {
  cursor: default;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 25px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 10px 24px rgba(35, 127, 168, 0.12);
}

.memory-card-back {
  background: linear-gradient(135deg, #febcd4 0%, #dff4ff 100%);
  color: #222;
  padding: 18px;
  box-sizing: border-box;
}

.memory-card-back img {
  width: 82%;
  height: auto;
  max-height: 82%;
  object-fit: contain;
  display: block;
}

.memory-card-front {
  background: #fff;
  transform: rotateY(180deg);
}

.memory-card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.memory-card.is-matched {
  cursor: default;
}

.spotify-playlist {
  width: 100%;
  border: 0;
  border-radius: 25px;
  display: block;
}

.album-section {
  text-align: center;
}

.photo-album {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.album-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 25px;
  overflow: hidden;
  background: #dff4ff;
  cursor: zoom-in;
  padding: 0;
  box-shadow: 0 10px 24px rgba(35, 127, 168, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: album-photo-enter 0.7s ease forwards;
  opacity: 0;
}

.album-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(35, 127, 168, 0.18);
}

.album-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-photo:nth-child(1) {
  animation-delay: 0.03s;
}

.album-photo:nth-child(2) {
  animation-delay: 0.06s;
}

.album-photo:nth-child(3) {
  animation-delay: 0.09s;
}

.album-photo:nth-child(4) {
  animation-delay: 0.12s;
}

.album-photo:nth-child(5) {
  animation-delay: 0.15s;
}

.album-photo:nth-child(6) {
  animation-delay: 0.18s;
}

.album-photo:nth-child(7) {
  animation-delay: 0.21s;
}

.album-photo:nth-child(8) {
  animation-delay: 0.24s;
}

.album-photo:nth-child(9) {
  animation-delay: 0.27s;
}

.album-photo:nth-child(10) {
  animation-delay: 0.3s;
}

.album-photo:nth-child(11) {
  animation-delay: 0.33s;
}

.album-photo:nth-child(12) {
  animation-delay: 0.36s;
}

.album-photo:nth-child(13) {
  animation-delay: 0.39s;
}

.album-photo:nth-child(14) {
  animation-delay: 0.42s;
}

.album-photo:nth-child(15) {
  animation-delay: 0.45s;
}

.album-photo:nth-child(16) {
  animation-delay: 0.48s;
}

@keyframes album-photo-enter {
  0% {
    opacity: 0;
    transform: translateY(24px) rotate(-3deg) scale(0.94);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) rotate(1deg) scale(1.02);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.album-lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 78px;
  background: rgba(0, 0, 0, 0.78);
}

.album-lightbox.is-open {
  display: flex;
}

.album-lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 25px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.album-lightbox-close,
.album-lightbox-button {
  border: 0;
  background: rgba(254, 188, 212, 0.72);
  color: #222;
  cursor: pointer;
  font-family: inherit;
}

.album-lightbox-close:hover,
.album-lightbox-button:hover {
  background: rgba(254, 188, 212, 0.95);
}

.album-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 34px;
  line-height: 48px;
}

.album-lightbox-button {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 30px;
}

.album-lightbox-prev,
.album-lightbox-next {
  background: rgba(254, 188, 212, 0.72);
}

.album-lightbox-prev {
  left: 24px;
}

.album-lightbox-next {
  right: 24px;
}

.memory-highscores {
  margin-top: 24px;
  text-align: center;
}

.memory-highscores h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.memory-score-list {
  max-width: 280px;
  margin: 0 auto;
  padding-left: 28px;
  text-align: left;
}

.memory-score-list li {
  margin-bottom: 6px;
}

.confetti {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
}

.confetti span {
  width: 10px;
  height: 18px;
  position: absolute;
  top: -30px;
  border-radius: 4px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(-30px) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

.about-section {
  overflow: auto;
}

.about-photo {
  width: min(320px, 42%);
  height: auto;
  float: right;
  margin: 0 0 20px 20px;
  border-radius: 25px;
  display: block;
}

.volleyball-section {
  overflow: auto;
}

.volleyball-photo-link {
  width: min(360px, 44%);
  float: right;
  margin: 0 0 20px 20px;
  display: block;
}

.volleyball-photo {
  width: 100%;
  max-height: 500px;
  border-radius: 25px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

.music-section {
  overflow: auto;
}

.music-photo-link {
  width: min(360px, 44%);
  float: right;
  margin: 0 0 20px 20px;
  display: block;
}

.music-photo-frame {
  max-height: 500px;
  display: block;
  border-radius: 25px;
  overflow: hidden;
  line-height: 0;
}

.music-photo {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.animal-photo-link {
  width: min(360px, 44%);
  float: right;
  margin: 0 0 20px 20px;
  display: block;
}

.animal-photo-frame {
  height: 300px;
  display: block;
  border-radius: 25px;
  overflow: hidden;
  line-height: 0;
  background: #dff4ff;
}

.animal-photo {
  width: 100%;
  height: 100%;
  border-radius: 25px !important;
  -webkit-clip-path: inset(0 round 25px);
  clip-path: inset(0 round 25px);
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.animal-photo-frame .animal-photo,
.animal-photo-link img {
  border-radius: 25px !important;
  -webkit-clip-path: inset(0 round 25px);
  clip-path: inset(0 round 25px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.75);
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1100px);
  max-height: 90vh;
  border-radius: 25px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  text-decoration: none;
  font-size: 44px;
  line-height: 1;
}

.birthday-section {
  text-align: center;
  background: linear-gradient(135deg, #fff 0%, #fff5fa 100%);
}

.birthday-label {
  display: inline-block;
  margin: 0 0 10px;
  border-radius: 999px;
  background: #febcd4;
  padding: 8px 16px;
  font-weight: bold;
}

.birthday-section h2 {
  margin: 0 0 22px;
  font-size: 30px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.countdown-item {
  border-radius: 25px;
  background: #dff4ff;
  padding: 18px 10px;
  box-shadow: 0 10px 24px rgba(35, 127, 168, 0.12);
}

.countdown-item span {
  display: block;
  font-size: 34px;
  font-weight: bold;
}

.countdown-item small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.birthday-text {
  margin: 0;
  font-weight: bold;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  min-height: 280px;
  background: #fff;
  border-radius: 35px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 12px 30px rgba(35, 127, 168, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(35, 127, 168, 0.18);
}

.feature-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #dff4ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.feature-card h2 {
  margin-bottom: 5px;
  text-align: center;
}

.feature-card p {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 1.45;
}

.feature-button {
  display: inline-block;
  margin-top: 0;
  border-radius: 999px;
  background: #febcd4;
  color: #222;
  text-decoration: none;
  font-weight: bold;
  padding: 13px 20px;
  box-shadow: 0 8px 18px rgba(254, 188, 212, 0.55);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.feature-button:hover {
  background: #ffa9c9;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(254, 188, 212, 0.75);
}

.feature-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.puzzle-section {
  margin-top: 20px;
  text-align: center;
}

.slide-puzzle {
  width: min(100%, 540px);
  aspect-ratio: 1;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px;
  border-radius: 35px;
  background: #dff4ff;
  box-sizing: border-box;
}

.puzzle-timer {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: bold;
}

.puzzle-tile {
  border: 0;
  border-radius: 22px;
  background-image: url("afbeeldingen/julia-volleybal.jpeg");
  background-size: 400% 400%;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(35, 127, 168, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.puzzle-tile:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(35, 127, 168, 0.22);
}

.puzzle-tile.is-empty {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 2px rgba(35, 127, 168, 0.12);
  cursor: default;
}

.puzzle-message {
  min-height: 24px;
  margin: 0;
  font-weight: bold;
}

.puzzle-highscores {
  margin-top: 24px;
  text-align: center;
}

.puzzle-highscores h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.puzzle-score-list {
  max-width: 280px;
  margin: 0 auto;
  padding-left: 28px;
  text-align: left;
}

.puzzle-score-list li {
  margin-bottom: 6px;
}

.site-footer {
  background: #fff;
  margin-top: 20px;
}

.footer-inner {
  width: calc(100% - 40px);
  max-width: 925px;
  margin: 0 auto;
  padding: 24px 0;
  text-align: center;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 110px;
    flex-wrap: wrap;
    align-content: center;
  }

  .logo-link img {
    max-width: 180px;
    max-height: 90px;
    margin-top: 15px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .menu-checkbox:checked + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-checkbox:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .menu {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  .menu-checkbox:checked + .menu-toggle + .menu {
    max-height: 420px;
    padding: 10px 0 18px;
  }

  .menu a,
  .submenu-toggle {
    width: 100%;
    text-align: left;
    padding: 13px 0;
  }

  .menu-item::after {
    display: none;
  }

  .submenu {
    position: static;
    min-width: 0;
    transform: none;
    padding-left: 18px;
    background: transparent;
  }

  .submenu a {
    padding: 10px 0;
  }

  .about-photo {
    width: 100%;
    max-width: 420px;
    float: none;
    margin: 0 auto 20px;
  }

  .volleyball-photo-link {
    width: 100%;
    max-width: 420px;
    float: none;
    margin: 0 auto 20px;
  }

  .music-photo-link {
    width: 100%;
    max-width: 420px;
    float: none;
    margin: 0 auto 20px;
  }

  .animal-photo-link {
    width: 100%;
    max-width: 320px;
    float: none;
    margin: 0 auto 20px;
  }

  .animal-photo-frame {
    height: 300px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .memory-game {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .photo-album {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .album-lightbox {
    padding: 70px 16px 24px;
  }

  .album-lightbox-button {
    width: 44px;
    height: 44px;
    font-size: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .memory-game {
    grid-template-columns: repeat(4, 1fr);
  }

  .photo-album {
    grid-template-columns: repeat(2, 1fr);
  }
}
