.topnav {
  position: relative;
  overflow: hidden;
  background-color: #333;
  border-radius: 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
  padding: 5px;
  z-index: 99999999;

}

.topnav a {
  float: left;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 12px;
}

.topnav a:hover {
  border-radius: 15px;   
  background-color: #ddd;
  color: black;
}

.topnav a.active {
  border-radius: 15px;  
  background-color: #F6670E;
  color: white;
}

.topnav-centered a {
  float: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.topnav-right {
  float: right;
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 600px) {
  .topnav a, .topnav-right {
    float: none;
    display: block;
  }
  
  .topnav-centered a {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
  }
}
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background-color: #2a2a2a;
	font-family: "Lato", sans-serif;
}

section {
	border-radius: 10px;
	width: 1024px;
	padding: 10px;
	display: table;
	max-width: none;
	background-color: #20344A;
	height: inherit;
	margin: auto;
	margin-top: 10px;

	&:nth-of-type(2n) {
		background-color: #2a2a2a;
		text-align: center;
		color: white;
		text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
	}
}

.intro {
	height: inherit;
}

.content {
	display: table-cell;
	vertical-align: middle;
}

footer {
	padding: 1% 5%;
	text-align: center;
	background-color: #20344A;
	color: white;
}

.heading {
	display: flex;
	width: 100%;
	position: relative;
	min-width: 150px;
	/* the 15px (10%) end caps determine the minimum header width */
}

.heading .label {
	flex: 1;
}

.heading .label {
	z-index: 10;
}

.heading .bg svg {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.heading .bg svg {
	width: 100%;
	height: 100%;
}

.heading .bg .teal {
	fill: #f6670e;
}

.heading .label {
	font-size: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5em;
	line-height: 40px;
	color: white;
	text-align: center;
	text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
	padding: 20px 0;
}

.grid {
	max-width: 1200px;
	margin: 15px auto;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
}

.grid>li {
	width: calc(100% / 3 - 30px);
	margin: 0px 15px;
	margin-bottom: 30px;
	overflow: hidden;
	border-radius: 15px;
}

.filters {
	margin-top: 5px;
	display: flex;
	display: -webkit-flex;
	flex-wrap: wrap;
	justify-content: center;
}

.grid li img {
	max-width: 100%;
	border-radius: 10px;
}

.filters button {
	padding: 10px 25px;
	margin: 0px 5px;
	background-color: #f6670e;
	border: none;
	border-radius: 10px;
	transition: 150ms;
	color: #ffffff;
	font-size: 16px;
	line-height: 25px;
	font-weight: 700;
	position: relative;
	outline: none;
	cursor: pointer;
	box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.75);
}

.filters button.is-checked {
	background-color: #f2ba21;
	color: #ffffff;
}

.element-item>div {
	padding: 20px 15px;
	background-color: #2a2a2a;
	color: #dddddd;
}

@media (max-width: 767px) {
	.filters button {
		padding: 5px 10px;
		margin: 5px;
	}

	.grid>li {
		width: calc(100% - 30px);
	}

	.element-item p {
		font-size: 16px;
		line-height: 22px;
	}
}

a {
	text-align: center;
	color: #fff;
	font-size: 16px;
	line-height: 22px;
	font-family: "Lato", sans-serif;
}

p {
	text-align: left;
	color: #fff;
	font-size: 16px;
	line-height: 22px;
	font-family: "Lato", sans-serif;
}

/* == FOLDED CORNERS */

/* ROUNDED CORNERS VERSION * All modern browsers can produce this effect with a single pseudo-element. * However, they all have bugs (mainly to do with border-radius) that make this a bit tricky. * As far as I can tell, this is the only cross-browser method for the moment. * Can't use this method for the simple effect because Opera 11 will only show backgrounds * through transparent borders if there is a border-radius applied. */

/* == FOLDED CORNERS */

/* ROUNDED CORNERS VERSION * All modern browsers can produce this effect with a single pseudo-element. * However, they all have bugs (mainly to do with border-radius) that make this a bit tricky. * As far as I can tell, this is the only cross-browser method for the moment. * Can't use this method for the simple effect because Opera 11 will only show backgrounds * through transparent borders if there is a border-radius applied. */

@media (max-width: 768px) {
	html {
		font-size: 14px;
	}
}