﻿body {
  padding: 0;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 28px;
}

* {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

h1, h2, h3, p {
  margin: 0;
  padding: 0;
}

.logo {
  background-image: url(images/logo.png);
  background-size: 100%;
  background-repeat: no-repeat;
  height: 50px;
  width: 120px;
  margin: 1em;
}

.content {
  max-width: 1204px;
  display: flex;
  flex: 1 100%;
  margin: 0 auto;
}
.content .heading {
  text-align: center;
  position: relative;
  width: 100%;
  padding-bottom: 0.7em;
  margin-bottom: 0.6em;
  font-weight: 300;
  line-height: 45px;
  font-size: 34px;
  color: #0f5f5c;
}

.spacer:after {
  content: "";
  width: 80px;
  height: 3px;
  padding: 0;
  position: absolute;
  bottom: 0;
  background-color: #6cb741;
  left: 50%;
  margin-left: -40px;
}

header .top-bar {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
}
header .top-bar .content {
  flex-direction: row;
  justify-content: space-between;
}
header .logo {
  height: 50px;
  width: 120px;
  margin: 1em;
}
header .cover {
  width: 100%;
  height: 400px;
  background-image: url(images/header_image.png);
  background-size: cover;
  display: flex;
  align-items: center;
  flex: 1;
}
header .cover h1 {
  font-size: 48px;
  color: white;
  text-transform: uppercase;
  line-height: 66px;
  font-weight: bold;
  text-shadow: 0 0 5px #333;
  font-family: "Lato", sans-serif;
  margin-left: 30px;
}

.page-content {
  padding: 50px 30px;
}
.page-content .content {
  flex-direction: column;
  width: 942px;
}

ul.region-grid {
  padding: 0;
  margin: 30px 0 0 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
ul.region-grid li {
  margin: 0;
  padding: 0;
  list-style-type: none;
  width: 456px;
  height: 288px;
  background-color: #333;
  margin-bottom: 30px;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
}
ul.region-grid li:nth-child(2n+1) {
  margin-right: 30px;
}
ul.region-grid li.africa {
  background: url(images/AFRICA.png);
}
ul.region-grid li.oceania {
  background: url(images/OCEANA.png);
}
ul.region-grid li.asia {
  background: url(images/ASIA.png);
}
ul.region-grid li.latin-america {
  background: url(images/LATIN_AMERICA.png);
}
ul.region-grid li.north-america {
  background: url(images/North_America.jpg);
}
ul.region-grid li.europe {
  background: url(images/Europe.jpg);
}
ul.region-grid li.middle-east {
  background: url(images/Middle_East.jpg);
}
ul.region-grid a {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 24px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 5px;
  transition: all 0.2s ease;
}
ul.region-grid a:hover {
  text-decoration: underline;
  background: rgba(0, 0, 0, 0.3);
}
ul.region-grid a:active, ul.region-grid a :focus, ul.region-grid a :visited {
  color: white;
}

.footer {
  height: auto;
  background: #414241;
}
.footer > div {
  max-width: 1204px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.footer > div:nth-child(1) {
  display: flex;
  padding: 2em;
  justify-content: space-between;
}
.footer > div:nth-child(1) .menu, .footer > div:nth-child(1) .social {
  margin-top: 1em;
  flex-grow: 1;
}
.footer > div:nth-child(1) .menu + .menu, .footer > div:nth-child(1) .social + .menu {
  margin-left: 2em;
}
.footer > div:nth-child(1) .menu span, .footer > div:nth-child(1) .social span {
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  color: #f9f9f9;
  margin-bottom: 0.5em;
}
.footer > div:nth-child(1) .menu a {
  display: block;
  text-decoration: none;
  color: white;
  margin-bottom: 0.5em;
  opacity: 0.5;
  transition: all 0.2s ease;
}
.footer > div:nth-child(1) .menu a:hover {
  opacity: 1;
}
.footer > div:nth-child(1) .social {
  margin-left: auto;
}
.footer > div:nth-child(1) .social a {
  height: 48px;
  width: 48px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  margin: 1em 0.3em;
}
.footer > div:nth-child(1) .social a.instagram {
  background-image: url("images/icons/instagram.png");
}
.footer > div:nth-child(1) .social a.facebook {
  background-image: url("images/icons/facebook.png");
}
.footer > div:nth-child(1) .social a.twitter {
  background-image: url("images/icons/rounded_X.svg");
}
.footer > div:nth-child(1) .social a.google {
  background-image: url("images/icons/googleplus.png");
}
.footer > div:nth-child(1) .social a.youtube {
  background-image: url("images/icons/youtube.png");
}

.dark-footer {
  padding: 1em;
  display: flex;
  text-align: center;
  align-items: center;
  background-color: #373837;
  flex-direction: column;
  color: #6f7072;
}
.dark-footer .links {
  margin-left: auto;
  margin-right: auto;
}
.dark-footer .links a {
  font-family: "Open Sans", sans-serif;
  color: #6f7072;
  display: inline-block;
}
.dark-footer .logo {
  height: 50px;
  width: 120px;
  margin: 1em;
}
.dark-footer .logo-dark {
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 980px) {
  .page-content .content, .content {
    width: 100%;
  }
  ul.region-grid {
    justify-content: center;
  }
  ul.region-grid li, ul.region-grid li:nth-child(2n+1) {
    margin: 30px 0;
  }
  .footer {
    height: auto;
  }
  .footer > div:nth-child(1) {
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer > div:nth-child(1) .menu {
    order: 0;
    margin-left: auto;
    margin-right: auto;
  }
  .footer > div:nth-child(1) .menu + .menu {
    margin-left: auto;
  }
  .footer > div:nth-child(1) .social {
    order: -1;
    align-self: flex-start;
    margin-left: auto;
    margin-right: auto;
  }
  .footer > div:nth-child(1) .social a {
    margin: 0.3em;
  }
  .footer > div:nth-child(2) {
    padding: 2em;
    -ms-flex-direction: column;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
  }
  .footer > div:nth-child(2) > div.links {
    margin-top: 1em;
    font-size: 0.8em;
  }
}
