body {
    font-family: 'Times New Roman', serif;
    font-size: 18px;
    background-color: #f5deb3;
    color: #5c4033;
    margin: 0;
    padding: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(210, 180, 140, 0.3) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(210, 180, 140, 0.3) 0%, transparent 20%),
        linear-gradient(to bottom, #f5deb3, #d2b48c);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    border-bottom: 2px solid #c9a34e;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    color: #8b4513;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    font-family: 'Georgia', serif;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    color: #5c4033;
    font-size: 1.2em;
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.panel {
    background-color: #f5f5dc;
    border: 2px solid #d2b48c;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(92, 64, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #8b4513, #d2b48c, #8b4513);
}

.panel h2 {
    color: #8b4513;
    margin-top: 0;
    border-bottom: 1px solid #d2b48c;
    padding-bottom: 10px;
    font-family: 'Georgia', serif;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #c9a34e;
}

textarea {
    width: 100%;
    padding: 12px;
    background-color: #fff8dc;
    color: #5c4033;
    border: 2px solid #d2b48c;
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    resize: vertical;
    min-height: 150px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

textarea:focus {
    outline: none;
    border-color: #8b4513;
    box-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

.btn {
    background-color: #8b4513;
    color: #fff8dc;
    border: 2px solid #5c4033;
    padding: 12px 25px;
    font-family: 'Georgia', serif;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.btn:hover {
    background-color: #5c4033;
    color: #f5deb3;
    box-shadow: 0 0 10px rgba(92, 64, 51, 0.5);
}

.result-content {
    background-color: #fff8dc;
    border: 2px solid #d2b48c;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Times New Roman', serif;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 50px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-panel {
    border-color: #8b4513;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #d2b48c;
    color: #5c4033;
    font-size: 0.9em;
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .panel {
        padding: 15px;
    }
}
