body {
    font-family: 'Lora', serif;
    background-color: #1a1a1a; /* Dark background */
    color: #e0e0e0; /* Light text */
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: #2c2c2c;
    padding: 25px 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 700px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.dragon-icon {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
    filter: invert(80%) sepia(20%) saturate(500%) hue-rotate(330deg) brightness(90%) contrast(90%);
}

h1 {
    font-family: 'Cinzel', serif;
    color: #d4af37; /* Gold-ish color */
    font-size: 2.8em;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.2em;
    color: #b0b0b0;
    font-weight: 400;
    margin-top: 0;
}

.translator-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #3a3a3a;
    color: #e0e0e0;
    font-family: 'Lora', serif;
    font-size: 1em;
    box-sizing: border-box;
    resize: vertical;
}

textarea::placeholder {
    color: #888;
}

textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

#valyrian-text {
    background-color: #333;
}

.output-label {
    font-size: 0.9em;
    color: #aaa;
    text-align: left;
    margin-top: 10px;
    margin-bottom: -10px;
}

button { /* Main translate button style */
    padding: 12px 20px;
    background-color: #8b0000; /* Dark red */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    font-weight: 700;
    width: 100%; /* Make translate button full width */
    box-sizing: border-box;
}

/* REMOVED .secondary-button styles */

button:hover {
    background-color: #a52a2a; /* Lighter red for main button */
}

button:active {
    transform: scale(0.98);
}

button:disabled {
    background-color: #555;
    cursor: not-allowed;
}

.about-section,
.faq-section {
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    text-align: left;
    border: 1px solid #444;
}

.about-section h2,
.faq-section h2 {
    font-family: 'Cinzel', serif;
    color: #c0c0c0; /* Silver */
    margin-top: 0;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.faq-section details {
    margin-bottom: 10px;
    background-color: #303030;
    border-radius: 4px;
    border: 1px solid #484848;
}

.faq-section summary {
    padding: 10px 15px;
    font-weight: bold;
    cursor: pointer;
    color: #d4af37; /* Gold for summary */
    list-style-position: inside;
    outline: none;
}
.faq-section summary::marker {
    color: #b0b0b0;
}


.faq-section details[open] summary {
    border-bottom: 1px solid #484848;
}

.faq-section details p {
    padding: 0px 15px 15px 15px;
    margin: 0;
    color: #c7c7c7;
    font-size: 0.95em;
}


.error {
    color: #ff6b6b;
    font-size: 0.9em;
    margin-top: 5px;
    min-height: 1.2em;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9em;
    color: #888;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    h1 {
        font-size: 2.2em;
    }
    .subtitle {
        font-size: 1em;
    }
    button {
        font-size: 1em;
    }
    .about-section, .faq-section {
        padding: 15px;
    }
    .faq-section summary {
        padding: 8px 12px;
    }
    .faq-section details p {
        padding: 0px 12px 12px 12px;
    }
}