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

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

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

@-webkit-keyframes animPipe {
   0% { left: 100%; }
   100% { left: -900px; }
}
@-moz-keyframes animPipe {
   0% { left: 100%; }
   100% { left: -900px; }
}
@-o-keyframes animPipe {
   0% { left: 100%; }
   100% { left: -900px; }
}
@keyframes animPipe {
   0% { left: 100%; }
   100% { left: -900px; }
}

@-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; }
}

.flappy-deleg .button-back{
   position: absolute;
   top: 30px;
   left: 30px;
   z-index: 999;
}

.flappy-deleg .button-back .close-btn{
   width: 35px;
   height: 35px;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
}
.flappy-deleg .button-back .close-btn .icon-close{
   transform: rotate(45deg);
}

.flappy-deleg .button-back .stroke-color{
   stroke: #181b30;
}

.flappy-deleg,
.flappy-deleg:before,
.flappy-deleg: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;
}
.flappy-deleg{
   padding: 0px;
   position: relative;
}

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

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

#sky
{
   position: absolute;
   top: 0;
   width: 100%;
   height: calc(100% - 110px);
   background-image: url('/build/flappy/bg-sky.png');
   background-repeat: repeat-x;
   background-position: 0px 100%;
   background-color: #e8f6fe;
   
   -webkit-animation: animSky 15s linear infinite;
   animation: animSky 15s linear infinite;
}

#flyarea
{
   position: absolute;
   bottom: 0;
   height: 100%;
   width: 100%;
}

#ceiling
{
   position: absolute;
   top: 0;
   height: 0px;
   width: 100%;
   background-image: url('/build/flappy/ceiling.png');
   background-repeat: repeat-x;
   
   -webkit-animation: animCeiling 481ms linear infinite;
   animation: animCeiling 481ms linear infinite;
}

#land
{
   position: absolute;
   bottom: 0;
   width: 100%;
   height: 110px;
   background-image: url('/build/flappy/land.svg');
   background-repeat: repeat-x;
   background-position: 0px 0px;
   background-color: #94a7b3;
   
   -webkit-animation: animLand 2516ms linear infinite;
   animation: animLand 2516ms linear infinite;
}

#bigscore
{
   position: absolute;
   top: 30px;
   right: 50px;
   z-index: 100;
}

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

#splash
{
   position: absolute;
   opacity: 0;
   top: calc(50% - 85px);
   left: calc(50% - 94px);
   width: 188px;
   height: 170px;
   background-image: url('/build/flappy/splash.svg');
   background-repeat: no-repeat;
}

#scoreboard
{
   position: absolute;
   display: none;
   opacity: 0;
   top: calc(50% - 140px);
   left: calc(50% - 118px);
   width: 236px;
   height: 280px;
   background-image: url('/build/flappy/game-over.svg');
   background-repeat: no-repeat;
   
   z-index: 1000;
}

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

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

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

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

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

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

.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: 102px;
   height: 72px;
   background-image: url('/build/flappy/pasarica_mare.svg');

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

.pipe
{
   position: absolute;
   left: -100px;
   width: 52px;
   height: 100%;
   z-index: 10;
   
   -webkit-animation: animPipe 9s linear;
   animation: animPipe 9s linear;
}

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

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

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

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