*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* Mobile-first approach */
body {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: rgb(45, 52, 59);
    color: white;
}

#ai-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

#text1 {
    font-size: 1.5rem;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background-color: rgb(45, 52, 59);
}

.chat-container::before {
    content: "";
    background: url('bglogo.png') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

.ai-chat-box {
    width: 100%;
    margin-bottom: 1rem;
}

.ai-chat-area {
    width: 90%;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.361);
    color: rgba(255, 255, 255, 0.639);
    border-radius: 0 20px 20px 20px;
    box-shadow: 2px 2px 10px black;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-chat-box {
    width: 100%;
    margin-bottom: 1rem;
}

.user-chat-area {
    width: 90%;
    padding: 1rem;
    background-color: black;
    color: rgba(255, 255, 255, 0.639);
    border-radius: 20px 0 20px 20px;
    box-shadow: 2px 2px 10px black;
    display: flex;
    align-items: center;
    gap: 1rem;
}

#aiImage, #userImage {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 10px black);
}

.prompt-area {
    padding: 1rem;
    background-color: rgb(45, 52, 59);
    display: flex;
    gap: 1rem;
}

.prompt-area input[type="text"] {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
}

button {
    padding: 0.75rem;
    border: none;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

button img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

footer {
    padding: 1rem;
    text-align: center;
    color: white;
    background-color: rgb(45, 52, 59);
}

footer a {
    color: #00ff00;
    text-decoration: none;
}

/* Desktop view adjustments */
@media screen and (min-width: 768px) {
    .header {
        padding: 2rem;
    }

    #text1 {
        font-size: 2rem;
    }

    .chat-container {
        padding: 2rem;
    }

    .ai-chat-area, .user-chat-area {
        padding: 1.5rem;
    }

    .prompt-area {
        padding: 1.5rem;
    }

    .prompt-area input[type="text"] {
        font-size: 1.25rem;
    }
}

/* Large screen adjustments */
@media screen and (min-width: 1200px) {
    .header {
        padding: 2.5rem;
    }

    #text1 {
        font-size: 2.5rem;
    }

    .chat-container {
        padding: 2.5rem;
    }

    .ai-chat-area, .user-chat-area {
        padding: 2rem;
    }

    .prompt-area {
        padding: 2rem;
    }
}
body{
    width: 100%;
    height: 100vh;
    /* background: url('logo.png') no-repeat center center fixed;
    background-size: 300px; /* Adjust size as needed */
    /* background-blend-mode: overlay; */
    /* Adjust transparency */
    /* background-color: #000; */ 
    display: flex;
    flex-direction: column;
}
.chat-container {
    position: relative;
    padding-top: 20px;
}

.chat-container::before {
    content: "";
    background: url('bglogo.png') no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1; /* Adjust transparency */
   z-index: -1;
}
.chat-container{
    width: 100%;
    height: 80%;
    background-color: rgb(45, 52, 59);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap:20px;
    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.639);
    border-radius: 40px 0px 40px 40px;
    box-shadow: 2px 2px 10px black;
    display: flex;
    gap:10px;
    flex-direction: column;
}
.chooseimg{
    width: 30%;
    border-radius: 30px;
}
.ai-chat-area{
    width: 90%;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.361);
    position: relative;
    left:10%;
    color:rgba(255, 255, 255, 0.639);
    border-radius: 0px 40px 40px 40px;
    box-shadow: 2px 2px 10px black;
}
#userImage{
    position: absolute;
    right: 0;
    filter:drop-shadow( 2px 2px 10px black);

}
#aiImage{
    position: absolute;
left:0;
filter:drop-shadow( 2px 2px 10px black);
}
.prompt-area{
    width: 100%;
    height: 20%;
    background-color: rgb(45, 52, 59);
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px
}
.prompt-area input{
    width: 50%;
    height: 80px;
    background-color: black;
    outline: none;
    border:none;
    border-radius: 50px;
    padding: 20px;
    color: white;
    font-size: 20px;
    box-shadow: 2px 2px 10px black;
}
.prompt-area button{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: black;
    border:none;
    box-shadow: 2px 2px 10px black;
    cursor: pointer;
    transition: all 0.5s;
}
.prompt-area button:hover{
    background-color: rgba(0, 0, 0, 0.338);
}
.load{
    filter:drop-shadow( 2px 2px 10px black)
}
.choose{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
#image{
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
}
@media (max-width:600px) {
    .user-chat-box{
        width: 80%;
        left:20%
    }
    .ai-chat-box{
        width: 80%;
    }
    
}
.header{
    width: 100%;
    height: 5%;
    background-color: rgb(45, 52, 59);
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    
}
#ai-image{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    filter:drop-shadow( 2px 2px 10px black);
}
#text1{
    color: #bdecfc;
    font-size: 30px;
    font-family: 'oswald', sans-serif;
    
}
footer {
    display: block;
    text-align: center;
    padding: 3px;
    background: #222;
    color: #fff;
    position: absolute;
    bottom: 0;
    width: 100%;
    margin-bottom: 0px;
    
}

footer a {
    color: #00bcd4;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
#footer{
    display: block;
}
.voice-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

#voice.listening {
    background-color: #ff4444;
    color: white;
}

