/*
    Lisa Monpierre
    EFRITS SAS
 
    Training center website
    Dec. 2021
*/

.nextEvents
{
	width: 100%;
	height: 100%;
	
	z-index: 1;
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: 0;
	padding: 0;
}

#nextEvent
{
	width: 100%;
	height: 100%;
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: 0;
	padding: 0;
}

#nextEventPicture img
{
	width: 100%;
	
	padding: 20px 20px;
}

#nextEventH1
{
	margin: 0;
	padding: 0;
	
	font-size: 29px;
	text-align: left;
}

#nextEventText
{
	margin: 10px 0;
	padding: 0;
	
	text-align: left;
}

#nextEventBlock
{
	width: 100%;
	min-height: 100px;
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: 0;
	padding: 0;
}

.nextEventButton
{
	padding: 15px;
	margin: 20px auto;
	
	border-radius: 6px;
	border: none;
	outline: none;
	
	background-color: #C88F1A;
	color: #FAF9F9;
	font-weight: bold;
	text-align: center;
}

.nextEventButton:hover
{
	color: #FAF9F9;
	background-color: #B4A5A5;
}

.events
{
	text-decoration: none;
	width: 100%;
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: 0;
	padding: 0;
}

.event:hover
{
	cursor: pointer;

	border-left: #B4A5A5 solid 8px;
	border-radius: 6px;
}

.event:after
{
	cursor: pointer;

	border-left: #B4A5A5 solid 0px;
	border-radius: 6px;
}

.event
{
	width: 100%;
	height: 200px;
	
	margin: 10px 0;
	padding: 0;
	
	border-left: #B4A5A5 solid 0px;
	transition: border 0.2s;
	border-radius: 6px;
	background-color: #FAF9F9;
	filter: drop-shadow(0px 10px 5px rgba(69,72,89,0.5));
	text-decoration: none;
	color: #373737;
}

.eventDate
{
	width: calc(30% - 40px);
	height: 100%;
	
	float: left;
	margin: 0 20px;
	padding: 0;
	
	color: #373737;
}

.eventDate h1
{
	width: 45%;
	height: 50%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: end;
		
	font-weight: bold;
	color: #373737;
}

.eventDate h2
{
	width: 55%;
	height: 50%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: end;
	
	color: #373737;
}

.eventDate h3
{
	width: 100%;
	height: 50%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: center;
    justify-content: center;
		
	font-weight: 640;
}

.text
{
	width: 60%;
	height: 100%;
	
	float: left;
	margin: 0;
	padding: 0;
}

.eventName
{
	width: 100%;
	height: 50%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: center;
    justify-content: center;
	text-align: center;
	
	font-weight: bold;
}

.eventModality
{
	width: 100%;
	height: 50%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: center;
    justify-content: center;

	font-weight: 500;
}

.eventButton
{
	width: 10%;
	height: 100%;
	
	float: left;
	margin: 0;
	padding: 0;
	display:flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
	
	font-size: 50px;
	font-weight: bold;
	color: #C88F1A;

	cursor: pointer;
}

@media only screen and (min-width: 541px) /* portrait tablet */
{
	
	.nextEventButton
	{
		width: 95%;
	}
	#nextEventPicture
	{	
		display: none;
	}
	
	#nextEvent
	{
		width: 100%;
		
		text-align: left;
	}
	
	.eventDate h1
	{
		justify-content: left;
		font-size: 28px;
	}
	
	.eventDate h2
	{
		font-size: 28px;
		font-weight: 650;
		
		justify-content: left;
	}
	
	.eventDate h3
	{
		font-size: 20px;
	}
	
	.eventModality
	{
		font-size: 20px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 20px;
	}
}

