body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #f0f8ff; /* Light Alice Blue */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    width: 100%;
    text-align: center;
}

h1 {
    color: #2e8b57; /* Sea Green */
    margin-bottom: 25px;
    font-weight: 700;
}

.input-section {
    margin-bottom: 30px;
    text-align: left;
}

.input-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #555;
}

.input-section input[type="text"],
.input-section textarea {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 1rem;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.input-section textarea {
    resize: vertical;
}

button {
    background-color: #3cb371; /* Medium Sea Green */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Hind Siliguri', sans-serif;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #2e8b57; /* Sea Green */
}

.card-preview {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.card-preview h2 {
    color: #555;
    margin-bottom: 20px;
    font-weight: 700;
}

.card {
    background: linear-gradient(135deg, #e6ffe6, #ccffcc); /* Light green gradient */
    border: 2px solid #90ee90; /* Light Green */
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Center the card */
    max-width: 500px; /* Limit card width */
    position: relative; /* Needed for potential absolute positioning of elements later */
    overflow: hidden; /* Ensure content stays within borders */
}

/* Add some decorative elements (optional, can be enhanced) */
.card::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 0.5;
}

.card::after {
    content: '';
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background-color: rgba(144, 238, 144, 0.3); /* Light green with transparency */
    border-radius: 50%;
    opacity: 0.6;
}


.card-content {
    position: relative; /* Ensure content is above pseudo-elements */
    z-index: 1;
}

.card .greeting {
    font-size: 1.8rem;
    font-weight: 700;
    color: #228b22; /* Forest Green */
    margin-bottom: 15px;
}

.card .to,
.card .from {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 10px;
}

.card .main-message {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card .custom-message {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    min-height: 20px; /* Ensure space even if empty */
}

.card .from span,
.card .to span {
    font-weight: 700;
    color: #3cb371; /* Medium Sea Green */
}

#download-btn {
    background-color: #ff6347; /* Tomato */
    margin-top: 20px;
}

#download-btn:hover {
    background-color: #e5533d;
}

/* Responsive adjustments */
@media (max-width: 650px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.8rem;
    }

    button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .card {
        padding: 20px;
    }

    .card .greeting {
        font-size: 1.6rem;
    }

    .card .to,
    .card .from {
        font-size: 1rem;
    }

    .card .main-message,
    .card .custom-message {
        font-size: 0.9rem;
    }
}
