
  #messages__container {
    height: calc(100vh - 4.7rem);
    background-color: #ffffff;
    right: 0;
    position: absolute;
    width: 100%;
    max-width: 25rem;
    overflow-y: auto;
    border-left: 1px solid lightgray;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    padding: 0;
    z-index: 4 !important;
  }
  
  
  .chat__name {
    border: none;            /* Remove border */
    background-color: transparent; /* Make background transparent */
    padding: 0;              /* Remove padding */
    font-size: inherit;      /* Use the same font size as the parent element */
    font-family: inherit;    /* Use the same font family as the parent element */
    line-height: inherit;
    font-weight: 500;    /* Use the same line height as the parent element */
    color: var(--action);          /* Use the same text color as the parent element */
    cursor: pointer;         /* Set cursor to default (not clickable) */
    outline: none;           /* Remove focus outline */
    appearance: none;        /* Remove default input appearance (e.g., on iOS) */
    -webkit-appearance: none;
    width: 100%; /* Remove default input appearance on WebKit browsers (e.g., Safari) */
}

.chat__name__focus{
  border: solid 1px var(--action);

}

  
  
  
  #translate__language__select{
    height: 2rem;
    margin: .5rem;
    border-radius: .5rem;
    background-color: #2196F3;
    color: white;
    border: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: calc(100% - 1rem);
  
  
  }
  
  #language__select{
    height: 2rem;
    margin: .5rem;
    border-radius: .5rem;
    background-color: #2196F3;
    color: white;
    border: none;
    padding-left: .5rem;
    padding-right: .5rem;
    width: calc(100% - 1rem);
  }
  
  #language__select:focus{
    border: none;
  
  
  }
  
  .speak__button{
    background-color: #2196F3;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: .5rem;
  }
  
  .speak__button:hover{
    cursor: pointer;
  }
  
  
  
  
  
  
  
  
  .toggle-container {
    display: flex;
    align-items: center;
    justify-content: end;
  }
  
  .switch {
    position: relative;
    display: inline-block;
    width: 2rem; /* Adjusted width to 2rem */
    height: 1rem; /* Adjusted height to 1rem */
    margin-right: 0.5rem; /* Adjusted margin */

  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 0.5rem; /* Adjusted border-radius */
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 0.8rem; /* Adjusted height */
    width: 0.8rem; /* Adjusted width */
    left: 0.1rem; /* Adjusted position */
    bottom: 0.1rem; /* Adjusted position */
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  input:checked + .slider {
    background-color: #2196F3;
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .slider:before {
    transform: translateX(0.9rem); /* Adjusted translation */
  }
  
  
  
  
  
  
  #translation__listening {
    height: 2rem;
    background-color: white;
    color: #0096e3;
    font-weight: 600;
    font-size: large;
  }
  
  
  
  
  
  
  
  
  #translation__options {
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center; /* Align items vertically */
    border-bottom: solid 1px lightgray;
    border-top: solid 1px lightgray;
    color: black;
  }
  
  .select_text{
    margin: .5rem;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .icon__button{
    height: 2rem;
    width: 2rem;
    background-color: #0096e3;
    border-radius: .5rem;
    margin: .5rem;
  }
  
  #messages {
    width: 100%;
    height: calc(100vh - 4.7rem - 18rem);
    padding-top: 3rem;
    overflow-y: auto;
  }
  
  .message__wrapper:last-child {
    margin-bottom: 6.5rem;
  }
  
  .message__wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 1em;
  }
  
  .message__body {
    background-color: #ffffff;
    border-radius: 0.5rem 0.5rem 0.5rem 0;
    padding: 0.5rem;
    width: fit-content;
    max-width: calc(100% - 1rem);
    color: black;
    border: solid lightgray 1px;
    box-shadow: 0 0.25rem 0.25rem rgb(0 0 0 / 0.1);
  }
  
  .message__body strong {
    font-weight: 600;
    color: #ede0e0;
  }
  
  .message__body__bot {
    padding: 0 20px;
    max-width: 900px;
    color: #bdbdbd;
  }
  
  .message__author {
    margin-right: 10px;
    color: #0096e3 !important;

  }
  .message_timestamp {
    color: gray;
    font-size: small;
    width: 100%;
    text-align: right;
  }
  
  .message__author__bot {
    margin-right: 10px;
    color: #0096e3 !important;
  }
  
  .message__text {
    margin: 0;
  }
  
  #message__form {
    width: calc(100% - 2rem);
    display: block;
    background-color: transparent;
    padding: 1rem;
    margin: 0;
  }
  
  #message__form input {
    color: #fff;
    width: 100%;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    font-size: 14px;
    box-sizing: border-box;
    background-color: #0096e3;
  
    margin: 0;
  }
  
  #message__form input:focus {
    outline: none;
  }
  
  #message__form input::placeholder {
    color: rgb(231, 231, 231);
  }
  /* ######################################################################################## END */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .translation__wrapper {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: .5rem;
  }



  .float-out-animation {
    animation: floatOut 0.5s ease both; /* Adjust the duration and easing as needed */
    /* Add transition for height property */
    height: auto; /* Set initial height to 'auto' */
    max-height: 1000px; /* Set a maximum height, adjust as needed */
    transition: height 3 ease; /* Transition height property */
}

