.modalBackground {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  border: 1px solid #707070;
  background-color: rgba(39,39,38, 0.97);
  display: none;
  z-index: 99999999999999;

  .modal {
    width: 50%;
    background-color: #3f84c5;
    min-height: 100px;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 99999999999999999;
    display: block;
    height: auto;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    max-height: 60%;
    min-height: 200px;

    .loader {
      background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/entityPopups/preloader.svg");
      background-size: 60px 60px;
      height: 60px;
    }

    .infoArea {
      padding-bottom: 50px;
      color: #ffffff;
      font-family: Roboto;
      font-weight: 400;
      font-size: 16px;
      text-align: center;
      padding-bottom: 70px;
      overflow: auto;
      max-height: 400px;

      .headline {
        font-size: 20px;
      }

      table {
        tr {
          td {
            text-align: left;
            padding: 12px;
          }
        }
      }

      img {
        border-radius: 1px;
      }

      .sisters {
        .url {
          position: relative;
          max-width: 650px;
          margin: 0 auto;

          .text {
            color: #3f84c5;
            padding: 10px;
            background-color: white;
            font-weight: bold;
            white-space: nowrap;
            max-width: 550px;
            text-overflow: ellipsis;
            overflow: hidden;
            border-radius: 1px;
            font-size: 16px;
            display: inline-block;
            padding-right: 14px;
          }
        }

        .icon {
          background-color: white;
          background-size: 30px 30px;
          width: 42px;
          height: 42px;
          font-size: 30px;
          display: inline-block;
          cursor: pointer;
          margin: 8px;
          border-radius: 1px;

          &.face_class {
            background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/sisters/face_class.svg");
          }

          &.bird_class {
            background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/sisters/bird_class.svg");
          }

          &.pinti_class {
            background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/sisters/pinti_class.svg");
          }

          &.loggedin_class {
            background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/sisters/loggedin_class.svg");
          }

          &.copy {
            position: absolute;
            right: 0;
            top: -8px;

            .tooltip {
              visibility: hidden;
              width: 140px;
              background-color: #555;
              color: #fff;
              text-align: center;
              border-radius: 6px;
              padding: 5px;
              position: absolute;
              z-index: 1;
              right: 0;
              bottom: 50px;
              margin-left: 0;
              opacity: 0;
              transition: opacity 0.3s;

              &::after {
                content: "";
                position: absolute;
                top: 100%;
                left: 84%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #555 transparent transparent transparent;
              }
            }

            &:hover .tooltip {
              visibility: visible;
              opacity: 1;
            }
          }

          a {
            width: 100%;
            height: 100%;
            display: block;
          }
        }
      }

      &.creationInfo,
      &.subelements {
        a {
          background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/entityRelations/gotoIcon_white.svg");
          background-position: right center;
          background-size: 19px 18px;
          padding-right: 28px;
          display: inline-block;
          color: #fcfcfc;
        }
      }

      &.downloadImages {
        a {
          display: inline-block;
          color: #fcfcfc;

          &.termsofuse {
            background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/entityRelations/gotoIcon_white.svg");
            background-position: right center;
            background-size: 19px 18px;
            padding-right: 28px;
            text-decoration: underline;
          }

          &.download {
            font-size: 16px;
          }
        }
      }

      &.colorCheckerEtc {
        .administrative_objects {
          .images {
            display: flex;
            justify-content: space-around;

            img {
              width: 45%;
              cursor: pointer;
            }
          }

          > div {
            min-height: 140px;

            &.loading {
              background-image: url("https://commons.digitalebibliothek.gbv.de/prizepapers/images/entityPopups/preloader.svg");
              background-size: 60px 60px;
              background-position: bottom center;
            }
          }
        }
      }

      &.materialityReport {
        img {
          width: 90%;
          cursor: pointer;
        }

        .text {
          text-align: left;
        }
      }
    }

    .closeButton {
      background-color: #3f84c5;
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100px;

      .button {
        width: 300px;
        height: 60px;
        border: 1px solid #ffffff;
        text-align: center;
        color: #ffffff;
        font-family: Roboto;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 2px;
        line-height: 40px;
        text-transform: uppercase;
        padding-top: 10px;
        margin: 15px auto 0;
        cursor: pointer;
      }
    }
  }
}
@media all and (max-width:1024px) {
  .modalBackground {
    .modal {
      width: 95%;

      .loader {}

      .infoArea {
        .headline {}

        table {
          tr {
            td {}
          }
        }

        img {}

        .sisters {
          .url {
            .text {}
          }

          .icon {
            &.face_class {}

            &.bird_class {}

            &.pinti_class {}

            &.loggedin_class {}

            &.copy {
              .tooltip {
                &::after {}
              }

              &:hover .tooltip {}
            }

            a {}
          }
        }

        &.creationInfo,
        &.subelements {
          a {}
        }

        &.downloadImages {
          a {
            &.termsofuse {}

            &.download {}
          }
        }

        &.colorCheckerEtc {
          .administrative_objects {
            .images {
              img {}
            }

            > div {
              &.loading {}
            }
          }
        }
      }

      .closeButton {
        .button {}
      }
    }
  }
}