* {
  box-sizing: border-box;
}

#feedback-dialog {
  height: 500px;
  width: 400px;
  margin: auto;
  padding: 0;
  text-align: center;
  background-color: lightgray;
  border: 2px solid black;
  border-radius: 20px;
}
#feedback-dialog::backdrop {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
}

#feedback-dialog .close-btn {
  position: absolute;
  font-size: 50px;
  top: 0px;
  right: 0.25em;
  font-weight: bold;
  cursor: pointer;
  border: 0;
  background: none;
}

#feedback-dialog .modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 16px;
}

#feedback-dialog h2 {
  font-size: 32px;
  margin: 0;
  padding: 0;
}

#feedback-dialog p {
  font-size: 24px;
  margin: 0;
  padding: 0;
}

#feedback-dialog form {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#feedback-dialog input,
#feedback-dialog textarea {
  width: 100%;
  font-size: 20px;
  padding: 8px;
  border: 2px solid black;
  border-radius: 10px;
  margin: 0;
}

#feedback-dialog textarea {
  flex-grow: 1;
  resize: none;
}

#feedback-dialog button {
  background-color: #293571;
  font-size: 20px;
  font-weight: bold;
  padding: 8px;
  color: white;
  border: 2px solid black;
  border-radius: 10px;
  width: fit-content;
  cursor: pointer;
  margin: auto;
  position: relative;
}
#feedback-dialog button:disabled {
  opacity: 40%;
}
#feedback-dialog button:disabled::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: -50px;
  border: 12px solid white;
  border-top: 12px solid darkblue;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#login-feedback-button {
  font-size: 14px;
  color: gray;
  position: absolute;
  bottom: 10px;
  left: 10px;
  cursor: pointer;
}



@media (max-width: 800px) {
  #feedback-dialog .modal-content {
    padding: 8px;
  }
}