.modal {
  transition: opacity 0.3s, transform 0.3s;
}

.modal-container {
  background-color: #2b2235;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.modal-header {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
}

.highlight {
  color: #7bf98e;
}

.modal-input {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
}

.modal-button:hover {
  background-color: #4187cc;
}
.modal-button {
  transition: all 0.3s ease;
  background-color: #74b9fe;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-button img {
  margin-right: 10px;
}

.modal-text {
  color: #fff;
  font-size: 12px;
  margin-top: 20px;
}

#modal-text-error {
  color: red;
  font-size: 14px;
  margin-top: 15px;
  display: none;
}

.modal-link {
  color: #74b9fe;
  text-decoration: none;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

.modal {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: fixed;
  display: none;
  top: 0;
  bottom: 0;
  left: 0;
  transition: all 0.5s ease;
  height: -moz-fit-content;
  height: fit-content;
  right: 0;
  margin: auto;
  max-height: 600px;
  overflow: auto;
  transition: margin-top 0.3s ease, height 0.3s ease;
  transform: translateZ(0);
  padding: 70px 24px;
  border-radius: 6px;
  max-width: 600px;
  z-index: 1000000000;
}

#overlay.active,
.modal.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 30;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.overlay {
  opacity: 0;
  transition: opacity 0.2s;
}

.overlay {
  opacity: 0;
  transition: opacity 0.2s;
}

.overlay-visible {
  opacity: 1;
}

#overlay.hiding,
.modal.hiding {
  animation: fadeOut 0.5s ease forwards;
}

.close-modal {
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.close-modal:hover {
  transform: scale(0.95);
}

.close-modal:active {
  transform: scale(0.65);
}

.modal-hidden {
  display: none;
  opacity: 0;
  transform: scale(0.9);
}

.modal-visible {
  opacity: 1;
  display: block;
  transform: scale(1);
}