body {
    font-family: monospace;
    background: black;
    color: cornsilk;
    padding: 2%;
    margin: 0;
}

.json-container {
    display: flex;
    flex-direction: row;
    gap: 2%;
    height: 80vh;
    box-sizing: border-box;
}

.input-section,
.output-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.h1,.h3{
    font-size: 28px;
}

textarea {
    flex: 1;
    width: 100%;
    resize: none;
    font-family: monospace;
    font-size: 14px;
    padding: 10px;
    background-color: #1e1e1e;
    color: cornsilk;
    border: 1px solid #444;
    box-sizing: border-box;
}

#json-output {
    flex: 1;
    overflow: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
    box-sizing: border-box;
}

.json-view {
    white-space: pre;
    font-family: monospace;
}

.collapsible {
    cursor: pointer;
    color: #dbd692;
}

.nested {
    margin-left: 20px;
    display: block;
}

.collapsed>.nested {
    display: none;
}

.arrow::before {
    content: "▶";
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease-in-out;
}

.expanded>.arrow::before {
    content: "▼";
}

[title] {
    position: relative;
    cursor: help;
    text-decoration: underline dotted;
}

button {
    background-color: #444;
    border: 1px solid #888;
    color: cornsilk;
    padding: 6px 12px;
    margin: 10px 5px 0 0;
    font-family: monospace;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: #666;
}

.buttons {
    margin-top: 10px;
}