body {
    user-select: none;
    background-color: #fafafa;
    display: flex;
    height: 100vh;
    margin: 0;
    font-family: sans-serif;
    font-weight: bold;
    text-shadow: black 0 0 2px;
}

a {
    color: rgb(148, 221, 255);
    text-decoration: none;
}

a:hover {
    color: white;
    text-decoration: underline;
}

#container {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

#panel > nav > div {
    position: absolute;
    right: 1rem;
    user-select: none;
    cursor: pointer;
    color: black;
    background-color: white;
    font-size: 1.5rem;
    line-height: 3rem;
    text-align: center;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
}

#panel > nav > div:hover {
    color: white;
    background-color: black;
}

#panel > nav > div.active {
    color: white;
    background-color: black;
}

#panel > nav > div.active:hover {
    color: black;
    background-color: white;
}

#help-button {
    top: 1rem;
}

#settings-button {
    top: 5rem;
}

#panel {
    cursor: default;
    overflow-y: none;
    z-index: 1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-200px - 1rem);
    padding: 1rem;
    padding-right: 5rem;
    width: 200px;
    color: rgb(184, 184, 184);
    background-color: transparent;
}

#panel.open {
    overflow-y: auto;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
}

#panel > section {
    display: none;
}

#panel > section.active {
    display: initial;
}

#panel h1 {
    margin-top: 0;
    font-size: 1.5rem;
    line-height: 3rem;
    color: white;
}

#panel h2 {
    font-size: 1.2rem;
    color: white;
}

#panel h3 {
    font-size: 1rem;
    color: white;
}

#panel ul {
    padding: 0;
}

#panel li {
    display: block;
}

#panel span {
    display: inline-block;
    padding: 0 0.25rem;
    margin: 0.25rem;
    border: 1px rgb(138, 138, 138) solid;
    background-color: rgb(75, 75, 75);
    color: white;
}

#panel input[type="radio"], #panel label {
    cursor: pointer;
}

#joystick-id {
    font-weight: initial;
    font-size: smaller;
}

#credits {
    user-select: auto;
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
}

.hidden {
    display: none;
}
