

/*Declare all custom font families and load it in, add custom fonts to fonts folder*/
/*https://www.w3schools.com/css/css3_fonts.asp*/
@font-face{
  font-family: BradleyGratis; /*this is a self defined name, best to have it similar to the font file name*/
  src: url(fonts/BradleyGratis.ttf);
}




@keyframes grow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit {
  
    0%{left:15%; top:30%; z-index: 5; }
    50%{left:85%; top:60%; z-index: 5; }
    51%{left:85%; top:60%; z-index: -10; }
    100%{left:15%; top:30%; z-index: -10; }
}

@keyframes textrotate {
/*
  from{
    transform: translate(0,0);
  }*/
  to {
    /*transform: translate(-1em,-2em);*/
    transform: rotate(-360deg);
  }
}


#ingrid{
  position: absolute; /*try not to change this*/
  width:100%; /*try not to change this*/
  height:100%; /*try not to change this*/
  font-family: BradleyGratis; 
}


/*Wild card CSS selector*/
/*https://www.w3schools.com/cssref/sel_all.asp*/
/*Combined with parent selector:*/
/*https://www.w3schools.com/cssref/sel_element_gt.asp*/
#ingrid > *{ 
  font-size: 2.9em;
  line-height: 3.3em;
  display:  inline-block;
  position: absolute;
  
  
  
}


/*Two ways to select the characters*/
/*using the CSS not selector*/
/*https://www.w3schools.com/cssref/css_selectors.asp*/

#ingrid .character{
  color:#0b1a3e;
  position: absolute;
  transform-origin: bottom center;
  bottom:50%;
  left:50%;
}

#char-I{
  text-transform: uppercase;
  transform: rotate(-102deg);
  line-height: 3.5em;
}
#char-n{
  animation-delay: 0.85s;
  transform: rotate(-80deg);
  line-height: 3.6em;
}
#char-dash{
  animation-delay: 1.7s;
  transform: rotate(-60deg);
}
#char-g{
  text-transform: uppercase;
  animation-delay: 2.55s;
  transform: rotate(-40deg);
  line-height: 3.4em;
}
#char-r{
  animation-delay: 3.4s;
  transform: rotate(-14deg);
}
#char-i{
  animation-delay: 4.25s;
  transform: rotate(5deg);
  line-height: 3.2em;
}
#char-d{
  animation-delay: 5.1s;
  transform: rotate(20deg);
  line-height: 3em;
}
#graphic{
  background-image: url(img/Ball.png);
  background-position: center;
  background-size: 100%;
  background-repeat: none;
  transform-origin: center;
  width: 65%;
  height: 65%;
  top: 17%;
  left: 18%;
  border-radius:50%;
  background-color: #eaaaff;
  position: inherit;
  z-index: -1;
  animation-duration: 20s;
  animation-name: grow;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  -webkit-box-shadow: 0px 0px 10px 5px rgba(234,170,255,0.8);
  -moz-box-shadow: 0px 0px 10px 5px rgba(234,170,255,0.8);
  box-shadow: 0px 0px 10px 5px rgba(234,170,255,0.8);
}

#chars{
  animation-duration: 20s;
  animation-name: textrotate;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  bottom: 0;
  left: 0;
  height: 100%;
  width: 100%;
}
/*#graphic{
  background-image: url(../images/moon.png);
  background-position: center;
  background-repeat: none;
  position:relative;
  width:20%;
  height:20%;
  top:calc(0px - 0.08em); https://developer.mozilla.org/en-US/docs/Web/CSS/calc
  left:calc(0px - 0.08em);
  animation-duration: 8s;
  animation-name: orbit;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;

}
*/


