
@import url('  https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Condensed:wght@600&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "IBM Plex Sans Condensed", sans-serif;
font-weight: bold;
}

/* auto play video start  */
body {
    height: 100vh;
    width: 100%;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Overlay to reduce opacity */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity (0.5 = 50% opacity) */
    z-index: -1;
}

/* Content */
.content {
    position: relative;
    z-index: 1;
}
/* autoplay video end  */

:root{

}
body{

}

/* Hide scrollbar for all browsers */
html, body {
    overflow: hidden;
}
/* header part */
.header , .chat-list .message , .typing-form{
    margin: 0 auto;
    max-width: 980px;
}
.header{
    margin-top: 6vh;
    padding: 1rem;
    overflow-x: hidden;
}

body.hide-header .header{
    margin: 0;
    display: none;
}

.header :where(.title,.subtitle){
    color: var(--text-color);
    font-weight: 500;
    line-height: 4rem;
}
/* first rty start  */

.header .title{
    width: fit-content;
    font-size: 3rem;
    background-clip: text;
    background: linear-gradient(to right,#7fa851,#326f30);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px -5px 5px rgba(100, 232, 12, 0.5);

}
.header .subtitle{
    font-size: 2.6rem;
    color: var(--subheading-color);
}

.suggestion-list{
    width: 100%;
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin-top: 9vh;
    overflow: hidden;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;

}

.suggestion-list .suggestion{
    cursor: pointer;
    padding: 1.25rem;
    border: 2px solid rgb(128, 184, 119);
    height: 63px;
    /* padding-bottom: 42px; */
    flex-shrink: 0;

    /* margin-bottom: 22px; */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border-radius: 0.75rem;
    justify-content:space-between;
    background: var(--secondary-color);
    transition: 0.2s ease;
}
/* first rty end  */

/* 2nd try start  */

.header {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers vertically */
    align-items: center; /* Centers horizontally */
    text-align: center;
    height: 100vh; /* Makes it take the full height of the viewport */
}

/* Ensuring the suggestion list is centered */
.suggestion-list {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers horizontally */
    gap: 10px; /* Space between suggestions */
    margin-top: 20px; /* Adjust spacing */
    /* color: #326f30; */
    padding-bottom: 22px;
margin-bottom: 22px;


}

.suggestion {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between text and icon */
    width: fit-content; /* Adjust width based on content */
    padding: 10px 15px;
    background: var(--primary-color);
    color: var(--text-color);
    border-radius: 8px;
    cursor: pointer;
}

.suggestion .text {
    font-size: 1.2rem;
    /* padding-bottom: 52px; */
/* color: rebeccapurple; */

}

/* 2nd try end  */

.suggestion-list .suggestion:hover{
    background: var(--secondary-hover-color);
}

.suggestion-list .suggestion :where(.text,.icon){
    font-weight: 400;
    color: var(--text-color);
}

.suggestion-list .suggestion .icon{
    width: 42px;
    height: 42px;
    display: flex;
    font-size: 1.3rem;
    margin-top: 2.5rem;
    align-self: flex-end;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    color: var(--text-color);
    background: var(--primary-color);
}

.chat-list {
    margin-top: 25px;
    padding: 2rem 1rem 12rem;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-color: #999 transparent;
}
.chat-list .message .incoming{
    margin-top: 3rem;
}

.chat-list .message .message-content{
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: center;
}

.chat-list .message .text{
    color: var(--text-color);
    white-space: pre-wrap;
    border: 2px solid rgb(79, 143, 79);
border-radius: 15px;
padding: 12px;
/* width: 100%; */



}

/* chat-list .message .text:hover{
font-size: 22px;

} */
.chat-list .message .text:hover {
    font-size: 20px;
    transition: font-size 0.3s ease-in-out, transform 0.3s ease-in-out;
 
}



.chat-list .message.error .text{
    color: tomato;
}

.chat-list .message .loading .text{
    display: none;
}

.chat-list .message .avatar{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    align-self: flex-start;
    margin-bottom: 25px;
    border: 2px solid rgb(74, 207, 74);
}

.chat-list .message.loading .avatar{
    animation: rotate 3s linear infinite;
}
@keyframes rotate{
    100%{
        transform: rotate(360deg);
    }
}


#delete-chat-button a{

  color: white;

  


}


