 /* Modalbox Overlay */
#modalbox-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
    z-index: 30;
    cursor: pointer;
}

/* Modalbox */
#modalbox {
    position: fixed;
	left: 10%;
	top: 0;
	z-index: 40;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    /*border: 1px solid #888;*/
	border-radius: 15px 15px 10px 10px;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Close Button */
#modalbox-close {
	position: absolute;
	top: 0;
	right: 0;
	width: 24px;
    height: 23px;
    color: #000;
	background-color: #fff;
	border-radius: 0 10px 0 10px;
	text-align: center;
	line-height: 0.7;
    font-size: 28px;
    font-weight: bold;
	-webkit-transition: all 0.5s;
	-moz-transition: all 0.5s;
	transition: all 0.5s;
}

#modalbox-close:hover,
#modalbox-close:focus {
    color: #24729D;
    text-decoration: none;
    cursor: pointer;
}

/* Modalbox Header */
#modalbox-header {
    padding: 2px 35px;
    background-color: #333333;
    color: white;
	border-radius: 10px 10px 0 0;
}

#modalbox-header h2 {
	text-transform: uppercase;
	font-family: 'Audiowide', cursive;
}

/* Modalbox Infos */
#modalbox-infos {
    background-color: #ccc;
    padding: 10px 20px;
	/*border-bottom: 3px solid rgba(0,0,0,0.3);*/
	display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
	text-align: center;
}

#modalbox-infos p.date {
	width: auto;
	margin-bottom: 0.2em;
	padding: 0 7px 2px 6px;
	border: 2px solid #000;
	font-size: 120%;
}

#modalbox-infos hr {
    width: 80%;
	margin-top: 4px;
	border: 0;
	height: 1px;
	background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

#modalbox-infos  a {
    color: #4978FF;
	text-decoration: none;
}

#modalbox-infos  a:hover {
    color: #000;
}

/* Modalbox Body */
#modalbox-body {
	padding: 10px 20px;
	color: #000;
	overflow: auto;
}

#modalbox-body  a {
    color: #4978FF;
	text-decoration: none;
}

#modalbox-body  a:hover {
    color: #000;
}

#modalbox-body h3 {
	font-size: 200%;
}

#modalbox-body .description h3, #modalbox-body .mandat h3, #modalbox-body .role h3 {
    margin-bottom: 0.45em;
}

#modalbox-body .description, #modalbox-body .mandat, #modalbox-body .role {
    margin-bottom: 1.5em;
}

#modalbox-body .description p, #modalbox-body .mandat p, #modalbox-body .role p {
    text-align: center;
}

#modalbox-body .role p:nth-child(n+3) {
    padding-top: 0.5em;
}

/* Boutons */
#modalbox-body .boutons {
    display: flex;
    justify-content: center;
}

#modalbox-body .bouton{
    border: solid #4978FF 2px;
    text-decoration: none;
    padding: 10px 25px;
	margin: 20px 10px;
    color: #4978FF;
    background: transparent;
    font-size: 16px;
    -webkit-transition-duration: 0.3s; /* Safari */
    transition-duration: 0.3s;
}

#modalbox-body .bouton:hover, #modalbox-body .bouton:active {
    color: white;
    border-color: #333333;
	background-color: rgb(73,120,255);
}

#modalbox-body #modalbox-content img {
    margin: 20px auto 0 auto;
}

/* Modalbox Sources */
#modalbox-sources {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
}

#modalbox-sources .overflow {
	width: 30%;
	margin: 1em;
	border: 2px solid #24729D;
}

#modalbox-sources span.h3 {
	font-size: 200%;
	font-family: 'Righteous';
}

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

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

/* Responsive */
@media screen and (max-width : 1249px) and (min-width : 850px) {
	#modalbox-sources .overflow {
		width: 45%;
	}
}

@media screen and (max-width : 849px) {
	#modalbox-sources .overflow {
		width: 100%;
	}
	
	#modalbox-body h3:nth-child(2) {
		margin-bottom: 0.5em;
	}
	
	#modalbox-sources .overflow:first-child {
		margin-top: 0;
	}
}

@media screen and (max-width : 930px) and (min-width : 761px) {
	#modalbox-header h2 {
		font-size: 200%;
	}
}

@media screen and (max-width : 760px) and (min-width : 596px) {
	#modalbox-header h2 {
		font-size: 150%;
	}
	
	#modalbox-body h3, #modalbox-sources span.h3 {
		font-size: 150%;
	}
	
	#modalbox-infos p.date {
		font-size: 100%;
	}
}

@media screen and (max-width : 595px) {
	#modalbox-header h2 {
		font-size: 130%;
	}
	
	#modalbox-body h3, #modalbox-sources span.h3 {
		font-size: 120%;
	}
	
	#modalbox-infos p.date {
		font-size: 90%;
	}
}

@media screen and (max-height : 480px) {
	#modalbox-header h2 {
		font-size: 100%;
	}
	
	#modalbox-body h3, #modalbox-sources span.h3 {
		font-size: 120%;
	}
	
	#modalbox-infos p.date {
		font-size: 90%;
	}
}

@media screen and (max-width : 525px) {
	#modalbox-body .role {
		margin-bottom: 1em;
	}
	
	#modalbox-body .boutons {
		flex-direction: column;
		align-items: center;
	}
	
	#modalbox-body .bouton {
		margin: 10px;
	}
}

@media screen and (max-width : 500px) {
	#modalbox {
		width: 100%;
		left: 0;
	}
}