/** Do not compress. YUI breaks media queries. */

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-text-size-adjust: none;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    height: 100%;
    min-height: 416px;
    overflow: hidden;
}

#loading {
    text-align: center;
    margin-top: 25%;
}

#controls {
    font-family: sans-serif;
}

#score {
    font-weight: bold;
}

#stage {
    position: relative;
    -webkit-transform: translateZ(0); /** Hack to enable hwaccel */

    /*display: -webkit-box;*/
    /*-webkit-box-align: stretch;*/
    /*-webkit-box-pack: stretch;*/
}

#overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 1000;
}

#banner {
    width: 320px;
    height: 48px;
    padding: 0;
    margin: 0;
}

#grid {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    -webkit-box-sizing: border-box;
}

.box {
    -webkit-box-sizing: border-box;
    -webkit-border-radius: 10px;
    /*background: -webkit-gradient(linear, left top, left bottom, from(#00abeb), to(#fff));*/
    background-image: url("gradient.png");
    background-repeat: no-repeat;
    -webkit-background-size: 100%;
    width: 25%;
    height: 25%;
    color: black;
    border: 1px solid gray;
    display: -webkit-box;
    -webkit-box-align: center;
    -webkit-box-pack: center;
    float: left;
    font: 42pt sans-serif;
}

.box-glow {
    background-image: url("gradient2.png");
}

@media screen and (min-width: 321px) {
#controls {
    position: absolute;
    top: 0;
    left: 328px;
    font-size: 20px;
}
.box {
    font-size: 32pt;
}
}

@media screen and (max-width: 320px) {
#controls {
    position: relative;
    margin: 8px;
    font-size: 32px;
}
#score-div {
    position: absolute;
    left: 0;
    top: 0;
}
#time-div {
    position: absolute;
    right: 0;
    top: 0;
}
}

.box-pulse {
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 0.25s;
    -webkit-animation-direction: alternate;
    -webkit-animation-iteration-count: 2;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes pulse {
    from {
        color: black;
    }
    to {
        color: #00ff00;
    }
}

.blinking {
    -webkit-animation-name: blink;
    -webkit-animation-duration: 0.5s;
    -webkit-animation-direction: alternate;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
}

@-webkit-keyframes blink {
    from {
        color: white;
    }
    to {
        color: red;
    }
}
