* {
  margin: 0;
  padding: 0;
}

main {
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  background-color: white;
  padding: 20px;
}

@media screen and (min-width: 1024px) {
  main {
    width: 60%;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(66, 110, 175, 0.06),
      0 6px 8px rgba(32, 77, 141, 0.08);
  }

  body {
    background-image: url("https://web.sdk.qcloud.com/trtc/webrtc/v5/demo/samples/assets/background.png");
  }
}

h1,
h2 {
  text-align: center;
  font-family: "Oxygen";
  margin-bottom: 0.8rem;
}

h3 {
  font-family: "Oxygen";
  margin-bottom: 18px;
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1rem;
  }
}

.note {
  color: #084298;
  font-family: "Oxygen";
}

.warning {
  display: block;
  color: red;
  font-family: "Oxygen";
  margin: 3px 0;
}

.feature-container {
  width: 80%;
}

section {
  padding: 1rem;
  background-image: linear-gradient(
    rgb(237, 242, 252),
    rgb(255, 255, 255) 66.15%
  );
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(66, 110, 175, 0.06),
    0 6px 8px rgba(32, 77, 141, 0.08);
}

section:not(:last-child) {
  overflow: auto;
}

.volume-detect {
  margin: 12px 0;
}

.option-container {
  display: flex;
  flex-wrap: wrap;
  margin: 12px 0;
}

.option-item {
  margin-right: 12px;
}

.option-item:first-child {
  display: flex;
  align-items: center;
}

#enable-background {
  zoom: 1.3;
  margin-right: 3px;
}

select {
  font-size: 0.9rem;
  color: #4f586b;
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 3px;
}

.volume-adjust .btn-list {
  margin: 18px 0;
}

.volume-display {
  width: 64px;
  padding: 5px;
  margin-left: 3px;
  border: 1px solid #ced4da;
  border-radius: 8px;
  color: #4f586b;
}

.volume-adjust-display {
  display: flex;
}

.volume-input {
  display: block;
  margin-top: 6px;
}

#local-volume-detect {
  margin-right: 12px;
}

.btn-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  flex-shrink: 0;
  background-color: #0d6efd;
  padding: 0.5rem;
  border: 1px solid #0d6efd;
  border-radius: 8px;
  margin-bottom: 3px;
  cursor: pointer;
}

.btn:not(:last-child) {
  margin-right: 16px;
}

.btn:hover {
  background-color: #144fb6;
  border: 1px solid #144fb6;
  transition: all 0.2s ease-out;
}

.btn:disabled {
  background-color: rgb(182, 187, 198);
  border: 1px solid transparent;
  cursor: not-allowed;
}

.btn-text {
  font-size: 0.85rem;
  color: #ffffff;
}

.invite-input {
  border: 1px solid #d5d5d5;
  border-left: none;
  border-radius: 0 6px 6px 0;
  line-height: 30px;
  height: 32px;
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
  padding: 1px 6px;
}

.copy {
  display: flex;
  align-items: center;
  padding-top: 0.8rem;
  gap: 0;
}

.invite-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.invite-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  color: #555;
  cursor: pointer;
  background-color: #f8f9fa;
  border: 1px solid #d5d5d5;
  border-radius: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.invite-action-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.invite-action-btn:last-child {
  border-radius: 0;
  border-left: none;
}

.invite-action-btn:hover {
  background-color: #e9ecef;
  color: #0d6efd;
}

.invite-action-btn:active {
  background-color: #dee2e6;
}

.tooltipped {
  position: relative;
}

.tooltipped:after {
  position: absolute;
  z-index: 1000000;
  display: none;
  padding: 5px 8px;
  font: normal normal 11px/1.5 Helvetica, arial, nimbussansl, liberationsans,
    freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
  color: #fff;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: break-word;
  white-space: pre;
  pointer-events: none;
  content: attr(aria-label);
  background: rgba(0, 0, 0, 0.8);
  border-radius: 3px;
  -webkit-font-smoothing: subpixel-antialiased;
}

.tooltipped:before {
  position: absolute;
  z-index: 1000001;
  display: none;
  width: 0;
  height: 0;
  color: rgba(0, 0, 0, 0.8);
  pointer-events: none;
  content: "";
}

.tooltipped:hover:before,
.tooltipped:hover:after,
.tooltipped:active:before,
.tooltipped:active:after,
.tooltipped:focus:before,
.tooltipped:focus:after {
  display: inline-block;
  text-decoration: none;
}

.tooltipped-s:after {
  top: 100%;
  right: 50%;
  margin-top: 5px;
}

.tooltipped-s:before {
  top: auto;
  right: 50%;
  bottom: -5px;
  margin-right: -5px;
  border-bottom-color: rgba(0, 0, 0, 0.8);
}

.tooltipped-s:after {
  -webkit-transform: translateX(50%);
  -ms-transform: translateX(50%);
  transform: translateX(50%);
}
