body {
  background-color: black;
  font-family: siffon;
}

h2 {
  font-size: 18px;
  padding: 10px 20px;
  color: #ffffff;
}

#video-chat-form {
  text-align: center;
  max-width: 600px;
  background-color: #555;
  margin: 30px auto;
}

#chat-window {
  height: 400px;
  overflow: auto;
  background: #f9f9f9;
}

#output p {
  padding: 14px 0px;
  margin: 0 20px;
  border-bottom: 1px solid #e9e9e9;
  color: #555;
}

#feedback p {
  color: #aaa;
  padding: 14px 0px;
  margin: 0 20px;
}

#output strong {
  color: #574d4d;
}

label {
  box-sizing: border-box;
  display: block;
  padding: 10px 20px;
}

input {
  padding: 20px;
  box-sizing: border-box;
  background: #eee;
  display: block;
  width: 100%;
  background: rgb(255, 253, 253);
  font-family: siffon;
  font-size: 16px;
}

#join {
  background: #302e2e23;
  color: #fff;
  font-size: 18px;
  padding: 12px 0;
  width: 100%;
}

  #video-chat-rooms{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    position: relative;
} 
.btn-group button{
  border: 1px solid rgb(175, 185, 175); 
  color: white; 
  padding: 10px 24px; 
  cursor: pointer; 
  float: left; 
  bottom: 0;  
  margin: 10%;
}

.btn-group button:not(:last-child) {
  border-right: none; /* Prevent double borders */
}

/* Clear floats (clearfix hack) */
.btn-group:after {
  content: "";
  clear: both;
  display: table;
}

.btn-group{
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  position: absolute;
  bottom: 0;
}


/* Add these styles to your css/style.css */

#chat-container {
position: fixed;
top: 0;
right: 0;
width: 300px;
height: 100%;
background-color: #f4f4f4;
border-left: 1px solid #ccc;
display: flex;
flex-direction: column;
}

#messages {
flex: 1;
overflow-y: auto;
padding: 10px;
}

#chat-input {
padding: 10px;
border: none;
border-top: 1px solid #ccc;
outline: none;
}

#send-button {
padding: 10px;
border: none;
background-color: #4caf50;
color: white;
cursor: pointer;
}

/* Add these styles to your css/style.css */

.left-message {
background-color: #dff0d8; /* Example background color for Patient's messages */
color: #3c763d; /* Example text color for Patient's messages */
padding: 10px;
margin-bottom: 5px;
border-radius: 10px 10px 10px 0;
clear: both;
float: left;
}

.right-message {
background-color: #d9edf7; /* Example background color for Doctor's messages */
color: #31708f; /* Example text color for Doctor's messages */
padding: 10px;
margin-bottom: 5px;
border-radius: 10px 10px 0 10px;
clear: both;
float: right;
}

/* #video-chat-rooms{
justify-content: center;
} */

#video-chat-form{
display: inline;
}

/* ============================================ CSS added by Sacchin Dev ==========================================*/


body, html {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
font-family: siffon;
bottom: 0;
}

img {
max-width: 100%;
height: auto;
display: block;
}

.video-conference {
flex: 1;
display: flex;
position: relative;
overflow: hidden;
/* border: #000; */
border-radius: 2%;
}

.info {
position: absolute;
align-self: flex-start;
color: #000000;
margin-top: 0px;
background-color: rgba(255, 255, 255, 0.8);
width: 100%;
/* height: 18%; */
justify-content: center;
align-items: center;
text-align: center;
z-index: 1;
font-family: Siffon;
}

/* Container that holds the name and time */
.right-corner-container {
  position: absolute; 
  top: 0; 
  right: 0; 
  padding: 10px; 
  text-align: right; 
}

/* Optional styling for individual paragraphs */
.right-corner-container p {
  margin: 0; /* Remove default margin */
}


#user-video, #peer-video {
position: relative;
cursor: pointer;
overflow: hidden;
background-color: #000;
}

#user-video {
width: 100vw;
height: 100vh;
flex: 1;
position: absolute;
margin: 10px;
display: flex;
justify-content: center; 
align-items: center;
background-color: #333;
}

