body {
    font-family: 'Crimson Text', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-primary);
    background-image: 
        linear-gradient(to right, rgba(245, 245, 245, 0.7), rgba(255, 255, 255, 0.7)),
        url('decorative-background-design_1110-177.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    background-attachment: fixed;
}

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #fff;
    --text-primary: #2c3e50;
    --text-secondary: #34495e;
    --border-color: #e0d8c3;
    --input-bg: #faf9f5;
    --button-bg: #2c3e50;
    --button-hover-bg: #34495e;
    --modal-bg: rgba(0,0,0,0.4);
}

body.dark-mode {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --input-bg: #2a2a2a;
    --button-bg: #4a4a4a;
    --button-hover-bg: #5a5a5a;
    --modal-bg: rgba(255,255,255,0.1);
    background-image: 
        linear-gradient(to right, rgba(18, 18, 18, 0.7), rgba(30, 30, 30, 0.7)),
        url('/e99961f56b8fc (1).png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    width: 600px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

h1 {
    font-family: 'Playfair Display', serif;
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 2.2em;
    letter-spacing: 1px;
}

textarea {
    width: 100%;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    resize: vertical;
    font-family: 'Crimson Text', serif;
    font-size: 1em;
    line-height: 1.6;
    background-color: var(--input-bg);
    color: var(--text-primary);
}

.verbose-selector, .verbosity-control {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.verbose-selector label, .verbosity-control label {
    margin-right: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.verbose-selector select, .verbosity-control input[type="range"] {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #bdc3c7;
    font-family: 'Crimson Text', serif;
}

.verbose-selector select {
    width: 100%;
    max-width: 400px;
}

.verbosity-control label span {
    font-weight: bold;
    margin-left: 5px;
    color: #2980b9;
}

optgroup {
    font-weight: bold;
    color: #2c3e50;
}

option {
    color: #34495e;
    padding: 5px;
}

.button-container {
    display: flex;
    justify-content: space-between;
}

button {
    background-color: var(--button-bg);
    color: #ecf0f1;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: var(--button-hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.info-button {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    vertical-align: middle;
}

.info-button:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--modal-bg);
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 800px;
    border-radius: 12px;
    max-height: 70vh;
    overflow-y: auto;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: #2c3e50;
}

.rhetorical-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category {
    background-color: var(--input-bg);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.category h3 {
    color: var(--text-primary);
    border-bottom: 3px solid var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-descriptions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.mode-description {
    background-color: var(--input-bg);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.mode-description h3 {
    color: var(--text-primary);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 5px;
}

.mode-description h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.1em;
    border-bottom: 1px solid var(--text-secondary);
    padding-bottom: 5px;
}

.mode-description p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .mode-descriptions {
        grid-template-columns: 1fr;
    }
}

.theme-toggle-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.theme-toggle {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: none;
}

.theme-switch-label {
    cursor: pointer;
    background-color: var(--button-bg);
    border-radius: 50px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70px;
    height: 30px;
    position: relative;
    transition: background-color 0.3s;
}

.theme-switch-label::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.theme-switch:checked + .theme-switch-label::before {
    transform: translateX(40px);
}

.theme-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.theme-icon.sun {
    margin-right: 5px;
}

.theme-icon.moon {
    margin-left: 5px;
}

.modal.modal-above {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
}

.modal.modal-above .modal-content {
    margin: 0 auto;
    max-height: 70vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal.modal-above {
        width: 95%;
        top: 10px;
    }
}