html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    background-color: #87CEFA; /* Optional: light blue background */
    scroll-behavior: smooth;

}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 420px;
}

h1 {
    margin: 0;
}

.result {
    margin-top: 20px;
}

.graphicsTall img {
    width: 360px;
    height: 480px;
}

.fixed-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.fixed-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 10px;
    vertical-align: top;
}


/* Add a fixed height and make the content scrollable */
#leftContent, #rightContent {
    max-height: 600px; /* Set your desired height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-right: 10px; /* Add some padding if needed for scrollbars */
}


/* Birthday card styling */
/* Global styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #a8c0ff, #3f87f5);
    color: #333;
    padding: 20px;
    text-align: center;
    overflow-x: hidden;
}

/* Birthday card styling */
.message-card {
    background: linear-gradient(135deg, #c2e9fb, #a1c4fd);
    padding: 16px;
    margin: 12px auto;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(100, 150, 200, 0.2);
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 90%;
    animation: fadeIn 0.8s ease-in-out;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Animations for message card */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(-10px); }
    50% { transform: translateY(10px); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Floating icons */
.message-card::before {
    content: '🎈';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.message-card::after {
    content: '🎉';
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    animation: sparkle 2.5s ease-in-out infinite;
}

.message-card .sender {
    font-weight: bold;
    color: #4a90e2;
    font-size: 16px;
    margin-bottom: 6px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
    margin-left: 20px; /* Increase this value to add more space */
}

/* Message text styling */
.message-card .text {
    color: #444;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

/* Hover effect for the card */
.message-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(100, 150, 200, 0.3);
    cursor: pointer;
}

/* Add a 'Thank You' button or call to action */
.message-card .thank-you-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #3f87f5;
    color: #fff;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.message-card .thank-you-btn:hover {
    background-color: #2c6ac7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .message-card {
        max-width: 100%;
        padding: 12px;
    }

    .message-card .sender {
        font-size: 14px;
    }

    .message-card .text {
        font-size: 12px;
    }
}


.scroll-indicator {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    display: flex; /* Use flexbox to align items horizontally */
    justify-content: center; /* Center align text and arrow */
    align-items: center; /* Vertically align items */
    margin-bottom: 10px;
}

.scroll-indicator .arrow {
    font-size: 20px;
    margin-left: 8px; /* Space between the text and the arrow */
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}


.form-container {
    width: 80%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #007bff;
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}