#peer-video {
width: 25vw;
height: 40vh; 
position: absolute;
bottom: 20vh; 
right: 0px;
border: 2px solid #fff;
border-radius: 10%;
background-color: #000;
z-index: 2; 
cursor: move; 
transition: all 0.3s ease; 
/* margin-right: 7%; */
}

/* .draggable {
cursor: move; 
} */

.info-icon-button{
  width: 2vw;
}

.controls {
display: flex;
justify-content: center;
padding: 10px;
position: absolute;
align-self: center;
bottom: 0;
margin-bottom: 20px;
z-index: 1; 
flex-wrap: wrap;
gap: 50px; 
}

.btn-group button {
border: none;
padding: 1px;
border-radius: 50%;
cursor: pointer;
font-size: 2.5vw; 
display: flex;
align-items: center;
justify-content: center;
width: 2vw; 
height: 2vh;
margin: 1vw;
bottom: 0;
margin: 2.5%;
}

.btn-group{
background-color: rgba(255, 255, 255, 0.8);
width: 100%;
justify-content: center;
align-items: center;
text-align: center;
z-index: 1;
/* border-radius: 5%; */
bottom: 0;

}


.btn-group button img {
max-width: 100%;
max-height: 100%;
object-fit: contain;
}

/* .btn-group button:hover {
background-color: #323538;
} */

#user-video{
  width: 100vw;
  height: 100vh;
  bottom: 10px;
  }

  .peer-microphone {
    z-index: 1;
    width: 8vw;
    height: 8vh;
    position: absolute;
    margin-left: 0;
    top: 5%;
    left: 10%;
  } 

  .i-button {
  position: fixed !important;
  padding: 0px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  width: 2vw !important;  
  height: 2vw !important;
  margin-bottom: 20px !important;
  margin: 1;
  position: relative;
  bottom: 0px;
}


#peer-video-container {
  /* columns: red; */
  border-radius: 5%;
  width: 20vw;
  height: 30vh; 
  position: absolute;
  right: 10px;
  z-index: 1; 
  cursor: move; 
  transition: all 0.3s ease; 
  margin-right: 0%;
  /* bottom: 10%; */
}  


/* For mute and unmute and camera On Off  start*/


.peer-muted, .peer-cameraOff {
  position: absolute;
  transform: translate(-50%, -50%); 
  color: #fff;
  background-color: rgba(199, 187, 187, 0.5);
  width: 50%;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  border-radius: 10px;
}

.peer-muted {
  top: 50%;
  left: 40%;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 20%;
  left: 48%;
  width: 3.5vh;
  height: 3.5vh;
  border-radius: 50%;
}


.user-muted, .user-cameraOff {
  position: absolute;
  transform: translate(-50%, -50%);
  color: #fff;
  background-color: rgba(199, 187, 187, 0.5);
  width: 10%;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 10;
  border-radius: 10px;
}

.user-muted {
  font-size: 55px;
  width: 320px;
  height: 75px;
  top: 40%;
  left: 50%;
}
.user-cameraOff{
  font-size: 55px;
  width: 320px;
  height: 75px;
  top: 48%;
  left: 50%;
}

.card-body {
  max-width: 100%; /* Ensure the card body can expand as needed */
  overflow-wrap: break-word; /* Wrap long words onto the next line */
}


@media only screen and (max-width: 390px) and (max-height: 844px) {
  .user-muted {
    font-size: 18px;
    top: 40%;
    left: 50%;
    width: 110px;
    height: 30px;
  }
  .user-cameraOff{
    font-size: 18px;
    top: 49%;
    left: 50%;
    height: 30px;
    width: 110px;
  }
}


@media (min-width: 768px) {

#peer-video-container,#peer-video {
    width: 25vw; 
    height: 20vh; 
    bottom: 5vh;
}

.btn-group button {
    width: 3vw; 
    height: 3vw; 
    font-size: 2vw; 
}
#btn-group .i-button {
  width: 2.5vw;  
  height: 2.5vw;
  bottom: 18px;
}
}

