#overlay {
  position: fixed;
  background-color: rgba(0,0,0,0.5);
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: none;
}

.showOverlay #overlay {
  display: block;
  overflow-y: scroll;
}

.showOverlay {
  overflow: hidden;
}

.modal, .modalConfirm {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 10;
  outline: 1px solid #000;
}

.modal {
  background-color: #fbfbfb;
  border: 10px solid #454545;
  border-top: 9px solid #454545;
  border-bottom: 9px solid #454545;
  box-shadow: 0 1px 10px rgba(0,1,1,0.75), inset 0 1px 0 rgba(255,255,255,0.15);
  -webkit-box-shadow: 0 1px 10px rgba(0,1,1,0.75), inset 0 1px 0 rgba(255,255,255,0.15);
}

@-moz-document url-prefix() {
  .modal {
    box-shadow: none;
    /*-moz-box-shadow: 0 1px 10px rgba(0,1,1,0.75), inset 0 1px 0 rgba(255,255,255,0.15); */
    /* outlines draw outside the shadow in FF */
    ;
  }
}

.modalTitle {
  font-size: 24px;
  font-weight: 600;
  color: #666;
}

.modal:before {
  content: ' ';
  display: block;
  position: absolute;
  left: -10px;
  right: -10px;
  top: -9px;
  height: 1px;
  background-color: #5f5f5f;
}

.modalCloseCorner {
  position: absolute;
  right: 0;
  top: 0;
  overflow: hidden;
}

.modalCloseLetter {
  font-size: 32px;
  line-height: 0;
  font-weight: 700;
  padding-left: 10px;
  padding-top: 5px;
  padding-bottom: 23px;
  background-color: #454545;
  color: #999;
  cursor: pointer;
  text-shadow: 0 -1px 0 #000;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}

.modalCloseLetter:hover {
  color: white;
}

.modalConfirm {
  position: absolute;
  left: 0;
  right: 0;
  top: 90px;
  background-color: white;
  width: 466px;
  text-align: center;
  color: #656565;
  padding-bottom: 43px;
  margin-left: auto;
  margin-right: auto;
}

#modalOverlay {
  position: absolute;
  top: -8px;
  bottom: -9px;
  left: -10px;
  right: -10px;
  background-color: rgba(255,255,255,0.8);
}

.modalButton {
  margin-right: 10px;
  padding-right: 24px;
  padding-left: 24px;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
  color: #999;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 0 -1px 0 #262626;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  height: 27px;
  padding-top: 9px;
  background-color: #454545;
  border: 1px solid #000;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}

.modalButton:hover,
#modalCancelButton:hover, #modalConfirmButton:hover {
  color: #fff;
  text-shadow: 0 -1px 0 #262626;
}

.modalInput {
  display: block;
  height: 28px;
  font-size: 14px;
  color: #333;
  border: 1px solid rgba(0,1,1,0.2);
  padding-left: 10px;
  background-color: #e6e6e6;
  -moz-box-shadow: inset 0 1px 1px rgba(0,1,1,0.1);
  -webkit-box-shadow: inset 0 1px 1px rgba(0,1,1,0.1);
  box-shadow: inset 0 1px 1px rgba(0,1,1,0.1);
  margin-top: 6px;
  border-radius: 1px;
  -moz-border-radius: 1px;
  -webkit-border-radius: 1px;
  line-height: 28px;
}

.modalSelect {
  display: block;
  margin-top: 6px;
  height: 30px;
  color: #656565;
  font-size: 16px;
  text-shadow: 0 1px 0 #fff;
  border: 1px solid #b2b2b2;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  background-color: #ddd;
  -moz-background-clip: padding;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  background-color: #ddd;
  -moz-box-shadow: inset 0 1px 0 #fff;
  -webkit-box-shadow: inset 0 1px 0 #fff;
  box-shadow: inset 0 1px 0 #fff;
}

.modalLabel {
  display: block;
  font-size: 16px;
  color: #656565;
  margin-top: 16px;
}

.modalNoTitle {
  padding-top: 43px;
}

#modalErrorTitle, #modalConfirmTitle, .modalErrorTitle, .modalGenericTitle {
  margin-top: 43px;
  font-size: 24px;
  font-weight: 600;
}

#modalErrorText, #modalConfirmText, .modalErrorText {
  font-size: 16px;
  margin-top: 9px;
}

#modalErrorText2, .modalErrorText2 {
  font-size: 16px;
}

/*noinspection CssUnknownProperty*/
#modalErrorButton, #modalCancelButton, #modalConfirmButton, .modalErrorButton {
  display: inline-block;
  background-color: #454545;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 0 #000;
  margin-top: 19px;
  margin-left: 8px;
  margin-right: 8px;
  padding: 14px 25px;
  border: 1px solid #000;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
  -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
  -moz-border-clip: padding;
  -webkit-border-clip: padding-box;
  border-clip: padding-box;
  -moz-transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -o-transition: all 0.2s;
  transition: all 0.2s;
}

.modalErrorButton:hover {
  color: #fff;
}

#modalCancelButton, #modalConfirmButton {
  font-size: 18px;
}

#genericError, .modalError, .modalSmall {
  width: 466px;
  top: 246px;
  color: #656565;
  padding-bottom: 40px;
  text-align: center;
}

