body {
    margin: 20px 20px;
    font-family: Mario;
    background: black;
    overflow-x: hidden;
    color: white;
}

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 {
    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;
  flex-direction: row;
  gap: 15px;

  animation-name: pageloadHeader;
  animation-delay: .5s;
  animation-duration: 0.3s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.header-2 {
  animation-name: pageloadHeader;
  animation-delay: .5s;
  animation-duration: 0.3s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.header-text {
  text-align: center;
  font-size: 30px;
}

.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: 0px 40px 0px 40px;
    text-align: center;
    scale: 0;
    font-size: 13px;
    font-weight: normal;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.card-content img {
  width: 100%;
  max-height: 250px;
  height: auto;
  object-fit: contain;
  transition: scale 0.15s ease;

  @media (max-width: 600px) {
    height: 100px;
  }
}

.card-content img:hover {
  scale: 0.95;
  cursor: pointer;
}

/*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: cubic-bezier(.17,1.05,.42,1.34);
}

.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:nth-child(8)  { animation-delay: 2.2s; }

footer {
  border-top: 2px solid rgb(48, 48, 48);
  margin-top: 20px;
}


@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);
  }
}

@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;
  }
}