


html, body {
    margin: 0;
    padding: 0;
    height: 100%;  /* Ensures the body and html take up the full height */
    width: 100%;  /* Ensures the body and html take up the full width */
    overflow-x: hidden!important;  /* Hide horizontal scrollbar */
    overflow-y: auto;  /* Enable vertical scrolling when content exceeds the viewport height */
    box-sizing: border-box;  /* Ensure borders/paddings don't cause overflow */
    background-color:transparent;
    scroll-behavior: smooth;
  }




/* Apply Roboto with 300 weight to all elements */
* {
    font-family: "Roboto", sans-serif;
    font-weight: 400; /* Light weight for all text */
    font-style: normal;
  }
  

/********************************************** Start Screen Splash Styles ************************************************************************/

.screen-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 110%;
    margin-left: -5%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../images/Gradient.svg);
    background-size: cover; /* Ensures the background image covers the entire div */
    background-position: center; /* Keeps the image centered */
    background-repeat: no-repeat; /* Prevents tiling */
    z-index: 999999999999; /* Ensures it's on top of other elements */
    box-sizing: border-box; /* Prevents any border/padding issues */
    overflow: hidden!important;
    opacity: 1; /* Fully visible initially */
    transition: opacity 1s ease-out; /* Smooth fade effect */
  }
  
  /* When the fade-out class is added, it will start fading the opacity */
  .screen-splash.fade-out {
    opacity: 0; /* Fades the splash screen */
  }

  .logo {
      width: 800px;
      text-align: center;
      margin: auto;
   }

   @media(max-width:1260px)
   {
    .logo {
        width: 600px;
        text-align: center;
        margin: auto;
     } 
   }
   @media(max-width:840px)
   {
    .logo {
        width: 77%;
        text-align: center;
        margin: auto;
     } 
   }

/* Define the pulse up and in animation */
@keyframes pulseUpIn {
    0% {
      transform: scale(1);
      opacity: 1;
    }
    50% {
      transform: scale(1.1) translateY(-10px); /* Increase size and move up */
      opacity: 0.8; /* Fade out slightly */
    }
    100% {
      transform: scale(1) translateY(0); /* Return to original size and position */
      opacity: 1; /* Fade back to full opacity */
    }
  }
  
 /* Apply animation to .logo  
.logo {  
    animation: pulseUpIn 1.3s ease-in-out 1s forwards; /* Only runs once, with a delay */  
}  
*/

  
  
   
/********************************************** End Screen Splash Styles ************************************************************************/



/********************************************** Start Screen 1 Styles ************************************************************************/
  
  
  input[type="text"]:focus, 
input[type="email"]:focus {
    background-color: #f7f7f7; /* Set your custom background color */
    outline: none; /* Remove default focus outline (optional) */
}

/* For autofill fields in Safari and Chrome */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f7f7f7 inset !important; /* Force the autofill background */
    box-shadow: 0 0 0px 1000px #f7f7f7 inset !important; /* Fallback for other browsers */
    background-color: #f7f7f7 !important; /* Override autofill color */
    -webkit-text-fill-color: #000 !important; /* Ensure text color stays readable */
}

  
#all-fields-required {
    display: none;
    color: #dd5447;
    padding: 3px;
    border: 1px solid;
    border-color: #dd5447;
    border-radius: 30px;
    position: absolute;
    bottom: 0;
    margin-bottom: 130px;
    padding-left: 20px;
    padding-right: 22px;
    font-size: 15px;
}


.screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: white;
padding: 20px;
text-align: center;
box-sizing: border-box; /* Ensures padding doesn't affect the width/height */
}


#screen-1-inputs {
    margin-bottom: 100px;
    border: 1px solid;
    border-color: #ffffff10;
    padding: 20px;
    border-radius: 30px;
    box-shadow: 0 0 1rem 0 rgb(0 0 0 / 7%);
    background-color: #d4d4d469;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}
@media (max-width: 740px) {
  #screen-1-inputs {
    margin-bottom: 40px;
  }
}


