
* {
	box-sizing: border-box;
}

html, body {
	width: 100%;
	margin: 0;
	padding: 0;
}

body {
	margin: 0;
	font-family: arial, sans-serif;
	background-color: #f4f4f4;
	color: #222;
}

header {
	width: 100%;
	text-align: center;
	padding: 40px 20px;
	background-color: #34566d;
	color: white;
}

nav {
	text-align: center;
	padding: 0 15px;
}

nav a {
	color: white;
	text-decoration: none;
	margin: 0 5px;
	padding: 6px 18px;
	border: 1px solid white;
	border-radius: 5px;
	display: inline-block;
	background-color: #263d4d;
}

nav a:hover {
	background-color: #4d7189;
}

main {
	width: 90%;
	max-width: 1400px;
	margin: 30px auto;
	overflow: hidden;
}

main > section {
	text-align: center;
	margin-bottom: 40px;
}

.countries {
	display: grid;
	grid-template-columns: repeat(3,200px);
	justify-content: center;
	column-gap: clamp(30px, 8vw, 180px);
	text-align: center;
	width: 100%;
}

.countries article figure img {
	width: 250px;
	height: 250px;
	object-fit: contain;
}

footer {
	width: 100%;
	text-align: center;
	padding: 20px;
	margin-top: 40px;
	background-color: #34566d;
	color: white;
}

.location {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 30px;
	row-gap: 5px;
	margin-bottom: 40px;
	align-items: start;
}

.location h3 {
	grid-column: 1/-1;
}

.location img {
	width: 70%;
	height: auto;
	display: block;
	margin: 0 auto 10px auto;
}

.location figcaption {
	width: 70%;
	margin: 0 auto;
	text-align: left;
}

.location p {
	margin-top: 0;
	text-indent: 30px;
}

.location figure {
	margin-top: 0;
}

.countries article {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.countries h2 {
	text-align: center;
	width: 100%;
}

.countries figure {
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 850px) {
	main {
		width: 90%
	}
	
	nav {
		display: grid;
		grid-template-columns: repeat(2,140px);
		justify-content: center;
		gap: 10px;
	}
	
	.countries {
		display: block;
	}

	.countries article {
		width: 100%;
		margin-bottom: 50px;
		text-align: center;
	}

}

@media (prefers-color-scheme: dark) {
	body {
		background-color: #1f1f1f;
		color: #eeeeee;
	}
	
	main {
		background-color: #1f1f1f;
	}

}

