@import (reference) "colors";

.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: rgba(0,0,0,0.7);

  &--content {
    min-height: ~"calc(100vh - 200px)";
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 4;
  }

  &--body {
    background: @color--white;
    overflow-y: auto;
    max-height: ~"calc(100vh - 200px)";
    text-align: center;
    border-radius: 5px;
    padding: 3em;
  }

  &--close {
    z-index: 5;
    position: fixed;
    top: 1rem;
    right: 1rem;

    i:before {
      font-size: 1.4rem;
      color: @color--white;
    }

    &:hover {
      cursor: pointer;
      opacity: 0.9;
    }
  }

  &.scrollable {
    overflow-y: auto;

    .modal--body {
      max-height: none;
    }
  }
}