@keyframes floatOut {
  to {
      transform: translateX(-100%);
      max-height: 0;
      overflow: hidden;
      opacity: 0; /* Fade out the card */
  }
}



  
  .translation__body {
    background-color: #ffffff;
    width: fit-content;
    max-width: calc(100% - 1rem);
    color: black;
    border: dashed lightgray 1px;
    border-radius: .5rem;

    box-shadow: .5rem .5rem 1rem rgba(0, 0, 0, 0.05); 

  }

  .chat__button__body {
    background-color: #ffffff;
    width: 100%;
    max-width: calc(100% - 1rem);
    color: black;
    border: solid lightgray 1px;
    border-radius: .5rem;
  }

  .chat__button__body:hover{
    cursor: pointer;
  }
  
  .translation__box{
    display: grid;
    grid-template-columns: 1fr auto;
    justify-content: center;
    align-items: center;
  }
  
  .translation__head{
    display: grid;
    grid-template-columns: auto 1fr auto;
    justify-content: center;
    align-items: center;
    border-bottom: solid lightgray 1px;
    padding: .5rem;
  }

  .chat__button__layout{
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    justify-content: center;
    align-items: center;
    padding: .5rem;
  }
  
  .translation__heading__text{
    color: gray;
    margin-bottom: .5rem;
  }
  
  
  .translation__content{
  
  padding: .5rem;
  }
  
  
  .translation__text{
    padding: 1rem;
    color: black;
    border-radius: .5rem;
    border: 2px solid var(--action);
  }

  .original__text{
    padding: 1rem;
    color: gray;
    border-radius: .5rem;
    margin-bottom: .5rem;
    border: solid lightgray 1px;
  }
  
  
  
  .translation__icon{
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-right: .5rem;
    background-image: url("../assets/translation_icon.svg");
    background-position: center;
    background-size: cover;
  }

  .chat__icon{
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-right: .5rem;
    background-image: url("../assets/chat_icon.svg");
    background-position: center;
    background-size: cover;
  }
  
  
  .speak__icon{
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-left: .5rem;
    background-image: url("../assets/speak_icon.svg");
    background-position: center;
    background-size: cover;
    background-color: #2196F3;
    border-radius: .5rem;
  }



  .delete__icon{
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-left: .5rem;
    background-image: url("../assets/delete_icon.svg");
    background-position: center;
    background-size: cover;
    border-radius: .5rem;
  }

  .delete__icon:hover{
    cursor:pointer;
  }

  .edit__icon{
    width: 1rem;
    height: 1rem;
    padding: .5rem;
    margin-left: .5rem;
    background-image: url("../assets/edit_icon.svg");
    background-position: center;
    background-size: cover;
    border-radius: .5rem;
  }
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  /* TRANSLATION */
  /* ######################################################################################## START */
  
  #translation__container__new{
  
    background-color: transparent;
    width: 20rem;
    height: calc(100vh - 4.7rem) !important;
  
    position: absolute;
    top: 4.7rem; 
    right: 25rem;
  
    z-index: 2;
  
    overflow-y: auto;
  }
  
  #translation__container {
    height: 2rem;
    width: calc(100%- 2rem);
    height: 4rem;
    overflow-y: auto;
    z-index: 100;
  
    background-color: white;
  
    color: black;
    padding: 1rem;
    justify-content: center;
    align-items: center;
  }
  
  





  #translation__mode{
    background-image: url("../assets/translation_one_icon.svg");
    background-position: center;
    background-size: cover;
    background-size: 2rem;
    background-repeat: no-repeat;
    width: 2rem;
    height: 2rem;
  }  
  
  
  
  

  .content__area{
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto auto auto;
  }



  #header__section{

    display: grid;
    grid-template-columns: auto 1fr auto;
    border-bottom:solid 1px var(--shadow);
    text-align: center;
    padding: .5rem;
    color: gray;
    min-height: 2rem;
    justify-content: center;
    text-align: center;
    align-items: center;
  }



  

  .information{
    border-top:solid 1px var(--shadow);
    font-size: 12px;

    text-align: center;
    padding: .5rem;
    color: gray;
  }

  .auto__translation__section{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-content: center;
    padding: .5rem;
    padding-right: 0;
    align-items: center;
    border-top: solid lightgray 1px;
  }

  .auto__translation__indicator{
    width: 1rem;
    height: 1rem;
    background-color: white;
    border: solid lightgray 1px;
    border-radius: 50%;
  }

  .auto__translation__headline{
    font-size: 12px;
    color: gray;
    text-align: center;
  }





/*Message Section*/
/*_______________________________________________________________________________*/