@media (max-width: 400px) {
  
  #peer-video-container,#peer-video {
      width: 25vw; 
      height: 20vh; 
      bottom: 5vh;
  }
  
  .btn-group button {
      width: 3vw; 
      height: 3vw; 
      font-size: 2vw; 
  }
  #btn-group .i-button {
    width: 2.5vw;  
    height: 2.5vw;
    bottom: 0px;
  }
}

.btn-group {
position: absolute;
bottom: 5px;
/* width: 100%; */
display: flex;
justify-content: center;
padding: 10px; 
border: none;
}

@media (min-width: 1025px) {
  .info{
    width: 100px !important;
  }
.btn-group {
  bottom: 0px;
  padding: 10px;
  height: 100px;
}
}

@media (min-width: 1024px) {

#peer-video-container,#peer-video {
    width: 20vw; 
    height: 30vh; 
    bottom: 5vh;
}

.controls button {
    width: 3.5vw;
    height: 3.5vw;
    font-size: 1.5vw;
}
#btn-group .i-button {
  width: 3vw;  
  height: 3vw;
  bottom: 0px;
}

.controls {
    justify-content: center; 
    bottom: 20px; 
}
}

@media (max-width: 767px) {
.controls {
    justify-content: flex-start; 
    left: 10px;
    bottom: 10px; 
}

.controls button {
    width: 20vw; 
    height: 20vw; 
    margin: 10 10px; 
    font-size: 5vw; 
}

#btn-group .i-button {
  width: 15vw;  
  height: 15vw;
  bottom: 0px;
}

#peer-video {
    width: 25vw; 
    height: 25vh; 
    bottom: 10px;
}
#peer-video-container{
  width: 25vw; 
  height: 25vh; 
  bottom: 10px;
}
.peer-microphone {
  z-index: 1;
  width: 10vw;
  height: 10vh; 
  position: absolute;
  margin-left: 0;
  top: 5%;
  left: 10%;
}
}



@media (min-width: 900px){
.info {
  height: 5vh !important;
}
}

.info {
  height: 15vh !important;
}


#peer-video-container {
    width: 40vw; 
    height: 20vh; 
    bottom: 10%;
}
#peer-video {
  width: 40vw; 
  height: 20vh; 
  bottom: 35%;
}
.btn-group button{
    width: 150px; 
    height: 150px;
    margin-left: 40px;
}
#btn-group .i-button {
  width: 100px !important;  
  height: 100px !important;
  margin-left: 0px;
  margin-bottom: 0px;
}
.peer-muted {
  top: 69%;
  left: 15%;
  width: 2.0vh;
  height: 2.0vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 40%;
  left: 48%;
  width: 4vh;
  height: 4vh;
  border-radius: 50%;
} 


@media (min-width: 1200px) and (max-height: 800px){

#peer-video-container, #peer-video{
    width: 20vw; 
    height: 30vh; 
}

.btn-group button{
    width: 3vw; 
    height: 3vw; 
    font-size: 2vw; 
}
#btn-group .i-button {
  width: 2.5vw;  
  height: 2.5vw;
  bottom: 0px;
}
}


@media(max-height: 800px){
  .peer-microphone {
    z-index: 1;
    width: 8vw;
    height: 8vh;
    position: absolute;
  }

#peer-video-container,#peer-video {
    width: 20vw; 
    height: 30vh;
    /* margin: 10; */
    bottom: 5vh;
}

.btn-group button{
    width: 50px; 
    height: 50px; 
}

#btn-group .i-button {
  width: 4vw !important;  
  height: 4vw !important;
  bottom: 0px;
}


.peer-microphone {
  z-index: 1;
  width: 4vw;
  height: 4vh;
  position: absolute;
}

.peer-muted {
  top: 70%;
  left: 15%;
  width: 3vh;
  height: 3vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 35%;
  left: 50%;
  width: 5.2vh;
  height: 5.2vh;
  border-radius: 50%;
} 

 .user-muted {
  font-size: 18px;
  top: 40%;
  left: 50%;
  width: 110px;
  height: 30px;
}
.user-cameraOff{
  font-size: 18px;
  top: 49%;
  left: 50%;
  height: 30px;
  width: 110px;
}
}

