
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Times New Roman', Times, serif;
}
:root{
    --text-color: #E3E3E3;
    --subheading-color: #828282;
    --placeholder-color: #A6A6A6;
    --primary-color: #242424;
    --secondary-color: #383838;
    --secondary-hover-color: #444;
}
.light_mode{
   --text-color: #222;
   --subheading-color: #A0A0A0;
   --placeholder-color: #6C6C6C;
   --primary-color: #FFF;
   --secondary-color: #E9EEF6;
   --secondary-hover-color: #DBE1EA;
}

body{
    background:var(--primary-color) ;
    
}
 .social-icons  ul {
   list-style-type: none;
   background: #c2c3c4;
   display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 1rem;
    
}
.social-icons ul li {
   gap: 10rem;
   justify-content: space-between;
   display: flex;
   
}
.social-icons  i{
   padding: 10px;
   
}
.social-icons ul li  a{
   text-decoration: none;
   color: #000;
   gap: 20rem;
}


.header, .typing-area{
    color: var(--text-color);
    
    
}
.header{
    margin-top: 20vh;
    padding: 1rem;
   
}
body.hide-header .header{
   display: none;
   margin-top: 0;
}
.header, .chat-list .message, .typing-form{
    max-width: 1000px;
    margin: 0 auto;
}
.header :where(.title, .subtitle){
    font-weight: 500;
    line-height: 3.6rem;
}

.header button{
   
   float: right;
   padding: 5px 20px;
   border: none;
   border-radius: 5px;
   background-color: #4285f4; 
   margin: 20px; 
   
}
.header button a{
   font-size: 18px;
   font-weight: 400;
   color: #fff;
   text-decoration: none;
}
.header button:hover{
   background-color: red;
}
.social-icons ul li{
   display: flex;
   gap: 10px;
}


.header .title{
    font-size: 2.7rem;
    width: fit-content;
    background-clip: text;
    background:  linear-gradient(to right, #4285f4,  #ecebeb, #4285f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header .subtitle{
    font-size: 2.4rem;
    color: var(--subheading-color);
}
.suggestion-list{
    margin-top:  8vh;
    list-style: none;
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scrollbar-width: none;
    
}
.suggestion-list .suggestion{
   
    padding: 1.25rem;
    cursor: pointer;
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    border-radius: 0.75rem;
    background: var(--secondary-color);
}
.suggestion-list .suggestion:hover{
    background-color: var(--secondary-hover-color);
}
.suggestion-list .suggestion .text{
   font-size: 20px;
    font-weight: 400;
}
 .suggestion-list .suggestion .icon{
    height: 42px;
    width: 42px;
    font-size: 1.3rem;
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
 }
 .chat-list{
    padding: 2rem 1rem 12rem;
    max-height: 100vh;
    overflow-y: auto;
    scrollbar-color: #999 transparent;
 }
 .chat-list .message.incoming{
    margin-top: 1.5rem;
 }
 .chat-list .message .message-content{
    display: flex;
    gap: 1.5rem;
    width: 100%;
    align-items: center ;

 }
 .chat-list .message .avatar{
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    

 }
 .chat-list .message.loading .avatar{
   animation:  rotate 3s linear infinite;
 }

 @keyframes rotate{
   100%{
      transform: rotate(360deg);
   }
 }
 .chat-list .message .text{
    color: var(--text-color);
 }
 .chat-list .message .text.error{
   color: #e55865;
 }
 .chat-list .message.loading .text{
   display: none;
 }
 .chat-list .message .icon{
    height: 35px;
    width: 35px;
    display: flex;
    font-size: 1.25rem;
    margin-left: 3.5rem;
    align-items: center;
    border-radius: 50%;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    background: var(--secondary-color);
    visibility: hidden;
 }
 .chat-list .message:not(.loading):hover .icon:not(.hide){
   visibility: visible;
 }
 .chat-list .message:hover .icon{
   visibility: visible;
 }
 .chat-list .loading-indicator{
   display: none;
   width: 100%;
   gap: 0.8rem ;
   flex-direction: column;
 }
 .chat-list .message.loading .loading-indicator{
   display: flex;
 }
 .chat-list .loading-indicator .loading-bar{
   height: 11px;
   width: 100%;
   border-radius: 0.2rem;
   background: linear-gradient(to right, #4285f4, var(--primary-color), #4285f4);
   animation:  animate 3s linear infinite;
 }
 .chat-list .loading-indicator .loading-bar:last-child{
   width: 70%;
 }
 @keyframes animate{
   0%{
      background-position: -800px 0;
   }
   100%{
      background-position: 800px 0;
   }
 }


 .chat-list .message .icon:hover{
    background-color: var(--secondary-color);
 }
 .typing-area{
    position: fixed;
    width: 100%;
    bottom: 0;
    padding: 1rem;
    background: -o-repeating-linear-gradient();
    margin: 20px;
    
 }

 .typing-area :where(.typing-form, .action-buttons){
    display: flex;
    gap: 0.75rem;
 }
 .typing-area .input-wrapper{
    height: 56px;
    width: 100%;
    display: flex;
    position: relative;
    
 }
 .typing-area .typing-input{
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    font-size: 1rem;
    color:  var(--text-color);
    border-radius: 6.2rem;
    padding: 1.5rem 9rem 1.5rem 1.9rem;
    background: var(--secondary-color);
 }
 .typing-area .typing-input:focus{
    background: var(--secondary-hover-color);
 }
 .typing-area .typing-input::placeholder{
    color: var(--placeholder-color);
 }
 .typing-area .icon{
    height: 56px;
    width: 56px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color);
 }
 .typing-area .icon:hover{
    background: var(--secondary-hover-color) !important;
 }
 .typing-area .input-wrapper .icon{
    position: absolute;
    right: 0;
    outline: none;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-color);
    transform: scale(0);
    transition: transform 0.2s ease;
    
 }
 .typing-area .input-wrapper  .typing-input:valid ~ .icon{
   transform: scale(1);
 }


 .typing-area .disclaimer-text{
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    color: var(--placeholder-color);
 }

 @media ( max-width: 768px){
   .header :is(.title, .subtitle){
      font-size: 2rem;
      line-height: 1.7rem;
   }
   .header .subtitle{
      font-size: 1.7rem;
   }
   .chat-list .message .avatar{
      width: 37px;
      height: 37px;
   }
   
 .typing-area :where(.typing-form, .actions-button){
      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-text{
   font-size: 0.75rem;
   margin: 0.5rem;
 }
}
