/**
 * Material Modal CSS
 */
 .modal {
    will-change: visibility, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: $modal-delay;
  }
  .modal--active {
    visibility: visible;
    opacity: 1;
  }
  .modal--align-top {
    align-items: flex-start;
  }
  .modal__bg {
    background: transparent;
  }
  .modal__dialog {
    /*max-width: 600px;*/
    width: 100%;
    height: 100%;
    padding: 1.2rem;
  }
  .modal__content {
    will-change: transform, opacity;
    position: relative;
    padding: 2.4rem;
    background: #ffffff;
    background-clip: padding-box;
    box-shadow: 0 12px 15px 0 rgba(0,0,0,0.25);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .modal__content--active {
    opacity: 1;
    width: 100%;
    height: 100%;
  }
  .modal__close {
   /* z-index: 1100;
    cursor: pointer;*/
  }
  .modal__trigger {
    position: relative;
    display: inline-block;
    padding: 1.2rem 2.4rem;
    color: rgba(0,0,0,0.7);
    line-height: 1;
    cursor: pointer;
    /*
    background: #ffffff;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
    */
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .modal__trigger--active {
    z-index: 10;
  }
  .modal__trigger:hover {
    background: #ffffff;
  }
  #modal__temp {
    will-change: transform, opacity;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    transform: none;
    opacity: 0;
    transition: opacity 0.1s ease-out, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: hidden;
  }
/**
 * Demo specific CSS
 */
 img {
    max-width: 100%;
  }
 
  .demo-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1.2rem;
    padding: 0.6rem;
    /*background: rgba(0,0,0,0.3);*/
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .demo-close svg {
    width: 24px;
    fill: #fff;
    pointer-events: none;
    vertical-align: top;
  }
  .demo-close:hover {
   /* background: rgba(0,0,0,0.6);*/
  }
  .CloseRules{
    width:48px;
    height: 48px;
    z-index: 1100;
    cursor: pointer;
  }
 


@media (orientation: landscape) {

    .modal__dialog {
        width: 80%;
    }
  
}

@media (orientation: portrait) {
    .modal__dialog {
        width: 100%;
    }
 
}
 