@import url("https://fonts.googleapis.com/css?family=Baloo+Paaji|Open+Sans:300,300i,400,400i,600,600i,700,700i");

body {
  background-color: #695aa6;
  background-size: cover;
  background-position: center center;
  font-family: "Baloo Paaji";
  width: 100%;
  height: 100%;
}

.speakerCloseMed {
  position: absolute;
  width: 50px;
  height: 50px;
  background: url(../imgs/sclose.png) center center no-repeat;
  top: 20px;
  right: 20px;
  z-index: 5000000;
  cursor: pointer;
}
.gameContainer
{
  position: fixed;
  width: 1080px;
  height: 600px;
  margin-left: calc(50% - 550px);
  margin-left: -webkit-calc(50% - 550px);
  margin-left: -moz-calc(50% - 550px);
  z-index: 1;
}

#game {
  display: inline-block;
  position: relative;
  margin-top: 80px;
}

#game .cup {
  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-bottom: 340px solid #ff8a00;
  height: 0;
  cursor: pointer;
  float: left;
  margin: 0 15px;
  position: relative;
  width: 230px;
  -webkit-box-shadow: 0px 19px 5px -9px rgba(0,0,0,0.26);
  -moz-box-shadow: 0px 19px 5px -9px rgba(0,0,0,0.26);
  box-shadow: 0px 19px 5px -9px rgba(0,0,0,0.26);
}

#game .ball {
  display: none;
  border-radius: 50%;
  height: 120px;
  width: 120px;
  margin-left: 120px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: url(../imgs/cik120.png) center center no-repeat;
}

#game-result {
  display: none;
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  font-size: 42px;
  text-align: center;
  font-family: "Baloo Paaji";
  color: #fff;
}

#btn-play {
  background: #ffa800;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  margin: 20px auto;
  padding: 5px 15px;
  font-family: "Baloo Paaji";
  font-size: 38px;
  color:#fff;
  margin-top: 30px;
}

#btn-play:hover {
  background: #ff8a00;
}

@media (max-width: 990px) {
  

  .gameContainer
  {
    position: fixed;
    width: 790px;
    height: 500px;
    margin-left: calc(50% - 402px);
    margin-left: -webkit-calc(50% - 402px);
    margin-left: -moz-calc(50% - 402px);
    margin-top: 180px;
  }
  
  #game {
    display: inline-block;
    position: relative;
    margin-top: 80px;
  }
  
  #game .cup {
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 340px solid #ff8a00;
    height: 0;
    cursor: pointer;
    float: left;
    margin: 0 10px;
    position: relative;
    width: 143px;
    -webkit-box-shadow: 0px 16px 5px -9px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 16px 5px -9px rgba(0,0,0,0.26);
    box-shadow: 0px 16px 5px -9px rgba(0,0,0,0.26);
  }
  
  #game .ball {
    display: none;
    background: url(../imgs/cik120.png) center center no-repeat;
    border-radius: 50%;
    height: 120px;
    width: 120px;
    margin-left: 70px;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  
  #game-result {
    display: none;
    position: absolute;
    top: -35%;
    left: 0;
    right: 0;
    font-size: 40px;
    text-align: center;
    font-family: "Baloo Paaji";
    color: #fff;
  }
  
  #btn-play {
    background: #ffa800;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    padding: 5px 15px;
    font-family: "Baloo Paaji";
    font-size: 36px;
    color:#fff;
    margin-top: 30px;
  }

}

@media (max-width: 724px) {
  

  .gameContainer
  {
    position: fixed;
    width: 360px;
    height: 500px;
    margin-left: calc(50% - 180px);
    margin-left: -webkit-calc(50% - 180px);
    margin-left: -moz-calc(50% - 180px);
    margin-top: 90px;
  }
  
  #game {
    display: inline-block;
    position: relative;
    margin-top: 80px;
  }
  
  #game .cup {
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 190px solid #ff8a00;
    height: 0;
    cursor: pointer;
    float: left;
    margin: 0 5px;
    position: relative;
    width: 64px;
    -webkit-box-shadow: 0px 14px 5px -9px rgba(0,0,0,0.26);
    -moz-box-shadow: 0px 14px 5px -9px rgba(0,0,0,0.26);
    box-shadow: 0px 14px 5px -9px rgba(0,0,0,0.26);
  }
  
  #game .ball {
    display: none;
    background: url(../imgs/cik60.png) center center no-repeat;
    border-radius: 50%;
    height: 60px;
    width: 60px;
    margin-left: 28px;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  
  #game-result {
    display: none;
    position: absolute;
    top: -50%;
    left: 0;
    right: 0;
    font-size: 36px;
    text-align: center;
    font-family: "Baloo Paaji";
    color: #fff;
  }
  
  #btn-play {
    background: #ffa800;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 20px auto;
    padding: 5px 15px;
    font-family: "Baloo Paaji";
    font-size: 30px;
    color:#fff;
    margin-top: 30px;
  }

}


.background {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top:0;
  left:0;
}

