/* "/public/alpha/Dungeon/style.css" */

html,
body {
    margin: 0;
    min-height: 100%;
    background: #050505;
    color: #ddd;
    font-family: Consolas, "Courier New", monospace;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

header {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    border-bottom: 1px solid #222;
    background: #0a0a0a;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

label {
    color: #aaa;
}

select,
button,
a.button {
    box-sizing: border-box;
    border: 1px solid #555;
    border-radius: 0;
    background: #000;
    color: #eee;
    font: inherit;
    padding: 2px 4px;
}

select {
    max-width: min(70vw, 360px);
}

#gamepad-config {
    max-width: min(70vw, 320px);
}

.gamepad-status {
    color: #aaa;
    font-size: 12px;
}

.gamepad-status.config-error {
    color: #fbb;
}

#dungeon-pad-list {
    position: absolute;
    z-index: 20;
    box-sizing: border-box;
    max-height: min(50vh, 240px);
    overflow-y: auto;
    border: 1px solid #777;
    background: #000;
    color: #eee;
    font: inherit;
    display: none;
}

#dungeon-pad-list.open {
    display: block;
}

#dungeon-pad-list .pad-option {
    box-sizing: border-box;
    padding: 2px 4px;
    white-space: nowrap;
}

#dungeon-pad-list .pad-option.current {
    outline: 1px solid #aaa;
}

button,
a.button {
    cursor: pointer;
    text-decoration: none;
}

button:hover,
a.button:hover,
select:focus {
    border-color: #aaa;
}

.meta {
    margin-top: 8px;
    color: #aaa;
    font-size: 12px;
}

main {
    box-sizing: border-box;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}

#dungeon-stage {
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#dungeon-stage canvas {
    border: 1px solid #333;
    image-rendering: pixelated;
}

.error {
    margin: 10px;
    padding: 10px;
    border: 1px solid #733;
    background: #180808;
    color: #fbb;
}
