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


/* frontend  scale */
@keyframes scale {
  0% { 
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

.scale{
  animation-name: scale;
  animation-duration: 1s;
  animation-iteration-count: 1;
}



/* and jump */
@keyframes and {
  0% {
    translate: 0 0;
  }

  50%{
    translate: 0 -1em ;
  }

  100% {
    translate: 0 0;
  }
}

.and{
  animation-name: and;
  animation-duration: 2s;
  animation-iteration-count: 1;
}



/* doubleclick shake*/

@keyframes dblclick {
  0% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(5deg);
  }

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

  75% {
    transform: rotate(-5deg);
  }

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

.dblclick {
  animation-name: dblclick;
  animation-duration: .3s;
  animation-iteration-count: 4;
}



/* sprint 5 Colors */
  @keyframes kleuren {
    0% {
      background-color: #050840;
      color: green;
    }

    25% {
      background-color: green;
      color: yellow;
    }

    50% {
      background-color: yellow;
      color: red;
    }

    75% {
      background-color: red;
      color: #050840;
    }

    100% {
      background-color: #050840;
    }
  }

  .kleuren {
    animation-name: kleuren;
    animation-duration: 3s;
    animation-iteration-count: 1;
  }





  /* The Mouseover Rotate */
  @keyframes rotate {
    0% {
      transform: rotate(0deg);
    }

  

    25% {
      transform: rotate(45deg);
    }

    75% {
      transform: rotate(-45deg);
    }

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

  .rotate{
    animation-name: rotate;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
  }



  /* 'flow' flip link */
  @keyframes flipflow {
    0%{
      transform: rotateX(0deg) ;
    }

    50%{
      transform: rotateX(180deg) ;
    }

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


  .flipflow {
    animation: flipflow;
    animation-duration: 2s;
    animation-iteration-count: 1;
  }


  /* user keyup */

.green {
  color: green !important;
}

.blue {
  color: blue !important;
}

.red {
  color: red !important;
}


/* inflate interface link */
a[href="#interface"] {
  color: var(--secondary);  
  background-color: var(--secondary);
  transition: transform 1.5s ease;
}

.blowup {
  background-color: #050840;
  transform: scale(4);
  transition: transform 1.5s ease;
}

