/* Basic style */
* {
  box-sizing: border-box;
}
body {
  --primary: #fff;
  --secondary: #050840;
  --highlight-primary: #7ce7c9;
  --highlight-secondary: #9d7beb;
  --radius: 0.5rem;
  --pill: 2rem;
  --line: 0.1rem;

  margin: 2rem;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  background: var(--secondary);
}
h1, h2, p, a {
  color: var(--primary)
}
li {
  font-size: 2em;
  display: inline-block;
  a {
    display: inline-block;
    margin: 0.2em;
    padding: 0.4em 0.8em;
    background: var(--secondary);
    color: var(--highlight-primary);
    border: var(--line) solid var(--highlight-primary);
    border-radius: var(--pill);
    font-weight: normal;
    text-decoration: none;
    &:hover, &:focus {
      color: var(--primary);
      border-color: var(--primary);
    }
  }
}


/* UI Event Classes */

/* Jump animation on the Design link */
a[href="#design"] {
  position: relative;
  background: var(--highlight-secondary);
  color: var(--secondary);
  border-color: var(--secondary);
}

.jump {
  animation-name: jump;
  animation-timing-function: cubic-bezier(0.28, 0.84, 0.42, 1);
  animation-duration: 1.2s;
  animation-iteration-count: 1;
}

@keyframes jump {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(1.1, 0.9) translateY(0);
  }
  30% {
    transform: scale(0.9, 1.1) translateY(-5rem) rotate(10deg);
  }
  50% {
    transform: scale(1.05, 0.95) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(-0.5rem) rotate(-2deg);
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}


/* Hieronder komen jouw animaties en stijlen */
/* Basic events + feedback */

/* Frontend: Click → scale animatie */
a[href="#frontend"]{
  scale: 1;
  transition: .4s
}

a.huge{
  scale: 2;
}
/* &: Click → translate animatie */
a [href="#and"]{
  translate: none;
}
a.change{
  translate: 50%-40%;
}

/* Development: Double click → shake animatie */
.do-the-shake{
  animation-name: shake;
  animation-duration: 1.2s;
  animation-iteration-count: 1;
}

@keyframes shake{
  10%, 30%, 50%, 70%, 90%{
    transform: rotate(10deg);
  }
  20%, 40%, 60%, 80%{
    transform: rotate(-10deg);
  }
}
/* Sprint 5: Focus → kleuren animatie */
.change-color {
  animation-name: Kleuren;
  animation-duration: 3s;
  animation-iteration-count: 1;
}
@keyframes Kleuren{
  0%{
    opacity: 0;
  }
  10% {
    color: cadetblue;
  }
  20%{
    color: crimson;
  }
  30%{
    color: aquamarine;
  }
  40%{
    color: #9d7beb;
  }
  50%{
    color: hotpink;
  }
  60%{
    color: lawngreen;
  }
  70%{
    color: midnightblue;
  }
  80%{
    color: lightblue;
  }
  90%{
    color: rgb(171, 111, 135);
  }
  100%{
    color: rgb(236, 255, 63);
  }

}
/* Fix: Mouseover → verander tekst in de link (GEEN CSS NODIG)*/

/* The: Mouseout → rotate animatie */
.circles{
  animation-name: rotate;
  animation-duration: 2s;
  animation-iteration-count: 1;
}
@keyframes rotate{
  50%{
    transform: rotate(360deg);
  }
  50%{
    transform: rotate(-360deg);
  }
}
/* Flow: Mousedown en mouseup → flip en terug */
.flip-over{
  animation:flip 2s forwards;
}
@keyframes flip{
  100%{
    transform: scaleY(-1);
  }
}
.flip-back{
  animation: flipback 2s forwards;
}
@keyframes flipBack{
  from{
    transform: scaleY(-1);
  }
  to{
    transform: scaleY(1);
  }
}
/* User: Keyup → kleur veranderen op basis van ingedrukte letter */

/* Interface: Keydown → blaas de link op als een ballon, en laat leeglopen als je het toetsenbord loslaat */
/* Events: Wheel of scroll → typografie wordt groter of kleiner, afhankelijk van hoe je scrollt */
/* Interaction: Mousemove → radial gradient die de muis volgt */

/* Advanced events + feedback */
/* User flow: Mousemove → de overige elementen vallen naar beneden */
/* Wireflow: Long press → linear gradient animatie */
/* Feedback: 10x klikken → verander de button kleur */
/* Feedforward: Escape toets indrukken op deze link → alle andere links worden grijs */
/* Labels: Deviceorientation of devicemotion → shake alle links */
/* States: Drag & drop → plaats deze link ergens anders */
/* Navigation: Deze link wil heel graag geklikt worden → speel een geluid als dat lukt */
/* Code: Deze link wil niet geklikt worden → sluit de pagina als dat toch lukt */