html, body {
    /* To Fix scroll */
    width: 100%;
}

.background{
    background-color: rgba(0,0,0,0.5);

    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;

    display:none;

    z-index: 9999;
    overflow-y: auto;
  }

.background.active {
  display: block
}

.modalContainer {
  position: absolute;
  z-index: 999991;
  top:0;
  height: 100%;
}
.modalContainer .modalTable{
  display: table;
  table-layout: fixed;
  height: 100%;
  width: 100%;
}
.modalContainer .modalCell{
  display: table-cell;
  height: 100%;
  width: 100%;
  vertical-align: middle;
  padding: 30px;
}

.modalContainer .modalContent{
  margin: 0 auto;
  background-color: #fff;
  max-width: 100%;

  box-shadow: 0 0px 5px 0 rgba(29, 18, 14, 0.3);
  -moz-box-shadow: 0 0px 5px 0 rgba(29, 18, 14, 0.3);
  -webkit-box-shadow: 0 0px 5px 0 rgba(29, 18, 14, 0.3);
  border-radius: 2px;

  position: relative;

  width: 445px;
  padding: 45px;
}

.modalContainer .modalClose {
  font-family: 'Sans serif';
  cursor: pointer;
  color: #333333;
  font-size: 30px;
  float: right;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background-color: rgba(255,255,255,0.3);
  height: 30px;
  width: 30px;
  padding: 13px 0;
  text-align: center;
  line-height: 0;
  opacity: 0.8;
  border-radius: 100%;
}

.modalContainer .modalClose:hover {
    opacity: 1;
}
.modalContainer .modalClose:hover {
  color: #232323;
}
.modalContainer.full .modalCell {
  padding: 0;
}
.modalContainer.full .modalCell > .modalContent {
  min-height: 100%;
  min-height: 100vh;
  border-radius: 0 !important;
}

@media (max-width: 743px) {
  .modalContainer .modalCell {
      padding: 0;
  }

  .modalContainer .modalClose {
      position: fixed;
  }
  .modalContainer .modalCell > .modalContent {
      min-height: 100%;
      min-height: 100vh;
      width: 100% !important;
      border-radius: 0 !important;
  }

}
