body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align to top */
    min-height: 100vh;
    margin: 0;
    background-color: #1a1a1a; /* Dark charcoal background */
    padding-top: 5vh; /* Add some padding to the top */
}

.container {
    text-align: center;
    background-color: #2a2a2a; /* Slightly lighter dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(255,0,0,0.3); /* Red-tinted shadow */
    max-width: 600px; /* Increase max-width for more controls */
    width: 100%;
    border: 2px solid #cc0000; /* Deep red border */
}

h1 {
    color: #ff0000; /* Bright red for heading */
    margin-bottom: 20px;
}

#result-display {
    margin: 20px 0;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1f1f1f; /* Very dark background for result area */
    padding: 15px;
    border-radius: 8px;
}

#scenario-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ff3333; /* Bright red-orange for text */
    text-align: left;
}

.scenario-section {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 4px solid #cc0000;
}

.scenario-section h3 {
    color: #ff0000;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.scenario-section h4 {
    color: #ff3333;
    margin: 10px 0 5px 0;
    font-size: 16px;
}

.scenario-section p {
    margin: 8px 0;
    color: #cccccc;
}

.arcs-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.arc {
    background-color: #1f1f1f;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #444;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.control-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    color: #ff3333;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #cc0000;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

input[type="text"]::placeholder {
    color: #666;
}

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

select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #cc0000;
    background-color: #1f1f1f;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

select:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255,0,0,0.5);
}

.character-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    background-color: #1f1f1f;
    padding: 10px;
    border-radius: 5px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #cc0000;
}

.character-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.character-checkbox label {
    color: #ccc;
    font-weight: normal;
    cursor: pointer;
    flex: 1;
}

.character-checkbox input[type="checkbox"] {
    accent-color: #ff0000;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

button {
    background-color: #cc0000; /* Deep red button */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    width: 100%;
    margin: 10px 0 0 0;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(255,0,0,0.2);
}

button:hover {
    background-color: #ff0000; /* Bright red on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,0,0,0.4);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(255,0,0,0.2);
}

#express-btn {
    background-color: #ff3333;
    margin-top: 10px;
}

#express-btn:hover {
    background-color: #ff5555;
}