.modal {
  opacity: 0;
  visibility: hidden;
  background-color: rgba(0, 0, 0, 0.55);
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: 0.3s ease;
}

.modal__content {
  background-color: var(--color-white);
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
  padding: 44px 24px;
  position: relative;
}

.modal__close {
  position: absolute;
  right: 14px;
  top: 14px;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

@media only screen and (max-width: 500px) {
  .modal__content {
    height: 100%;
    max-width: 100%;
    border-radius: unset;
    display: flex;
    align-self: stretch;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
  }
}
