html,
body {
    width: 100%;
    height: 100%;
    font-family: equestria, arial, sans-serif;
    font-size: 12px;
    color: #cccccc;
    /* background: #222222; */
    margin: 0;
    padding: 0;
    text-align: left;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#credits-popup {
    z-index: 2;
    background: rgba(0, 0, 0, 0.85);
    position: absolute;
    width: 300px;
    border-radius: 10px;
    padding: 20px;
    display: none;
}

#credits-popup h1 {
    margin: 6px 0 6px 10px;
    color: #ffffff;
    text-align: center;
}

#credits-popup a {
    color: #cccccc;
    text-decoration: none;
    display: block;
    margin: 6px;
    padding: 3px;
    border-radius: 3px;
}

#credits-popup a:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

#credits-popup #credits-close {
    float: right;
    font-size: 40px;
    line-height: 30px;
    margin: -15px -10px 0 0;
}

#preload {
    position: absolute;
    top: -100%;
    width: 100%;
    height: 100%;
}

#screen {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
    width: 1280px;
    height: 768px;
    background: #000000;
    opacity: 0;
    z-index: 1;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

}

.debug #screen {
    overflow: visible;
    width: 400px;
    height: 240px;
    background: #eeeeee;
}



#screen img {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

#background-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#moon {
    width: 23.4375%;
    /* 300px */
    height: 39.0625%;
    /* 300px */
    z-index: 1;
}

#ui-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.space-core {
    width: 2.57812%;
    /* 33px */
    height: 4.29687%;
    /* 33px */
    z-index: 2;
}

.luna {
    width: 7.8125%;
    /* 100px */
    height: 7.03125%;
    /* 54px */
    z-index: 2;
}

.ship {
    width: 7.8125%;
    /* 100px */
    height: 4.6875%;
    /* 36px */
    z-index: 3;
}

.missile {
    width: 1.95312%;
    /* 25px */
    height: 1.04166%;
    /* 8px */
    z-index: 4;
}

.asteroid-0 {
    width: 3.4375%;
    /* 44px */
    height: 10.41666%;
    /* 80px */
    z-index: 5;
}

.asteroid-1 {
    width: 3.125%;
    /* 40px */
    height: 5.20833%;
    /* 40px */
    z-index: 6;
}

.asteroid-2 {
    width: 1.5625%;
    /* 20px */
    height: 2.60416%;
    /* 20px */
    z-index: 7;
}

.sparkle-0 {
    width: 2.10937%;
    /* 27px */
    width: 4.16666%;
    /* 32px */
    z-index: 8;
}

.sparkle-1 {
    width: 1.40625%;
    /* 18px */
    width: 2.86458%;
    /* 22px */
    z-index: 9;
}

.sparkle-2 {
    width: 2.03125%;
    /* 26px */
    width: 3.125%;
    /* 24px */
    z-index: 10;
}

#screen #shield {
    top: 0.5%;
    left: 0.5%;
    width: 6.64062%;
    /* 85px */
    height: 3.38541%;
    /* 26px */
}

#lives {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#screen .forcefield {
    top: 0.5%;
    width: 2.03125%;
    /* 26px */
    height: 3.38541%;
    /* 26px */
}

#intro,
#level-container,
#game-over-container {
    position: absolute;
    background: #000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
}

#level-container {
    display: none;
    z-index: 101;
    cursor: pointer;
}

#game-over-container {
    display: none;
    z-index: 102;
    cursor: pointer;
}

#intro #intro-background,
#level-container #level-background,
#game-over-container #game-over-background {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1
}

#intro #credits-link {
    display: block;
    width: 11.875%;
    /* 152px */
    height: 4.16666%;
    /* 32px */
    position: absolute;
    z-index: 2;
    left: 2%;
    top: auto;
    bottom: 2%;
    cursor: pointer;
    opacity: 0.5;
}

#intro #instructions {
    display: block;
    width: 50.85937%;
    /* 651px */
    height: 4.81770%;
    /* 37px */
    position: absolute;
    z-index: 2;
    left: auto;
    right: 2%;
    top: auto;
    bottom: 2%;
}

#intro .difficulty {
    position: absolute;
    width: 15.625%;
    /* 200px */
    height: 26.04166%;
    /* 200px */
    opacity: 0.25;
    top: 45%;
    cursor: pointer;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #000000;
    border-radius: 10px;
}

#intro .difficulty img {
    width: 100%;
    height: 100%;
    position: static;
}

#intro .difficulty-0 {
    left: 17.1875%;
}

#intro .difficulty-1 {
    left: 42.1875%;
}

#intro .difficulty-2 {
    left: 67.1875%;
}

#intro .quote {
    display: none;
    margin: 2px;
}


.debug img {
    border: 1px solid #cccccc;
}

.star {
    position: absolute;
    width: 1px;
    height: 1px;
    background: #ffffff;
}

.galaxy-0 {
    width: 15.625%;
    /* 200px */
    height: 12.5%;
    /* 96px */
}

.galaxy-1 {
    width: 15.625%;
    /* 200px */
    height: 23.56770%;
    /* 181px */
}

.galaxy-2 {
    width: 15.625%;
    /* 200px */
    height: 12.5%;
    /* 96px */
}



.num-0,
.num-1,
.num-2,
.num-3,
.num-4,
.num-5,
.num-6,
.num-7,
.num-8,
.num-9 {
    width: 1.79687%;
    /* 23px */
    height: 3.77604%;
    /* 29px */
}

#level-container #level,
#game-over-container #game-over-level {
    width: 9.92187%;
    /* 127px */
    height: 4.42708%;
    /* 34px */
    z-index: 2;
}

#level-container #level-number-container,
#game-over-container #game-over-level-number-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#ui-container #score {
    width: 7.1875%;
    /* 92px */
    height: 4.42708%;
    /* 34px */
    top: 0.5%;
}

#ui-container #score-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

#game-over-container #game-over-score {
    width: 7.1875%;
    /* 92px */
    height: 4.42708%;
    /* 34px */
    z-index: 2;
}

#game-over-container #game-over-high-score {
    width: 15.3125%;
    /* 196px */
    height: 4.81770%;
    /* 37px */
    z-index: 2;
}

#game-over-container #game-over-score-container,
#game-over-container #game-over-high-score-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#game-over-container #game-over {
    width: 100%;
    /* 1280px */
    height: 17.96875%;
    /* 138px */
    top: 0.5%;
    left: 0;
    z-index: 2;
}

#loading {
    text-align: center;
    margin-top: 25%;
    font-size: 100px;
    color: #ed3c94;
}
