@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300..700&family=Lexend:wght@100..900&family=Michroma&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body{
    width: 100%;
    height: 100vh;
}
.chat-container{
    width: 100%;
    height: 75%; 
    background-color: rgb(44, 52, 59);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 20px;
    overflow: auto;
}
.user-chat-box{
    width: 60%;
    position: relative;
    left: 40%;
}
.ai-chat-box{
    width: 60%;
    position: relative;
    
}
.user-chat-area{
    width: 90%;
    padding: 20px;
    background-color: black;
    color: rgba(255, 255, 255, 0.668);
    border-radius: 40px 0px 40px 40px;
    box-shadow: 2px 2px 10px black;
    display: flex;
    gap: 10px;
    flex-direction: column;
}
.chooseimg{
    width: 30%;
    height: auto;
    border-radius: 10px;
    box-shadow: 2px 2px 10px black;
}
.choose{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
#image{
    display: flex;
    justify-content: center;
    align-items: center;
}
.ai-chat-area{
    width: 90%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.370);
  position: relative;
  left: 10%;
    color: rgba(255, 255, 255, 0.668);
    border-radius: 0px 40px 40px 40px;
    box-shadow: 2px 2px 10px black;
}
#user-image{
    position: absolute;
    right:0;
    filter: drop-shadow(2px 4px 6px black);
    margin-left: 10px;
}
#ai-image{
    position: absolute;
    left:0;
    filter: drop-shadow(2px 4px 6px black);
    margin-right: 10px;
}
.prompt-area{
    width: 100%;
    height: 25%; 
    background-color: rgb(44, 52, 59);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: fixed; 
    bottom: 0; 
    left: 0; 
}
.prompt-area input{
    width: 50%;
    height: 80px;
    border-radius: 50px;
    padding: 20px;
    font-size: 20px;
    border: none;
    outline: none;
    background-color: black;
    color: white;
}
.load{
    filter: drop-shadow(2px 4px 6px black);
 }

#image, #submit {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

#image img, #submit img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}


#image:hover, #submit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

#image:hover img, #submit:hover img {
    transform: scale(1.2) rotate(5deg);
}


#image:active, #submit:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.8);
}

#image::before, #submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#image:active::before, #submit:active::before {
    width: 80px;
    height: 80px;
}


#submit {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

#submit:hover {
    background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
    box-shadow: 0 8px 25px rgba(17, 153, 142, 0.6);
}

#image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    }
    50% {
        box-shadow: 0 6px 20px rgba(17, 153, 142, 0.8);
    }
    100% {
        box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
    }
}

#submit.ready {
    animation: pulse 2s infinite;
}
@media (max-width:600px) {
    .user-chat-box{
        width: 80%;
        left: 20%;
    }
    .ai-chat-box{
        width: 80%;
    }
}