body {
  background-color: #121212;
  color: #f1f1f1 !important;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  overflow-y: auto;
}
.cardx {
  background-color: #1e1e1e;
  border: none;
}
.list-group-item {
  background-color: #1e1e1e;
  color: #f1f1f1;
  border-color: #2c2c2c;
}
video {
  background: #000;
}
.btn-outline-danger {
  border-width: 2px;
}
.modal-content {
  background-color: #1e1e1e;
  color: #f1f1f1;
}
.mirrored {
  transform: scaleX(-1);
}

/* Экран приветствия */
#welcomeScreen {
  position: fixed;
  inset: 0;
  background: #121212;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease; /* плавное исчезновение */
}
#welcomeScreen.fade-out {
  opacity: 0;
  pointer-events: none;
}
#welcomeText {
  white-space: pre-line;
  font-family: monospace;
  text-align: center;
  margin-bottom: 20px;
}
#welcomeText .big {
  font-size: 3rem;
  font-weight: bold;
}
#welcomeText .small {
  font-size: 2rem;
  font-weight: normal;
}

/* Основной экран тоже появится плавно */
#main-cont {
  opacity: 0;
  transition: opacity 1s ease;
  display: none;
}
#main-cont.visible {
  display: block;
  opacity: 1;
}

#call-ui {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#remoteVideo {
  /* object-fit: ;  заполняет экран */
  background: black;
  height: fit-content;
  /* width: -webkit-fill-available; */
}

.local-video {
  position: absolute;
  top: 15px;
  right: 15px;
  max-width: 25%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  background: black;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}


.call-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}