@import "src/App/variables";

.container, .containerVertical {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.containerVertical {
  flex-direction: column;
  align-items: stretch;
}

.label {
  margin: 7px 15px 7px 0;
  flex: 0 1 auto;
}

.input, .textarea, .select,
.input:disabled, .textarea:disabled, .select:disabled {
  flex: 0 0 auto;
  width: 220px;
  border-radius: 15px;
  color: $black;
  padding: 5px 8px;
  border: 2px solid $blueDark;
  transition: border-color 0.3s;
}

.input[type="number"] {
  width: 80px;
}

.textarea {
  height: 140px;
}

.input:not(:disabled):hover, .input:focus,
.select:not(:disabled):hover, .select:focus,
.textarea:not(:disabled):hover, .textarea:focus {
  border: 2px solid $orange;
}

.option {
  color: $black;
}

.option:active,
.option:focus,
.option:hover,
.option:checked {
  color: $white;
  background: $blueDark;
}

.inputRange {
  z-index: 1;
  background: transparent;
  flex: 0 0 auto;
  width: 250px;
}

.inputRange::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: $white30;
}

.inputRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: $orange;
  color: $orange;
  cursor: pointer;
}

.inputRangeValue {
  position: absolute;
  z-index: 0;
  font-size: 12px;
  bottom: 0;
  right: 0;
}


.containerVertical .input,
.containerVertical .textarea,
.containerVertical .select,
.containerVertical .inputRange {
  width: 100%;
}


.inputSwitch {
  flex: 0 0 auto;
  position: relative;
  width: 48px;
  height: 28px;
}

.inputSwitchI, .inputSwitchS {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

.inputSwitchI {
  z-index: 1;
  opacity: 0;
}

.inputSwitchS {
  border-radius: 15px;
  background: $white30;
}

.inputSwitchS:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background: $red;
  transition: background-color 0.3s, transform 0.3s;
}

.inputSwitchI:checked + .inputSwitchS:before {
  background: $orange;
  transform: translateX(20px);
}



.inputImageContainer,
.inputAudioFile {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 3px dashed $white60;
  border-radius: 15px;
  margin-top: 5px;
  overflow: hidden;
}

.inputImageContainer:before,
.inputAudioFile:before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  content: "\f03e";
  font-family: icons;
  font-size: 64px;
  font-weight: bold;
  color: $white60;
}

.inputAudioFile:before {
  content: "\f001";
  font-size: 24px;
  padding: 5px 0;
}

.inputImageLayout {
  position: relative;
  flex: 0 0 auto;
}

.inputImageLayoutVertical {
  margin: 0 auto;
}

.inputImageContainer {
  z-index: 1;
  width: 100%;
  height: 100%;
}

.inputAudioFile {
  flex: 1;
  margin: 5px;
}

.inputFile {
  z-index: 3;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.inputImageImg {
  z-index: 2;
  height: 100%;
  width: 100%;
}

.inputAudioContainer {
  display: flex;
  align-items: stretch;
}

.playerAudioButtonContainer,
.inputAudioButton {
  flex: 1;
  margin: 5px;
}

.playerAudioButton,
.inputAudioButton {
  border-radius: 15px;
  padding: 15px 0;
  font-size: 24px;
  color: $white;
  background: $white30;
}

.playerAudioButtonContainer {
  position: relative;
}

.playerAudioButton {
  width: 100%;
}

.deleteButton {
  z-index: 2;
  position: absolute;
  right: -8px;
  top: -8px;
  border-radius: 12px;
  height: 24px;
  width: 24px;
  padding: 0;
  font-size: 18px;
}