
/**
 * Modals ($modals)
 */

/* 1. Ensure this sits above everything when visible */
.modal {
	position: absolute;
	z-index: 10000; /* 1 */
	top: 0;
	top:50%;
	left: 0;
	visibility: hidden;
	width:100%;
	height:100%;
	max-width:100%;
}

.modal.is-visible {
    visibility: visible;
}

.modal-overlay {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	width: 100%;
	max-width:100%;
	height: 100%;
	background: hsla(0, 0%, 0%, 0.7);
	visibility: hidden;
	opacity: 0;
	-webkit-transition: visibility 0s linear 0.3s, opacity 0.3s;
	transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.modal.is-visible .modal-overlay {
  opacity: 1;
  visibility: visible;
  -webkit-transition-delay: 0s;
          transition-delay: 0s;
}

.modal-wrapper {
  position: absolute;
  z-index: 9999;
  top:0;
  left:37%;
  width:900px;
  max-width:100%;
  margin-left: -16em;
  background-color: #fff;
  box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
  border-radius:5px;
}

.modal-transition {
  -webkit-transition: all 0.3s 0.12s;
  transition: all 0.3s 0.12s;
  -webkit-transform: translateY(-10%);
          transform: translateY(-10%);
  opacity: 0;
}

.modal.is-visible .modal-transition {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  opacity: 1;
}
.modal-header,
.modal-content {
  padding: 1em;
}
.modal-header {
  position: relative;
  background-color: #fff;
  box-shadow: 0 1px 2px hsla(0, 0%, 0%, 0.06);
  border-bottom: 1px solid #e8e8e8;
  min-height:50px;
}

/* patrik */
.modalClose {
	position:absolute;
	top:0px;
	right:10px;
	display:block;
	width:25px;
	height:25px;
	color:#e3e3e3;
	font-weight:bold;
	text-align:center;
	line-height:1.4em;
	cursor:pointer;
	border-radius:4px;
	z-index:999;
    transition: 0.4s all;
	padding:0;
}
.modalClose:hover {
	background:#5ea18d;
}
.modalClose div,
.modalClose div:after {
	position:absolute;
	top:6px;
	left:11px;
	width:3px;
	height:13px;
	background:#FFF;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.modalClose div:after {
	content:' ';
	left:0;
	top:0;
    -webkit-transform: rotate(-90deg);
    -moz-transform: rotate(-90deg);
    -ms-transform: rotate(-90deg);
    transform: rotate(-90deg);
}
/* patrik */

.modal-close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 1em;
  color: #aaa;
  background: none;
  border: 0;
}
.modal-close:hover {
  color: #777;
  background:none;
}
.modal-heading {
  font-size: 1.125em;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.modal-content > *:first-child {
  margin-top: 0;
}
.modal-content > *:last-child {
  margin-bottom: 0;
}
.modal-content button {
	font-size:12px;
	font-weight:100;
	background:#084066;
}