@media only screen and (max-width: 540px) /* portrait mobile */
{
	.nextEventButton
	{
		width: 100%;
	}
	#nextEventPicture
	{	
		display: none;
	}
	
	#nextEvent
	{
		width: 100%;
		
		text-align: left;
	}
	
	.eventDate h1
	{		
		font-size: 28px;
		justify-content: left;
		padding-right: 2px;
	}
	
	.eventDate h2
	{
		font-size: 26px;
		font-weight: 650;
		
		justify-content: left;
	}
	
	.eventDate h3
	{
		font-size: 19px;
	}
	
	.eventModality
	{
		font-size: 19px;
		text-align: left;
	}
	
	.eventName
	{
		font-size: 20px;
		text-align: left;
	}
}

@media only screen and (min-width : 1825px) /* desktop */
{
	.nextEventButton
	{
		width: 50%;
	}
	#nextEventPicture
	{	
		width: calc(100% / 2);
		height: 100%;
		
		display: block;
	}
	
	#nextEvent
	{
		width: calc(100% / 2);
		
		text-align: left;
	}
	
	.eventDate h1
	{
		font-size: 24px;		
		justify-content: left;
	}
	
	.eventDate h2
	{
		font-size: 22px;
		font-weight: 650;
		
		justify-content: right;
	}
	
	.eventDate h3
	{
		font-size: 20px;
	}
	
	.eventModality
	{
		font-size: 20px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 24px;
	}
}

@media only screen and (orientation: landscape) and (min-width: 1601px) and (max-width: 1824px) /* desktop */
{
	.nextEventButton
	{
		width: 50%;
	}
	#nextEventPicture
	{	
		width: calc(100% / 2);
		height: 100%;
		
		display: block;
	}
	
	#nextEvent
	{
		width: calc(100% / 2);
		
		text-align: right;
	}
	
	.eventDate h1
	{		
		font-size: 26px;
		justify-content: left;
	}
	
	.eventDate h2
	{
		font-size: 24px;
		font-weight: 650;
		
		justify-content: right;
	}
	
	.eventDate h3
	{
		justify-content: left;
		font-size: 22px;
	}
	
	.eventModality
	{
		font-size: 20px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 20px;
	}
}

@media only screen and (orientation: landscape) and (min-width: 1225px) and (max-width: 1600px) /* laptop */
{
	.nextEventButton
	{
		width: 60%;
	}
	#nextEventPicture
	{	
		width: calc(100% / 2);
		height: 100%;
		
		display: block;
	}
	
	#nextEvent
	{
		width: calc(100% / 2);
		
		text-align: left;
	}
	
	.eventDate h1
	{		
		font-size: 32px;
		justify-content: center;
	}
	
	.eventDate h2
	{
		font-size: 24px;
		font-weight: 650;
		
		justify-content: left;
	}
	
	.eventDate h3
	{
		font-size: 20px;
	}
	
	.eventModality
	{
		font-size: 20px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 22px;
	}
}

@media only screen and (orientation: landscape) and (min-width: 961px) and (max-width: 1224px) /* landscape tablet */
{
	.nextEventButton
	{
		width: 100%;
	}
	#nextEventPicture
	{	
		display: none;
	}
	
	#nextEvent
	{
		width: 100%;
		
		text-align: left;
	}
	
	.eventDate h1
	{		
		font-size: 28px;
		justify-content: left;
	}
	
	.eventDate h2
	{
		font-size: 28px;
		font-weight: 650;
		
		justify-content: left;
	}
	
	.eventDate h3
	{
		font-size: 19px;
	}
	
	.eventModality
	{
		font-size: 19px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 20px;
	}
}

@media only screen and (orientation: landscape) and (max-device-width: 960px) /* landscape mobile */
{
	.nextEventButton
	{
		width: 100%;
	}
	#nextEventPicture
	{	
		display: none;
	}
	
	#nextEvent
	{
		width: 100%;
		
		text-align: left;
	}
	
	.eventDate h1
	{		
		font-size: 26px;
		justify-content: center;
	}
	
	.eventDate h2
	{
		font-size: 22px;
		font-weight: 650;
		
		justify-content: left;
	}
	
	.eventDate h3
	{
		font-size: 20px;
	}
	
	.eventModality
	{
		font-size: 20px;
		text-align: center;
	}
	
	.eventName
	{
		font-size: 24px;
	}
}