.dialogue {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);

    display: flex;
    align-items: center;
    justify-content: center;
}

.dialogue[hidden] {
    display: none;
}

.dialogue > div {
    border: 2px solid black;
    border-radius: 4px;
    box-shadow: 0 0 50px rgb(20, 20, 20);
    padding: 1em;
    background: white;
    overflow-y: auto;
    max-height: 85%;
}

.dialogue.success > div {
    border-color: rgb(0, 140, 0);
    background: rgb(200, 255, 200);
}

.dialogue.fail > div {
    border-color: rgb(140, 0, 0);
    background: rgb(255, 200, 200);
}

.dialogue h1,
.dialogue p,
.dialogue pre,
.dialogue button {
    margin: 0.5rem;
}

.dialogue button {
    font-weight: bold;
    padding: 0.3em 0.6em;
}