.background span {
  width: 20vmin;
  height: 20vmin;
  border-radius: 20vmin;
  backface-visibility: hidden;
  position: absolute;
  animation-name: move;
  animation-duration: 6s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.background span:nth-child(1) {
  color: #5c7f9f;
  top: 83%;
  left: 26%;
  animation-duration: 14.9s;
  animation-delay: -12.7s;
  transform-origin: -21vw -14vh;
  box-shadow: -40vmin 0 14.7613225876vmin currentColor;
}
.background span:nth-child(2) {
  color: #c67256;
  top: 6%;
  left: 23%;
  animation-duration: 12.5s;
  animation-delay: -5.8s;
  transform-origin: 15vw -23vh;
  box-shadow: -40vmin 0 6.8129955881vmin currentColor;
}
.background span:nth-child(3) {
  color: #c67256;
  top: 6%;
  left: 97%;
  animation-duration: 11.8s;
  animation-delay: -5.5s;
  transform-origin: -19vw 25vh;
  box-shadow: 40vmin 0 10.4545812821vmin currentColor;
}
.background span:nth-child(4) {
  color: #66b2f9;
  top: 52%;
  left: 89%;
  animation-duration: 15.2s;
  animation-delay: -3.5s;
  transform-origin: -2vw 14vh;
  box-shadow: 40vmin 0 13.319809897vmin currentColor;
}
.background span:nth-child(5) {
  color: #5c7f9f;
  top: 9%;
  left: 41%;
  animation-duration: 12.8s;
  animation-delay: -5.3s;
  transform-origin: -16vw 12vh;
  box-shadow: -40vmin 0 10.5721832774vmin currentColor;
}
.background span:nth-child(6) {
  color: #c67256;
  top: 59%;
  left: 63%;
  animation-duration: 10.8s;
  animation-delay: -5.4s;
  transform-origin: 17vw 18vh;
  box-shadow: -40vmin 0 5.9725881472vmin currentColor;
}
.background span:nth-child(7) {
  color: #5c7f9f;
  top: 33%;
  left: 17%;
  animation-duration: 13.7s;
  animation-delay: -4.1s;
  transform-origin: -23vw 21vh;
  box-shadow: -40vmin 0 8.87151784vmin currentColor;
}
.background span:nth-child(8) {
  color: #c67256;
  top: 10%;
  left: 9%;
  animation-duration: 12.9s;
  animation-delay: -11.1s;
  transform-origin: 8vw 14vh;
  box-shadow: -40vmin 0 9.8452283216vmin currentColor;
}
.background span:nth-child(9) {
  color: #5c7f9f;
  top: 1%;
  left: 62%;
  animation-duration: 14.4s;
  animation-delay: -7.5s;
  transform-origin: -22vw -10vh;
  box-shadow: -40vmin 0 9.4594421433vmin currentColor;
}
.background span:nth-child(10) {
  color: #c67256;
  top: 27%;
  left: 43%;
  animation-duration: 15.6s;
  animation-delay: -8.4s;
  transform-origin: 16vw -21vh;
  box-shadow: 40vmin 0 11.8498807222vmin currentColor;
}
.background span:nth-child(11) {
  color: #E45A84;
  top: 47%;
  left: 75%;
  animation-duration: 14.7s;
  animation-delay: -11.9s;
  transform-origin: -21vw 6vh;
  box-shadow: -40vmin 0 7.3396392961vmin currentColor;
}
.background span:nth-child(12) {
  color: #5c7f9f;
  top: 35%;
  left: 50%;
  animation-duration: 13.2s;
  animation-delay: -3.3s;
  transform-origin: 0vw -16vh;
  box-shadow: 40vmin 0 6.0817378245vmin currentColor;
}
.background span:nth-child(13) {
  color: #c67256;
  top: 15%;
  left: 100%;
  animation-duration: 13.7s;
  animation-delay: -5s;
  transform-origin: -2vw -5vh;
  box-shadow: 40vmin 0 11.1208731535vmin currentColor;
}
.background span:nth-child(14) {
  color: #E45A84;
  top: 65%;
  left: 90%;
  animation-duration: 12.6s;
  animation-delay: -5.1s;
  transform-origin: 14vw 23vh;
  box-shadow: 40vmin 0 14.2758093471vmin currentColor;
}
.background span:nth-child(15) {
  color: #66b2f9;
  top: 94%;
  left: 27%;
  animation-duration: 13.7s;
  animation-delay: -14.8s;
  transform-origin: 18vw 24vh;
  box-shadow: -40vmin 0 14.0690479024vmin currentColor;
}
.background span:nth-child(16) {
  color: #5c7f9f;
  top: 2%;
  left: 24%;
  animation-duration: 12.6s;
  animation-delay: -8.9s;
  transform-origin: -21vw -19vh;
  box-shadow: 40vmin 0 11.4628561509vmin currentColor;
}
.background span:nth-child(17) {
  color: #66b2f9;
  top: 80%;
  left: 24%;
  animation-duration: 15.8s;
  animation-delay: -1.5s;
  transform-origin: 19vw -2vh;
  box-shadow: 40vmin 0 9.7143469278vmin currentColor;
}
.background span:nth-child(18) {
  color: #c67256;
  top: 26%;
  left: 36%;
  animation-duration: 13.7s;
  animation-delay: -9.5s;
  transform-origin: -4vw -19vh;
  box-shadow: 40vmin 0 9.4802522939vmin currentColor;
}
.background span:nth-child(19) {
  color: #5c7f9f;
  top: 20%;
  left: 83%;
  animation-duration: 10.5s;
  animation-delay: -13.9s;
  transform-origin: 24vw 7vh;
  box-shadow: 40vmin 0 12.3525833033vmin currentColor;
}
.background span:nth-child(20) {
  color: #E45A84;
  top: 94%;
  left: 4%;
  animation-duration: 14.9s;
  animation-delay: -14.8s;
  transform-origin: 13vw 15vh;
  box-shadow: -40vmin 0 11.5206657281vmin currentColor;
}

@keyframes move {
  100% {
    transform: translate3d(0, 0, 1px) rotate(360deg);
  }
}
