body, html {
  height: 100%
}

#modaly-overlay {
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  background-color: black;
  box-sizing: border-box;
  display: none;
  height: 100%;
  left: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.modaly {
  -moz-box-sizing: border-box;
  -moz-transform: translate(-50%, -50%);
  -ms-box-sizing: border-box;
  -ms-transform: translate(-50%, -50%);
  -o-box-sizing: border-box;
  -o-transform: translate(-50%, -50%);
  -webkit-box-sizing: border-box;
  -webkit-transform: translate(-50%, -50%);
  box-sizing: border-box;
  display: none;
  left: 50%;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  z-index: 1001;
}

.modaly .body {
  background-color: white;
  color: #111;
  overflow: auto;
  padding: 10px 0 21px;
}

.modaly-close {
  background: none;
  border: none;
  cursor: pointer;
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 20);
  font-size: 2.2em;
  font-weight: bold;
  opacity: .2;
  position: absolute;
  right: 7px;
  text-shadow: 0 1px 0 white;
  top: 3px
}

.modaly-close:hover {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity = 40);
  opacity: .4;
}

.modaly .header {
  background-color: #e2e2e2;
  border-bottom: 1px solid #ccc;
  height: 90px;
  padding: 10px 18px 7px
}
