@use "./../../../assets/style/colors.scss" as *;

section {
  height: 100dvh;
  width: 100dvw;
  background-color: $black;
  overflow: hidden;
}

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: $black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  position: relative;
  video {
    width: 100%;
    height: 100%;
  }
  &:hover .video-header {
    opacity: 1;
  }
}

.video-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: rgba($black, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 300ms ease-in-out;
}

.center {
  display: flex;
  flex-direction: column;
  p {
    font-size: 14px;
    font-weight: 400;
    color: $light-blue;
    text-shadow: 1px 1px 2px $black;
  }
}

.spacer {
  margin-top: 120px;
}

.add-button {
  position: absolute;
  bottom: 24px;
  right: 24px;
}

.back-button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  img {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(100%) sepia(6%) saturate(312%)
      hue-rotate(234deg) brightness(113%) contrast(100%);
    transition: filter 300ms ease-in-out;
    &:hover {
      filter: brightness(0) saturate(100%) invert(13%) sepia(90%)
        saturate(7329%) hue-rotate(344deg) brightness(105%) contrast(117%);
    }
  }
}

.logo img {
  width: 32px;
  height: auto;
}

.error {
  display: flex;
  justify-content: center;
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  padding: 24px;
  text-align: center;
}

// Resolution Buttons

.resolution-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
}

.resolution-btn {
  background-color: $light-blue;
  color: $white;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.resolution-btn.active {
  background-color: $blue;
  cursor: default;
}

.resolution-btn:disabled {
  cursor: auto;
}

.resolution-btn:not(.active):hover {
  background-color: $blue;
  transform: scale(1.05);
}

.resolution-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 143, 255, 0.5);
}

.not-available {
  opacity: 0.5;
  background-color: $gray;
}

.not-available:not(.active):hover {
  background-color: $gray;
  transform: scale(1);
}

/*------------- RESPONSIVE -------------*/

@media screen and (max-width: 600px) {
  .video-header {
    padding: 12px 24px;
  }
}

@media screen and (max-width: 550px) {
  form {
    flex-direction: column;
    width: 90%;
    input {
      width: 100%;
    }
  }

  .error-msg {
    position: relative;
    padding: 0;
    height: 12px;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 500px) {
  .resolution-btn {
    border-radius: 2px;
    padding: 3px 6px;
    font-size: 14px;
  }
}
