body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    min-height: 100vh;
    font-family: Calibri, sans-serif;
}

h1, h2, p {
    margin: 0;
}

header, footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7em;
    color: white;
    background-color: #055;
    z-index: 1;
}

main {
    flex-grow: 1;
    position: fixed;
    top: 7em;
    background-color: #EEE;
    overflow: hidden;
}

main canvas {
    display: block;
    outline: none;
}

aside::before {
    content: "\2630";
    position: fixed;
    top: 3.5rem;
    right: 3.5rem;
    display: grid;
    place-items: center;
    width: 2em;
    height: 2em;
    line-height: 1em;
    font-size: 1.5em;
    color: #055;
    border-radius: 100%;
    background-color: white;
    transform: translate(25%, -50%);
    transition: opacity .2s;
}

aside {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 25vw;
    min-width: 20em;
    max-width: 100%;
    padding: 2em;
    background-color: #CCC;
    box-shadow: 0 0 .5em black;
    transition: right .5s;
    z-index: 2;
}

aside:hover {
    right: 0;
}

aside:hover::before {
    opacity: 0;
}

aside article, #addPlayer {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    height: 2em;
    margin: 1em 0;
    padding: 1em 1.5em 1em 4.1em;
    border-radius: 2em;
    background-color: white;
    box-shadow: 0 0 .2em black;
    isolation: isolate;
    overflow: hidden;
}

aside h2 {
    margin: 1em auto;
    font-size: 1.8em;
}

aside h3 {
    font-size: 1.5em;
    line-height: 1em;
}

aside input {
    position: absolute;
    top: 0;
    left: calc(var(--hue) / 320 * 1.5em - .5em);
    width: .5em;
    height: .5em;
    border-radius: 9em;
    background-color: #CCC;
    border: solid 2em white;
    cursor: pointer;
    z-index: -1;
    -webkit-appearance: none;
    appearance: none;
}

aside input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1em;
    height: 1em;
    font-size: 2em;
    border-radius: 100%;
    background-color: hsl(var(--hue), 100%, 50%);;
}

aside input:hover {
    left: 0;
    z-index: 1;
    width: calc(100% - 4.3em);
}

#addPlayer {
    display: grid;
    place-items: center;
    justify-content: center;
    font-size: 1.5em;
    border: none;
    width: 2em;
    margin: 1em auto;
    padding: 0;
    box-shadow: 0 0 .3em black;
    cursor: pointer;
}