/* Reset some default styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: system-ui;
    background: #f9f9f9;
    color: #333;
}

/* Container to hold the content and footer */
.container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
    padding: 15px;
    box-sizing: border-box;
}

/* Content area that contains the text sections */
.content {
    display: flex;
    flex-direction: column; /* Stack sections vertically */
    gap: 20px; /* Space between the two sections */
    flex: 1; /* Takes up remaining space */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Text section styling */
.text-section {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between elements */
    flex: 1; /* Allow text sections to grow and fill available space */
}

/* Header styling (title and button in the same row) */
.header {
    display: flex;
    justify-content: space-between; /* Title on the left, button on the right */
    align-items: center; /* Vertically center align */
}

/* Textarea styling */
textarea {
    width: 95%;
    flex: 1; /* Textarea takes up remaining space in the text section */
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    resize: none; /* Disable resizing to ensure consistent height */
}#o{font-size: 2rem}

/* Button styling */
button {
    padding: 8px 12px;
    border: 1px solid #3498db;
    border-radius: 5px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

button:hover {
    background: #2980b9;
}

/* Footer styling */
footer {
    text-align: center;
    padding: 5px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.85rem;
    border-radius: 8px;
    margin-top: 10px; /* Space above the footer */
    flex-shrink: 0; /* Prevent footer from shrinking */
}

footer a {
    color: #3498db;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive design for mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.6rem;
    }

    .content {
        gap: 15px; /* Reduce gap between sections */
    }

    .header {
        gap: 10px; /* Space between title and button */
    }

    textarea {
        font-size: 0.95rem;
        padding: 10px;
    }

    button {
        width: auto; /* Auto width for buttons */
    }
}