body {
  
  background-size: cover;
  background-attachment: fixed; 
  color: #ffffff; 
  font-family: 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
  transition: 2.2s;
  height: 100%;
}


#chatroom-container {
  height: 100% !important;
}

.navbar {
  background-color: #4e54c8;
  user-select: none; 
  z-index: 999;
}
.navbar-dark .navbar-nav .nav-link {
  cursor: pointer;
  user-select: none; 
}
.navbar-dark .navbar-nav .nav-link:hover {
  color: rgb(0, 174, 255);
  user-select: none; 
}
.nav-logo {
  height: 30px; 
  z-index: 999;
  margin-right: 5px;
}
.nav-item {
  z-index: 999;
}
.navbar-toggler {
  z-index: 999;
}
.Room {
  padding: 5px 10px;
  background-color: #6c73ff;
  margin-bottom: 8px;
  border-radius: 5px;
  text-align: center;
  user-select: none; 
  align-items: center;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}
.welcome {
  display: inline-flex;
  text-align: center;
}
.welcome img {
  margin-top: -12px;
  margin-right: 6px;
}
.welcome-small {
  font-size: 20px;
}
.welcome-large {
  font-size: 40px;
  line-height: 1;
}
#index-btn {
  text-align: center;
  position: relative;
  z-index: 2;
}

#index-btn a {
  text-align: center;
  text-decoration: none;
  transition: all .2s ease-in;
}
#index-btn a:hover {
  background: black;
  color: white;
  text-decoration: none;
}    
.content h4 {
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 12px;
  text-align: center;
  margin-bottom: 26px;
}

#typing-notification {
  margin-left: 50;
} 

.message {
  padding: 5px 10px;
  background-color: #264d7900;
  margin-bottom: 8px;
  border-radius: 5px;
  text-align: center;
  user-select: none;
  align-items: flex-start; 
  display: flex;

}

.message-right {
text-align: right;
width: 100%;
display: block;
}



.message-entry {
margin-bottom: 10px;
display: flex;
flex-direction: column;
align-items: flex-start; 
}


.sender-name {
font-size: 0.8em;
margin-bottom: 2px; 
user-select: none; 
}

.sender-photo {
width: 40px; 
height: 40px; 
border-radius: 1%; 
background-size: cover; 
margin-right: 10px; 
flex-shrink: 0; 
transform: scaleX(-1);
}


.message-entry.right .sender-photo {
  transform: scaleX(1) !important;
}


.message-bubble {
max-width: 60%; 
padding: 10px;
border-radius: 20px;
background: #222444; 
word-wrap: break-word;
display: block;
}



.right .message-bubble {
  background: #013b79; 
  color: white; 
}

.right .sender-name, .right .message-bubble {
align-self: flex-end;
}
.right .sender-photo{
align-self: flex-end;
}

.message img {
max-width: 100px;
max-height: 100px;
}

#chatrooms, #online-users {
background: #30358e;
padding: 15px;
border-radius: 5px;
height: 400px;
overflow-y: scroll;
display: flex;
flex-direction: column;
align-items: center;

border: none; 
outline: none;
text-align: center;
transition: box-shadow 0.3s, transform 0.3s;

border-top-left-radius: 30px;
border-bottom-left-radius: 30px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
user-select: none; 
scrollbar-color: white #4e54c847;
scrollbar-width: none;
}

#chatrooms, #online-users a {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
#chat-container {

width: 100%;
flex-grow: 1; 
}
#chat-interface {
display: flex;
flex-direction: column;
padding-top: 20px; 
padding-left: 3%;
padding-right: 3%;
position: fixed;
}

#message-container {

background: #4e54c8;
height: 360px;
width: 100%;
flex-grow: 1;
overflow-y: auto;    
padding: 15px;
border-radius: 5px;
margin-bottom: 20px;
border-top-right-radius: 30px;
border-bottom-right-radius: 30px;
scrollbar-width: none;
}

