#overlay,
#overlay2 {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 2000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.dark #overlay,
.dark #overlay2 {
  background-color: rgba(0,0,0,0.7);
}

#overlay.loading {
  margin: auto;
  background-image: url('/img/notification/loading.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 125px;
}

#notification-close,
#modal-close {
  background: url('/img/notification/close.svg') 25px 25px no-repeat;
  background-position: center center;
  width: 25px !important;
  height: 25px !important;
  position: absolute;
  top: 5px;
  right: 5px;
  cursor: pointer;
  opacity: 0.7;
  background-size: 80%;
}
#notification-close {
  background-image: url(/img/library/icons/icon-close-white.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 18px auto;
}
#modal-close {
  background-image: url(/img/library/icons/icon-close.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px auto;
  width: 40px !important;
  height: 40px !important;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  opacity: 0.7;
  border-radius: 100%;
  border: 2px solid #efefef;
}
.dark #modal-close {
  background-image: url(/img/library/icons/icon-close-white.svg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 20px auto;
  border: 1px solid #333;
}
  #notification-close:hover, #modal-close:hover {
    opacity: 1;
  }

#notification {
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  display: none;
  background-color: #fff;
  color: #666;
  font-weight: 400;
  font-size: 18px;
  padding: 14px 50px 16px 70px;
  box-sizing: border-box;
  border-radius: 5px;
  text-align: left;
  line-height: 1.5;
  height: auto;
  position: fixed;
  top: -60px;
  right: 70px;
  max-width: 600px;
  z-index: 2100;
  box-shadow: 0 4px 10px -4px rgba(0,0,0,0.7);
  -webkit-transition: top 0.3s ease-in-out;
  -o-transition: top 0.3s ease-in-out;
  transition: top 0.3s ease-in-out;
}
@media screen and (min-width: 40em) and (max-width: 63.9375em) {
	#notification {
    right: 90px;
  }
}

#notification.running {
  top: 10px;
}
#notification:after {
  bottom: 0px;
  height: 5px;
  width: 100%;
  right: 0px;
  background: rgba(0,0,0,0.3);
  content: " ";
  position: absolute;
  border-radius: 0px 0px 5px 5px;
  -webkit-transition: all 5s ease-in-out;
  -o-transition: all 5s ease-in-out;
  transition: all 5s ease-in-out;
}

#notification.running:after {
  right: 0px;
  width: 0px;
}

@media screen and (max-width: 599px) {
  #notification {
    right: 5%;
    left: 5%;
    width: 90%;
    max-width: 90%;
  }
}

#notification.notification-success {
  background-color: #4AAF79;
  color: #FFFFFF;
  background: url('/img/notification/success.svg') no-repeat left 20px top 40% #4AAF79;
  background-size: 34px auto !important;
}
#notification.notification-error {
  background-color: #ff5c57;
  color: #FFFFFF;
  background: url('/img/notification/warning.svg') no-repeat left 20px top 40% #ff5c57;
  background-size: 34px auto !important;
}
#notification.notification-warning {
  background-color: #F3BA44;
  color: #FFFFFF;
  background: url('/img/notification/warning.svg') no-repeat left 20px top 40% #F3BA44;
  background-size: 34px auto !important;
}

#notification-modal {
  border-radius: 8px;
  width: 500px;
  position: fixed;
  display: none;
  height: auto;
  top: 40%;
  transform: translateY(-50%);
  left: calc(50% - 250px);
  z-index: 2100;
  box-sizing: border-box;
  background-color: #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 40px;
}
.dark #notification-modal {
  color: #fff;
  background: #1B1B1B;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
}
  #notification-modal #modal-text {
    text-align: left;
    padding: 0px 0px 20px;
    font-size: 1.5em;
    color: #03151E;
    font-weight: bold;
  }
  .dark #notification-modal #modal-text {
    color: white;
  }
    #notification-modal #modal-text .modal-small-text {
      font-size: 14px;
      line-height: 1.6;
      font-weight: normal;
    }
  #notification-modal #modal-buttons {
    margin: auto;
    text-align: center;
    font-weight: bold;
  }
  #notification-modal button {
    padding: 15px 0;
    border: none;
    border-radius: 0;
    background-color: #efefef;
    color: #666;
    font-weight: bold;
    font-size: 1em;
    font-family: 'Roboto', sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
    width: 48%;
    border-radius: 6px;
    margin-right: 4%;
  }
  .dark #notification-modal button {
    background-color: #333;
    color: #fff;
  }

  #notification-modal button:last-child {
    margin-right: 0px;
  }
    #notification-modal button.modal-delete {
      background-color: #DF6C5E;
      color: white;
    }
    #notification-modal button.modal-disable,
    #notification-modal button.modal-confirm {
      background-color: #4BC1D2;
      color: white;
    }

    .dark #notification-modal button.modal-disable,
    .dark #notification-modal button.modal-confirm {
      background-color: #007c96;
      color: white;
    }

    #notification-modal button:hover {
      opacity: 0.8;
    }
    #notification-modal button:active {
      box-shadow: inset 0 0 5px #666;
    }
    #notification-modal button:disabled {
      cursor: not-allowed;
      opacity: 0.7 !important;
      box-shadow: none;
    }

    #modal-link {
      margin-bottom: 15px;
    }
@media screen and (max-width: 39.9375em) {
  #notification-modal {
    width: 96%;
    left: 2%;
    right: 2%;
    padding: 20px;
  }
  #notification-modal #modal-text {
    font-size: 1.2em;
    padding-right: 25px;
  }
}