body {
    margin: 0;
    padding: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    color: #ccc;
    background-color: #222;
    font-family: monospace;
}
a {
    color: #fff;
}
a:visited {
    color: #fff;
}
input:focus {
    outline: none;
}

#canvas {
    cursor: default;
}
#wasm {
    display: block;
    height: 100%;
    width: 100%;
}
#game {
    display: none;
    height: 100%;
    width: 100%;
}
#loading {
    height: 100%;
    width: 100%;
}
#progress {
    position: fixed;
    top: 50%;
    width: 100%;
    margin-top:-6px;
    text-align: center;
}
#progressline {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 120px;
    margin-top: 17px;
    margin-left: -60px;
    background-color: #444;
}
#progresslinebar {
    width: 0%;
    height: 2px;
    background-color: #aaa;
    -webkit-transition: width 200ms ease;
    -moz-transition: width 200ms ease;
    transition: width 200ms ease;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#loader {
    display: block;
    position: relative;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 190px;
    margin: -95px 0 0 -99px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: #444;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}
#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: #555;
    -webkit-animation: spin 4s linear infinite;
    animation: spin 4s linear infinite;
}
#loader:after {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    border: 4px solid transparent;
    border-radius: 50%;
    border-top-color: #666;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.atcenter {
    position: fixed;
    top: 30%;
    width: 100%;
    text-align: center;
}

#scores-overlay {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 30, 0.3);
    opacity: 0;
    -webkit-transition-duration: 0.25s;
    -moz-transition-duration: 0.25s;
    transition-duration: 0.25s;
    -webkit-transition-timing-function: linear;
    -moz-transition-timing-function: linear;
    transition-timing-function: linear;
}
.scores-dialog {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    -webkit-transform: translate(0, -50%);
    -ms-transform: translate(0, -50%);
    transform: translate(0, -50%);
    background-color: #222;
    text-align: center;
}
.scores-dialog-size {
    width: 100%;
}
.scores-dialog-content {
    padding: 20px;
    font-size: 20px;
}
.your-scores {
    font-size: 30px;
    margin-bottom: 10px;
}
#score {
    color: #fff;
}
#name {
    padding: 5px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-style: solid;
    border-width: 0;
    font-family: monospace;
    font-size: 23px;
    text-align: center;
}
.button {
    padding: 15px;
    border-radius: 10px;
    border-style: solid;
    border-width: 0;
    font-family: monospace;
    font-size: 31px;
}
#submit-scores {
    margin-right: 8px;
    background-color: #4caf50;
    color: #fff;
}
#cancel {
    background-color: #aaa;
    color: #444;
}
