@import '../../../../src/sass/styles.scss';

.overlay{
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  z-index: 1000;
  display: none;
  visibility: hidden;
  &:target,
  &.show {
    opacity: 1;
    display: block;
    visibility: visible;
  }

  .popup {
    margin: 0 auto;
    padding: 20px;
    background: $global-white;
    border-radius: 5px;
    width: 100%;
    position: relative;
    transition: all .25s ease-in-out;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    @media (min-width: 768px) {
      margin: 10vh auto;
      width: 40%;
      min-width:700px;
      padding: 4*$padding-10 8*$padding-10;
  
    }
    @media screen and (max-device-height : 768px) and (orientation :landscape) {
      margin: 0 auto;
      width: 100%;
    }

    .title {
      font-size: 20px;
      text-align: center;
      font-weight: 600;
      padding: $padding-10 0 3*$padding-10 0;
      @include app-themes {
        color: $secondary-color;
      }
    }
    .req-info-page{
      margin-right: 0;
      margin-bottom: 24px;
    }
    .popup-btn-other{
      display: inline-block;
      margin-right: 16px;
    }
    .center-container{
      text-align: center;
    }
    .close {
      position: absolute;
      top: 30px;
      right: 20px;
      transition: all 200ms;
      font-size: 30px;
      font-weight: bold;
      text-decoration: none;
      cursor: pointer;
      display: none;
      &.show {
        display: block;
      }
    }

    .close:hover {
      @include app-themes {
        color: $secondary-color;
      }
    }

    .content {
      max-height: 30%;
      overflow: auto;
    }

    .footer {
      margin-top: 2*$margin-10;
      &::after {
        content: "";
        clear: both;
        display: block;
      }
    }
  }
}

