.modal {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  background-color: rgb(0 0 0 / 60%);

  .modal-content {
    position: relative;
    background-color: var(--modal-background-color);
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow:
      0 4px 8px 0 rgba(0, 0, 0, 0.2),
      0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 11px;
    .modal-header {
      position: relative;
      height: 100%;
      min-height: 20px;
      color: var(--text-color);

      .close {
        float: right;
        font-size: 28px;
        font-weight: bold;
        position: absolute;
        right: 5px;
        top: 0;
      }

      .close:hover,
      .close:focus {
        text-decoration: none;
        cursor: pointer;
      }
    }

    .modal-body {
      padding: 2px 16px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      color: var(--text-color);
      .modal-icon {
        svg {
          width: 100%;
          max-width: 60px;
          height: 100%;
          min-height: 70px;
          g {
            mask: none;
            path {
              fill: var(--primary-color);
            }
          }
          circle {
            stroke: var(--primary-color);
          }
        }
      }
    }

    .modal-footer {
      padding: 2px 16px;
      color: var(--text-color);
      position: absolute;
      bottom: 10px;
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
    }
  }

  @-webkit-keyframes animatetop {
    from {
      top: -300px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }

  @keyframes animatetop {
    from {
      top: -300px;
      opacity: 0;
    }
    to {
      top: 0;
      opacity: 1;
    }
  }
}

.galleryModal {
  @media (max-width: 1200px) {
    min-width: 1000px;
  }

  @media (max-width: 992px) {
    min-width: 750px;
  }

  @media (max-width: 768px) {
    min-width: auto;
  }
}

// new theme modal
.newThemeModal{
  .modal-content {
    position: relative;
    background-color: var(--modal-background-color);
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow:
      0 4px 8px 0 rgba(0, 0, 0, 0.2),
      0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 11px;
    padding: 40px;

    .modal-header {
      height: 100%;
      min-height: 20px;
      color: var(--text-color);
      display: flex;
      justify-content: space-between;
      align-items: center;

      .close-icon {
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
      }
    }

    .modal-body {
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      color: var(--text-color);
      margin: 24px 0;

      .modal-icon {
        svg {
          width: 100%;
          max-width: 60px;
          height: 100%;
          min-height: 70px;
          g {
            mask: none;
            path {
              fill: var(--primary-color);
            }
          }
          circle {
            stroke: var(--primary-color);
          }
        }
      }
    }

    .footer {
      color: var(--text-color);
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 16px;

      .new-theme-button{
        transition: all 0.3s ease;
        &:first-child{
          &:hover{
            background-color: #DD5026 !important;
          }
        }

        &:last-child{
          border: 0.5px solid #F1F1F1 !important;

          &:hover{
            background-color: #FFFFFF !important;
            border: 0.5px solid rgba(0, 0, 0, 0.24) !important;
          }
        }
      }
    }
  }
}

.confirmNavigateDialog-v2{
  .modal-content{
    background-color: #fff;
  }
}
