/* General Styles */
body {
    margin: 0;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background-color: #ffe6f2; /* Light pink background */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    padding-bottom: 60px; /* Add padding to prevent taskbar overlap */
}

.chat-container {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    height: calc(100vh - 80px); /* Reduce height to fit within the viewable area */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

header {
    background-color: #ff99cc;
    padding: 10px 20px;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 3px solid #ff66a3;
}

.messages {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
    border-bottom: 3px solid #ff66a3;
    font-size: 16px;
    flex-grow: 1;
}

.message {
    margin: 10px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
}

.message.user {
    background-color: #ffccf2;
    align-self: flex-end;
    color: #800040;
}

.message.assistant {
    background-color: #ffe6f2;
    align-self: flex-start;
    color: #ff66a3;
}

.input-container {
    display: flex;
    padding: 10px;
    background-color: #fff;
    border-top: 3px solid #ff66a3;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ff66a3;
    border-radius: 20px;
    outline: none;
    font-size: 16px;
}

#send-button {
    background-color: #ff66a3;
    color: white;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

#send-button:hover {
    background-color: #e60073;
}

/* Floating Hearts Animation */
.floating-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.heart {
    width: 20px;
    height: 20px;
    background-color: #ff66a3;
    position: absolute;
    bottom: -10%;
    left: 50%;
    animation: float 5s ease-in infinite, fade 5s ease-in infinite;
    clip-path: polygon(50% 0%, 61% 20%, 80% 20%, 69% 37%, 75% 60%, 50% 50%, 25% 60%, 31% 37%, 20% 20%, 39% 20%);
}

.heart:nth-child(1) {
    left: 20%;
    animation-duration: 4s;
    animation-delay: 0s;
}

.heart:nth-child(2) {
    left: 40%;
    animation-duration: 6s;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    left: 60%;
    animation-duration: 5s;
    animation-delay: 2s;
}

.heart:nth-child(4) {
    left: 80%;
    animation-duration: 7s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, -30px);
    }
    100% {
        transform: translate(-50%, 0);
    }
}

@keyframes fade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
