html, body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(0deg, #5d3277, #4e5fa1);
}

.hide-canvas .loading {
    opacity: .5;
}

.loading {
    position: fixed;
    left: 50%;
    top: 50%;
    height: 26px;
    width: 26px;
    margin-top: -13px;
    margin-left: -13px;
    border: 3px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;

    transition-property: opacity;
    transition-timing-function: ease-in;
    transition-duration: .1s;
    z-index: -1;

    animation-name: rotate;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;

    opacity: 0;
}

@keyframes rotate {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

[data-whatintent="mouse"] *:focus {
    outline: none;
}

.show-pointer {
    cursor: pointer;
}

.container {
    position: relative;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    transition-property: opacity;
    transition-timing-function: ease-out;
    transition-duration: 1s;
    opacity: 1;
}

.hide-canvas .container canvas {
    opacity: 0;
}


.log {
    position: fixed;
    z-index: 10;
    width: 50%;
    height: 100%;
    top: 0;
    left: 0;
    font-size: 20px;
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    transition-property: transform;
    transition-duration: .25s;
    transition-timing-function: ease-out;
}

.activity-monitor-inactive .controls {
    transform: translate(-70px);
    transition-duration: .5s;
    transition-timing-function: ease-in;
}

.controls-control {
    position: relative;
    height: 40px;
    width: 40px;
    background: #dbe9f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 3px 3px 10px 0px rgba(0,0,0,.2);
    transition-property: transform, box-shadow;
    transition-duration: .5s;

    /* basically hides the text by making zero width, zero line height and with a non
       existant font family, also removes text shadow if any has been supplied */
    font: 0/0 a;
    text-shadow: none;

    /* Forcefully hide text for Opera which has a minimum font size setting */
    color: transparent;
    vertical-align: top;
}

.controls-control + .controls-control {
    margin-top: 15px;
}

.controls-control:not([disabled]):hover,
[data-whatintent="keyboard"] .controls-control:not([disabled]):focus {
    transition-duration: .1s;
    transform: scale(1.1);
    box-shadow: 6px 6px 15px 0px rgba(0,0,0,.2);   
}

.controls-control:not([disabled]):active {
    transition-duration: .01s;
    transform: scale(1);
    box-shadow: 3px 3px 10px 0px rgba(0,0,0,.2);
}

.controls-control svg {
    position: absolute;
}

.controls-mute svg {
    top: 0%;
    left: 0%;
    width: 100%;
    height: 100%;
}

.controls-undo svg {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
}

.controls-control path {
    fill: #3b337c;
}

.controls-control circle {
    stroke: #3b337c;
}

.controls-mute .off {
    display: none;
}

.muted .controls-mute .on {
    display: none;
}

.muted .controls-mute .off {
    display: block;
}

.controls-control[disabled] {
    opacity: .5;
    cursor: default;
}

.credit {
    position: fixed;
    bottom: 15px;
    right: 15px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 10px;
    color: #fff;
}

.credit * {
    vertical-align: middle;
    opacity: .5;
}

.credit a {
    font-family: sans-serif;
    color: inherit;
    text-decoration: none;
}

.credit a:hover,
.credit a:focus {
    opacity: .75;
}

.credit-x {
    font-size: 9px;
}
