select {
  background-color: var(--documentation-background-color);
  color: var(--body-text-color);
  border: 1px solid var(--input-border-color);
  transition: border-color 0.2s ease;
  width: 100%;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  padding: 8px;
}

select:hover {
  border-color: #6c5ce7;
}

.text-fields {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  padding: 12px 0;
  gap: 16px;
}

#source-text {
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  width: 100%;
  padding: 15px;
  height: 200px;
  margin-bottom: 15px;
  background-color: var(--documentation-background-color);
  color: var(--body-text-color);
}

#source-text:focus {
  border-color: #6c5ce7;
}

#destination-text-container {
  height: 200px;
  border: 1px solid var(--input-border-color);
  border-radius: 8px;
  position: relative;
  background-color: var(--documentation-background-color);
}

#destination-text {
  height: 100%;
  padding: 15px;
  overflow-y: scroll;
}

.multipleChoiceElem {
  cursor: pointer;
  background-color: var(--multiple-choice-background-color);
  color: var(--multiple-choice-text-color);
}

.multipleChoiceMenu {
  cursor: pointer;
  background-color: var(--multiple-choice-background-color);
  color: var(--multiple-choice-text-color);
}

.multipleChoiceMenu td {
  padding: 5px;
}

.multipleChoiceMenu td:hover {
  font-weight: bold;
}

.ux-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ux-controls-desktop {
  display: none;
}

.ux-controls-mobile {
  width: 100%;
  flex-direction: column;
  gap: 12px;
  padding: 0 8px;
}

.translate-button {
  width: 100%;
}

.clipboard-button {
  bottom: 10px;
  right: 25px;
  position: absolute;
  width: 25px;
  height: 30px;
  transition: transform 0.2s ease;
}

.translation-error,
.limit-explanation {
  margin: 10px 8px;
  padding: 12px;
  border-radius: 8px;
}

.limit-explanation {
  background-color: rgba(0, 184, 148, 0.08);
}

.modifiedWord {
  font-weight: bold;
  color: #f1ca7e;
}

.translation-error {
  color: var(--translation-error-text-color);
  background-color: var(--translation-error-background-color);
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

.limit-explanation {
  color: #00b894;
  padding: 10px;
  background-color: rgba(0, 184, 148, 0.1);
  border-radius: 4px;
  margin: 10px 0;
}

.clipboard-button:active {
  transform: scale(0.9);
}

.destination-text-placeholder {
  text-align: center;
  font-style: italic;
  margin-top: 10px;
  color: var(--body-text-color);
}

@media only screen and (min-width: 648px) {
  select {
    width: auto;
    font-size: 16px;
    cursor: pointer;
    padding: initial;
  }

  .ux-controls-mobile {
    display: none;
  }

  .ux-controls-desktop {
    display: flex;
    flex-direction: row;
    margin: 0;
  }

  .translate-button {
    width: 120px;
  }

  .text-fields {
    height: 60vh;
    flex-direction: row;
  }

  #source-text {
    margin-bottom: 0;
    height: auto;
    flex: 1;
  }

  #destination-text-container {
    height: auto;
    flex: 1;
  }

  .clipboard-button {
    cursor: pointer;
  }
}
