@-webkit-keyframes animLand {
   0% { background-position: 0px 0px; }
   100% { background-position: -1280px 0px; }
}
@-moz-keyframes animLand {
   0% { background-position: 0px 0px; }
   100% { background-position: -1280px 0px; }
}
@-o-keyframes animLand {
   0% { background-position: 0px 0px; }
   100% { background-position: -1280px 0px; }
}
@keyframes animLand {
   0% { background-position: 0px 0px; }
   100% { background-position: -1280px 0px; }
}

@-webkit-keyframes animSky {
   0% { background-position: 0px 100%; }
   100% { background-position: -800px 100%; }
}
@-moz-keyframes animSky {
   0% { background-position: 0px 100%; }
   100% { background-position: -800px 100%; }
}
@-o-keyframes animSky {
   0% { background-position: 0px 100%; }
   100% { background-position: -800px 100%; }
}
@keyframes animSky {
   0% { background-position: 0px 100%; }
   100% { background-position: -800px 100%; }
}

/*
@-webkit-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -96px; }
}
@-moz-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -96px; }
}
@-o-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -96px; }
}
@keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -96px; }
}*/

@-webkit-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -108px; }
}
@-moz-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -108px; }
}
@-o-keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -108px; }
}
@keyframes animBird {
   from { background-position: 0px 0px; }
   to { background-position: 0px -108px; }
}*/
@-webkit-keyframes animPipe {
   0% { left: 900px; }
   100% { left: -100px; }
}
@-moz-keyframes animPipe {
   0% { left: 900px; }
   100% { left: -100px; }
}
@-o-keyframes animPipe {
   0% { left: 900px; }
   100% { left: -100px; }
}
@keyframes animPipe {
   0% { left: 900px; }
   100% { left: -100px; }
}

@-webkit-keyframes animCeiling {
   0% { background-position: 0px 0px; }
   100% { background-position: -63px 0px; }
}
@-moz-keyframes animCeiling {
   0% { background-position: 0px 0px; }
   100% { background-position: -63px 0px; }
}
@-o-keyframes animCeiling {
   0% { background-position: 0px 0px; }
   100% { background-position: -63px 0px; }
}
@keyframes animCeiling {
   0% { background-position: 0px 0px; }
   100% { background-position: -63px 0px; }
}


*,
*:before,
*:after
{
   /* border box */
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
   /* gpu acceleration */
   -webkit-transition: translate3d(0,0,0);
   /* select disable */
   -webkit-touch-callout: none;
   -webkit-user-select: none;
   -khtml-user-select: none;
   -moz-user-select: none;
   -ms-user-select: none;
   user-select: none;
}

html,
body
{
   height: 100%;
   overflow: hidden;
   font-family: monospace;
   font-size: 12px;
   color: #fff;
}

#gamecontainer
{
   position: relative;
   width: 100%;
   height: 100%;
   min-height: 525px;
}


.pauseAnimations {
    animation-play-state: paused;
}



/*
Screen - Game
*/
#gamescreen
{
   position: absolute;
   width: 100%;
   height: 100%;
}

#sky
{
   position: absolute;
   top: 0;
   width: 100%;
   /*height: 80%;*/
   height: 90%;
   background-image: url('../assets/sky.png');
   background-image: url('../assets/desert_bg.png');
   background-repeat: repeat-x;
   background-position: 0px 100%;
   background-color: #4ec0ca;
   background-color: #e7e5e2;

   -webkit-animation: animSky 7s linear infinite;
   animation: animSky 7s linear infinite;
}

#flyarea
{
   position: absolute;
   bottom: 0;
   /*height: 420px;*/
   /* 32px  for the walls on the top 
    * 57px for bringing the walls back to the screen cause bottom would lift it up
   bottom: 57px;
      height: calc(100% - 32px - 57px);
    * */
   height: calc(100% - 32px);
   width: 100%;
}

#ceiling
{
   position: absolute;
   top: -32px;
   height: 32px;
   width: 100%;
   background-image: url('../assets/ceiling.png');
   background-image: url('../assets/dragceiling.png');
   background-repeat: repeat-x;

   /*-webkit-animation: animCeiling 481ms linear infinite;
   animation: animCeiling 481ms linear infinite;*/
   -webkit-animation: animCeiling 276ms linear infinite;
   animation: animCeiling 276ms linear infinite;
}

#land
{
   position: absolute;
   bottom: 0;
   width: 100%;
   /*height: 20%;*/
   height: 27%;
   background-image: url('../assets/land.png');
   background-image: url('../assets/land_mountain.png');
   background-repeat: repeat-x;
   background-position: 0px 0px;
   /*background-color: #ded895;*/

   /*-webkit-animation: animLand 2516ms linear infinite;
   animation: animLand 2516ms linear infinite;*/
   -webkit-animation: animLand 5800ms linear infinite;
   animation: animLand 5800ms linear infinite;
}

#bigscore
{
   position: absolute;
   top: 20px;
   left: 150px;
   z-index: 100;
}