/* #message-box {
  font-size: 15px;
  flex-grow: 1; 
  margin-right: 0.5rem; 
  background-color: #222333;
  border-color: #6c73ff;
  } */

  /* *{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }
  button {
    font-family: inherit;
  } */
  
  .messageBox {
    /* width: fit-content; */
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222333;
    padding: 0 15px;
    border-radius: 10px;
    border: 1px solid #6c73ff;
  }
  .messageBox:focus-within {
    border: 1px solid #5159ff;
  }
  .fileUploadWrapper {
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, Helvetica, sans-serif;
  }
  
  #file-input {
    display: none;
  }
  .fileUploadWrapper label {
    cursor: pointer;
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }
  .fileUploadWrapper label svg {
    height: 18px;
  }
  .fileUploadWrapper label svg path {
    transition: all 0.3s;
  }
  .fileUploadWrapper label svg circle {
    transition: all 0.3s;
  }
  .fileUploadWrapper label:hover svg path {
    stroke: #fff;
  }
  .fileUploadWrapper label:hover svg circle {
    stroke: #fff;
    fill: #3c3c3c;
  }
  .fileUploadWrapper label:hover .tooltip {
    display: block;
    opacity: 1;
  }
  .tooltip {
    position: absolute;
    top: -40px;
    display: none;
    opacity: 0;
    color: white;
    font-size: 10px;
    text-wrap: nowrap;
    background-color: #000;
    padding: 6px 10px;
    border: 1px solid #3c3c3c;
    border-radius: 5px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.596);
    transition: all 0.3s;
  }
  #message-box {
    width: 100%;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    padding-left: 10px;
    color: white;
  }
  #message-box:focus ~ #send-anonymous svg path,
  #message-box:valid ~ #send-anonymous svg path {
    fill: #3c3c3c;
    stroke: white;
  }
  
  #send-anonymous {
    width: fit-content;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
  }
  #send-anonymous svg {
    height: 18px;
    transition: all 0.3s;
  }
  #send-anonymous svg path {
    transition: all 0.3s;
  }
  #send-anonymous:hover svg path {
    fill: #3c3c3c;
    stroke: white;
  }
  #record-btn {
    width: fit-content;
    height: 100%;
    background-color: transparent;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: left;
    cursor: pointer;
    transition: all 0.3s;
    padding-left: 10px;
  
  }
  #record-btn svg {
    height: 18px;
    transition: all 0.3s;
    fill: #6c6c6c;
  }
  #record-btn svg path {
    transition: all 0.3s;
  }
  #record-btn:hover svg path {
    fill: #3c3c3c;
    stroke: white;
  }
.row {
  display: flex;
  flex-wrap: nowrap; 
}

.col-xl-8.col-lg-6.col-md-6.col-sm-12 {
  flex-grow: 1; 
  max-width: 100%; 
}

#message-rate-container {
  width: 20px;
  height: 100%;
  border: 1px solid #ccc;
  position: relative;
  background-color: #eee0;
  border: none;
  padding-left: 5px;
}

#message-rate-bar {
width: 100%; 
height: 0%; 
background-color: #4CAF50; 
position: absolute;
bottom: 0; 
}


.list-group-item {
width: 100%;
border: none;
padding: 5px;
margin: 0 0 5px; 
text-align: center;
background-color: #4e54c8; 
color: white; 
user-select: none;
box-shadow: 0 5px 9px rgba(0, 0, 0, 0.1); 
transition: 0.5s;

}
.list-group-item:active {
background-color: #013b79; 
color: white; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); 
transform: scale(0.9); 
user-select: none;
}

.list-group-item:hover {
background-color: #0064cf;
color: white;
user-select: none;

box-shadow: 0 5px 9px rgba(0, 0, 0, 0.3); 
}

.list-group-item:focus {
  background-color: #0064cf;
  color: white;
  user-select: none;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.3); 
}




.tab {
display: flex; 
flex-direction: column;
align-items: right;
  
border: 1px solid inherit;
background-color: inherit;
}

.tab button.tablinks {
display: block;
background-color: #0084ff; 
color: rgb(255, 255, 255); 

margin: 0 10px 10px 0px; 
border: none; 
outline: none;
text-align: center;
cursor: pointer;
transition: box-shadow 0.3s, transform 0.3s;
border-radius: 30px; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
user-select: none; 
width: 100%;
transition: 0.5s;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}


.tab button.tablinks:hover {
box-shadow: 0 5px 9px rgba(0, 0, 0, 0.2); 
transform: translateY(-2px); 
background-color: #0064cf; 
}