@media(max-height: 1280px) and (max-width: 900px){

#peer-video-container,#peer-video {
    width: 50vw; 
    height: 45vw; 
    bottom: 16%;
}

.btn-group button{
    width: 15vw; 
    height: 15vw; 
}
#btn-group .i-button {
  width: 9vw !important;  
  height: 9vw !important;
  bottom: 5px;
}
}

@media(max-width: 500px){
  .peer-microphone {
    z-index: 1;
    width: 10vw;
    height: 10vh;
    position: absolute;
  }
}



@media(min-width: 2000px){
  #peer-video-container,#peer-video {
      width: 15vw; 
      height: 35vh; 
      bottom: 10%;
  }
  
  .btn-group button{
      width: 2vw; 
      height: 2vw; 
      font-size: 4vw; 
  }

  #btn-group .i-button {
    width: 1vw !important;  
    height: 1vw !important;
    bottom: 0px;
  }
  .peer-muted {
    top: 50%;
    left: 40%;
    width: 7vh;
    height: 7vh;
    border-radius: 50%;
  }
  
  .peer-cameraOff {
    top: 50%;
    left: 55%;
    width: 8vh;
    height: 8vh;
    border-radius: 50%;
  }
  .user-muted {
    font-size: 50px;
    width: 30vh;
    height: 2vw;
    top: 40%;
    left: 50%;
    border-radius: 5%;
  }
  .user-cameraOff{
    font-size: 50px;
    width: 30vh;
    height: 2vw;
    top: 55%;
    left: 50%;
    border-radius: 5%;
  }
}


  @media(max-width: 900px) and (min-height: 1000px){
    #peer-video-container,#peer-video {
        width: 35vw; 
        height: 25vh; 
        bottom: 14%;
    }

    
    .btn-group button{
        width: 10vw; 
        height: 10vw; 
        font-size: 4vw; 
    }
    #btn-group .i-button {
      width: 7vw !important;  
      height: 7vw !important;
      bottom: 15px;
    }
   
    #peer-microphone-unmute{
      width: 5vw;
      height: 5vh;
    }
    .peer-muted {
      top: 70%;
      left: 14%;
      width: 3.5vh;
      height: 3.5vh;
      border-radius: 50%;
    }
    
    .peer-cameraOff {
      top: 40%;
      left: 50%;
      width: 5.2vh;
      height: 5.2vh;
      border-radius: 50%;
    }
    .user-muted {
      font-size: 45px;
      width: 265px;
      height: 70px;
      top: 40%;
      left: 50%;
    }
    .user-cameraOff{
      font-size: 45px;
      width: 265px;
      height: 70px;
      top: 49%;
      left: 50%;
    }
  }
  
@media (max-width: 380px) and (max-height: 882px) {

  #peer-video-container,#peer-video {
      width: 150px; 
      height: 150px; 
      bottom: 13%;
  }

  .btn-group button {
      width: 50px; 
      height: 50px; 
  }
  
  .peer-microphone {
      z-index: 1;
      width: 5vw;
      height: 5vh;
      position: absolute;
  }

  #chat-container {
      width: 250px;
      height: 100%;
  }

  #messages {
      padding: 5px;
  }

  #chat-input, #send-button {
      padding: 5px;
      font-size: 12px;
  }
  #btn-group .i-button {
    width: 35px !important;  
    height: 35px !important;
    bottom: 5px;
  }
}

@media(min-width: 1000px) and (min-height:200px){
  .peer-microphone {
    z-index: 1;
    width: 8vw;
    height: 8vh;
    position: absolute;
  }

#peer-video-container,#peer-video {
    width: 20vw; 
    height: 30vh;
    /* margin: 10; */
    bottom: 12vh;
}

.btn-group button{
    width: 65px; 
    height: 65px; 
}

#btn-group .i-button {
  width: 40px !important;  
  height: 40px !important;
  bottom: -3px;
}

.peer-microphone {
  z-index: 1;
  width: 4vw;
  height: 4vh;
  position: absolute;
}

