body {
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    line-height: 2em;
    margin: 0;
    padding: 0;
}

a {
    color: #2ea3f2;
}

a, a:hover {
    text-decoration: none;
}

figcaption {
    text-align: left;
}

.hamburger-icon {
    text-align: right;
    font-size: 32px;
}

.top-bar
{
    background-image: linear-gradient(180deg, #555 0%, #000 100%);
    color: white;
    display: flex;
    justify-content: space-around;
    font-weight: bold;
}

.top-bar a {
    color: white;
}

.top-bar img {
    width: 48px;
    height: 48px;
    padding-top: 10px;
}

.logo {
    flex: auto;
    margin: auto 0;
    padding-left: 20px;
}

nav {
    flex: 100%;
    text-align: right;
    padding-right: 20px;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    padding-left: 20px;
}

.sub-menu li {
    display: block;
}

header {
    background-image: url('../images/header.jpg');
    background-position: 50%;
    background-size: cover;
    color: white;
    padding-top: 5vw;
    padding-bottom: 5vw;
    text-align: center;
    min-height: 200px;
}

header.economy-header {
    background-image: linear-gradient(180deg, rgba(165,206,199, 0.0) 60%, #151f33 100%), url('../images/economy/economy-header.jpg');
}

header.help-header {
   background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 20%, #151f33 100%), url('../images/help/help-header.jpeg');
}

header.environmental-and-climate-justice {
   background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/justice.jpg');
}

header.hotter-temperatures {
     background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/hotter-temperatures-header.jpg');
}

header.weather {
     background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/weather.jpg');
}

header.rising-seas {
     background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/rising-seas.jpg');
}

header.ocean-acidification {
     background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/corals.jpg');
}

header.surprises {
    background-image: linear-gradient(180deg, rgba(165,206,199, 0.1) 0%, #151f33 100%), url('../images/environment/hurricane.jpg');
}

header h1 {
    margin: 0 auto;
    padding-bottom: 20px;
}

header h2 {
    font-size: 36px;
    margin: 0 auto;
    text-transform: uppercase;
}

h1 {
    font-family: "Noto Serif", serif;
    font-size: 5vw;
    line-height: 1.2em;
    font-weight: normal;
}

main {
    background: white;
}

.content {
    margin: 0 auto;
    padding-top: 54px;
    max-width: 80%;
}

.content h2,
footer h2 {
    border-bottom: 3px solid #FFBA5A;
    font-family: "Noto Serif", Georgia, "Times New Roman", serif;
    font-size: 40px;
    padding-bottom: 40px;
    width: fit-content;
    color: #0f8a93;
}

footer {
    margin: 0 auto;
    max-width: 80%;
}

footer .partners {
    display: flex;
    padding: 10px;
}

.partners a {
    flex: 20%;
    margin: auto 0;
    text-align: center;
}

.partners img {
    vertical-align: center;
    max-height: 120px;
}

.flex-row {
    margin: 20px 0;
}

.btn {
    background: #fff;
    background-position: 50% 50%;
    background-size: cover;
    color: white;
    font-size: 28px;
    font-weight: bold;
    flex: 33%;
    min-height: 80px;
    overflow: hidden;
    position: relative;
}

.btn-text {
    flex: 33%;
}

.btn-text .btn-title {
    text-decoration: underline;
    font-size: x-large;
    margin-bottom: 4px;
}

.btn-bg {
    border-radius: 10px;
    opacity: 0.8;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 160px;
}

.btn .btn-title {
    letter-spacing: 1.2px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    text-shadow: -1px -1px 0 #333, 1px -1px 0 #333, -1px 1px 0 #333, 1px 1px 0 #333;
}

.btn:hover .btn-bg {
    opacity: 1.0;
}

.btn:hover .btn-title {
    color: #c6fbff;
}

.illustration img {
    max-width: 100%;
}

.partners a:hover img {
    opacity: 0.6;
}

.float .row-content,
.float-left .row-content {
    display: block;
}

.float .text,
.float-left .text {
    width: 100%;
}

#toggle {
    display: none;
}

nav ul:hover i {
    transform: rotate(90deg);
}

@media (min-width: 800px) {
    
    header h1 {
	max-width: 70%;
    }
    
    header h2 {
	max-width: 800px;
    }
}


@media (max-width: 1300px) {
    header h1 {
	max-width: 100%;
	font-size: 54px;
    }

    header h2 {
	font-size: 24px;
    }

}

@media (min-width: 670px) {

    #top-menu {
	display: block !important;
    }
    
    .sub-menu {
	display: none;
	flex-direction: column;
	position: absolute;
	top: 2em;
	background-color: black;
	width: 330px;
	text-align: left;
	z-index: 1;
	padding: 1em 0;
    }

    .hamburger-icon {
	display: none;
    }
    
    nav ul:hover .sub-menu{
	display: block;
    }
    
    .environment {
	position: relative;
    }
 
}

@media (max-width: 670px) {

    
    /* Submenu is always expanded on mobile, so always point down */
    .fa-caret-right {
	transform: rotate(90deg);	
    }
    
    .hamburger-icon {
	display: block;
	position: absolute;
	top: 12px;
	right: 12px;
    }

    
    #top-menu {
	display: none;	
	position: absolute;
	background: black;
	top: 48px;
	left: 0;
	width: 100%;	
	padding-right: 0;
	text-align: left;
    }

    nav ul li {
	display: block;
	padding-left: 0;
    }
    
    /**
    .sub-menu {
	display: none;	
    }

    
    nav ul:hover .sub-menu{
	display: block;
	position: absolute;
	right: 0;
	top:92px;
	padding-right: 10px;
	background-color: black;
    }
   */

}

@media (min-width: 600px)
{
    

    .flex-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    }
    
    .btn {
	padding: 60px 20px;
	margin: 0 20px;
    }

    .btn-bg {
	position: absolute;
    }
    
    .btn-text .btn-content {
	padding-right: 60px;
    }
    
    .text, .illustration {
	width: 50%;
    }
    
    .row-content {
	display: flex;
    }

    .float .illustration {
	float: right;
	width: 40%;
	text-align: left;
    }

    .float-left .illustration {
	float: left;
	text-align: left;
	width: 40%;

    }
    
    i {
	transition: transform 0.2s ease;
    }
    
}

@media (max-width: 600px)
{

    
   
    header h1 {
	font-size: 2em;
    }

    header h2 {
	font-size: 22px;
    }
    
    footer,
    .content {
	max-width: 100%;
	padding: 0 10px;
    }

    
    .content h2,
    footer h2 {
	font-size: 32px;
	padding-bottom: 0.5em;
    }

    .btn {
	display: block;
	margin: 10px 0;
	border-radius: 0;
    }
    
    .btn .btn-title {
	margin-top: -100px;
	z-index: 1;
	padding-bottom: 60px;
	height: 60px;
    }

    .flex-row {
	margin: 0 20px;
    }

    .partners img {
	max-height: 60px;
    }
}

@media (max-width: 380px) {
    
    footer .partners {
	display: block;
    }

    .partners a {
	display: block;
	flex: none;
	text-align: left;
    }

    .partners img {
	max-height: 100px;
	max-width: 100%;
    }
}
