/* eslint-disable css/no-invalid-properties */
/* The overlay (background) */
.modal-overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* Show the modal */
.modal-overlay.show {
  display: block;
}

/* The modal box */
.modal-box {
  width: 90%;
  margin: 5em auto;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  z-index: inherit;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #d033c6 0%, #b32bff 40%, #9f4fff 70%, #2936ff 100%);
}

/* Content */
.modal-content {
  margin: 50px 0 20px 0;
  display: none;
}

/* Close button */
.modal-close {
  position: absolute;
  right: 0px;
  top: 0px;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
}

.modal-close:hover {
  background-color: var(--primary-color);
}

/* Loader */
.modal-loader {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.spinner {
  border: 4px solid var(--primary-color);
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}