.app-interface {
display: none;
}



  





  .hidden {
    display: none;
  }

  .header {
    font-size: 1.8rem;
    color: #003d79;
    text-align: center;
    margin-bottom: 20px;
    width: 300px;
    height: auto;
    text-align: center;
    margin: auto;
    margin-top: 10px;
        z-index: 9;
         filter: brightness(1);
  }
@media(max-width:840px)
{
    .header {
        width: 50%;
        margin-top: 10px;
    }
}





  .text {
   font-size: 17px;
   color: #002a5d;
   text-align: center;
   margin-bottom: 60px;
   width: 500px;
   line-height: 22px;
  }
  
  @media (max-width: 840px) {
.text {
  width: 90%; /* Adjust text width for smaller screens */
}
}



  .form-group {
    margin-bottom: 10px;
  }

  .title1 {
      padding-left: 0px;
      text-align: center;
      font-weight: bold;
      color: #002a5d;
  }
  @media (max-width: 560px) {
    .title1 {
        padding-left: 15px;
          text-align: left;
    }
  }


  input {
width: 90%; /* Adjust width for better responsiveness */
max-width: 500px; /* Prevent input from being too wide on large screens */
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 100px;
font-size: 0.9rem;
text-align: center;
color: #002a5d;

}



button {
width: 100%; /* Adjust width for better responsiveness */
max-width: 600px; /* Prevent input from being too wide on large screens */
padding: 10px;
margin: 10px 0;
background-color: #002a5d;
color:#fff;
border-radius: 100px;
font-size: 18px;
text-align: center;
opacity: 1; /* Set initial opacity */
transition: opacity 0.8s ease; /* Apply transition effect to opacity */
margin-bottom:30px;
}

@media(max-width:640px)
{
    button {
        width: 98%;
        max-width: 98%; 
    }
}

  button:hover {
    opacity: 0.7; /* Opacity on hover */
  }
  @media(max-width:840px)
  {
    button:hover {
        opacity: unset
      }
  }

  .language-selector button {
    margin: 10px 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
  }

  .language-selector button:hover {
    background-color: #f0f0f0;
  }



h2, p {
    color: white;
}

.message-popup {
      color: white;
      padding-top:20px;
      padding-bottom:20px;
}


#finish-or-continue-pupup {
    position: absolute;
    z-index: 9999999999999999;
    width: 700px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: #002a5d;
    margin-bottom: 0px;
    bottom: 0px;
    margin-bottom: 0px;
    bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    left: 0;
    right: 0;
    height: 75vh;
    padding: 60px;
    display:none;
}
  
  @media(max-width:840px)
  {
    #finish-or-continue-pupup {
        width: 92%;
        padding: 4%;
        height: 80vh;
    }   
  }

  #finish-or-continue-pupup {
    animation-duration: 0.4s;
  }
  


  
  .popup-buttons button {
    margin: 10px 5px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 100px;
  }

  @media(max-width:840px)
  {
    .popup-buttons {
        width: 80%;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        text-align: center;
        padding-top: 80px;
    }   
    .popup-text {
        max-width: 90%;
        margin: auto;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
  }


  .popup-buttons button:hover {
    background-color: #f0f0f0;
  }





  #finish-button,
  #new-inquiry-button {
    width: 100%; /* Full width of the parent container */
    padding: 10px;
    margin: 10px 0;
    background-color: #002a5d;
    color: #fff;
    border-radius: 100px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 1; /* Set initial opacity */
    transition: opacity 0.8s ease; /* Apply transition effect to opacity */
    margin-top: 10px;
  }
  
  #finish-button:hover,
  #new-inquiry-button:hover {
    opacity: 0.7; /* Opacity on hover */
  }
  

@media(max-width:640px)
{
   
  #finish-button,
  #new-inquiry-button {
        width: 98%;
        max-width: 98%; 
    }
}

  

  @media(max-width:840px)
  {
    #finish-button,
    #new-inquiry-button:hover {
        opacity: 1!important;
      }
  }

  
  


/* Customize input focus */
input:focus {
    outline: none; /* Remove the default outline */
    border: 1px solid #ccc; /* Keep the border size constant */
    box-shadow: 0 0 0 2px black; /* Add a black border-like shadow on focus */
    text-align: left; /* Align text and caret to the left */
}

