

/* ----- fade In ------------------- */



.fade-in {
  animation: fadeIn ease var(--fadeInSecs);
  -webkit-animation: fadeIn ease var(--fadeInSecs);
  -moz-animation: fadeIn ease var(--fadeInSecs);
  -o-animation: fadeIn ease var(--fadeInSecs);
  -ms-animation: fadeIn ease var(--fadeInSecs);
}
@keyframes fadeIn {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

@-moz-keyframes fadeIn {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

@-webkit-keyframes fadeIn {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

@-o-keyframes fadeIn {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
  }
}

@-ms-keyframes fadeIn {
  0% {
    opacity:0;
  }
  100% {
    opacity:1;
}
}



/* ----- fade Out ------------------- */



.fade-out {
  animation: fadeOut ease var(--fadeOutSecs);
  -webkit-animation: fadeOut ease var(--fadeOutSecs);
  -moz-animation: fadeOut ease var(--fadeOutSecs);
  -o-animation: fadeOut ease var(--fadeOutSecs);
  -ms-animation: fadeOut ease var(--fadeOutSecs);
}

@keyframes fadeOut {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
  }
}

@-moz-keyframes fadeOut {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
  }
}

@-webkit-keyframes fadeOut {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
  }
}

@-o-keyframes fadeOut {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
  }
}

@-ms-keyframes fadeOut {
  0% {
    opacity:1;
  }
  100% {
    opacity:0;
 }
}





 /* ---------      drop won menus ------------------  -----------*/

/* chaninging colours */


@keyframes pink-to-Yellow {

  0% {
    background-color: var(--grey-l);
      }

  100% {
    background-color: var(--yellow-l);
        }


}









/* ------------- loading anumations ------------------- */
.containerloader {
  height: 5vh;
  width: 5vw;
  font-family: Helvetica;
}

.loader {
  height: 15px;
  width: 124px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.loader--dot {
  animation-name: loader;
  animation-timing-function: ease-in-out;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  height: 20px;
  width: 20px;
  border-radius: 100%;
  background-color: black;
  position: absolute;
  border: 2px solid white;
}
.loader--dot:first-child {
  background-color: #8cc759;
  animation-delay: 0.5s;
}
.loader--dot:nth-child(2) {
  background-color: #8c6daf;
  animation-delay: 0.4s;
}
.loader--dot:nth-child(3) {
  background-color: #ef5d74;
  animation-delay: 0.3s;
}
.loader--dot:nth-child(4) {
  background-color: #f9a74b;
  animation-delay: 0.2s;
}
.loader--dot:nth-child(5) {
  background-color: #60beeb;
  animation-delay: 0.1s;
}
.loader--dot:nth-child(6) {
  background-color: #fbef5a;
  animation-delay: 0s;
}
.loader--text {
  position: absolute;
  top: 200%;
  left: 0;
  right: 0;
  width: 4rem;
  margin: auto;
}
.loader--text:after {
  content: "Loading";
  font-weight: bold;
  animation-name: loading-text;
  animation-duration: 3s;
  animation-iteration-count: infinite;
}

@keyframes loader {
  15% {
    transform: translateX(0);
    /* opacity: 0.2; */
  }
  45% {
    transform: translateX(230px);
    /* opacity: 1; */
  }
  65% {
    transform: translateX(230px);
    /* opacity: 1; */
  }
  95% {
    transform: translateX(0);
    /* opacity: 0.2; */
  }
}
@keyframes loading-text {
  0% {
    content: "Loading";
  }
  25% {
    content: "Loading.";
  }
  50% {
    content: "Loading..";
  }
  75% {
    content: "Loading...";
  }
}





/* ------------ games ----------------- */

/* order is important here */
.keyflip {
  animation: 0.4s linear flipping;
}

@keyframes flipping {

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


.keyflipY {
  animation: 0.4s linear flippingY;
}

@keyframes flippingY {

      0%   { transform: rotateY(0deg); }
      50%  { transform: rotateY(90deg); }
      100% { transform: rotateY(0deg); }       
}





/* order is important here */
.tile.flip {
  animation: 0.4s linear flippingX;
}

@keyframes flipping {

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

.tile.flipY {
  animation: 0.4s linear flippingY;
}

@keyframes flippingY {

  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }       
}

/* ---------- button press -------- */
.btnPress {
animation: 0.4s linear btnPressed;

}

@keyframes btnPressed {
0%  { transform: scale(.95); }  
10% { transform: scale(.85);}
25% { transform: scale(.95);}
30%{  transform: scale(1);}
/*
0% {    transform:translate(-3%, -3%) scale(.4)}
10%{    transform:translate(+3%, +3%) scale(1)}
*/
}

/* --------background App----------------------- */



.circles{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -10;
}

.circles li{
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.2);
  animation: animate 25s linear infinite;
  bottom: -150px;
  
}

.circles li:nth-child(1){
  left: 25%;
  width: 80px;
  height: 80px;
  animation-delay: 0s;
}


.circles li:nth-child(2){
  left: 10%;
  width: 20px;
  height: 20px;
  animation-delay: 2s;
  animation-duration: 12s;
}

.circles li:nth-child(3){
  left: 70%;
  width: 20px;
  height: 20px;
  animation-delay: 4s;
}

.circles li:nth-child(4){
  left: 40%;
  width: 60px;
  height: 60px;
  animation-delay: 0s;
  animation-duration: 18s;
}

.circles li:nth-child(5){
  left: 65%;
  width: 20px;
  height: 20px;
  animation-delay: 0s;
}

.circles li:nth-child(6){
  left: 75%;
  width: 110px;
  height: 110px;
  animation-delay: 3s;
}

.circles li:nth-child(7){
  left: 35%;
  width: 150px;
  height: 150px;
  animation-delay: 7s;
}

.circles li:nth-child(8){
  left: 50%;
  width: 25px;
  height: 25px;
  animation-delay: 15s;
  animation-duration: 45s;
}

.circles li:nth-child(9){
  left: 20%;
  width: 15px;
  height: 15px;
  animation-delay: 2s;
  animation-duration: 35s;
}

.circles li:nth-child(10){
  left: 85%;
  width: 150px;
  height: 150px;
  animation-delay: 0s;
  animation-duration: 11s;
}



@keyframes animate {

  0%{
      transform: translateY(0) rotate(0deg);
      opacity: 1;
      border-radius: 0;
  }

  100%{
      transform: translateY(-1000px) rotate(720deg);
      opacity: 0;
      border-radius: 50%;
  }

}

