.blocker {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    overflow: auto;
    z-index: 1;
    padding: 20px;
    box-sizing: border-box;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.75);
    text-align: center;
  }
  .blocker:before{
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -0.05em;
  }
  .blocker.behind {
    background-color: transparent;
  }
  .modal {
    display: none;
    vertical-align: middle;
    position: relative;
    z-index: 2;
    max-width: 80vw;
    box-sizing: border-box;
    width: 95%;
    background: #fff;
    padding: 8vh 30px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 0 10px #000;
    -moz-box-shadow: 0 0 10px #000;
    -o-box-shadow: 0 0 10px #000;
    -ms-box-shadow: 0 0 10px #000;
    box-shadow: 0 0 10px #000;
    text-align: justify;
    min-height: auto;
    top: 0;
    left: 0;
    padding: 8em;
  }

  .modal-effect {
    position: relative;
    animation-name: modaly;
    animation-delay: 0s;
    animation-duration: 0.3s;
    animation-timing-function: linear;
  }

  .modal a.close-modal {
    position: absolute;
    top: -12.5px;
    right: -12.5px;
    display: block;
    width: 30px;
    height: 30px;
    text-indent: -9999px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    background-image: url('../images/close_X_black.png');
  }

  .modal a.close-modal:hover {
    background-image: url('../images/Close_X_blue.png');
    animation-name: closeRotation;
    animation-delay: 0s;
    animation-duration: 0.2s;
    animation-timing-function: linear
  }
  
  .modal-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translateY(-50%) translateX(-50%);
    padding: 12px 16px;
    border-radius: 5px;
    background-color: #111;
    height: 20px;
  }
  
  .modal-spinner > div {
    border-radius: 100px;
    background-color: #fff;
    height: 20px;
    width: 2px;
    margin: 0 1px;
    display: inline-block;
  
    -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
  }
  
  .modal-spinner .rect2 {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
  }
  
  .modal-spinner .rect3 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
  }
  
  .modal-spinner .rect4 {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
  }


  @keyframes modaly {
    /*0% {top: 0px; bottom: 5vh;}*/
    /*100% {top: 5vh; bottom: 10vh;}*/
    0% 
    {
      /*transform: translateY(-100px);*/
      opacity: 0.2;
    }

    75% 
    {
      /*transform: translateY(-20px);*/
      opacity: 0.6;
    }

    100% 
    {
      /*transform: translateY(0px);*/
      opacity: 1;
    }
  }

  @keyframes modaloff {
    0% 
    {
      /*transform: translateY(0px);*/
      opacity: 1;
    }

    75% 
    {
      /*transform: translateY(-20px);*/
      opacity: 0.6;
    }

    100% 
    {
      /*transform: translateY(-100px);*/
      opacity: 0.2;
    }
  }

  @keyframes closeRotation {
    0% 
    {
      transform: rotate(0deg);
    }

    75% 
    {
      transform: rotate(90deg);
    }

    100% 
    {
      transform: rotate(180deg);
    }
  }

  
  @-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% { -webkit-transform: scaleY(0.5) }
    20% { -webkit-transform: scaleY(1.0) }
  }
  
  @keyframes sk-stretchdelay {
    0%, 40%, 100% {
      transform: scaleY(0.5);
      -webkit-transform: scaleY(0.5);
    }  20% {
      transform: scaleY(1.0);
      -webkit-transform: scaleY(1.0);
    }
  }

  @media screen and (min-width: 1500px) {
    .modal {
      max-width: 80vw;
      height: auto;
    }
  }

  @media screen and (max-width: 991px) {
    .modal {
      max-width: 80vw;
      height: auto;
      padding: 3em;
    }
  }

  @media screen and (max-width: 767px) {
    .modal {
      max-width: 100vw;
      height: auto;
      /*padding-top: 10vh;*/
      padding: 3em;
    }
  }


@media screen and (max-width: 479px) {
  .modal {
    max-width: 100vw;
    height: auto;
    padding: 3em;
  }
}