body {
    margin: 20px 20px;
    font-family: Mario;
    background: black;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;       /* desktop: fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url(assets/BG.png) no-repeat center center;
    background-size: cover;
    z-index: -1;
}

h1, h2, h3, h4, h5 {
    color: white;
    font-weight: normal;
}

@font-face {
  font-family: Mario;
  src: url(assets/font/MarioFont.otf);
}

@font-face {
  font-family: DK;
  src: url(assets/font/adlib.ttf);
}

@font-face {
  font-family: MKWorld;
  src: url(assets/font/RacersDelight.otf);
}

@font-face {
  font-family: LM;
  src: url(assets/font/Delfino.ttf);
}

@font-face {
  font-family: Kirby;
  src: url(assets/font/Kirby.otf);
}

/* Slide-in van boven naar beneden */
@keyframes pageloadHeader {
  0% {
    transform: translateY(-50px); /* start 50px boven de plek */
    opacity: 0;                   /* start onzichtbaar */
  }
  100% {
    transform: translateY(0);     /* eindigt op normale plek */
    opacity: 1;                   /* volledig zichtbaar */
  }
}

header {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  animation-name: pageloadHeader;
  animation-delay: .5s;
  animation-duration: 0.3s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.header-text {
  text-align: center;
}

.PFP {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin: auto;
  justify-content: center;
  margin-top: 40px;
}

.card-content {
    background-color: rgb(46, 46, 46);
    border-radius: 20px;
    padding: 10px;
    text-align: center;
    scale: 0;
    font-size: 13px;
    font-weight: normal;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card-content img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: scale 0.15s ease;
}

.card-content img:hover {
  scale: 0.95;
  cursor: pointer;
}

.card-content#DKRadio {
  font-family: DK;
}

.card-content#MKWRadio {
  font-family: MKWorld;
}

.card-content#LMRadio {
  font-family: LM;
}

.card-content#KirbyRadio {
  font-family: Kirby;
}

/*Fade-in animatie*/
@keyframes pageload {
  0% {
    scale: 0;
    opacity: 0;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}

.card .card-content{
    animation-name: pageload;
    animation-duration: 0.3s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.card .card-content:nth-child(1)  { animation-delay: 1.5s; }
.card .card-content:nth-child(2)  { animation-delay: 1.6s; }
.card .card-content:nth-child(3)  { animation-delay: 1.7s; }
.card .card-content:nth-child(4)  { animation-delay: 1.8s; }
.card .card-content:nth-child(5)  { animation-delay: 1.9s; }
.card .card-content:nth-child(6)  { animation-delay: 2.0s; }
.card .card-content:nth-child(7)  { animation-delay: 2.1s; }
.card .card-content#RPC:nth-child(1)  { animation-delay: 2.1s; }

/* .mushroom, .flower {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mushroom::before,
.flower::before {
  content: "";
  position: absolute;
  inset: 0;
  will-change: transform;
  background-repeat: repeat;
  transform: translate3d(0, 0, 0);
}

.mushroom::before {
  background-image: url('assets/img/Mushroom.png');
  background-size: 200px 200px;
  opacity: 0.1;
  animation: mushroomMove 60s linear infinite;
}

.flower::before {
  background-image: url('assets/img/FireFlower.png');
  background-size: 150px 150px;
  opacity: 0.05;
  animation: moveFlower 120s linear infinite;
}

@keyframes mushroomMove {
  from { transform: translateY(0); }
  to { transform: translateY(200px); }
}

@keyframes moveFlower {
  from { transform: translateX(0); }
  to { transform: translateX(150px); }
} */


@media (min-width: 1025px) {
  .PFP {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
  }

  .PFP:hover {
    animation: rotateInfinite 2s linear infinite;
  }

  /* Keyframes voor rotatie */
  @keyframes rotateInfinite {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
}

@media (max-width: 1024px) {
  .card {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  .card {
    grid-template-columns: 1fr;
  }
  
  header {
    flex-direction: column;
    text-align: center;
  }

  .PFP {
    margin-bottom: 10px;
  }

  .card-content {
    max-width: 90%;
    margin: 0 auto;
  }

  .card-content img:hover {
    scale: 1;
  }
}