html {
    height: 100%;
    background-color: #EEE;
}

body {
    min-height: 100%;
    font-family: "Helvetica Neue", "Helvetica", "Arial", Sans-Serif;
    line-height: 1.6;
    font-size: 18px;
    color: #444;
    flex-direction: column;
}

h1, h2, h3 {
    line-height: 1.2;
}

#wrapper {
    max-width: 90vw;
    margin: 40px auto;
    padding: 0 10px;
}

#title {
    text-align: center;
}

#characters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    place-items: stretch;
}

#edit-character {
    display: flex;
    justify-content: center;
}

.character {
    display: flex;
    flex-direction: column;
}

.character-name {
    flex-grow: 1;
}

.edit_response_link {
    display: block;
    padding: 0 10px;
}

.character-image-grid {
    object-fit: cover;
}

.response-header {
    display: flex;
    align-items: center;
    padding: 10px;
}

.response-header-left {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.response-card {
    margin: 5px 0;
}

.card-toggle {
    margin: 0 10px;
}

.response-header-right {
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.response-header-right > * {
    margin: 0 5px;
}

#response, #scenario {
    width: 100%;
}

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: .5em .5em 0;
    margin: 10px 0;
}

details[open] .response {
    background-color: #fff;
}

details[open].scenario {
    background-color: #fff;
}

summary {
    margin: -.5em -.5em 0;
    padding: .5em;
    background-color: #eee;
}

details[open] {
    padding: .5em;
}

details[open] > summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: .5em;
}

.response-info {
    display: inline-flex;
    justify-content: space-between;
    width: 95%;
    align-items: center;
}

.blurb {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.outcome {
    white-space: nowrap;
}

.explanation {
    text-decoration-line: underline;
    text-decoration-style: dashed;
}