/* ========================================== */

.modal {
  width: 100%;
  height: 100%;
}

.modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
  z-index: 11;
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  max-width: fit-content;
  max-height: fit-content;
  margin: auto;
  overflow: hidden;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.1);
  transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content > div {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 500px;
  height: 450px;
  border: 0.1rem #000;
  background-color: #f4f4f4;
  border-radius: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 15px;
}

.modal-title {
  text-align: center;
  font-size: 35px;
  color: #45464b;
  font-weight: 500;
}

.close-button {
  position: absolute;
  right: 0;
  float: right;
  top: 0;
  width: 1.5rem;
  line-height: 1.5rem;
  text-align: center;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: lightgray;
}

.close-button:hover {
  background-color: darkgray;
}

.show-modal {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}
