@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

body {
    color: #555;
    background-color: white;
    font-family: 'Roboto Slab', serif;
    font-size: 14px;
    overflow: hidden;
}

canvas {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

#heading {
    position: absolute;
    top: 16px;
    left: 16px;
    margin-top: 0px;
}

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

#loader {
    background-color: white;
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

#loader> .label {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    width: 300px;
    height: 48px;
    margin-top: -24px;
    margin-left: -150px;
}

#credits-button {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 48px;
    height: 48px;
}

#credits-icon {
    position: absolute;
    right: 0px;
    top: 0px;
    width: 32px;
    height: 32px;
}

.quality-setting {
    padding-right: 8px;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 4px;
}

.quality-setting.selected {
    border: 1px solid #888;
}

#half-res-button {
    left: 0px;
    bottom: -32px;
}

#credits {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: white;
    background-color: rgba(255, 255, 255, 0.75);
    display: none;
}

#credits > .center {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -128px;
    margin-top: -150px;
    width: 256px;
    height: 256px;
}

a {
    color: #555555;
}

#loader> .label> .spinner {
    display: block;
    margin: auto;
    margin-top: 8px;
    max-width: 20px;
    -webkit-animation: spin 0.3s linear infinite;
    -moz-animation: spin 0.3s linear infinite;
    animation: spin 0.3s linear infinite;
}
