/* Pixel Flap: Arena13 overrides, loaded after main.css.
   Only colours, centring and touch behaviour; the original layout and
   collision geometry are unchanged. */

html,
body {
   background: #14171f;
   /* taps must never scroll or zoom the portal page around the iframe */
   touch-action: none;
   overscroll-behavior: none;
   -webkit-tap-highlight-color: transparent;
}

/* Phone-shaped play column: full width on phones, centred on wide screens. */
#gamecontainer {
   max-width: 480px;
   margin: 0 auto;
   overflow: hidden;
   box-shadow: 0 0 0 1px rgba(235, 229, 206, 0.12);
}

#sky {
   background-color: #1a1e28;
   /* faint HUD grid behind the skyline; 25px divides the 275px scroll loop */
   background-image:
      url('../assets/sky.png'),
      linear-gradient(rgba(235, 229, 206, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(235, 229, 206, 0.05) 1px, transparent 1px);
   background-size: auto, 25px 25px, 25px 25px;
   background-repeat: repeat-x, repeat, repeat;
}

#land {
   background-color: #1a1e28;
}

/* Centre the overlays in whatever width the column has. */
#splash {
   left: 50%;
   margin-left: -94px;
}

#scoreboard {
   left: 50%;
   margin-left: -118px;
}

#bigscore {
   left: 0;
   right: 0;
   text-align: center;
}

#replay {
   cursor: pointer;
}

/* Pipes spawn just outside the 480px column instead of at 900px.
   Same speed as the original (1000px per 7.5s = 133px/s), so the difficulty
   is unchanged; there is just less dead time before the first pipe. */
@-webkit-keyframes animPipe {
   0% { left: 500px; }
   100% { left: -100px; }
}

@keyframes animPipe {
   0% { left: 500px; }
   100% { left: -100px; }
}

.pipe {
   -webkit-animation-duration: 4500ms;
   animation-duration: 4500ms;
}
