/* MODAL */
.modal-wrapper {
	display: none;
	transition: all 0.3s ease-in-out;
	background-color: transparent;
}

.modal-wrapper.is-open {
	display: block;
	position: fixed;
	z-index: 999;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	overflow-y: scroll;
}

.modal-body {
	animation: pop 0.5s ease;
	width: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 414px) {
	.modal-body {
		max-width: 90%;
	}
}

.modal-main {
	text-align: center;
}

.modal-main p, .modal-main .section-title {
	float: none;
	padding-bottom: 0;
	margin: 0;
	text-align: center;
}

.modal-main p {
	padding-top: 30px;
}

header {
	position: relative;
}

.close {
	position: absolute;
	top: 10px;
	right: 10px;
}

@keyframes pop {
	0% {
		opacity: 0;
		transform: scale(0.8);
 }
	100% {
		opacity: 1;
		transform: scale(1);
 }
}

/* -- CSS from here on is not needed -- */
[data-modal-trigger] {
	outline: 0;
	color: white;
	border: 1px solid #ffc107;
	padding: 10px 20px;
	background-color: transparent;
	margin: 20px;
	position: relative;
}
[data-modal-trigger]:before {
	z-index: -1;
	transition: all 0.3s ease;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0%;
	content: '';
	background-color: #ffc107;
}
[data-modal-trigger]:hover:before {
	width: 100%;
}

.modal-body {
	margin: 0;
	border-radius: 0;
	background-color: white;
	box-shadow: 10px 10px 40px 0px rgba(0, 0, 0, 0.35);
}

.modal-body header {
	background-color: #fff;
	margin: 0;
	padding: 30px;
}

.modal-body header button i {
	color: #000;
}

.modal-body .modal-main {
	padding: 0 45px 45px 45px;
}

.modal-body .close {
	color: white;
	background-color: transparent;
	border: 0;
	outline: 0;
	padding: 12.5px;
	cursor: pointer;
}

@media (max-width: 350px) {
	article.modal-body {
		margin-top: 130px;
	}
}

#wrapper {
  position: absolute;
  top: 0;
}