@media (max-width: 767px) {

.modal-content {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none ;
  overflow-y: scroll;
  z-index: 99991 ;
}

.madalWhile {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998 ;
  width: 100%;
  height: 120%;
}

.madalWrap  {
  width: 80% ;
  /*height: 400px;*/
  margin: 0 auto;
  padding-bottom: 50px;
  position: absolute ;
  top: 50px !important;
  left: 0;
  right: 0;
  z-index: 99999 ;
}

#modalInner, .modalInner {
  padding: 30px ;
  background: #fff ;
}

#modal-overlay {
  z-index: 1 ;
  display: none ;
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 120% ;
  background-color: rgba( 0,0,0, 0.75 ) ;
  z-index: 99990 ;
}

.button-link:hover {
  cursor: pointer ;
}

#modalInner dl dt, .modalInner dl dt {
  display: block;
  position: relative;
}

#modalInner dl dd, .modalInner dl dd {
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  margin: 10px 0 0 0;
}

#modalInner dl dt span, .modalInner dl dt span {
  display: block;
  position: absolute;
  bottom: 5px;
  right: 5px;
  color: #fff;
  font-weight: bold;
  font-size: 10px;
  text-shadow: 2px 3px 3px rgba(0,0,0,1);
  z-index: 100;
}

.modal-content p.btn {
  position: absolute;
  top: 5px;
  right: 5px;
}

.modal-content p.btn img {
  width: 21px;
  height: 21px;
}

}

@media (min-width: 768px) {

.modal-content {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none ;
  overflow-y: scroll;
  z-index: 99991 ;
}

.madalWhile {
  margin: auto;
  position: fixed ;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99998 ;
  width: 100%;
  height: 100%;
}

.madalWrap {
  width: 800px ;
  margin: 0 auto;
  padding-bottom: 100px;
  position: absolute ;
  top: 100px !important;
  left: 0;
  right: 0;
  z-index: 99999 ;
}

#modalInner, .modalInner {
  height: 830px;
  padding: 60px ;
  background: #fff ;
}

#modal-overlay {
  z-index: 1 ;
  display: none ;
  position: fixed ;
  top: 0 ;
  left: 0 ;
  width: 100% ;
  height: 120% ;
  background-color: rgba( 0,0,0, 0.75 ) ;
  z-index: 99990 ;

}

.button-link:hover {
  cursor: pointer ;
}

.modal-content img {
  width: 100%;
}

.modal-content dl dd {
  font-size: 110%;
  margin: 20px 0 0 0;
  line-height: 1.5;
  text-align: center;
}

#modalInner dl dt, .modalInner dl dt {
  display: block;
  position: relative;
}

#modalInner dl dt span, .modalInner dl dt span {
  display: block;
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: #fff;
  font-weight: bold;
  font-size: 110%;
  text-shadow: 2px 3px 3px rgba(0,0,0,1);
  z-index: 100;
}

.modal-content p.btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.modal-content p.btn img {
  width: 43px;
  height: 43px;
}

}
