body {
    /* user-select: none; */
    -webkit-user-select: none;
}

input {
    font-family: inherit;
}

.game-ui--container {
    display: grid;
    grid-template-columns: 1fr 580px;
    grid-gap: 0;
}

.touch-device-only {
    display: none;
}

#geolocation {
    display: inline-block;
    color: white;
}

#geolocation #location {
    width: 100%;
    padding: 8px 16px;
    color-scheme: dark;
}

#screen {
    position: relative;
}

#map {
    width: 100%;
    height: 600px;
    height: calc(100vh - 75px);
}

#pixijs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.virtual-key {
    position: absolute;
    border: 1px solid #fff;
    border-radius: 10px;
    cursor: pointer;
}

.shade {
    padding: 1em;
}
.shade .tc {
    color: #ffffff;
}
.shade .tc a {
    color: #7bed9f;
}

#teleport {
    position: absolute;
    width: 40px;
    height: 40px;
    right: 8px;
    top: 8px;
    background-color: #fff;
}

.button {
    cursor: pointer;
    padding: 8px 12px;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.75);
    border: 0 none;
    border-radius: 2px;
    color: #ddd;

    display: none;
}

.ui--buttons {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.25em;
    flex-wrap: wrap;
    margin: 0.25em 0;
}

.ui--button {
    position: relative;

    cursor: pointer;
    padding: 8px 12px;
    font-size: 20px;
    font-weight: 400;
    background-color: rgba(0, 0, 0, 0.5);
    border: 0 none;
    border-radius: 8px;
    color: #dddddd;
    line-height: 1.15;

    flex: 1;
    text-align: center;

    transition: all 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}
.ui--button:hover {
    background-color: rgba(255, 255, 255, 0.25);
    color: #f1f1f1;
}

.ui--button a {
    font-size: 16px;
    color: #f1f1f1;
}

.ui--button small {
    font-size: 13px;
}

.ui--button[title]:hover::after {
    content: attr(title);
    position: absolute;
    top: -100%;
    left: -100%;
    background: #96e072;
    border-radius: 8px;
    font-size: 14px;
    padding: 8px;
    width: fit-content;
    color: #000000;
}

.ui--button img {
    height: 24px;
}

#speed {
    font-family: monospace;
    font-weight: 600;
    color: #96e072;
    white-space: pre;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.75);
    width: 100%;
}

.vehicle-button {
    cursor: pointer;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid #aaa;
    border-radius: 5px;
    padding: 5px;
    width: 40px;
    height: 40px;
}

#title {
    display: grid;
    place-content: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 30;
    background-color: var(--ui-color-panel);
}

#title #start-button {
    font-size: 20px;
    width: 100%;
    text-align: center;
    vertical-align: middle;
    background-color: var(--whiskey-accent);
    border: 0 none;
    border-radius: 3px;
    color: #000000;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}

#title #start-button:focus,
#title #start-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

#title #hard-road-button {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 16px;
    text-align: center;
    background-color: var(--whiskey-accent);
    border-radius: 3px;
    color: #000000;
    padding: 8px 16px;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
}

#debugdraw {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 640px;
    height: 480px;
    z-index: 50;
    background: rgba(0, 0, 0, 0.5);
}

#osm-side-panel {
    display: flex;
    flex-direction: column;

    background-color: rgba(0, 0, 0, 0.8);
    width: 580px;
    overflow-x: hidden;

    overflow-y: scroll;
    height: calc(100% - 64px);
    height: calc(100vh - 75px);

    color-scheme: dark;
    scrollbar-width: thin;
}

#osm-side-panel .admin-panel-header {
    padding: 12px 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#osm-side-panel .admin-panel-header .hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

#osm-side-panel details {
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
#osm-side-panel details summary {
    padding: 0.85em 1em;
    line-height: 1.25;
    font-size: 15px;
    font-weight: 700;
    color: #84d2f6;
    cursor: pointer;
    list-style: none;
}
#osm-side-panel details summary::-webkit-details-marker {
    display: none;
}
#osm-side-panel details summary::before {
    content: "▸";
    display: inline-block;
    width: 1em;
    margin-right: 0.35em;
    color: #59a5d8;
}
#osm-side-panel details[open] summary::before {
    content: "▾";
}
#osm-side-panel details summary small {
    font-size: 13px;
    font-weight: 400;
    color: #59a5d8;
}

#osm-side-panel details div.inner--details {
    padding: 0 1em 1em;
}

#osmmap {
    width: 100%;
    max-width: 540px;
    height: 320px;
    border-radius: 8px;
}

.ui--buttons-title {
    line-height: 1.25;
    font-size: 13px;
    font-weight: 400;
    color: #84d2f6;
}
