* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 2rem;
    color: #333;
}

.main-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.context-input {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dialog-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.dialog-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #444;
    font-weight: 500;
}

.dialog-content {
    padding: 1rem;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
    min-height: 200px; /* Placeholder height for dialog content */
}

.dialog-line {
    margin-bottom: 1rem;
}

.dialog-speaker {
    font-weight: bold;
    margin-right: 0.5rem;
}

.dialog-text {
    display: inline-block;
    margin-right: 0.5rem;
}

.answer-placeholder {
    font-weight: bold;
    color: #007bff;
}

.dialog-options {
    margin-top: 0.5rem;
}

.dialog-option {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 0.5rem;
}

.dialog-option:hover {
    background-color: #f0f0f0;
}

.dialog-option.selected {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}

.dialog-feedback {
    margin-top: 0.5rem;
    font-weight: bold;
}

.dialog-feedback.correct {
    color: #28a745;
}

.dialog-feedback.incorrect {
    color: #dc3545;
}

.dialog-controls {
    display: inline-flex;
    gap: 1rem;
    margin: 0 auto;
    /* To center the button group horizontally */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.dialog-controls button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #fff;
}

.answer-placeholder {
    font-weight: bold;
    color: #007bff;
    min-width: 80px;
    display: inline-block;
    border-bottom: 2px dotted #007bff;
    text-align: center;
    padding: 0 5px;
}

.answer-placeholder:empty::before {
    content: "_____";
    color: #007bff;
    opacity: 0.5;
}

.btn-reset {
    background-color: #6c757d;
}

.btn-reset:hover {
    background-color: #545b62;
}

.btn-check {
    background-color: #007bff;
}

.btn-check:hover {
    background-color: #0069d9;
}

.context-input {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.context-input textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.btn-generate {
    background-color: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-generate:hover {
    background-color: #218838;
}

.yaml-container {
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.yaml-container summary {
    padding: 0.5rem 1rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.yaml-container summary:hover {
    background-color: #f0f0f0;
}

.yaml-display {
    padding: 1rem;
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    border-top: 1px solid #ddd;
}

.context-input {
    position: relative;
}

.context-input button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
