.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--background);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.close-button {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  border: none;
  background: none;
}

form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: var(--background);
  font-family: 'Jost', sans-serif;
}

.form-button-container {
  display: flex;
  justify-content: center;
}

form button {
  padding: 8px 32px;
  background-color: var(--background);
  color: var(--footer);
  border: solid 2px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out,
    transform 0.3s ease-in-out;
}

form button:hover {
  background-color: var(--footer);
  color: var(--background);
}

#modaltitle {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: 'Playwrite DK Loopet', cursive;
}

.toast {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--footer);
  color: var(--background);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
}

.toast.success {
  background-color: var(--footer);
}

.toast.error {
  background-color: var(--background);
}
