.interface-configuration {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
}

.interface-configuration__form {
  margin: 8% auto 0 auto;
  height: 90%;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "interface_name enable"
    "communicator_input_label communicator_input"
    "file_upload_label file_upload"
    "select_pubkey_label select_pubkey"
    "apply_button apply_button";
  grid-template-rows: 20% 15% 15% 15% 35%;
  justify-items: center;
  align-items: center;
}

.form--enabled {
  grid-area: enable;
  width: 100%;
  text-align: end;
  margin-bottom: 1.1rem;
}

.form__interface-name {
  grid-area: interface_name;
  width: 70%;
  text-align: start;
  margin-bottom: 1.1rem;
}

.form__communicator-input {
  width: 100%;
  grid-area: communicator_input;
  color: black;
}

.form__communicator-input-label {
  grid-area: communicator_input_label;
}

.form__select-pubkey {
  grid-area: select_pubkey;
  width: 100%;
}

.form__select-pubkey-label {
  grid-area: select_pubkey_label;
}

.form__communicator-file-upload-button {
  grid-area: file_upload;
  width: 100%;
  height: 70%;
  margin: 0 auto;
}

.form__communicator-file-upload-button-label {
  grid-area: file_upload_label;
}

.form__apply {
  grid-area: apply_button;
  width: 40%;
  height: 2.5rem;
  background-color: var(--primary-color);
  outline: 2px solid white;
  transition: var(--button-hover-outline);
  padding: 2px 0 0 0;
}

.form__apply:hover {
  outline-offset: var(--button-hover-outline-offset);
}

button:disabled {
  background: rgb(192, 192, 192);
  border-color: rgb(192, 192, 192);
  color: rgba(0, 0, 0, 0.4);
  transition: none;
  transform: none;
  outline: none;
}

button {
  border: none;
  text-decoration: none;
  background: rgb(255, 255, 255);
  color: rgb(51, 51, 51);
  cursor: pointer;
  transition: background 140ms ease-in-out, transform 140ms ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

button:not(:disabled):hover,
button:not(:disabled):focus {
  background: var(--primary-color);
}

button:not(:disabled):active {
  transform: scale(0.99);
}

@keyframes fadeIn {
  0%,
  75% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.form__warning-icon {
  margin-right: 0.2rem;
  opacity: 0;
  animation: fadeIn 1.5s linear forwards;
}
