body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #b0b0b0;
}
@media screen and (min-width: 600px) {
    body {
        /* background-color: magenta; */
        width: 80%;
        margin: auto;
    }
    #caption {
        display: flex;
    }
}
#options {
    display: flex;
    justify-content: space-between;
}
a:link {
    color: #4285F4;
}
a:visited {
    color: blueviolet;
}
.btn {
    background: #444;
    color: #ddd;
    margin-bottom: 0.2em;
    padding: 0 1em;
    border: 2px solid #444;
    border-radius: 0.4em;
}
.btn:hover {
    background: #555;
    color: #ddd;
    margin-bottom: 0.2em;
    border: 2px solid #666;
}
.indicator {
    width: 1em;
    min-width: 1em;
    height: 1em;
    min-height: 1em;
    border-radius: 0.2em;
    color: #ff00ff;
}
#cool {
    padding: 1em;
    padding: 0;
}
#cool > h3 {
    margin: 0.8em 0;
}
#desc {
    padding: 1em;
    padding-bottom: 0;
    min-width: fit-content;
}
.desc {
    display: flex;
    padding: 0.4em;
}
.desc > span {
    color: #ddd;
    margin-left: 0.4em;
}
#banner {
    font-family: monospace;
    margin-bottom: 1em;
}
.surrogate-high {
    border-right: none !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: #284d7e !important;
}
.surrogate-low {
    border-right: none !important;
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: #284d7e !important;
}
.surrogate-result {
    border-left: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    background: #284d7e !important;
}
main, section, footer {
    margin: 1em;
    background: #2d2d2d;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
footer {
    text-align: center;
    padding: 1em;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
}
footer > * {
    display: inline-block;
}
h1 {
    color: #e0e0e0;
    margin-top: 0;
}
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical;
    box-sizing: border-box;
    background-color: #1a1a1a;
    color: #e0e0e0;
}
textarea:focus {
    outline: none;
    border-color: #66bb6a;
}
.out {
    margin-top: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    min-height: 100px;
    white-space: pre-wrap;
}
#input {
    transition: background-color 500ms linear;
}
.char-block {
    text-align: center;
    display: inline-block;
    margin-right: 0.4em;
    margin-bottom: 0.4em;
    padding-top: 0.25em;
    background: #1e3a5f;
    border-radius: 4px;
    border: 1px solid #3d5a80;
    width: 5em;
}
pre {
    background: #1a1a1a;
    padding: 0 2em;
    width: fit-content;
}
section > span:not(.char, .hex) {
    margin-right: 0.25em;
}
section > p {
    margin-top: 2.4em;
}
.char {
    margin: 1em;
    font-size: 20px;
    font-weight: bold;
    color: #ddd;
    line-height: 1.0;
}
.hex {
    margin: 0.8em;
    font-size: 12px;
    color: #a0a0a0;
    font-family: monospace;
}
label {
    display: block;
    margin-bottom: 0.4em;
    font-weight: bold;
    color: #b0b0b0;
}
