body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    overflow-y: auto;
}

.container {
    width: 90%;
    max-width: 550px;
    background: linear-gradient(135deg, #ece9e6, #ffffff);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
    margin: auto;
}

h1 {
    text-align: center;
    margin: 0 0 20px;
    color: #333;
    font-weight: 700;
}

.input-box,
.output-box,
.rich-text-box {
    margin: 12px 0;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

textarea,
.rich-text-box {
    width: 100%;
    height: 130px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #d0d4d8;
    resize: both;
    overflow: auto;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.2s;
}

textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.25);
}

.rich-text-box {
    background: #f5f5f5;
    overflow-y: auto;
    transition: background-color 0.3s;
}

.rich-text-box:hover {
    background-color: #e9ecef;
}

.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.checkbox,
.radio,
.custom-rel {
    flex: 1;
    font-size: 14px;
}

button {
    width: 100%;
    padding: 8px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    margin: 12px 0;
    font-weight: 500;
    transform: scale(1);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s, scale 0.3s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: scale(0.95);
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.output-box,
.rich-text-box {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    animation: contentFadeIn 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}