.chat-list .message .icon{
    color: var(--text-color);
    cursor: pointer;
    height: 35px;
    width: 35px;
    border-radius: 50%;
    display: flex;
    border: 2px solid green;
margin: 12px;
/* margin-left: 23px; */



    align-items: center;
    justify-content: center;
    /* background: none; */
    font-size: 1.25rem;
    margin-left: 3.5rem;
    visibility: hidden;
}

.chat-list .message .icon.hide{
    visibility: hidden;
}

.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
    visibility: visible;
}

.chat-list .message .icon:hover{
    background: var(--secondary-hover-color);
}

.chat-list .message .loading-indicator{
    display: none;
    gap: 0.8rem;
    width: 100%;
    flex-direction: column;
}

.chat-list .message.loading .loading-indicator{
    display: flex;
}

.chat-list .message .loading-indicator .loading-bar{
    height: 11px;
    width: 100%;
    border-radius: 0.135rem;
    background-position: -800px 0;
    background: linear-gradient(to right, #4258f4 , var(--primary-color), #4258f4);
    animation: loading 3s linear infinite;
}
.chat-list .message .loading-indicator .loading-bar:last-child{
    width: 70%;
}
@keyframes loading{
    0%{
        background-position:-800px 0 ;
    }
    100%{
        background-position:800px 0 ;
    }
}


.typing-area{
    position: fixed;
    width: 100%;



    /* display: flex; */
    /* justify-content: center;  Centers horizontally */
    /* align-items: center;      Centers vertically */
    /* height: 100vh;     */


    left: 0;
    bottom: 0;
    padding: 1rem;
    background: var(--primary-color);
}

.typing-area :where(.typing-form, .action-buttons){
    display: flex;
    gap: 0.75rem;
}

.typing-form .input-wrapper{
    width: 100%;
    height: 56px;

    display: flex;
    position: relative;

}
.typing-form .typing-input{
     /* height: 100%; */
     width: 100%;
height: 44px;
border: 2px solid rgb(200, 231, 24);

     /* display: flex; */
     justify-content: center; 
      /* Centers horizontally */
     align-items: center;    
       /* Centers vertically */
     /* height: 100vh;     */


     /* border: none; */
     outline: none;
     resize: none;
     font-size: 1rem;
     color: var(--text-color);
     padding: 1.1rem 4rem 1.1rem 1.5rem;
     border-radius: 100px;
     background-color: var(--secondary-color);
}

.typing-form .typing-input:focus{
    background: var(--secondary-hover-color);
    height: 54px;
    /* width: 54px; */
/* width: 100%; */
border-radius: 18px;
 /* opacity: 0;  */
transition: opacity 1s ease-in-out;
border: 2px solid rgb(109, 190, 48);


}

.typing-form .typing-input::placeholder{
    color: var(--placeholder-color);


}

.typing-area .icon{
    width: 49px;
    height: 46px;
border: 2px solid rgb(200, 231, 24);

    flex-shrink: 0;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    font-size: 1.4rem;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    transition: 0.2s ease;
}

.typing-area .icon:hover{
    background:var(--secondary-hover-color);
    width: 63px;
    height: 63px;
    transition: 0.6s ease;

}

.typing-form #send-message-button{
    position: absolute;
    right: 0;
    outline: none;
    border: none;
    transform: scale(0);
    background: transparent;
    transition: transform 0.2s ease;

}

.typing-form .typing-input:valid ~ #send-message-button{
    transform: scale(1);
}

.typing-area .disclaimer{
    text-align: center;
    font-size: 0.85rem;
    margin-top: 1rem;
    color: var(--placeholder-color);
}

@media (max-width:768px){
    .header :is(.title, .subtitle){
        font-size: 2rem;
        line-height: 2.6rem;
    }
    .header .subtitle{
        font-size: 1.7rem;
    }
    .typing-area :where(.typing-form, .action-buttons){
        gap: 0.4rem;
    }
    .typing-form .input-wrapper{
        height: 50px;
    }
    .typing-form .typing-input{
        padding: 1.1rem 3.5rem 1.1rem 1.2rem;
    }
    .typing-area .icon{
        height: 50px;
        width: 50px;
    }
    .typing-area .disclaimer{
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}