/* Google Web Fonts */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/PressStart2Play.eot');
  src: url('fonts/PressStart2Play.eot?iefix') format('eot'),
       url('fonts/PressStart2Play.woff') format('woff'),
       url('fonts/PressStart2Play.ttf') format('truetype');
}

/* ---------------- */

body {
    background-color: #000;
    color: white;
    font-family: 'Press Start 2P', cursive;
}


/* Links */
.main a, .main a:link, .main a:active, .main a:visited {
    padding: 5px;
    background: #c80a0a;
    color: rgb(255, 255, 255);
}
* { box-shadow: none !important; }

.content, h1, h2, h3, p, div {
    font-family: 'Press Start 2P', cursive;
    font-weight: normal;
    }
.content[id*=-content]:not(#game-content) {
    display: none;
    overflow-y: auto;
    overflow-x: hidden;
}
.content img {
    max-width: 100%;
}
.pull-right {
    float: right;
}
.button {
    background: #c80a0a;
    cursor: pointer;
    padding: 8px;
    }
#menu-buttons .button { background: rgba(0,0,0,0.4); }
#menu-buttons .button:hover, .button:hover {    background: rgba(255,255,255,0.2); }
.button#back {
    position: relative;
    top: -25px;
    display: inline-block;
}
.button#score-submit {
    vertical-align: middle;
}

#highscore-form { margin-top: 8px; }
#local-only-warning,
#server-score-rejected {
    line-height: 1.6;
    margin-top: 8px;
}
input[type="text"]:hover, input[type="text"]:focus, input[type="password"]:hover, input[type="password"]:focus, textarea:hover, textarea:focus {
    border: 1px #c80a0a solid;
}

#settings-content fieldset {
    border: 1px solid rgba(255,255,255,0.5);
    margin: 12px 0;
    padding: 12px;
}
#settings-content legend {
    color: #ffcc00;
    padding: 0 6px;
}
#settings-content label {
    line-height: 2;
}
.settings-badge {
    display: none;
    color: #000;
    background: #ffcc00;
    font-size: 8px;
    padding: 3px 5px;
    vertical-align: middle;
}
#settings-status,
#settings-locked-notice,
#ebee-mode-locked-notice {
    line-height: 1.6;
}
#server-config-json {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 9px;
    line-height: 1.6;
    overflow-x: auto;
    padding: 10px;
    white-space: pre-wrap;
}
.theme-preview {
    align-items: center;
    display: flex;
    gap: 14px;
    margin-top: 12px;
}
.theme-preview img {
    height: 28px;
    width: 28px;
}
.preview-ebee,
.preview-flower {
    height: 30px;
    position: relative;
    width: 30px;
}
.preview-ebee::before,
.preview-ebee::after {
    background: #bff3ff;
    content: "";
    height: 8px;
    position: absolute;
    top: 6px;
    width: 10px;
}
.preview-ebee::before { left: 0; }
.preview-ebee::after { left: 0; top: 17px; }
.preview-ebee span {
    background: repeating-linear-gradient(90deg, #f6c915 0 6px, #161616 6px 10px);
    display: block;
    height: 20px;
    left: 8px;
    position: absolute;
    top: 5px;
    width: 18px;
}
.preview-flower span,
.preview-flower::before,
.preview-flower::after {
    content: "";
    position: absolute;
}
.preview-flower span {
    background: #ffea00;
    height: 10px;
    left: 10px;
    top: 8px;
    width: 10px;
}
.preview-flower::before {
    background: #ff8bd1;
    box-shadow: -8px 8px #ff8bd1, 8px 8px #ff8bd1, 0 16px #ff8bd1;
    height: 10px;
    left: 10px;
    top: 0;
    width: 10px;
}
.preview-flower::after {
    background: #36b24a;
    height: 10px;
    left: 14px;
    top: 20px;
    width: 4px;
}

table, th {
    background-color: inherit;
    border: 1px solid white;
    color: inherit;
}

th {
    height: 40px;
    text-align: center;
}

tr:hover {
    background-color: rgba(0,0,0,0.4);
}

#highscore-content { max-width: 1080px; box-sizing: border-box; }
#highscore-table { width: 100%; min-width: 700px; text-align: center;}
#livestats-content { max-width: 1024px; }
#livestats-table { width: 100%; min-width: 1080px; text-align: center;}
#rank {}
#playername {}
#cloudprovider {}
#zone {}
#host {}
#score {}
#userid {}
#level {}
#lives {}
#elapsedtime {}
#txncount {}

.table-scroll { max-width: 100%; overflow-x: auto; }
.table-controls { margin: 12px 0; }
.table-controls label { cursor: pointer; }
.table-pagination { align-items: center; display: flex; gap: 16px; justify-content: center; margin-top: 18px; }
.table-pagination .button { cursor: pointer; display: inline-block; padding: 4px 10px; }
.table-pagination .button:disabled { cursor: default; opacity: 0.45; }

#myCanvas { border: none; display: block; background: rgb(0,0,0); width: 100%;  height: auto;}
#canvas-container { position: relative;}
#canvas-overlay-container {
    position: absolute;
    background: rgba(0,0,0,0.7);
    height: 100%;
    width: 540px;
    max-width: 100%;
}
#canvas-overlay-content {
    position: absolute;
    top: 33%;
    left: 0;
    margin-top: 0;
    max-width: 100%;
    text-align: center;
    width: 540px;
    max-width: 100%;
    }
