/* Modal container (hidden by default) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 999;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background-color: rgba(0, 0, 0, 0.4);

  align-items: center;
  justify-content: center;
}

/* Modal content */
.modal-content {
  background-color: darkslategray;
  padding: 20px;
  border: 2px solid black;
  border-radius: var(--borderRadius);
  width: 70%;
  max-width: 600px;
  box-sizing: border-box;
  position: relative;
}

/* Modal form buttons container */
.button-container {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}

.modal-content h1 {
  color: white;
  text-align: center;
  user-select: none;
  margin: 10px;
  background-color: rgba(0, 0, 0, 0);
}

.modal-content label {
  color: white;
}

.modal-content input,
.modal-content select {
  width: 80%;
  padding: 10px;
  border: 1px solid gray;
  border-radius: var(--borderRadius);
}

/* Close button */
.close-button {
  color: #696969;
  font-size: 28px;
  font-weight: bold;
  user-select: none;
  transition: background-color 0.6s ease, color 0.6s ease;
  position: absolute;
  right: 20px;
  top: 20px;
}

.close-button:hover,
.close-button:focus {
  color: red;
  text-decoration: none;
  cursor: pointer;
}

/* Submit button */
#submit-btn {
  width: 6em;
  height: 3em;
  border: none;
  background: rgb(0, 110, 0);
  font-size: larger;
  color: white;
  padding: 15px;
  text-align: center;
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.6s ease, color 0.6s ease;
}

#submit-btn:hover {
  cursor: pointer;
  background: rgb(0, 170, 0);
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.25);
}

#submit-btn:disabled {
  background: gray;
}

/* Abort button */
#abort-btn {
  width: 6em;
  height: 3em;
  border: none;
  background: rgb(110, 0, 0);
  font-size: larger;
  color: white;
  padding: 15px;
  text-align: center;
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.6s ease, color 0.6s ease;
}

#abort-btn:hover {
  cursor: pointer;
  background: rgb(170, 0, 0);
  box-shadow: 12px 12px 12px rgba(0, 0, 0, 0.25);
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-radius: 100%;
  border-top-color: #000;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