#bigscore img
{
   display: inline-block;
   padding: 1px;
}

#splash
{
   position: absolute;
   opacity: 0;
   top: 75px;
   left: 65px;
   width: 188px;
   /*height: 170px;*/
   height: 200px;
   background-image: url('../assets/soves_splash.png');
   background-repeat: no-repeat;
   margin: auto;
}

#scoreboard
{
   position: absolute;
   display: none;
   opacity: 0;
   top: 64px;
   left: 43px;
   width: 236px;
   height: 280px;
   background-image: url('../assets/scoreboard.png');
   background-image: url('../assets/fd_scoreboard.png');
   background-image: url('../assets/fd_scoreboard_2D.png');
   background-repeat: no-repeat;

   z-index: 1000;
}

#medal
{
   position: absolute;
   opacity: 0;
   top: 175px;
   left: 32px;
   width: 44px;
   height: 44px;
}

#currentscore
{
   position: absolute;
   top: 165px;
   left: 107px;
   width: 104px;
   height: 14px;
   text-align: right;
}

#currentscore img
{
   padding-left: 2px;
}

#highscore
{
   position: absolute;
   top: 210px;
   left: 107px;
   width: 104px;
   height: 14px;
   text-align: right;
}

#highscore img
{
   padding-left: 2px;
}

#replay
{
   position: absolute;
   opacity: 0;
   /*top: 205px;
   left: 61px;*/
   top: 294px;
   left: 5px;
   height: 115px;
   width: 70px;
   cursor: pointer;
}

#share
{
   position: absolute;
   opacity: 0;
   top: 294px;
   left: 120px;
   height: 115px;
   width: 70px;
   cursor: pointer;
}

#share-btn
{
   position: absolute;
   opacity: 0;
   height: 115px;
   width: 35px;
   cursor: pointer;
   top: 217px;
}

#twitter-share-btn
{
   position: absolute;
   opacity: 0;
   height: 34px;
   width: 35px;
   cursor: pointer;
   top: 254px;
   left: 20px;
}
#facebook-share-btn
{
   position: absolute;
   opacity: 0;
   height: 34px;
   width: 35px;
   cursor: pointer;
   top: 254px;
   left: 60px;
}
#reddit-share-btn
{
   position: absolute;
   opacity: 0;
   height: 34px;
   width: 35px;
   cursor: pointer;
   top: 254px;
   left: 100px;
}
#whatsapp-share-btn
{
   position: absolute;
   opacity: 0;
   height: 34px;
   width: 35px;
   cursor: pointer;
   top: 254px;
   left: 140px;
}
#linkedin-share-btn
{
   position: absolute;
   opacity: 0;
   height: 34px;
   width: 35px;
   cursor: pointer;
   top: 254px;
   left: 180px;
}

.boundingbox
{
   position: absolute;
   display: none;
   top: 0;
   left: 0;
   width: 0;
   height: 0;
   border: 1px solid red;
}

#player
{
   left: 60px;
   top: 200px;
}

.bird
{
   position: absolute;
   /*width: 34px;
   height: 24px;
   -webkit-animation: animBird 300ms steps(4) infinite;
   animation: animBird 300ms steps(4) infinite;*/
   width: 33px;
   height: 27px;
   background-image: url('../assets/bird.png');
   background-image: url('../assets/daco.png');

   -webkit-animation: animBird 500ms steps(4) infinite;
   animation: animBird 500ms steps(4) infinite;
}

.pipe
{
   position: absolute;
   left: -100px;
   width: 52px;
   height: 100%;
   /*z-index: 10;*/
   z-index: 0;

   -webkit-animation: animPipe 4500ms linear;
   animation: animPipe 4500ms linear;
}

.pipe_upper
{
   position: absolute;
   top: 0;
   width: 52px;
   background-image: url('../assets/pipe.png');
   background-image: url('../assets/tower.png');
   background-repeat: repeat-y;
   background-position: center;
}

.pipe_upper:after
{
   content: "";
   position: absolute;
   bottom: 0;
   width: 52px;
   height: 26px;
   background-image: url('../assets/pipe-down.png');
   background-image: url('../assets/tower-down.png');
}

.pipe_lower
{
   position: absolute;
   bottom: 0;
   width: 52px;
   background-image: url('../assets/pipe.png');
   background-image: url('../assets/tower.png');
   background-repeat: repeat-y;
   background-position: center;
}

.pipe_lower:after
{
   content: "";
   position: absolute;
   top: 0;
   width: 52px;
   height: 26px;
   background-image: url('../assets/pipe-up.png');
   background-image: url('../assets/tower-up.png');
}

#footer
{
   position: absolute;
   bottom: 3px;
   /*left: 3px;*/
   right: 3px;
}

#footer a,
#footer a:link,
#footer a:visited,
#footer a:hover,
#footer a:active
{
   display: block;
   padding: 2px;
   text-decoration: none;
   color: #fff;
}
