/*
    Lisa Monpierre
    EFRITS SAS
 
    Training center website
    Dec. 2021
*/

#method
{
	width: 100%;
	z-index: 1;
	
	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: 10px auto;
	padding: 0;
}

#methodsText
{
	margin: auto;
	margin-bottom: 20px;
	
	width: 100%;
	
	background-color: #373737;
	color: #FAF9F9;
	font-size: 30px;
	
	box-shadow: 2px 0 16px rgba(0,0,0,1);
}

.methodsTextTitle
{
	display: none;
	
	margin: 0;
	padding: 20px 20px 0 20px;
	
	text-align: center;
}

.methodsTextParagraph
{
	display: none;
	
	padding: 0 20px;
	text-align: left;
}

#methods
{
	width: 100%;

	display: flex;
	flex-wrap: wrap;
	align-content: space-around;
	margin: auto;
}

.methodsTitle
{
	display:flex;
	text-align: center;
	align-items: center;
    justify-content: center;
}

.methodButton
{	
	width: 30%;
	
	text-align: center;

	padding: 15px;
	margin: 20px auto;

	background-color: #373737;
	color: #FAF9F9;
	font-weight: bold;
}

.methodButton:hover
{
	background-color: transparent;
}

.container 
{
	width: 100%;

	box-shadow: 0 0 16px rgba(0,0,0,1);

	color: #FAF9F9;
	margin:  auto;
	display: flex;
	flex-flow: wrap;
	justify-content: space-between;
	padding: 4px 4px calc(4px/2) 4px;
	overflow: hidden;
}

.entry 
{
	margin-bottom: calc(4px/2);
	position: relative;
}

.entry-content 
{
	display: grid;
	place-items: center;
	min-height: clamp( 1em, calc(100vw/3), calc(640px/4) );
	background: #373737;
	transition: all 600ms ease-in-out;
	pointer-events: none;
	z-index: 1;
	position: relative;
}

.entry:hover .entry-content 
{
	background: #FAF9F9;
	color: #C88F1A;
	cursor: pointer;
}

.corner-container 
{
	cursor: pointer;
	text-decoration: none;
	
	width: 100%;
	height: 100%;

	top: 0;
	left: 0;
	position: absolute;
}

.corner 
{
  position: absolute;
  
  width: 50%;
  height: 50%;
}

.corner::before
{
	width: 200%;
	height: 200%;
  
	content: '';
	display: block;
	position: absolute;
	opacity: 0;
	transition: opacity 600ms ease-in-out;
	background: radial-gradient(#C88F1A 0, transparent 70%);
	pointer-events: none; 
}

.corner:hover::before 
{
  opacity: 1;
}

.corner:nth-child(1) 
{
  left: 0;
  top: 0;
}

.corner:nth-child(1)::before 
{
  left: -100%;
  top: -100%;
}

.corner:nth-child(2) 
{
  right: 0;
  top: 0;
}

.corner:nth-child(2)::before
{
  right: -100%;
  top: -100%;
}

.corner:nth-child(3) 
{
  left: 0;
  bottom: 0;
}

.corner:nth-child(3)::before 
{
  left: -100%;
  bottom: -100%;
}

.corner:nth-child(4) 
{
  right: 0;
  bottom: 0;
}

.corner:nth-child(4)::before 
{
  right: -100%;
  bottom: -100%;
}

@media only screen and (min-width: 541px) /* portrait tablet */
{
	.entry 
	{
		width: calc((100% / 2) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 18px;
	}
	
	#methodsText
	{
		min-height: 650px;
		margin: auto;
		margin-bottom: 20px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/2), calc(640px/5.5) );
	}
	.methodButton
	{	
		width: 95%;
	}
}

@media only screen and (max-width: 540px) /* portrait mobile */
{
	.entry 
	{
		width: calc((100% / 2) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 18px;
	}
	
	#methodsText
	{
		min-height: 1010px;
		margin: auto;
		margin-bottom: 20px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/2), calc(640px/3.5) );
	}
	.methodButton
	{	
		width: 100%;
	}
}

@media only screen and (min-width : 1825px) /* desktop */
{
	.entry 
	{
		width: calc((100% / 3) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 20px;
		padding: 20px;
	}
	
	#methodsText
	{
		min-height: 500px;
		margin: auto;
		margin-bottom: 20px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/3), calc(640px/5) );
	}
	.methodButton
	{	
		width: 30%;
	}
}

@media only screen and (orientation: landscape) and (min-width: 1601px) and (max-width: 1824px) /* desktop */
{
	.entry 
	{
		width: calc((100% / 3) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 20px;
		padding: 20px;
	}
	
	#methodsText
	{
		min-height: 620px;
		margin: auto;
		margin-bottom: 20px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/3), calc(640px/4) );
	}
	.methodButton
	{	
		width: 65%;
	}
}

@media only screen and (orientation: landscape) and (min-width: 1225px) and (max-width: 1600px) /* laptop */
{
	.entry 
	{
		width: calc((100% / 3) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 20px;
		padding: 20px;
	}
	
	#methodsText
	{
		min-height: 480px;
		margin: auto;
		margin-bottom: 10px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/3), calc(640px/4.5) );
	}
	.methodButton
	{	
		width: 70%;
	}
}

@media only screen and (orientation: landscape) and (min-width: 961px) and (max-width: 1224px) /* landscape tablet */
{
	.entry 
	{
		width: calc((100% / 3) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 18px;
		padding: 5px;
	}
	
	#methodsText
	{
		min-height: 560px;
		margin: auto;
		margin-bottom: 10px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/2), calc(640px/5.5) );
	}
	.methodButton
	{	
		width: 100%;
	}
}

@media only screen and (orientation: landscape) and (max-device-width: 960px) /* landscape mobile */
{
	.entry 
	{
		width: calc((100% / 3) - calc(4px/2)); 
	}
	
	.methodsTitle
	{
		font-size: 18px;
		padding: 10px;
	}
	
	#methodsText
	{
		min-height: 600px;
		margin: auto;
		margin-bottom: 10px;
	}
	
	.entry-content 
	{
		min-height: clamp( 1em, calc(100vw/3), calc(640px/4) );
	}
	.methodButton
	{	
		width: 100%;
	}
}