* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    background-color: #222;
    padding: 0;
    margin: 0;
}

body {
    color: #eee;
    font-family: helvetica, arial, sans-serif;
    margin: 0;
    font-size: 10pt;
    line-height: 1.3;
}

h1 {
    color: #ccc;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    margin: 10px 0 6px 0;
}

.panel {
    margin-bottom: 32px;
    padding: 8px;
    background-color: rgba(0, 0, 0, 0.5);
}

.option {
    padding: 4px 0 4px 0;
}

label {
    color: #fff;
    font-weight: bold;
    cursor: pointer;
}

#no-webgl-notice {
    text-align: center;
    font-size: 24px;
    padding: 64px 24px;
    color: #ffbc6c;
}

#rotate-to-play {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    text-align: center;
    margin-bottom: 48px;
}

@font-face {
    font-family: "arcade";
    src: url("media/fonts/minecraftia.ttf");
}

#overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    transform-origin: 0px 0px;
    text-align: center;
    font-family: arcade;
    font-size: 20px;
}

#menu {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 640px;
    height: 480px;
    background: url(media/panorama.jpg);
    background-size: 880px;
    animation: animatedbg 20s infinite;
    font-size: 20px;
    text-align: center;
    display: none;
}

#health_meter {
    position: absolute;
    top: 30px;
    left: 260px;
    width: 162px;
    height: 19px;
    background-image: url(media/healthmeter.png);
}

#health_meter_bg {
    position: absolute;
    top: 30px;
    left: 260px;
    width: 162px;
    height: 19px;
    background-image: url(media/healthempty.png);
}

@keyframes animatedbg {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: -240px 0;
    }
    100% {
        background-position: 0 0;
    }
}

#hud {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 640px; //height:480px;
    font-size: 20px;
    text-align: center;
    display: none;
}

/*.mc_button {
    height: 40px;
    width: 400px;
    outline: 2px solid black;
    position: relative;
    margin-bottom: 11px;
    display: inline-block;
    background-color: #6f6f6f;
    background-repeat: repeat;
    padding: 5px;
    font-family: arcade;
    font-size: 19px;
    font-weight: normal;
    text-align: center;
    color: white;
    text-shadow: 3px 3px #4C4C4C;
    border-bottom: 4px solid #565656;
    border-right: 2px solid #565656;
    border-left: 2px solid #AAA;
    border-top: 2px solid #AAA;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
}
*/

.mc_button span {
    position: relative;
    line-height: 40px;
    bottom: 3px;
}

.mc_button:hover {
    border-bottom: 4px solid #59639A;
    border-right: 2px solid #59639A;
    border-left: 2px solid #BDC6FF;
    border-top: 2px solid #BDC6FF;
    background-color: #7c86be;
    color: #FFFFA0;
}

a {
    text-decoration: none;
    color: #fff;
}

/* 
	Display or hide certain elements depending on platform (mobile/desktop),
	orientation (landscape/portrait) and webgl support.
	The body classes .mobile or .desktop and .webgl or .no-webgl are set in
	JavaScript in the lib/game/main.js
*/

@media all and (orientation:portrait) {
    body.mobile .landscape-only {
        display: none;
    }
}

@media all and (orientation:landscape) {
    body.mobile .portrait-only {
        display: none;
    }
}

body.mobile .desktop-only {
    display: none;
}

body.desktop .mobile-only {
    display: none;
}

body.webgl .no-webgl-only {
    display: none;
}

body.no-webgl .webgl-only {
    display: none;
}

body.desktop {
    padding: 0px;
    width: 640px;
    margin: 0px;
    position: absolute;
    overflow: hidden;
}

body.mobile {
    padding: 0;
    width: auto;
    font-size: 8px;
}

body.desktop #canvas {
    width: 640px;
    height: 480px;
    background-color: #000;
}

body.mobile #canvas {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
}

#cross {
    position: absolute;
    top: 200px;
    left: 200px;
}