/* Pulsing cursor animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.99); } /* Shrink the input field */
    100% { transform: scale(1); } /* Return to normal size */
}


/* Remove placeholder text when input is focused */
input:focus::placeholder {
    opacity: 0;
}

/* Styling for the form group */
.form-group input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc; /* Keep the border size at 1px by default */
    transition: all 0.4s ease;
    text-align: left; /* Ensure text is aligned left by default */
}



  /********************************************** End Screen 1 Styles ************************************************************************/






  /********************************************** Start Screen 2 Styles ************************************************************************/

  #english-language-button,
  #chinese-language-button {
    width: 100%; /* Full width of the parent container */
    padding: 10px;
    margin: 10px 0;
    background-color: #002a5d;
    color: #fff;
    border-radius: 100px;
    font-size: 18px;
    text-align: center;
    opacity: 1; /* Set initial opacity */
    transition: opacity 0.8s ease; /* Apply transition effect to opacity */
  }
  
   #chinese-language-button {
        font-size: 16px!important;
   }
  
  #english-language-button:hover,
  #chinese-language-button:hover {
    opacity: 0.7; /* Opacity on hover */
  }
  

@media(max-width:640px)
{
   
  #english-language-button,
  #chinese-language-button {
        width: 98%;
        max-width: 98%; 
    }
}

  

  @media(max-width:840px)
  {
    #english-language-button,
    #chinese-language-button:hover {
        opacity: unset
      }
  }

  
  .language-selector {
    display: flex;
    flex-direction: column;
    align-items: center; 
    width: 100%; 
    margin-bottom:40px;
  }
  

    
    .text-chinese {
        font-size: 15px;
        color: #002a5d;
        text-align: center;
        margin-bottom: 170px;
        width: 500px;
      }
      @media (max-width: 840px) {
        .text-chinese {
          width: 90%; /* Adjust text width for smaller screens */
        }
        }


  .text2 {
    font-size: 17px;
    color:#002a5d;
    text-align: center;
    margin-bottom: 90px;
    width: 500px;
    line-height:22px;
  }
  @media (max-width: 840px) {
.text2 {
  width: 90%; /* Adjust text width for smaller screens */
}
}


/* Default styling for the loading div */
#loading {
   display:none; /* Hidden by default */
    text-align: center; /* Centers the content inside the div */
    margin-bottom: 50px;
    display:none;
    position:absolute;
    margin-left:auto;
    margin-right:auto;
    left:0;
    right:0;
      margin-bottom: 240px;
    bottom: 0;
}


/* Loader Icon for comments */
#loading img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:40px;
  height:40px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media(max-width:840px)
{
  #loading img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:40px;
  height:40px;
  margin-bottom: 30px;
    bottom: 0;
}
}



.loading-image-icon img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:20px;
  height:20px;
   display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.uploading-text {
  font-size: 14px;
  color:#003d79;
  vertical-align: middle;
}


/* Flash animation for uploading text */
.animate__flash {
  animation: flash 2s ease-in-out infinite;
}

@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}


/* Heartbeat animation for uploaded text */
.animate__heartBeat {
  animation: heartBeat 1s ease-in-out;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}


#image-uploaded-preview {
   object-fit: cover;
   width:200px;
   height:300px;
   border-radius:12px;
   border:2px solid #043f7f;
   flex-wrap: wrap; 
   display:none;
}

.uploading-container {
    padding-top:5px;
    padding-bottom:0px;
    margin-bottom:-10px!important;
}
.success-text {
    font-size:16px;
    color:#003d79;
}




.loading-chat-icon {
  width: 35px;
  position: absolute;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  margin-bottom: 160px;
  bottom: 0;
  display: none; /* Initially hidden */
}

@media (max-width: 640px) {
  .loading-chat-icon {
    margin-bottom: 150px;
  }
}





.loading-chat-icon {
  width: 35px;
  position: absolute;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  margin-bottom: 160px;
  bottom: 0;
  display: none; /* Initially hidden */
}

@media (max-width: 640px) {
  .loading-chat-icon {
    margin-bottom: 140px;
  }
}

.three-balls-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px; /* Space between balls */
  height: 100%; /* Ensure proper alignment within parent */
}

