/* https: //daily-dev-tips.com/posts/vanilla-javascript-modal-pop-up/ */
/* To access IHME theme color variables and other variables, full style for modal added to
htdocs/sites/all/themes/custom/ihme/styles/ihme.scss */
.modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  &.open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
  }

  &-bg {
    position: absolute;
    background: teal;
    width: 100%;
    height: 100%;
  }

  &-container {
    border-radius: 10px;
    background: #fff;
    position: relative;
    padding: 30px;
  }

  &-close {
    position: absolute;
    right: 15px;
    top: 15px;
    outline: none;
    appearance: none;
    color: red;
    background: none;
    border: 0px;
    font-weight: bold;
    cursor: pointer;
  }
}
