/*******************************/
/* global document body styles */
/*******************************/

body {
    background: black;
    color: #ccc;
    user-select: none;
    font-family: "Orbitron", sans-serif;
}

/**************************/
/* unique id-based styles */
/**************************/

#delta {
    /* margin: 2em auto; */
    /*position: relative;*/
    display: none;
    left: 0;
    right: 0;
}

#booting {
    position: absolute;
    /*width: 6%;*/
    left: 0;
    right: 0;
    top: 50%;
}

#canvas {
    display: block;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.75);
}

#ui {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100%;*/
}

h1 {
    margin: 0px;
    font-weight: bold;
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    vertical-align: center;
    z-index: 1;
    position: absolute;
}

h2 {
    margin: 0px;
    font-weight: normal;
    color: white;
    display: block;
    width: 100%;
    text-align: center;
    vertical-align: center;
    z-index: 1;
    position: absolute;
    top: 8em;
}

h1#title {
    font-size: 6em;
    top: 50%;
    line-height: 0;
}

h1#prepare {
    font-size: 2em;
    color: #ffffff;
    top: 50%;
    line-height: 0;
}

h2#start {
    font-size: 1em;
    color: #ffffff;
    top: 65%;
    line-height: 0;
}

#score {
    top: 50%;
    margin-top: -100px;
    position: absolute;
    width: 100%;
}

#scoreContent {
    width: 100%;
    height: 200px;
}

#score h1 {
    font-size: 4em;
    color: #ffffff;
}

#score h2 {
    font-size: 3em;
    color: #ffffff;
    top: 65%;
}

.score {
    /*margin-right: 10px;*/
}

#scoreboard {
    position: absolute;
    line-height: 1.5em;
    font-size: 1.2em;
    color: white;
    z-index: 1;
    left: 0;
    right: 0;
    width: 100%;
    top: 10px;
}

#scoreboard .lives {
    visibility: hidden;
    /*position: absolute;*/
    float: left;
    left: 0;
    padding-left: 10px;
}

#scoreboard .lives .label {
    padding: 0 0.5em;
    color: #808080;
}

#scoreboard .lives img {
    margin-right: 0.5em;
}

#scoreboard .score {
    /*position: absolute;*/
    float: right;
    right: 0;
    padding-right: 10px;
}

#scoreboard .score .label {
    padding: 0 0.5em;
    color: #ffffff;
}

#scoreboard .score .value {
    display: inline-block;
    width: 4em;
}

#scoreboard .lives.zero img.one {
    display: none;
}

#scoreboard .lives.zero img.two {
    display: none;
}

#scoreboard .lives.zero img.three {
    display: none;
}

#scoreboard .lives.one img.two {
    display: none;
}

#scoreboard .lives.one img.three {
    display: none;
}

#scoreboard .lives.two img.three {
    display: none;
}

#instructions {
    position: absolute;
    bottom: -1.5em;
    text-align: right;
    line-height: 1em;
    width: 100%;
    color: #a0a0a0;
}

#sound {
    width: 24px;
    height: 24px;
    background: url(../images/mute.png);
    display: inline-block;
    cursor: pointer;
    position: absolute;
    left: -2.5em;
}

#sound.on {
    background-position: 0 0;
}

#sound.off {
    background-position: -24px 0;
}

#delta.preparing #scoreboard .lives {
    visibility: visible;
}

#delta.playing #scoreboard .lives {
    visibility: visible;
}

h2#start {
    -webkit-animation: pulsate 1s ease-out infinite;
    -moz-animation: pulsate 1s ease-out infinite;
    -o-animation: pulsate 1s ease-out infinite;
    animation: pulsate 1s ease-out infinite;
}

#gameProgress {
    width: 100%;
    background-color: grey;
    position: absolute;
    top: 0px;
    z-index: 1;
    left: 0;
    right: 0;
}

#timebar {
    float: left;
    width: 0%;
    height: 3px;
    background-color: #ffffff;
}

#lyricsContainer {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 1;
    overflow: hidden;
}

#lyricsBox {
    display: flex;
    margin-bottom: 20px;
    width: 90%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    padding: 8px 10px;
    line-height: 16px;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-top: 10px;
    top: 2.25em;
    position: absolute;
    font-size: 20px;
}

#lyrics {

}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@-moz-keyframes pulsate {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@-o-keyframes pulsate {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes pulsate {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/*****************************/
/* @media query based layout */
/*****************************/

/* @media screen and (min-width:    0px) and (min-height:    0px) { #delta { width:  512px; height: 384px; line-height: 384px; font-size:  7pt; } }
@media screen and (min-width:  840px) and (min-height:  550px) { #delta { width:  640px; height: 480px; line-height: 480px; font-size:  9pt; } }
@media screen and (min-width:  968px) and (min-height:  646px) { #delta { width:  768px; height: 576px; line-height: 576px; font-size: 11pt; } }
@media screen and (min-width: 1096px) and (min-height:  742px) { #delta { width:  896px; height: 672px; line-height: 672px; font-size: 13pt; } }
@media screen and (min-width: 1224px) and (min-height:  838px) { #delta { width: 1024px; height: 768px; line-height: 768px; font-size: 15pt; } }
@media screen and (min-width: 1480px) and (min-height: 1030px) { #delta { width: 1280px; height: 960px; line-height: 960px; font-size: 17pt; } } */