.tab button.tablinks:active {
background-color: #004186; 
color: white; 
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); 
transform: translateY(1px);
}


.btn-warning {
  color: #212529;
  background-color: #ffc107;
  border-color: #ffc107;
  margin-bottom: 10px;
  margin-top: 10px;
}

.btn-modern {
background-color: #5c5c5c; 
color: white; 
border: none; 
padding: 10px; 
margin-right: 5px; 
border-radius: 50%; 
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); 
font-size: 16px; 
cursor: pointer; 
transition: all 0.3s ease; 
text-align: center;
user-select: none; 
}

.btn-modern:hover {
background-color: #eaeaea; 
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.btn-modern:active {
transform: scale(0.95); 
}


.btn-modern i {
margin-right: 0; 
font-size: 1.5rem; 

}

#emoji-button {
cursor: pointer;
border: none;
background: none;
font-size: 1.5em;
padding: 10px;
}

#emoji-button:focus {
outline: none;
}

emoji-picker {
position: absolute;
z-index: 1000;
cursor: move;

}

#emoji-picker-container {
display: none; 
position: fixed;
cursor: move; 
z-index: 999;
}

#emoji-picker-container.visible {
display: block; 
}




.form-style {
display: flex;
flex-direction: column;
align-items: stretch; 
width: 300px; 
user-select: none;

}

.form-style label {
margin-bottom: 5px;
user-select: none;
}

.form-style input[type="text"],
.form-style input[type="email"],
.form-style input[type="password"] {
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
user-select: none;
}

.form-style img {

margin-top: -10px;
margin-left: 5px;

border: none;

user-select: none;
}
.form-style button {
padding: 10px;
margin-top: 20px;
border: none;
border-radius: 4px;
cursor: pointer;
user-select: none;
}

.form-style .btn-link {
background: none;
border: none;
padding: 0;
margin: 2;
color: #ffffff;
text-decoration: underline;
cursor: pointer;
}


.close-button {
align-self: flex-end; 
background: none;
border: none;  font-size: 30px; 
text-decoration: none; 
color: #97200b; 
user-select: none; 
cursor: pointer;
}


#close-button:hover {
color: white; 
cursor: pointer; 
}

.hidden {
display: none;
}

#anonModal {
z-index : 999;
}
#anonModal h2 {
text-align: center;
font-size: 22px;
letter-spacing: 1px;
margin-bottom: 20px;
}

#next-qr,
#anon-qr {
text-align: center;
display: contents;
}

#next-qr a,
#anon-qr a {
margin-top: 15px;
}

#next-qr img,
#anon-qr img {
margin: 0 auto;
width: 100%;
}

#join-container,
#register-container,
#login-container {

background: #013b79;
padding: 20px;
border-radius: 5px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
position: absolute;
}

#join-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; 
}

#join-container {
  background: #013b79;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  position: absolute;

}

.title {
  display: inline-flex;
  z-index: 999;
  margin-bottom: -1%;
}

.title-small {
font-size: 12px;
margin-top: 5px;
}

.title-bold {
font-size: 22px;
}



.modal {
display: none;
position: fixed;
z-index: 1;
left: 80%;   
top: 0;
width: 20%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #001629;
  top: 30%;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  position: absolute;
  left: 10%;
}

.close {
color: #aaa;
align-self: flex-start;
font-size: 28px;
font-weight: bold;
}

.close:hover,
.close:focus {
color: rgb(0, 174, 255);
text-decoration: none;
cursor: pointer;
}


.form-layout .form-group {
margin-bottom: 15px;
}

.form-layout label {
display: block;
margin-bottom: 5px;
}
.form-layout input[type="text"],
.form-layout input[type="submit"] {
width: 80%;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
}


.curved-button {
user-select: none;
background-color: rgb(0, 41, 94);
border: none;
color: white;
padding: 10px 20px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
margin: 4px 2px;
transition-duration: 0.4s;
cursor: pointer;
border-radius: 12px;
outline:none
}

.curved-button:hover {
  user-select: none;
  border: none;
  background-color:  rgb(0, 41, 94);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
  outline:none
}

.curved-button:active {
  user-select: none;
  border: none;
  background-color: rgb(0, 41, 94);
  transform: scale(0.95); 
  }

