* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header.nav_bar {
  width: 100%;
  height: 90px;
  box-shadow: 0px 0px 10px 0px #89898945;
  padding: 15px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
}
header.nav_bar img {
  max-width: 270px;
  width: 100%;
}
.upload_pdf {
  margin: 30px 0px;
  padding: 0px 30px;
}
.wrapper {
  min-height: 765px;
  background: #39bec212;
  border-radius: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.wrapper h2 {
  font-size: 50px;
  font-weight: 700;
  text-align: center;
  line-height: 70px;
  color: #3c3c3b;
}
.wrapper h2 span {
  color: #39bec2;
}

.chat-wrapper {
  min-height: 200px;
  background: #39bec212;
  border-radius: 10px;
  width: 100%;
  padding: 30px;
}
.pdf_block {
  width: 100%;
  height: 100%;
}
/* ===== Button Upload ========= */
.js .input-file-trigger {
  display: block;
  padding: 14px 45px;
  background: #39bec2;
  color: white;
  font-size: 20px;
  font-weight: 600;
  transition: all 0.4s;
  cursor: pointer;
  border-radius: 10px;
}
.js .input-file {
  position: absolute;
  top: 0;
  left: 0;
  width: 225px;
  padding: 14px 0;
  opacity: 0;
  cursor: pointer;
}

/* quelques styles d'interactions */
.js .input-file:hover + .input-file-trigger,
.js .input-file:focus + .input-file-trigger,
.js .input-file-trigger:hover,
.js .input-file-trigger:focus {
  background: #3c3c3b;
  text-decoration: none !important;
}

/* styles du retour visuel */
.file-return {
  margin: 0;
}
.file-return:not(:empty) {
  margin: 1em 0;
}
.js .file-return {
  font-style: italic;
  font-size: 0.9em;
  font-weight: bold;
}

.credit {
  border: 1px solid #ddd;
  padding: 2px;
  width: 410px;
  background: #eee;
  border-radius: 5px;
  position: absolute;
  bottom: 0;
}

/* ======= Chat Box =========== */

.chat_block .card {
  height: 100%;
  width: 100%;
  background-color: white;
}

.chat_block .card #header {
  background: #323639;
}
.pdf_block iframe {
  min-height: 630px;
  height: 100%;
}

.chat_block .card #header h1 {
  color: #fff;
  font-size: 20px;
  font-family: "Finger Paint", cursive;
  padding: 10px;
}

.chat_block .card #message-section::-webkit-scrollbar {
  width: 10px;
}

.chat_block .card #message-section {
  height: 30vw;
  padding: 0 2.5vw;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.chat_block .card #message-section::-webkit-scrollbar-track {
  background: var(--scrollbarBG);
}

.chat_block .card #message-section::-webkit-scrollbar-thumb {
  background-color: var(--thumbBG);
  border-radius: 6px;
  border: 3px solid var(--scrollbarBG);
}

.chat_block .card #message-section #bot,
.chat_block .card #message-section #user {
  position: relative;
  bottom: 0;
  min-height: 1.5vw;
  border: 1px solid #323639;
  background-color: #fff;
  border-radius: 0px 1.5vw 1.5vw 1.8vw;
  padding: 1vw;
  margin: 1.5vw 0;
}
.chat_block .card #message-section #bot1
{
  position: relative;
  bottom: 0;
  min-height: 1.5vw;
  
  background-color: #43bdc133;
  border-radius: 0px 1.5vw 1.5vw 1.8vw;
  padding: 1vw;
  color:black;
  margin: 1.5vw 0;
}

.chat_block .card #message-section #user {
  border: 1.5px solid grey;
  border-radius: 1.5vw 0vw 1.5vw 1.8vw;
  background-color: #e3e3e3;
  float: right;
  color:black;
}


.chat_block .card #message-section .message {
  color: #3c3c3b;
  clear: both;
  line-height: 1.2vw;
  font-size: 1.2vw;
  padding: 8px;
  position: relative;
  margin: 8px 0;
  max-width: 85%;
  word-wrap: break-word;
  z-index: 2;
}

.chat_block .card #input-section {
  width: 100%;
  padding: 15px;
  position: relative;
}

.chat_block .card #input-section input {
  color: #3c3c3b;
  outline: none;
  height: 60px;
  width: 100%;
  border: 1px solid #39bec27a;
  padding: 15px;
  border-radius: 50px;
  box-shadow: 0px 0px 5px 1px #39bec21f;
}

