/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic (CALLED IN ANOTHER FILE)
	- Normalize
	- Box sizing
	- Media width
# Base
	- Typography
	- Elements
	- Links
# Layouts
# Components
	- Header
	- Main
	- Footer
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
h2 {
	line-height: 2.5rem;
}

/* Elements
--------------------------------------------- */


/* Links
--------------------------------------------- */

a {
	color: #fffcf9;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/



/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */



/* Main
--------------------------------------------- */

main {
	padding: 0 1rem;
	margin: 0 auto;
	max-width: 40rem;
}

.grid img {
	width: 80%;
	height: auto;
	object-fit: cover;
	margin-left: auto;
  	margin-right: auto;
	margin-bottom: 2rem;
	display: block;
}

#grid-mountain {
	display: none;
}

article {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

article .text-box {
	display: inline-block;
	text-align: justify;
}

article .text-box img {
	display: block;
	margin: 2rem auto 4rem auto;
}

.divider {
	color: #013567;
	height: 2px;
	background-color: #013567;
	width: 10%;
	margin: 3rem auto 2rem auto;
}

table {
	margin: 4rem auto 5rem auto;
}

.table-title {
	text-align: center;
	font-family: 'sacramento', 'arial';
	color: #013567;
	font-size: 3rem;
	line-height: 3rem;
	margin-bottom: 3rem;
}

table,
th,
td {
	text-align: center;
	border: solid 2px #013567;
	border-collapse: collapse;
}

th,
td {
	padding: .5rem 1rem;
}

th {
	text-transform: uppercase;
	font-weight: bold;
}

@media screen and (min-width: 50rem){
	h2 {
		line-height: 5rem;
	}
	
	main {
		max-width: 50rem;
	}

	article .text-box {
		display: flex;
		align-items: center;
	}

	article .text-box img {
		margin: 0;
		width: 50%;
	}

	article:nth-child(odd) .text-box {
		flex-direction: row-reverse;
	}

	article:nth-child(odd) .text-box .title-description {
		margin-left: 3rem;
	}

	article:nth-child(even) .text-box .title-description {
		margin-right: 3rem;
	}

	.divider {
		margin: 5rem auto;
	}

	.grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		grid-auto-rows: 16rem;
		gap: 1rem;
	}

	.grid img {
		width: 100%;
		height: 100%;
		margin: 0;
	}

	#grid-mountain {
		grid-column: 1 / 4;
		display: initial;
		object-position: bottom;
	}

	.table-title {
		margin-top: 4rem;
	}
}

@media screen and (min-width: 90rem){
	
	main {
		max-width: 70rem;
	}

	.grid {
		grid-auto-rows: 22rem;
	}
}
	

/* Footer
--------------------------------------------- */

@media screen and (min-width: 60rem){
	footer {
		margin-top: 8rem;
	}
}