.curved-button:focus {
  outline:none
  }

#image-overlay {
position: fixed; 
top: 0;
left: 0;
width: 100%; 
height: 100%; 
background-color: rgba(0, 0, 0, 0.7); 
display: flex;
align-items: center;
justify-content: center;
z-index: 1000; 
user-select: none;
}

#overlay-content {
text-align: center;
user-select: none;
}

#overlay-img {
max-width: 50%; 
max-height: 50%;
display: block; 
margin: auto; 
user-select: none;
}


#image-preview {
display: none;
position: fixed; 
z-index: 999; 
max-width: 200px;
max-height: 200px;
cursor: move; 
}

.glow {
box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7); 
}

.nav-item input[type=checkbox]{
height: 0;
width: 0;
visibility: hidden;
display: none;
}

.nav-item label {
cursor: pointer;
text-indent: -9999px;
width: 60px;
height: 30px;
background: grey;
display: block;
border-radius: 100px;
position: relative;
margin-top: 5px;
}

.nav-item label:after {
content: '';
position: absolute;
top: 5px;
left: 5px;
width: 20px;
height: 20px;
background: #fff;
border-radius: 90px;
transition: 0.3s;
}

.nav-item input:checked + label {
background: #bada55;
}

.nav-item input:checked + label:after {
left: calc(100% - 5px);
transform: translateX(-100%);
}

.nav-item label:active:after {
width: 30px;
}

.nav-item p {
margin-top: 11px;
margin-right: 10px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
}

.invert {
filter: invert(100%);
-webkit-filter: invert(100%);
transition: 0.2s;
}

#preview-img {
  margin-top: -164%;
}

@media only screen and (max-width: 992px){
.modal {
  position: fixed;
  z-index: 1;
  
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  left:0;
  width: 100%;
}

#navbarNav {
background: linear-gradient(#0f4679,#1e2f4c);
}

.navbar {
  padding: 0;
}

.navbar-nav {
  display: -webkit-inline-box;
  margin: 0 auto;
  
  z-index: 999;
}
.navbar-nav.ml-auto li img {
  padding-right: 10px;
}
.navbar-collapse {
  display: grid;
}
.title-small {
  font-size: 24px;
  line-height: 2;
  margin-top: 5px;
}
.title-bold {
  font-size: 44px;
  margin-top: 3px;
}
.nav-logo {
  height: 60px;
  width: 60px;
  margin-right: 10px;
  margin-top: 10px;
}
.Room {
  font-size: 10px;
}

.right-logo img {
  display: none;
}
.toggle-button {
  display: none; 
}
}


@media (max-width: 767px) {
  #message-container-all {
    width: 100%; 
}
  #online-users-container {
      display: none; 
  }
  .toggle-button {
      display: block; 
      z-index: 1;
      padding:1px;
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      margin: 4px 2px;
      transition-duration: 0.4s;
      cursor: pointer;
      border-radius: 12px;
      background-color: #8f94ff96;
      height: 70px;
      margin-top: 40%;
      border: none;
      }
      .toggle-button:hover {
        user-select: none;
        border: none;
        background-color: #8f94ff96;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
        transform: scale(1.10,1.02);
      }
      
      .toggle-button:active {
        user-select: none;
        border: none;
        background-color: #4e54c8;
        transform: scale(1.15, 1); 
        } 
}
@media (min-width: 768px) {
  #online-users-container {
      display: block; 
  }
  .toggle-button {
    display: none; 
  }
}


#loading-overlay {
  position: fixed; 
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; 
}



#txtRoom {
  background-color: transparent;
  border: none;
  color: #fff;
  margin-top: 4%;
  border-color: #fff;
  border-radius: 5px;
  border-style: ridge;
  text-align: center;
  text-decoration-color: white;
  margin-right: 10px;
}

#txtRoom::placeholder {
  color: white;
}


.record-wrapper {
  position: relative;
  text-align: center;
}

.loader {
  /* border: 5px solid #f3f4f6;  */
  border: 5px solid #f3f4f600; 
  border-top: 5px solid #6c73ff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 10s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none; 
}

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

video {
  width: 170%;
  height: 30px;
  background: #222444; 
}

