body {
  background-color: #ffffff;
  margin: 0;
  font-family: sans-serif;
}
.top-controls-bar {
  padding: 0.5rem 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 60px;
}
.top-controls-bar .btn-group {
  margin: 5px;
}
.resolution-selection .bth,
.resolution-selection .btn:hover {
  background-color: #e6e6e6;
  border-color: #adadad;
}
.resolution-selection .btn-default {
  color: #333;
  background-color: #fff;
  border-color: #adadad;
}
.resolution-selection .btn-default.active {
  color: #333;
  background-color: #e6e6e6;
  border-color: #adadad;
}
.language-selection .btn {
  color: #fff;
}
.language-selection .btn.active {
  background-color: #ec971f;
  border-color: #d58512;
}
.info-bar {
  text-align: right;
  padding: 10px 0;
  font-size: 14px;
}
.info-bar img {
  width: 120px;
  padding: 0 10px 0 10px;
}
.video-container {
  width: 100%;
  background-color: #000;
  aspect-ratio: 16 / 9;
}

/* Styles for the message area and its contents */
.message-overlay-area {
  width: 100%;
  height: 100%;
  position: relative;
  background-color: black;
  color: white;
  text-align: center;
  overflow: hidden;
  display: none; /* Hidden by default, will be shown when needed */
}

#bgvid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes video cover the .message-overlay-area */
  z-index: 1; /* Behind #polina */
}

#polina {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: none;
  z-index: 2;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-weight: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

#polina p {
  font-size: clamp(14px, 3vw, 20px);
  margin-bottom: clamp(10px, 2vw, 20px); /* Responsive spacing */
  line-height: 1.4;
  max-width: 80%; /* Prevent text from going too wide */
}

#polina p:first-of-type {
  font-size: clamp(16px, 4vw, 30px);
}

#polina svg {
  width: clamp(30px, 5vw, 48px);
  height: clamp(30px, 5vw, 48px);
  vertical-align: middle;
}

#polina .btn {
  font-size: clamp(14px, 2.5vw, 18px);
  padding: clamp(8px, 1.5vw, 12px) clamp(16px, 3vw, 24px);
  margin-top: clamp(15px, 3vw, 25px);
}

/* Media query for very small screens */
@media (max-width: 576px) {
  #polina p {
    font-size: 14px;
    max-width: 95%;
  }

  #polina p:first-of-type {
    font-size: 18px;
  }

  #polina .btn {
    font-size: 14px;
  }
}
