modal {
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    margin: 0px;
    z-index: 1000;
    display: none;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden !important;
}

modal .body {
    background: rgba(0,0,0,0.7);
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    border-radius: 0px;
    transition-duration: 500ms;
    opacity: 0;
    overflow: auto;
    padding: 0px;
    transform: translateY(150px);
    transform-origin: top right;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
    display: block;
}

modal .bg {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    display: block;
}

modal .body.open {
    opacity: 1;
    transform: translateY(0px);
}

modal .icon.close {
    width: 32px;
    height: 32px;
    line-height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 100%;
    position: absolute;
    top: 60px;
    right: 25px;
    color: #000;
    text-align: center;
    display: block;
    z-index: 10;
    cursor: pointer;
    transform: scale(0);
}

modal .icon.close.open {
    animation-name: bounceIn;
	  animation-duration: 1000ms;
    animation-fill-mode: forwards;
}

@keyframes bounceIn {
  0%{
    opacity: 0;
    transform: scale(0.3) translate3d(0,0,0);
  }
  55%{
    opacity: 0.9;
    transform: scale(1.12);
  }
  68%{
    opacity: 1;
    transform: scale(0.75);
  }
  80%{
    opacity: 1;
    transform: scale(0.92);
  }
  90%{
    opacity: 1;
    transform: scale(1.03);
  }
  100%{
    opacity: 1;
    transform: scale(1) translate3d(0,0,0);
  }
}

body.show-modal main {
    /*filter: blur(7px);*/
}

body.show-modal modal {
    display: block;
    overflow: auto;
}