
body.modal-open {
  overflow: hidden;
}

#modal-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
  opacity: 0.5;
}

#modal {
  /*display: none;*/
  overflow: auto;
  overflow-y: scroll;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  -webkit-overflow-scrolling: touch;
  outline: 0;
}

#modal-dialog {
  position: relative;
  width: auto;
  margin: 60px auto;
  max-width: 600px;
}

/*
* Mootools Simple Modal
* Version 1.0
* Copyright (c) 2011 Marco Dell'Anna - http://www.plasm.it
*
* Markup Modal
* <div class="simple-modal" id="simple-modal">
*   <div class="simple-modal-header">
*     <a class="close" href="#">×</a>
*     <h1>SimpleModal Title</h1>
*   </div>
*   <div class="simple-modal-body">
*     <div class="contents">
*       <p>
*         Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
*       </p>
*     </div>
*   </div>
*   <div class="simple-modal-footer">
*     <a class="btn primary" href="#">Primary</a>
*     <a class="btn secondary" href="#">Secondary</a>
*   </div>
* </div>
*/
/* Vars */


.simple-modal {
  color: #222;
  font-size: 13px;
  font-weight: normal;
  line-height: 18px;
  background-color: #fff;
  -webkit-box-shadow: 0 0 200px rgba(0,0,0,0.5);
  -moz-box-shadow: 0 0 200px rgba(0,0,0,0.5);
  box-shadow: 0 0 200px rgba(0,0,0,0.5);
  z-index: 99999;
}

.simple-modal .simple-modal-header {
  padding: 12px 15px 5px;
  margin: 0;
  border-bottom: 1px solid #ddd;
	height: 40px;
}
.simple-modal .simple-modal-header h1 {
  margin: 0;
  color: #222;
  font-size: 1.4em;
  line-height: 35px;
}
.simple-modal a.close {
  position: absolute;
  right: 12px;
  top: 9px;
  color: #999;
  font-weight: 400;
  line-height: 35px;
  text-decoration: none;
  height: 20px;
  width: 20px;
  text-align: center;
  font-size: 1.6em;

  -webkit-transition: color 0.4s;
  -moz-transition: color 0.4s;
  -ms-transition: color 0.4s;
  -o-transition: color 0.4s;
  transition: color 0.4s;
}
.simple-modal a.close:hover {
  color: #666;
}
.simple-modal .simple-modal-body {
  padding: 15px;
  /* Extra style */

}
.simple-modal .simple-modal-body div.contents {
  overflow: hidden;
}
.simple-modal .simple-modal-body p {
  font-size: 1.1em;
  font-weight: normal;
  color: #222;
  line-height: 1.6em;
  margin-bottom: 1em !important;
}
.simple-modal .simple-modal-body p img {
  display: block;
  margin: 0 auto 10px auto;
}
.simple-modal .simple-modal-footer {
  display: block;
  padding: 15px;
  zoom: 1;
  margin-bottom: 0;
  text-align: center;
}
.simple-modal .simple-modal-footer a.btn {
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  background-repeat: no-repeat;
  padding: 6px 10px;
  color: #333;
  font-size: 13px;
  line-height: normal;
  border: 1px solid transparent;
  -webkit-transition: 0.2s linear all;
  -moz-transition: 0.2s linear all;
  transition: 0.2s linear all;
  border-radius: 2px;
  -webkit-border-radius: 2px;
  -moz-border-radius: 2px;
  background-color: #888;
}
.simple-modal .simple-modal-footer a.btn.primary {
  color: #fff;
  background-color: #222;
  margin-right: 8px;
}
.simple-modal .simple-modal-footer a.btn.primary:hover {
  background-color: #444;
}
.simple-modal .simple-modal-footer a.btn.secondary {
  padding: 6px;
  color: #fff;
}
.simple-modal .simple-modal-footer a.btn.secondary:hover {
	background-color: #999;
}
/* Draggable style */
.simple-modal.draggable .simple-modal-header:hover {
  cursor: move;
  background-color: #eee;
}
/* Loading style */
.simple-modal.loading .simple-modal-body {
  min-height: 60px;
  background: transparent url("../images/loader.gif") no-repeat center center;
}
.simple-modal.loading .simple-modal-body div.contents {
  display: none;
}
.simple-modal.loading .close, .simple-modal.loading .simple-modal-header, .simple-modal.loading .simple-modal-footer {
  display: none;
}
/* Hide header */
.simple-modal.hide-header .simple-modal-header {
  display: none;
}
/* Hide header */
.simple-modal.hide-footer .simple-modal-footer {
  display: none;
}

@media screen and (max-width:620px) {
    #modal-dialog {
      margin: 10px;
    }
}

@media screen and (max-width:480px) {

	#modal-dialog .simple-modal-footer .btn {
		margin-bottom: 10px;
	}

	#modal-dialog .simple-modal-footer .btn:last-of-type {
		margin-bottom: 0;
	}
}