*:focus {
    outline: 0;
    box-shadow: 0px 0px 0px 3px rgba(83, 151, 241, .5);
}

::-moz-focus-inner {
    border: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Fira Sans", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", arial, sans-serif;
    font-size: 16px;
    color: black;
    text-rendering: optimizelegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 200ms, color 200ms;
    background: white;
}

.night body {
    background: rgb(38,47,61);
    color: white;
}

main {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.app {
    max-width: 500px;
    width: calc(100% - 20px);
    padding-top: 40px;
    padding-bottom: 40px;
}

.legend-cont {
    position: relative;
    width: 100%;
    height: 40px;
    margin-top: 10px;
}

.main-canvas {
    width: 100%;
    height: auto;
}

.legend-canvas {
    width: 100%;
    height: 40px;
}

.grip {
    position: absolute;
    top: 0;
    height: 40px;
    width: 10px;
    background-color: rgba(230, 237, 241, 0.9);
    touch-action: manipulation;
    transition: background-color 200ms;
}

.night .grip {
    background-color: rgba(68, 68, 105, 0.9);
}

.grip-left {
    /*cursor: w-resize*/;
}

.grip-right {
    /*cursor: e-resize*/;
}

.glass {
    position: absolute;
    top: 0;
    height: 40px;
    transition: background-color 200ms;
    background-color: rgba(248, 250, 254, 0.9);
}

.night .glass {
    background-color: rgba(33, 42, 55, 0.9);
}

.glass-left {
    left: 0;
}

.glass-right {
    right: 0;
}

.window {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    height: 40px;
    border-top: 1px solid rgba(230, 237, 241, 0.9);
    border-bottom: 1px solid rgba(230, 237, 241, 0.9);
    cursor: ew-resize;
    touch-action: manipulation;
    transition: border-color 200ms;
}

.night .window {
    border-color: rgba(68, 68, 105, 0.9);
}

.button-cont {
    margin-top: 10px;
    margin-bottom: 10px;
}

.button {
    position: relative;
    padding-left: 40px;
    margin-right: 10px;
    margin-bottom: 10px;
    height: 40px;
    line-height: 40px;
    border: 1px solid rgb(235,239,242);
    border-radius: 20px;
    cursor: pointer;
    touch-action: manipulation;
    background: transparent;
    color: rgb(66,72,75);
    transition: color 200ms, border-color 200ms;
}

.night .button {
    border-color: rgb(52,66,81);
    color: rgb(233,236,238);
}

.button .circle {
    display: inline-block;
    border-radius: 50%;
    border: 1px solid transparent;
    width: 20px;
    height: 20px;
    line-height: 20px;
    position: absolute;
    top: 50%;
    left: 10px;
    margin-top: -10px;
    font-size: 16px;
    color: white;
    transition: background-color 200ms;
}

.day-night-switch {
    border: none;
    background: transparent;
    color: rgb(89,154,224);
    font-size: 22px;
    transition: color 200ms;
    cursor: pointer;
    touch-action: manipulation;
    margin-bottom: 40px;
}

.night .day-night-switch {
    color: rgb(88,167,235);
}

.credits {
    font-size: 12px;
}