/* 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 */

/* #1: Frontend */
.scaleani {
  animation-name: scale;
  animation-duration: 3s;
}

@keyframes scale {
  33% {
    transform: scale(0.5)
  }

  66% {
    transform: scale (1.5)
  }

}

/* #3: &*/

.translateani {
  animation-name: translate;
  animation-duration: 3s;
}

@keyframes translate {
  25% {
    transform: translate(1em, 1em);
  }

  50% {
    transform: translate(-1em, 1em);
  }

  75% {
    transform: translate(-1em, -1em);
  }

  95% {
    transform: translate(1em, -1em);
  }

  100% {
    transform: translate(0);
  }

}

/* #4 shake */

.shakeani {
  animation-name: shake;
  animation-duration: 1s;
}

@keyframes shake {

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(10deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(-10deg);
  }


  100% {
    transform: rotate(0deg);
  }
}

/* #5 sprint*/

.kleuranimatie {
  animation-name: kleur;
  animation-duration: 5s;
}

@keyframes kleur {

  15% {
    color: rgb(126, 35, 35);
  }

  30% {
    color: rgb(170, 90, 16);
  }

  45% {
    color: rgb(243, 210, 0);
  }

  60% {
    color: rgb(33, 97, 33);
  }

  75% {
    color: rgb(36, 36, 104);
  }

  90% {
    color: rgb(92, 33, 92);
  }

  100% {
    color: var(--highlight-primary);
  }

}

/* #7 The */

.draaiani {
  animation-name: rotate;
  animation-duration: 2s;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

/* #8 Flow */

.flipani {
  animation-name: flip;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  transition: flip 1s forwards;
}

@keyframes flip {
  100% {
    transform: rotateX(180deg)
  }
}

/* #9 User */

.Cbutton {
  --Ckleur: rgb(97, 42, 114);
  background-color: var(--Ckleur);
}

.Mbutton {
  --Mkleur: rgb(52, 95, 52);
  background-color: var(--Mkleur);
}

.Jbutton {
  --Jkleur: rgb(135, 91, 4);
  background-color: var(--Jkleur);
}

/* #10 Interface */

a[href="#interface"] {
  size: auto;
  transition: 7s ease-in-out;
}

.opblazen {
  transform: scale(10);
}

/* #11 Events */

/* #12 Interaction */

a[href="#interaction"] {
  --x: 50%;
  --y: 50%;

  background: radial-gradient(circle at var(--x) var(--y),
      white 3%,
      black 40%);

  transition: background;
}