.three-balls-loading span {
  width: 8px;
  height: 8px;
  background: #033f7f; /* Ball color */
  border-radius: 50%;
  animation: bounce-pulse 1s infinite ease-in-out;
}

/* Delayed animations for each ball */
.three-balls-loading span:nth-child(1) {
  animation-delay: 0s;
}
.three-balls-loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.three-balls-loading span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Combined bounce and pulse animation */
@keyframes bounce-pulse {
  0%, 100% {
    transform: translateY(0) scale(1); /* Start and end at normal size */
  }
  50% {
    transform: translateY(-6px) scale(1.2); /* Lower bounce height and slight pulse */
  }
}







.loading-chat-icon img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:35x;
  height:35px;
}
@media(max-width:640px)
{
    .loading-chat-icon img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:30px;
  height:30px;
 }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}





#loading-finish-session {
  margin-top:90px;
  width: 35px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  display: none; /* Initially hidden */
}

#loading-finish-session img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:35x;
  height:35px;
}
@media(max-width:640px)
{
    #loading-finish-session img {
  animation: spin 0.7s linear infinite;
  opacity: 1;
  width:30px;
  height:30px;
 }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}




  /********************************************** End Screen 2 Styles ************************************************************************/








  /********************************************** Start Screen 3 Chatbot Styles ************************************************************************/



/*Chat input area at bottom*/
.chat-input {
   margin-top: 10px;
    display: block;
    gap: 10px;
    padding-left: 10px;
    width: 800px;
    padding-bottom: 1px;
    position: fixed;
    z-index: 999999;
    bottom: 0px;
   border: 1px solid #e7e7e7b0 !important;
    box-shadow: 0 0 2rem 0 rgba(0, 0, 0, 0.316);
    transform: scale(0.8);
    box-shadow: 0 0 1rem 0 rgb(0 0 0 / 7%);
    background-color: #d4d4d469;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
    border-radius: 30px;
    margin-bottom: 20px;
}
/* Ensure the chat-box can scroll independently */
.chat-box {
    max-height: calc(100vh - 50px); /* Adjust 50px based on your .chat-input height */
    overflow-y: auto; /* Allow scrolling within the chat box */
    padding-bottom: 60px; /* Provide space for the .chat-input */
}



@media(max-width:840px)
{
    .chat-input {
        width: 96%;
        max-width: 98%;
        padding-bottom: 0px;
        margin-bottom: 0px;
        bottom: 0px;
        border: 1px solid #e7e7e7b0 !important;
        position: fixed;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        box-sizing: border-box;
        margin-bottom: 12px;
       
    } 
}



@media (max-width:640px) 
{
    .chat-input {
width: 100%;
max-width: 100%;
padding-bottom: 10px;
margin-bottom: 0px;
bottom: 0px;
border: 1px solid #e7e7e7b0 !important;
position: fixed;
overflow-x: hidden!important;
overflow-y: visible!important;
box-sizing: border-box;
border-radius: 0px;
padding-left: 21px;
 border-top-left-radius: 30px!important;
 border-top-right-radius: 30px!important;
    } 
}






/* Wrapper for input and icons (upload and send) */
.input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    right: 0;
    left: 0;
    padding-left: 0%;
    padding-right: 0.5%;
}

@media(max-width:840px) {
    .input-wrapper {
     max-width: 70%;
     padding-left: 0%;
     padding-right: 3.2%;
     position: relative; 
     margin-left: auto;
     margin-right: auto;
     left: 0;
     right: 0;
     text-align: center;
     margin-top:0px;
    }
}












.watermark {
 width: 7%;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  text-align: center;
  display: block;
  position: relative;
  z-index: 0;
  top: -10px;
  opacity: 0.3 !important;
}

@media(max-width:1450px) {
  .watermark {
 width: 13%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    display: block;
    position: relative;
    z-index: 0;
    opacity: 0.3 !important;
 } 
}



@media(max-width:880px) {
  .watermark {
 width: 22%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    display: block;
    position: relative;
    z-index: 0;
    opacity: 0.3 !important;
 } 
}


