/* The Modal (background) */
.modal {
	display: none;
	/* Hidden by default */
	position: fixed;
	/* Stay in place */
	z-index: 10;
	/* Sit on top */
	left: 0;
	top: 0;
	width: 100%;
	/* Full width */
	height: 100%;
	/* Full height */
	overflow: auto;
	/* Enable scroll if needed */
	background-color: rgb(0, 0, 0);
	/* Fallback color */
	background-color: rgba(0, 0, 0, 0.8);
	/* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
	background-color: white;
	margin: 4% auto;
	padding: 15px;
	border: 1px solid #888;
	width: 50%;
	/* Could be more or less, depending on screen size */
	position: relative;
	animation-name: animatetop;
	animation-duration: 0.8s
}

/* Modal Content/Box */
.modal-content h4,
.modal-content h3,
.modal-content h2,
.modal-content h1,
.modal-content a {
	color: black;
}

/* Modal Button */
.btn-formations {
	background-color: white;
	color: #000;
	font-size: 12pt;
	border: 0;
	padding: 10px;
	border-radius: 5px;
	text-transform: uppercase;
	transition: 0.8s;
}

/* Modal Button */
.btn-formations:hover {
	border: 0;
	border-radius: 5px;
	background-color: #888;
	color:white;
	transition: 0.8s;
}

/* The Close Button */
.close {
	background: url(../img/close.png) no-repeat;
	height: 49px;
	width: 49px;
	position: absolute;
	right: -35px;
	top: -32px;
	z-index: 9999;
	cursor: pointer;
	opacity: 1;
	-webkit-transition: all ease-in-out 0.3s;
	-o-transition: all ease-in-out 0.3s;
	transition: all ease-in-out 0.3s;
}

.close:hover {
	opacity: 0.2;
}

.modal-content h3 {
	margin: 0;
	text-align: center;
	vertical-align: middle;
	font-size: 2em;
	font-weight: 260;
	position: relative;
	color: #2b94e2;
}

/* Add Animation */
@keyframes animatetop {
	from {
		top: -300px;
		opacity: 0
	}

	to {
		top: 0;
		opacity: 1
	}
}

@media(max-width: 1230px) {

	/* Modal Content/Box */
	.modal-content {
		width: 70%;
		/* Could be more or less, depending on screen size */
	}

}

@media(max-width: 680px) {

	h1 {
		font-size: 42px;
	}

	/* Modal Content/Box */
	.modal-content {
		width: 80%;
		/* Could be more or less, depending on screen size */
	}

}

@media(max-width: 480px) {

	h1 {
		font-size: 32px;
	}

	.modal-content h3 {
		font-size: 2em;
	}

	.modal-content {
		width: 90%;
	}

	.close {
		right: 1px;
		top: 1px;
	}

}