.chat_block .card .send {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.chat_block .card .send .circle {
  position: absolute;
  right: 40px;
  top: 23%;
  width: 30px;
  height: 30px;
}

.chat_block .card .send .circle em {
  font-size: 40px;
  color: #39bec2;
}



/* new css 07-01-2024 */

body {
  background-color: #fff;
}

body:after{
  content: '';
  background: url(../img/bg_stethoscope2.png) no-repeat;
  background-position: 15%;
  background-size: contain;
  width: 100%;
  height: 85vh;
  position: fixed;
  bottom: 20px;
  z-index: -1;
  opacity: 0.08;
}

.site-header {
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header .site-navigation ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  align-items: center;
}
.site-header .site-navigation ul li a{
  color: #000;
  text-decoration: none;
  transition: 0.3s;
}
.site-header .site-navigation ul li a:hover{
  color: #43bdc1;
}

.site-header .site-navigation ul li:last-child a {
  background: #43bdc1;
  color: #fff;
  padding: 8px 20px;
  border-radius: 5px;
}

.site-header .site-navigation ul li:last-child a:hover{
  background: #000;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1200px;
  width: 100%;
  padding: 0 30px;
  margin: 20px auto;
  gap: 30px;
}

header {
  background-color: #fff;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.04);
}

.doc-cards .card img {
  height: 300px;
  object-fit: cover;
  object-position: top;
  border-radius: 10px 10px 0 0;
}

footer {
  text-align: center;
  padding: 20px 30px;
  border-top: 1px solid #e5e5e5;
  background: rgba(255, 255, 255, 0.8);
}

footer p{
  margin: 0;
  color: #6c6c6c;
}

.doc-cards .card .card-body {
  display: flex  ;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px 16px;
  background: #43bdc10a;
  border-radius: 0 0 10px 10px;
}

.doc-cards .card .card-title{
  color: #43bdc1;
  margin: 0;
  font-size: 24px;
  font-weight: 500;
}

.doc-cards .card .card-body a {
  height: max-content;
  background: #43bdc1;
  border: 1px solid #43bdc1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* .doc-cards .card:before {
  content: '';
  background: rgba(0,0,0,0.2);
  height: 300px;
  position: absolute;
  top: 0;
  z-index: 99;
  width: 100%;
  border-radius: 10px 10px 0 0;
} */

.doc-cards .card {
  border: none;
  box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 10px 10px 10px 10px;
  transition: transform 0.3s ease;
  transform: translateZ(0);
  -webkit-font-smoothing: subpixel-antialiased;
}

.ic-chat{
  background: url(../img/ic_chat.svg) no-repeat;
  background-size: contain;
  width: 25px;
  height: 25px;
  display: inline-block;
}

/* chat window css */
section.chat-window {
  padding: 0;
  margin: 0;
}



section.chat-window.cardio::after{
  background: url(../img/Cardiologist-1.jpg) no-repeat;
}

section.chat-window.ortho::after{
  background: url(../img/Orthologist-1.jpg) no-repeat;
}

section.chat-window.physician::after{
  background: url(../img/Physician.jpg) no-repeat;
}

section.chat-window.dentist::after{
  background: url(../img/Dentist-1.jpg) no-repeat;
}

section.chat-window::after{
  content: '';
  background-size: contain !important;
  background-position: 80% !important;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: -1;
  opacity: 0.2;
}
.chat-window .chat-wrapper {
  background: transparent;
  min-height: calc(100vh - 135px);
}

.doc-cards-container{
  min-height: calc(100vh - 135px);
  display: flex;
  align-items: center;
}

.chat-window .chat-wrapper .offset-md-2{
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto;
}

.chat-window #message-section {
  background: none;
  padding: 0 !important;
  min-height: 60vh;
  height: auto !important ;
}

.chat-window .chat_block .card{
  background-color: transparent;
  border: none;
}

.chat-window .chat_block .card #header{
  background: #000;
  display: none;
}
.chat-window .chat_block .card #header h2{
  text-align: left;
  font-size: 18px;
  font-weight: 300;
}

body.ai-chat-container:after {
  background: none;
}

.chat-window .chat_block .card #input-section input{
  border-radius: 10px;
  background-color: #f4f4f4;
  padding-right: 60px;
}

.chat-window .chat_block .card .send .circle em{
  font-size: 32px;
}

.chat-window .chat_block .card #input-section{
  position: relative;
  padding: 30px 0;
}

.chat-window .chat_block .card .send .circle{
  right: 30px;
  top: 45px;
}

.chat-window .spinner-grow {
  position: absolute;
  bottom: -22px;
  right: 0;
}

.chat-window .chat_block .card #message-section #user {
  border: none;
  
  padding: 10px;
  font-size: 16px;
  background: #43bdc145;
  color: black;
  line-height: 26px;
  opacity:0.8;

}

.chat-window .chat_block .card #message-section #bot1 {
  border-radius: 15px 15px 15px 0;
  padding: 10px;
  min-height: auto;
  line-height: 32px;
  font-size: 16px;
}

.chat-window .chat_block .card #message-section #bot {
  border-radius: 0;
  font-size: 16px;
  padding: 0 10px;
  width: max-content;
  background: transparent;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: none;
  border-right: .15em solid #43bdc1;
  white-space: nowrap;
  letter-spacing: 1px;
  line-height: 20px;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from { width: 0 }
  to { width: 20% }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: #43bdc1; }
}



@media screen and (max-width: 991px) {
  .doc-cards .card-body {
      flex-direction: column;
      row-gap: 15px;
  }
  .chat-window .chat-wrapper .offset-md-2 {
    padding: 0;
  }
}
@media screen and (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
    height: 45px;
  }
  .site-header img {
    max-width: 100%;
  }
  footer {
    padding: 16px;
  }
  .chat-window .chat-wrapper {
    min-height: calc(100vh - 102px);
  }
  .chat-window .chat_block .card #message-section #bot1 {
   line-height: 26px;
  }
  .doc-cards {
    grid-template-columns: repeat(1,1fr);
    padding: 0 16px;
  }
}