@media(max-width:640px) {
  .watermark {
 width: 38%;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    display: block;
    position: relative;
    z-index: 0;
    margin-top: 30px;
   margin-bottom: 0px;
   opacity: 0.3 !important;
 } 
}












.chat-box-wrapper {
  width: 100%;
    max-width: 700px;
    border: 0px solid #cccccc36;
    border-radius: 20px;
    background: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto;
    margin-top: -190px;
    margin-bottom: 98px;
    padding-top: 200px;
    overflow: hidden;
    padding-right: 50px;
}
  @media(max-width:840px)
  {
      .chat-box-wrapper {
         margin-bottom:90px;
         
      } 
  }
  


  
  
.chat-box-watermark {
  position: fixed;
  bottom: 40%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 30%;
  max-width: 300px;
  z-index: 9999;
  pointer-events: none;
  text-align: center;
  opacity: 0.3 !important;
}

.chat-box-watermark img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 640px) {
  .chat-box-watermark {
    width: 50%;
    max-width: none;
    bottom: 40%;
    opacity: 0.3 !important;
  }
}
 

  

/* The chat box responses */
.chat-box {
    width: 100%;
    max-width: 700px;
    border: 0px solid #cccccc36;
    border-radius: 20px;
    background: transparent;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding-top: 200px;
    overflow: auto;
    padding-right: 80px;
  }
  
  
  /* Create the fade effect at the bottom */
.bottom-gradient {
   height: 140px;
    position: absolute;
    width: 100%;
    margin-bottom: 180px;
    bottom: 0px;
  background: rgb(255,255,255);
background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 75%);
}


  @media(max-width:840px)
  {
      .chat-box {
          width: 100%;
          max-width: 93%;
          border: none;
          margin-left:0px;
           margin-top: -100px;
           margin-bottom: -30px;
          padding-righ:unset;
      } 
  }
  
  
    @media(max-width:640px)
  {
      .chat-box {
          width: 100%;
          max-width: 93%;
          border: none;
          margin-left:-30px;
          padding-righ:unset;
      } 
  }
  
  


  .chat-message {
    margin: 10px 0;
  }

  .chat-message.user {
    text-align: left;
    color: #333;
    font-size:18px;
    margin:20px;
    animation: fadeInUp 0.7s ease-out;
    position: relative;
    z-index: 9999999;
  }

@media(max-width:840px)
{
    .chat-message.user {
    margin-left: 0px;
}   
}

  @media(max-width:640px)
  {
    .chat-message.user {
    margin-left: -20px; 
  }
 }


  @keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px); /* Starts below the original position */
  }
  100% {
    opacity: 1;
    transform: translateY(0); /* Ends at the original position */
  }
}

  .chat-message.response {
    text-align: right;
    color: #003d79;
    font-size:18px;
    margin:20px;
    opacity: 0;
  animation: fadeIn 0.5s ease-out 0.5s forwards; 
  text-align:left;
   position: relative;
    z-index: 9999999;
  }
  
/* Keyframe for fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0; /* Starts invisible */
  }
  100% {
    opacity: 1; /* Fully visible */
  }
}
  



  

  .chat-input button {
    background-color: #003d79;
    color: white;
    padding: 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding-right: 13px;
    margin-left: -1px;
    padding-top: 22px;
}
@media (max-width:840px)
{
    .chat-input button {
        padding-right: 20px;
        margin-left: -2px;  
        padding-top: 20px;
    }
}





  
/* Basic styling for contenteditable */
.message-input {
    width: 100%;
    font-family: sans-serif;
    font-size: 18px;
    line-height: 1.5rem;
    outline: none;
    padding: 0.5rem;
    border-radius: 20px;
    box-sizing: border-box;
    min-height: 2.5rem;
    color: #003d79;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
  }
  
 


/* Input container styling */
.input-container {
    border: 1px solid #cccccc8a;
    border-radius: 30px;
    padding: 0.2rem;
    box-sizing: border-box;
    min-height: 2.5rem; /* Minimum height for single line */
    overflow: auto;
    display: flex;
    align-items: center;
    min-width: 600px; /* Default width */
    transition: border-color 0.3s ease; /* Smooth transition for focus effect */
    margin-top: 4px;
    background:#fff;
  }
  

  /* Media query for smaller screens */
  @media (max-width: 840px) {
    .input-container {
        min-width:100%; /* Default width */
      width: 100%; /* Adjust width to 80% for screens <= 840px */
    }
  }
  
  
  /* Change border color on focus */
  .input-container:focus-within {
    border: 1px solid #003d79;
  }
  /* Styling the contenteditable div */
