body {
    overflow:hidden;
    position: fixed;
    margin:0;
    background-color: #c2c1bf;
}

#viewport { 
    width:100vw;
    height: 100vh;
    max-width: 100vh;
    max-height: 100vw;
    margin:auto;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

@media screen AND (orientation:portrait) {
    #viewport { 
        background-size: contain;
    }
}

#viewport.cover {
    max-width: unset;
    max-height: unset;
}

#TheSpriteSpin {
    width: 100%;
}

#viewport.cover #TheSpriteSpin {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#controls-wrapper {
    overflow: scroll hidden;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

#controls-wrapper::-webkit-scrollbar {
    display: none;
}

#controls {
    margin: auto;
    width: fit-content;
    display: flex;
    flex-flow: nowrap;
}

button { 
    padding: 9px 25px;
    border-width: 0px;
    border-radius: 50px;
    font-size: 1em;
    margin: 20px 6px;
    white-space: nowrap;
    cursor: pointer;
    background: white;
    color: black;
    -webkit-box-shadow: -2px 2px 3px #00000028;
    -moz-box-shadow: -2px 2px 3px #00000028;
    box-shadow: -2px 2px 3px #00000028;
}

.spritespin-progress {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #00000088;
    padding: 10%;
}

.spritespin-progress-label {
    text-align: center;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 10px;
}

.spritespin-progress-bar {
    height: 5px;
    background: white;
}

.grabbable {
    cursor: move;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.grabbable:active {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}
