@charset "utf-8";
/* CSS Document */

html {
	font-family: 'Kanit', sans-serif;
}

h1, h2, h3 {
	font-family: 'Righteous', cursive;
	text-align: center;
	text-shadow: 0px 3px 5px #8f7877;
	margin: 0;
}

header {
	height: 250px;
	background-image: url("../images/coffee-ge65743ce4_1920.jpg");
	background-repeat: no-repeat;
	background-position: center;
}

header h1 {
	font-size: 5em;	
	color:rgba(201,77,27,1.00);	
}

header h2 {
	font-size: 3em;
	color:rgba(201,77,27,0.70);
}

nav {
	background-color: #000;
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
}

nav ul {
	width: 960px;
	margin: 0 auto;
	list-style-type: none;
	padding: 0;
	overflow: hidden;
	background-color: #000;
}

nav li {
	float: left;
}

nav li a {
	display: block;
	color: white;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
}

nav li a:hover:not(.active) {
	background-color: #111;
}

nav .active {
	background-color: #8f7877;
}

section {
	display: flex;
	flex-direction: row;
	width: 960px;
	margin: 0 auto;
}

article {
	flex: 3;
	padding: 5px;
}

article img.right {
	max-width: 175px;
	float: right;
	padding: 5px;
}

article img.left {
	max-width: 175px;
	float: left;
	padding: 5px;
}

aside {
	flex: 1;
	padding: 5px;
}

.grid-container {
	display: grid;
	gap: 1% 1%;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: auto;
	grid-auto-flow: row;
	place-items: center;
}

.grid-container img {
	max-width: 100%;
}

footer {
	display: flex;
	flex-direction: row;
	background-color: rgba(35,35,35,1.00);
	color: antiquewhite;
	text-align: center;
	font-size: 0.8em;
}

#footer-left {
	flex: 1;
}

#footer-right {
	flex: 1;
}

@media only screen and (max-width : 597px ){
	section {
		width: 100%;
	}
	
	nav ul {
		width: 100%
	}
}

@media only screen and (max-width: 600px) {
	section {
		flex-direction: column;
	}
	
	aside {
		display: none;
	}
	
	footer {
		flex-direction: column;
	}
	
	.grid-container {
		grid-template-columns: 1fr 1fr;
	}
}