.message-input {
    resize: none; /* Disable resizing */
    width: 100%;
    font-family: sans-serif;
    font-size: 17px;
    line-height: 1.5rem;
    outline: none; /* Remove the native focus outline */
    color: #003d79;
    white-space: pre-wrap; /* Preserve spaces and wrap text */
    word-wrap: break-word; /* Break long words to avoid horizontal scrolling */
    overflow-wrap: break-word; /* Ensure compatibility with modern browsers */
    max-height: 60vh; /* Maximum height is 60% of the viewport height */
    overflow-y: auto; /* Enable vertical scrollbar when content overflows */
  }
  
  /* Placeholder styling */
  .message-input[placeholder]:empty::before {
    content: attr(placeholder);
    color: #003d7950; /* Cooler color for placeholder text */
    pointer-events: none; /* Prevent interaction with the placeholder text */
    display: block; /* Ensure placeholder takes up space */
  }
  
  /* Prevent horizontal resizing */
  .message-input {
    max-width: 100%;
  }
  

  
  /* General contenteditable div styling */
  div[contenteditable] {
    width: 100%;
    font-family: sans-serif;
    font-size: 17px;
    line-height: 1.5rem;
    padding: 0.5rem;
    border-radius: 20px;
    box-sizing: border-box;
    min-height: 2.5rem; /* Minimum height for single line */
    max-height: 40vh; /* Maximum height is 60% of viewport height */
    overflow-y: auto; /* Enable vertical scrolling when content exceeds max height */
    overflow-x: hidden; /* Prevent horizontal scrolling */
    color: #003d79;
    text-align: left;
  }

  


  /* Hide the default file input */
  input[type="file"] {
    display: none;
  }
  
  /* Styling for icons */
  .upload-icon, .send-icon {
    cursor: pointer;
    width: 45px; /* Control icon size */
    height: 45px; /* Control icon size */
    opacity: 1; /* Set initial opacity */
    transition: opacity 0.8s ease; /* Apply transition effect to opacity */
    margin: 0 10px; /* Adds spacing around icons */
  }
  


  @media(max-width:840px)
{
    .upload-icon, .send-icon {
        margin-top: 4px;
        cursor: pointer;
        width: 40px; /* Control icon size */
        height: 40px; /* Control icon size */
    }
    .upload-icon {
        padding-left: 7px;
    }
}
  
  /* Optional hover effect for icons */
  .upload-icon:hover, .send-icon:hover {
    opacity: 0.7; /* Slightly transparent on hover */
  }
  @media(max-width:840px)
  {
    .upload-icon:hover, .send-icon:hover {
        opacity: 1; /* no hover on app */
      }
  }

  /********************************************** End Screen 3 Chatbot Styles ************************************************************************/






   /********************************************** Added ChatBot messages styles ************************************************************************/



/* User's chat message on the left */
.chat-message.user {
    background: #f7f7f7;
    border-radius: 22px;
    padding: 18px;
    align-self: flex-end;  /* Align to the left */
    max-width: 70%;  /* Optional: Limit width of message */
     word-break: break-word; 
     overflow-wrap: break-word; 
  }
  
/* Custom GPT Response chat message on the right */
.chat-message.response {
    background: #003d79;
    color: #f7f7f7;
    border-radius: 22px;
    padding: 18px;
    align-self: flex-start;  /* Align to the right */
    max-width: 70%;  /* Optional: Limit width of message */
}

@media(max-width:840px)
{
   .chat-message.response {
    max-width: 75%;  
   } 
}


  #spacer {
      height:100px;
      width:40px;
  }
  @media(max-width:840px)
  {
       #spacer {
         height:20px;
         width:0px;
      } 
  }



