#kas-layer {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
}

#kas-body {
  display: block;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
  max-width: 880px;
  background-color: #fff;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Keep the body centered inside the full-screen layer and allow
   it to scroll when its content exceeds the viewport height. */
#kas-body {
  box-sizing: border-box;
  max-height: calc(100vh - 80px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#kas-body header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#kas-body header h1 {
  font-size: 24px;
  line-height: 1.5;
  color: inherit;
  margin: 0;
}

#kas-body header button.close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

#kas-body main {
  display: block;
}

#kas-body footer {
  text-align: center;
}

#kas-body footer a {
  font-size: 90%;
  color: #999;
  text-decoration: none;
}

#kas-body footer a:hover {
  text-decoration: underline;
}

