body {
    font-family: 'Roboto Mono', monospace;
    background-color: #1a1a1a;
    color: #f0f0f0;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    box-sizing: border-box;
}

.container {
    background-color: #2a2a2a;
    border: 2px solid #5a0000;
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

h1, h2 {
    font-family: 'Roboto', sans-serif;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #5a0000;
    padding-bottom: 10px;
}

.input-section, .output-section {
    background-color: #3a3a3a;
    border-radius: 6px;
    padding: 20px;
    border: 1px solid #4a4a4a;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

input[type="text"],
textarea,
select {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #5a0000;
    background-color: #444444;
    color: #f0f0f0;
    border-radius: 4px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
    resize: vertical; /* Allow vertical resizing for textareas */
}

input[type="text"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

select {
    appearance: none; /* Remove default browser styling */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%3E%3Cpolygon%20points%3D%22204.3%2C74.7%20128%2C151%2051.7%2C74.7%2042.7%2C83.7%20128%2C169%20213.3%2C83.7%20%22%20fill%3D%22%23f0f0f0%22%2F%3E%3C%2Fsvg%3E'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 30px; /* Make space for the arrow */
}


button {
    background-color: #6a0000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 20px;
}

button:hover {
    background-color: #8a0000;
    transform: translateY(-2px);
}

button:active {
    background-color: #4a0000;
    transform: translateY(0);
}

.scp-document {
    background-color: #1a1a1a;
    border: 1px solid #5a0000;
    padding: 20px;
    border-radius: 6px;
    white-space: pre-wrap; /* Preserve whitespace and wrap text */
    word-wrap: break-word; /* Break long words */
    min-height: 150px; /* Ensure it's visible even when empty */
    line-height: 1.6;
    font-size: 0.95em;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
}

.scp-document .section-title {
    color: #ff0000;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.scp-document .section-title:first-of-type {
    margin-top: 0;
}

.scp-document details {
    margin-top: 15px;
    border: 1px solid #5a0000;
    border-radius: 4px;
    background-color: #2a2a2a;
    padding: 10px;
}

.scp-document summary {
    cursor: pointer;
    font-weight: bold;
    color: #ff0000;
}

.scp-document summary::marker {
    color: #ff0000; /* Change marker color for details */
}

.scp-document details p {
    margin-top: 10px;
    padding-left: 10px;
    border-left: 2px solid #ff0000;
}

.scp-document-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto 5px auto;
    border: 2px solid #5a0000;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-caption {
    text-align: center;
    font-style: italic;
    color: #b0b0b0;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 0.85em;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 1.8em;
    }
    button {
        font-size: 1em;
        padding: 10px 15px;
    }
}