.peer-muted {
  top: 45%;
  left: 10%;
  width: 4vh;
  height: 4vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 10%;
  left: 50%;
  width: 5.8vh;
  height: 5.8vh;
  border-radius: 50%;
} 

.user-muted {
  font-size: 15px;
  top: 40%;
  left: 50%;
  width: 110px;
  height: 23px;
}
.user-cameraOff{
  font-size: 15px;
  top: 47%;
  left: 50%;
  height: 23px;
  width: 110px;
}
}


@media(min-width: 1280px) and (min-height:800px){
  .peer-microphone {
    z-index: 1;
    width: 8vw;
    height: 8vh;
    position: absolute;
  }

#peer-video-container,#peer-video {
    width: 20vw; 
    height: 30vh;
    /* margin: 10; */
    /* bottom: 5vh; */
}

.btn-group button{
    width: 6.5vw; 
    height: 6.5vw; 
}

#btn-group .i-button {
  width: 2.5vw !important;  
  height: 2.5vw !important;
  bottom: 0px;
}

.peer-microphone {
  z-index: 1;
  width: 4vw;
  height: 4vh;
  position: absolute;
}

.peer-muted {
  top: 45%;
  left: 12%;
  width: 4vh;
  height: 4vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 38%;
  left: 50%;
  width: 5vh;
  height: 5vh;
  border-radius: 50%;
} 

.user-muted {
  font-size: 30px;
  top: 40%;
  left: 50%;
  width: 200px;
  height: 40px;
}
.user-cameraOff{
  font-size: 30px;
  top: 55%;
  left: 50%;
  height: 40px;
  width: 200px;
}
} 

@media(min-width: 1000px) and (min-height:1300px){
  .peer-microphone {
    z-index: 1;
    width: 8vw;
    height: 8vh;
    position: absolute;
  }

#peer-video-container,#peer-video {
    width: 25vh; 
    height: 30vh;
    /* margin: 10; */
    bottom: 9vh;
}

.btn-group button{
  width: 150px; 
  height: 150px;
}

#btn-group .i-button {
  width: 100px !important;  
  height: 100px !important;
  bottom: 22px;
}

.peer-microphone {
  z-index: 1;
  width: 4vw;
  height: 4vh;
  position: absolute;
}

.peer-muted {
  top: 58%;
  left: 13%;
  width: 3vh;
  height: 3vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 20%;
  left: 50%;
  width: 5.8vh;
  height: 5.8vh;
  border-radius: 50%;
} 

.user-muted {
  font-size: 15px;
  top: 40%;
  left: 50%;
  width: 110px;
  height: 23px;
}
.user-cameraOff{
  font-size: 15px;
  top: 47%;
  left: 50%;
  height: 23px;
  width: 110px;
}
}


@media(max-width: 900px) and (max-height:700px){
  .peer-microphone {
    z-index: 1;
    width: 8vh;
    height: 8vh;
    position: absolute;
  }

#peer-video-container,#peer-video {
    width: 25vh; 
    height: 30vh;
    /* margin: 10; */
    bottom: 7.5vh;
}

.btn-group button{
    width: 50px !important; 
    height: 50px !important; 
}

#btn-group .i-button {
  width: 40px !important;  
  height: 40px !important;
  bottom: 0px;
}

.peer-microphone {
  z-index: 1;
  width: 4vw;
  height: 4vh;
  position: absolute;
}

.peer-muted {
  top: 63%;
  left: 11%;
  width: 3vh;
  height: 3vh;
  border-radius: 50%;
}

.peer-cameraOff {
  top: 29%;
  left: 50%;
  width: 5.8vh;
  height: 5.8vh;
  border-radius: 50%;
} 

.user-muted {
  font-size: 15px;
  top: 40%;
  left: 50%;
  width: 110px;
  height: 23px;
}
.btn-group button{
  width: 4vw; 
  height: 4vw; 
  font-size: 2vw; 
}
.user-cameraOff{
  font-size: 15px;
  top: 47%;
  left: 50%;
  height: 23px;
  width: 110px;
}
}

@media (min-width: 1000px) {
  .info {
    height: 18% !important;
  }
}


