* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Inter", "Helvetica Neue", sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    color: #000000;
}

.chat-container {
    width: 100%;
    height: 80%;
    background-color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 20px;
    overflow: auto;
}

.user-chat-box {
    text-align: right;
    width: 60%;
    position: relative;
    left: auto;
    margin-left: auto;
    
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 12px;
}

.ai-chat-box {
    width: 60%;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

/* Hero (first message) centered */
.ai-chat-box.hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 30px;
}

.ai-chat-box.hero #AI-IMAGE {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    animation: float 3.5s ease-in-out infinite;
}

.ai-chat-box.hero .ai-chat-area {
    background: transparent;
    color: #000000;
    font-weight: 800;
    font-size: 28px;
    text-align: center;
    letter-spacing: 0.3px;
    text-shadow: none;
    animation: fadeInUp 800ms ease both;
}

.user-chat-area {
  text-align: right;
  display: inline-block;
  background-color: #f3f4f6;
  color: #000000;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  max-width: 80%; 
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-right: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  animation: messageIn .35s ease both;
}

.chooseimg {
    width: 30%;
    border-radius: 30px;
}

.ai-chat-area {
    background-color: #ffffff;
    position: relative;
    left: 0;
    color: #000000;
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    animation: messageIn .35s ease both;
}

#userImage {
    position: absolute;
    right: 0;
    filter: drop-shadow(2px 2px 10px black);
}

#aiImage {
    position: absolute;
    left: 0;
    filter: drop-shadow(2px 2px 10px black);
}

/* Make chat avatars circular */
#USER-IMAGE,
#AI-IMAGE {
    border-radius: 50%;
    object-fit: cover;
}

/* Make AI avatar larger in chat rows */
#AI-IMAGE {
    width: 84px !important;
    height: 84px !important;
}

/* Make User avatar larger and balance layout */
#USER-IMAGE {
    width: 72px !important;
    height: 72px !important;
}

/* Simple, clean animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.prompt-area {
    width: 100%;
    height: 20%;
    background-color: #0b1224;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.prompt-area input {
    width: 50%;
    height: 80px;
    background: #f8fafc;
    outline: none;
    border: none;
    border-radius: 50px;
    padding: 20px;
    color: #0f172a;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.prompt-area button {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    border: none;
    box-shadow: 0 10px 25px rgba(38, 148, 255, 0.35);
    cursor: pointer;
    transition: all 0.5s;
}

.prompt-area button:hover {
    filter: brightness(1.1);
}

/* Enter animation for chat messages */
@keyframes messageIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


.choose {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#image {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:600px) {
    .user-chat-box {
        width: 80%;
        left: 20%;
    }

    .ai-chat-box {
        width: 80%;
    }

}