#message-input {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr auto auto;
  justify-content: end;
  align-items: end;
  flex-direction: row; /* To allow the textarea to grow vertically */
  background-color: #f0f0f0;

  width: 100%;
  height: fit-content;
}

#message-textfield {
    padding: 10px;
    border: none;
    border-radius: 5px;
    overflow-y: auto; /* Allow scrolling */
    resize: none;
    height: 1.5rem; /* Adjust as needed for the height of one line */
    max-height: 160px; /* Maximum height for 4 lines */
    background-color: transparent;
}
#message-textfield:focus {
    outline: none; /* Remove the default focus outline */
}

#send-button {
    background-color: var(--action);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-self: end;
    width: 3rem;
    height: 3rem;
    margin: .5rem;
}




.send-icon{
  background-image: url("../assets/send_icon.svg");
  background-position: center;
  background-size: cover;
  background-size: 2rem;
  background-repeat: no-repeat;
}






.record-icon{
  background-image: url("../assets/record_icon.svg");
  background-position: center;
  background-size: cover;
  background-size: 2rem;
  background-repeat: no-repeat;
}







#message-button-section {
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
}


















#menu {
  background-color: #f0f0f0;
  color: black;
  border-right: var(--shadow) 1px solid;
  width: calc(100vw - 3rem - 1px);
  height: 100vh;
  position: fixed;
  left: calc(-100vw - 4rem);
  top: 0;
  transition: left 0.3s;
  z-index: 10;

  display: grid;
  grid-template-rows: auto 1fr auto;

  box-shadow: .5rem 0 1rem rgba(0, 0, 0, 0.1); 
}

#chats{
  height: 100%;
  overflow-y: scroll;
}

#menu.active {
  left: 0;
}

#menu-button {
  background-color: var(--action);
  color: white;
  cursor: pointer;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;

  background-image: url("../assets/hamburger_icon.svg");
  background-position: center;
  background-size: cover;
  background-size: 1rem;
  background-repeat: no-repeat;

  transition: background-image 0.3s ease, background-color 0.3s ease;
}


#menu-button.active {
  background-image: url("../assets/close_icon.svg");
  background-color: var(--error);
}


#add-chat-button {
  background-color: var(--action);
  color: white;
  cursor: pointer;
  height: 2rem;
  width: 2rem;
  border-radius: 50%;

  background-image: url("../assets/add_chat_icon.svg");
  background-position: center;
  background-size: cover;
  background-size: 1rem;
  background-repeat: no-repeat;

}

#add-chat-section{
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  padding: .5rem;
}



#logo {
  background-color: transparent;
  color: white;
  cursor: pointer;
  height: 2rem;
  width: 2rem;

  background-image: url("../assets/one_risk_bridge_logo.svg");
  background-position: center;
  background-size: cover;
  background-size: 2rem;
  background-repeat: no-repeat;

}
















body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

#app {
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  height: 100vh;

  transition: max-height 0.5s ease;
}


#chat-list {
  /* Add your styles for the chat list here */
}

#chat-area {
  overflow-y: scroll;
  background-color: #f0f0f0;
  z-index: 1;
  width: 100%;
  padding-bottom: 1rem;
  height: calc(100% - 1rem);
  overflow-x: hidden;

  /* Add your styles for the chat area here */
}

#welcome-screen{
  background-image: url("../assets/bridge_background.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: grid;
  grid-template-rows: 1fr auto auto;
  justify-content: center;
  align-items: center;
  height: calc(100% - 1rem);

  color: white;
  padding-bottom: 1rem;
  width: 100%;
  text-align: center;
}

#bridge-logo{
  background-image: url("../assets/bridge.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 10rem;
}







#information-section{
  width: 100%;
  text-align: center;

  margin-bottom: .5rem;
  color: var(--background-gray);
  font-size: 12px;
}





  @media only screen and (min-width: 900px) {
      #menu {
          width: 300px;
          left: -300px;
      }
  }








/* Style the scrollbar track (background) */
::-webkit-scrollbar {
width: .5rem; /* Set the width of the scrollbar */
}

/* Style the scrollbar thumb (handle) */
::-webkit-scrollbar-thumb {
background-color: var(--shadow); /* Set the background color of the thumb */
border-radius: .25rem; /* Add rounded corners to the thumb */
}

/* Optional: Style the scrollbar track on hover */
::-webkit-scrollbar-thumb:hover {
background-color: #555; /* Change the background color on hover */
}













#personal-section{

display: grid;
grid-template-rows: 2;
border-top: solid 1px lightgray;

}


.user-section{
  display: grid;
  grid-template-columns: auto 1fr;
  border: solid 1px lightgray;
  align-items: center;
  margin: .5rem;
  border-radius: .5rem;
}

.personal-information{

}




.user-image{
  height: 3rem;
  width: 3rem;
  border-radius: 100%;
  background-color: var(--action);
  margin: .5rem;
  justify-self: center;
  display: grid;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 24px;
}