.bigginscott-custom-GPT-chat-icon {
    width: 35px;
    height: 35px;
    position: relative;
    z-index: 2;
    margin-top: -33px;
    margin-left: -35px;
    margin-bottom: -10px;
   
}

@keyframes constantpulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}





#produce-and-send-report-button {
    width: 70%;
    max-width: 150px;
    padding: 10px;
    margin: 10px 0;
    background-color: #002a5d;
    color: #fff;
    border-radius: 100px;
    font-size: 18px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.8s ease;
    margin-bottom: 30px;
    display: block;
    position: absolute;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    margin-bottom: 140px;
    bottom: 0px;
    display:none;
    border: 1px solid;
    border-color: #ffffff;
animation: pulse-infinite 1.5s infinite ease-in-out;
}

/* Pulse Animation */
@keyframes pulse-infinite {
  0%, 100% {
    transform: scale(1); /* Normal size */
  }
  50% {
    transform: scale(1.1); /* Slightly larger */
  }
}


#produce-and-send-report-button:hover {
    opacity: 0.7; /* Opacity on hover */
  }
  @media(max-width:840px)
  {
   #produce-and-send-report-button:hover {
        opacity: unset
      }
  }


@media(max-width:840px)
{
    #produce-and-send-report-button {
    width: 180px;
    max-width: 180px;
    padding: 6px; 
    margin-bottom: 130px;
    }
}





 /********************************************** End Screen  Chat bot Styles ************************************************************************/

 h1 {
     font-size: 30px;
     color:#002a5d;
 }
 .text-admin {
    font-size: 1rem;
    color:#002a5d;
    text-align: center;
    margin-bottom: 30px;
    width: 500px;
    line-height:22px;
 }
  @media (max-width: 840px) {
    .text-admin {
  width: 90%; /* Adjust text width for smaller screens */
}
}

#upload-PDF {
width: 200px;
height: auto;
margin-top: 0px;
margin-bottom: 100px;
animation: constantpulse 1.5s infinite; /* Apply the pulse animation */
}

@keyframes constantpulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}


#pdf-preview {
    border-radius: 30px;
    width: 300px;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: -50px;
}



@media (max-width: 840px) {
    #login-form {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
        left: 0;
        right: 0;
        display: block;
        text-align: center;
        padding-right: 6.5%;
    }
}


@media (max-height: 400px) {
    
    #login-form {
       margin-top:400px;
    }
}

  #hide-screen-header {
        filter: brightness(1);
    }


  /********************************************** Admin Area Styles ************************************************************************/





/**Dark mode**/

@media (prefers-color-scheme: dark) {
    
 
  body, html {
    background-color: #192229 !important;
}


.header {
  filter: brightness(1.6);   
}

    #hide-screen-header {
        filter: brightness(1.6);
    }

  .screen-splash {
    background-color: #192229 !important; 
  }


/* Fade out while keeping background color */
.screen-splash.fade-out {
    opacity: 0;
    pointer-events: none; /* Ensures it doesn’t interfere */
}





    
.screen,.chat-box, .chat-box-wrapper  {
    background-color:#192229;
}






.chat-input {
        background-color: #202a33;
        border-color:#e7e7e717 !important;
}
    
    
    .chat-message.user {
            background: #2e3a45;
            color:white;
    }
    
    
    
    
     /* Styling the contenteditable div */
.message-input {
   color:silver;
  }
  
  /* Placeholder styling */
  .message-input[placeholder]:empty::before {
    content: attr(placeholder);
    color: grey; /* Cooler color for placeholder text */
  }
  
  .input-container {
      background: transparent;
  }
  
   div[contenteditable] {
       color:white;
   }
   
   
   /* Customize input focus */
input:focus {
    outline: none; /* Remove the default outline */
    border: 0px solid; 
}


button {
    outline: none !important;
    border: 1px solid #ffffffab;
}
    
    
    .text,.text2, .title1, .text-chinese { 
        color:white;
    }
    
    
    #screen-1-inputs {
        background-color: #d4d4d41a;
    }
    
    
    input {
    color: white;
    background: #25282b;
    }
    
    
  .text-admin {
        color:white;
    }



#loading-overlay {
    background: rgb(54 54 54 / 90%);
  }


    
}