#canvas-overlay-content #title {
    text-transform: uppercase;
    font-size: 150%;
}

.canvas { position:absolute; padding-top: 20px;}
.main {margin: 10px auto; position: static; left: auto;}
.content { width: 100%; max-width: 640px; text-align: left; margin: 0;}
.container {text-align: center; margin:0; padding: 0;}
.wrapper { padding:0;}
.game  { max-width: 540px; margin: auto; }

.about { font-size: 10px; margin-top: 20px; text-align: center; display: none;}


body, html { font-size: 15px; }

div.audio {}
audio {display: block; }

.cloudprovider { width: inherit; }
.zone { width: inherit; }
.host { width: inherit; }
.time { width: 290px; }
.score { width: 290px; }
.score, .lives, .level, .cloudprovider, .zone, .host, .time { display: inline-block; }
.lives img { width: 18px; height: 18px; vertical-align: middle; }

/* ---------- Controls ------------------------*/

.controls { text-align: center; margin-top: 15px;}
.controls-section {
    height: auto;
    width: 47%;
    display: inline-block;
    margin: 0;
    text-align: left;
    }
.controls-left { }
.controls-right .controlButton { position: relative; right: -65%; }

/* Arrow Keys - only displayed when game isn't paused */
#game-buttons { display: none; }

/* Game Menu - displayed when game is paused */
#menu-buttons ul, .controls#menu-buttons ul li{ list-style: none; padding: 0;}
#menu-buttons ul li {
    height: 40px;
    line-height: 40px;
    font-size: 120%;
    }
.keyboard-hints {
    color: rgba(255,255,255,0.75);
    font-size: 9px;
    line-height: 1.6;
    margin: 10px auto 0;
    max-width: 520px;
}

.controlSound {
    background: url('img/audio-icon.png');
    width: 73px;
    height: 50px;
    position: relative;
    bottom: 5px;
    background-size: 100%;
    height: 25px;
    width: 36px;
    float: right;
    }

#mute {
    display: none;
    width: 36px;
    height: 25px;
    }

.controlButton {
    display: inline-block;
    width: 90px;
    height: 90px;
    margin: 5px;
    background: none repeat scroll 0% 0% #C80A0A;
    line-height: 70px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 60px;
    cursor: pointer;
}
.controlButton:hover, .controlButton:active {
    background: #c00202;
}

.description { display: none; }

@media screen and (max-width: 1050px) {
    html, body { background: rgb(0,0,0);}
}
@media screen and (max-width: 650px) {
    .game { width: 93%;}
    .content { max-width: none; }
    #menu-buttons .button { background: rgba(255,255,255,0.1); }
    .button:hover { background: rgba(255,255,255,0.3); }
    .button#back { top: 0; }
}

@media screen and (max-width: 400px) {

    .nomobile {display: none; }
    .mobile {display: block; }

    html, body {
        overflow-x: hidden;
        height: 100%;
        }

    .main { margin: 10px auto; }
    .content { min-height: 0; }

    .controlButton {
        width: 60px;
        height: 60px;
        line-height: 40px;
        font-size: 40px;
    }
    .controls-right .controlButton { right: -55%; }
    /*canvas#myCanvas { margin: 5px auto; }    */

}
