.modal {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  transform: translateY(-50%) !important;
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  background-color: white;
  padding: 0;
  max-height: 70%;
  width: 100%;
  margin: auto;
  overflow-y: hidden;
  border-radius: 20px;
  will-change: top, opacity;
  -webkit-overflow-scrolling: touch;
  transform: translateZ(0);
}

.modal:focus {
  outline: none;
}

@media only screen and (max-width: 992px) {
  .modal {
    width: 80%;
  }
}

.modal h1, .modal h2, .modal h3, .modal h4 {
  margin-top: 0;
}

.modal .modal-content {
	overflow-y: scroll;
}

.modal .modal-close {
  cursor: pointer;
}

.modal .modal-footer {
  border-radius: 0 0 2px 2px;
  background-color: #fafafa;
  height: 60px;
  width: 100%;
  text-align: right;
}

.modal .modal-footer .btn, .modal .modal-footer .btn-large, .modal .modal-footer .btn-small, .modal .modal-footer .btn-flat {
  margin: 6px 0;
}

.modal-overlay {
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 100%;
  background: #000;
  display: none;
  will-change: opacity;
  overflow: hidden;
}

.modal.modal-fixed-footer {
  padding: 0;
}

.modal.modal-fixed-header .modal-content {
  position: absolute;
  height: 100%;
  width: 100%;
  overflow-y: scroll;
}

.modal.modal-fixed-footer .modal-content {
  position: absolute;
  height: calc(100% - 60px);
  max-height: 100%;
  width: 100%;
  overflow-y: scroll;
}

.modal.full-content .modal-content {
  height: 100%;
  max-height: 100%;
  overflow-y: scroll;
}

.modal.full-content {
  height: 100%;
  max-height: 100%;
}

.modal.modal-fixed-footer .modal-footer {
  border-top: 0px solid rgba(0, 0, 0, 0.1);
  position: absolute;
  bottom: 0;
}

.modal.bottom-sheet {
  top: auto;
  bottom: -100%;
  margin: 0;
  width: 100%;
  max-height: 45%;
  border-radius: 0 !important;
  will-change: bottom, opacity;
  transform: translateY(0) !important;
  overflow: hidden;
}

.modal.material-loading {
	background-color: transparent;
}

.modal.material-loading .modal-content {
	height: 200px;
	min-height: 200px;
	background-color: transparent;
}

#loading-content {
	top: 50%;
	transform: translateY(25%);
}

.loading-img {
	display: inline-block;
	width: 100px;
	height: 100px;
	background: url("../images/circle.png") no-repeat scroll 0 0 / 100px 100px;
	font-weight:bold;
	font-size:0em;
	color:#000;
	animation-name:rotation;
	animation-duration:2s;
	animation-iteration-count:infinite;
	animation-direction:normal;
	animation-timing-function:linear;
}

.loading-text {
	padding-top: 20px;
	color: #fff;
	font-size: 1rem;
	text-align: center;
}

@keyframes rotation {
	from {
		transform:rotate(0deg);
	}
	50% {
		width:100px;
		line-height:100px;
	}
	to {
		transform:rotate(360deg);
	}
}

@keyframe spin {
	to { -webkit-transform: rotate(360deg);}
}
@-webkit-keyframes spin {
	to { -webkit-transform: rotate(360deg);}
}

.modal-background-fix {
	position: fixed;
	overflow: hidden;
}

.modal-ios-scroll-auto {
	-webkit-overflow-scrolling: auto;
}
