:root
{
  --base-static-url : "https://static-contents.linkology.org/" ;
}

#skyfallDivID 
{
    font-size: 16px;
    width: 652px;
    top:62px;
    left:1px;
    margin: 0 auto;
    padding:0;
    height: 300px;
    display:block;
    position: absolute;
    overflow: hidden;
}

.cloud{
    position: absolute;
    -webkit-animation:linear infinite alternate;
    animation-timing-function: ease-in-out;
    -webkit-animation-timing-function: ease-in-out;
    will-change: transform;
    transform: translateZ(0);
}
#cloud1{
    top: 0px;
    width: 200px;
    height: 74px;
    left: 5%;
    
    -webkit-animation-name: moveCloud1;
    -webkit-animation-duration: 30s;
}
#cloud2{
    top: 120px;
    width: 220px;
    height: 80px;
    left: 30%;

    -webkit-animation-name: moveCloud2;
    -webkit-animation-duration: 10s;

}
#cloud3{
    top:10px;
    width: 160px;
    height: 56px;
    left: 50%;

    -webkit-animation-name: moveCloud3;
    -webkit-animation-duration: 20s;
}
@keyframes moveCloud1 {
    0% { transform: translate3d(5%, 0, 0);}
    50%{ transform: translate3d(30%, 10px, 0);}
    100%{ transform: translate3d(5%, 0, 0);}
}
@keyframes moveCloud2 {
    0% { transform: translate3d(30%, 0, 0);}
    50%{ transform: translate3d(10%, -20px, 0);}
    100%{transform: translate3d(30%, 0, 0);}
}
@keyframes moveCloud3 {
    0% { transform: translate3d(70%, 0, 0);}
    50%{ transform: translate3d(20%, 20px, 0);}
    100%{ transform: translate3d(80%, 0, 0);}
}

.city{
    background: red;
    position: absolute;
    bottom: 0;
    top: 55px;
    height: 5px;
    width: 250px;
    transform: translate3d(0, 240px, 0);
    transition: transform 300ms ease-in;
}
#game.active .city{
    transform: translate3d(0, 0, 0);
}
.city:before{
    content: '';
    display: block;
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/city3.png);
    height: 173px;
    width: 250px;
    position: absolute;
    bottom: 100%;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    z-index: 99;
}
.city:after{
    content: '';
    display: block;
    width: 100%;
    position: absolute;
    height: 100%;
    background: red;
}
.state2.city:after{
    background: yellow;
}
.state3.city:after{
    background: orange;
}
.state4.city:after{
    background: black;
}
.city.state2:before{
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/city-state2.png);
}
.city.state3:before{
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/city-state3.png);
}
.city.state4:before{
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/city-state4.png);
}
#city1{
    left: 0px;
}
#city2{
    left: 200px;
     transition-delay: 100ms;
}
#city3{
    left: 400px;
    transition-delay: 200ms;
}

/* Words
 * --------------------------------------- */
.word {
    position: absolute;
    top: -32px;
    color:salmon;
    text-shadow: 1px 1px whitesmoke;
    font-size: 23;
    font-weight: bolder;
    font-family: 'Bubblegum Sans';
    z-index: 999;
}
.word.active {
    transform: translateY(310px); 
    -ms-transform: translateY(310px);
    -webkit-transform: -webkit-translateY(310px);
}
.word span{
    margin: 0 1px 0 0;
    border-bottom: 1px solid transparent;

}
.word span.active {
    color: #34495e;
    border-bottom: 1px solid #34495e;
}

/* Explosions
 * --------------------------------------- */
 .explosion{
    position: absolute;
    bottom: -500px;
    height: 106px;
    width: 106px;
    display: block;
    z-index: 999;
    display: none;
    background-position: 0 0;
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/explosion-anim22.png);
    background-repeat: no-repeat;
}
.explosion.active{
    display: block;
    animation: explosionX 200ms steps(3) 3,
               explosionY 600ms steps(3) 1 forwards; 
}
@keyframes explosionX {
   from{ background-position-x: 0; }
   to{ background-position-x: -320px; }
}
@keyframes explosionY {
   from{ background-position-y: 0; }
   to{ background-position-y: -320px; }
}

.city-explosion{
    position: absolute;
    bottom: 0px;
    height: 160px;
    width: 110px;
    z-index: 999;
    display: none;
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/anim31.png);
    background-position: 0 0;
    background-repeat: no-repeat;
}
.city-explosion.active{
    display: block;
    bottom: -20px;
    animation: play_1 300ms steps(5) 5,
               play_2 1200ms steps(4) 1 forwards;
}
@keyframes play_1 {
   from{ background-position-x: 0; }
   to{ background-position-x: -500px; }
}
@keyframes play_2 {
   from{background-position-y: 0; }
   to{ background-position-y: -516px; }
}

/* Fire
 * --------------------------------------- */
 .fire{
    display: block;
    position: absolute;
    width: 275px;
    height: 157px;
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/fire3.png);
    bottom: 0px;
    left: -39px;
    display: none;
    z-index: 106;
    animation: fireX 300ms steps(4) infinite,
               fireY 1800ms steps(6) infinite;
}

@keyframes fireX {
   from{ background-position-x: 0; }
   to{ background-position-x: -1100px; }
}
@keyframes fireY {
    from{ background-position-y: 0; }
   to{ background-position-y: -943px; }
}

.city.state2 .fire,
.city.state3 .fire,
.city.state4 .fire{
    display: block;
}

/* Missiles
 * --------------------------------------- */
 .missile{
    bottom: -122px;
    position: absolute;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    transition: transform 1000ms ease;
    -webkit-transition: -webkit-transform 1000ms ease;
    background-image: url(https://static-contents.linkology.org/images/skyfallGamePictures/missile3.png);
    height: 115px;
    width: 15px;
    will-change: transform;
    transform: translateZ(0);

}
.missile.active{
    transform: translateY(-600px);
    -ms-transform: translateY(-600px);
    -webkit-transform: -webkit-translateY(-600px);
}

.box-skyfall
{
    background-color: transparent;
    color: ghostwhite;
    border-radius: 3px;
    border: thin solid #7D3BBB;
    padding: 20px,10px;
    font-size: 16px;
	text-align: center;
    height: 45px;
	width: 77px;
	white-space: pre-wrap;
    word-wrap: break-word;
  }

  .box-skyfall:nth-child(even) 
  {
    background-color:transparent;
    color: ghostwhite;
    
  }
  
  .wrapper-skyfall 
  {
    width: 149px;
    display: grid;
    grid-gap: 1px;
    grid-template-columns: 73px, 73px;
    grid-template-rows: repeat(7, 46px);
    grid-auto-flow: column;
  }

  .skyfall-minus-points-anim
  {
      position:absolute;
      width:150px;
      height:auto;
      top: 190px;
      left:260px;
      font-size: 14px;
      text-align: center;
      display:none;
      padding: 10px,50px;
      border-style: solid;
      border-color: red;
      box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
      border-radius: 5px;
  }

  .col-skyfall-end-game
  {
    position:absolute;
    font-size: 16px;
    color: ghostwhite;

    border: thin solid #7D3BBB;
    border-radius: 4px;
	text-align: center;
	vertical-align: middle;

    background-color: transparent;
  }

  .sky-fall-div
  {
    
    border: thin solid #FEB300;
    border-radius: 4px;

  }
