.dialog-background {
    background: none repeat scroll 0 0 rgba(160, 160, 160, 0.7);
    height: 6000px;
    left: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

.dialog-loading-wrapper {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    height: 200px;
    left: 50%;
    margin-left: -100px;
    margin-top: -120px;
    position: fixed;
    top: 11%;
    width: 200px;
    z-index: 9999999;
}

.dialog-loading-icon {
    background-color: #FFFFFF !important;
    border-radius: 13px;
    display: block;
    height: 200px;
    margin: 0;
    padding: 20px;
    text-align: center;
    width: 200px;
}

/* Second style block */
.dialog-loading-wrapper-big {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    height: 300px;
    left: 50%;
    margin-left: -170px;
    margin-top: -50px;
    position: fixed;
    top: 11%;
    width: 360px;
    z-index: 9999999;
}

#x {
    position: relative;
    float: right;
    color: grey;
    top: 5px;
    right: 25px;
    border: 15px;
    background-color: white;
}

#x-div {
    padding: 1px;
    padding-left: 30px;
    padding-right: 30px;
    border-radius: 10px;
}

.dialog-loading-icon-big {
    background-color: #FFFFFF !important;
    border-radius: 13px;
    display: block;
    height: 300px;
    margin: 0;
    padding: 20px;
    text-align: center;
    display: table;
}

.dialog-loading-wrapper-very-big {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    height: 500px;
    left: 50%;
    margin-left: -330px;
    margin-top: -75px;
    position: fixed;
    top: 11%;
    width: 780px;
    z-index: 9999999;
}

.dialog-loading-icon-very-big {
    background-color: #FFFFFF !important;
    border-radius: 13px;
    display: block;
    height: 500px;
    margin: 0;
    padding: 20px;
    text-align: center;
    display: table;
}
.vertical-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Larger modal on wide screens */
@media (min-width: 1200px) {
  .dialog-loading-wrapper-very-big {
    width: 960px;
    margin-left: -480px;
  }
}

/* Even larger on ultra-wide screens */
@media (min-width: 1600px) {
  .dialog-loading-wrapper-very-big {
    width: 1100px;
    margin-left: -550px;
  }
}

/* Responsive popup text width */
#popup-text-very-big {
  display: table-cell;
  vertical-align: middle;
  width: 760px;
}

@media (min-width: 1200px) {
  #popup-text-very-big {
    width: 960px;
  }
}

@media (min-width: 1600px) {
  #popup-text-very-big {
    width: 1100px;
  }
}

/* Responsive inner text box width for modals */
.dialog-loading-icon-very-big .text-left {
  width: 680px;
}

@media (min-width: 1200px) {
  .dialog-loading-icon-very-big .text-left {
    width: 880px;
  }
}

@media (min-width: 1600px) {
  .dialog-loading-icon-very-big .text-left {
    width: 1020px;
  }
}

/* Keep right button columns fixed width in modal */

/* Ensure the X close button stays in the top right corner of the modal */
.dialog-loading-wrapper-very-big {
  position: fixed;
}

#x-div {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  z-index: 1001;
}

#x {
  position: relative;
  float: none;
  color: grey;
  top: 0;
  right: 0;
  border: none;
  background-color: transparent;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 8px;
  cursor: pointer;
  z-index: 1002;
}
