/* ####################################################################################################################### */

/* Contact Page Styling */

/* ####################################################################################################################### */

html, body{
  margin: 0;
  padding: 0;
  width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: white;
  color: #00e096;
  width: 100%;
  height: 100vh;
  background:
  linear-gradient(
        rgba(0, 209, 181, 0.9), 
        rgba(9,239,163,0.9)
        ),
        url(../images/contact-background.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  display: table;
}

body {
  margin: 0;
  padding: 0;
  opacity: 1;
  transition: 1s opacity;
}
body.fade-out {
  opacity: 0;
  transition: none;
}

html {
  background-color: #67c293;
}

.header {
  text-align: center;
  margin: 0 25%;
}

.contact-content{
  padding: 7% 0 7% 0;
}

.header h1 {
  color: white;
  font-size: 30px;
  font-weight: 400;
}

.header p {
  color: white;
  font-size: 14px;
  font-weight: 200;
}

.form{
  margin: 0 30%;
}

input {
  width: 100%;
  margin: 10px 0;
  background: rgba(0,0,0,0);
  border: none;
  border-bottom: 1px solid white;
  height: 50px;
}

input:focus {
  outline: 0;
}

input:hover {
  border-bottom: 1px solid #00e096;
}

#message {
  margin-top: 60px;
}

/* ####################################################################################################################### */

/* Webkit Overrides  */
 
/* ####################################################################################################################### */

/* When hovering off of form area */
input:focus::-webkit-input-placeholder, textarea:focus::-webkit-input-placeholder {
  color: #0050ac;
}

input::-moz-placeholder, textarea::-moz-placeholder {
  font-size: 0.875em;
}

/* Deselected text in fields */
input::placeholder, textarea::placeholder {
  color: white;
  font-size: 0.875em;
}

/* Clicked/Active Text (before typing) */
input:hover:focus::placeholder, textarea:hover:focus::placeholder {
  color: #00ac72;
}

/* Hover State Text */
input:hover::placeholder, textarea:hover::placeholder {
  color: #00ac72;
  font-size: 0.875em;
}

input:hover:focus::-ms-placeholder, textarea:hover:focus:-ms-placeholder {
  color: red;
}

::-webkit-input-placeholder {
  color: white;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

input[type=text] {
  color: white;
}

button {
  padding: 15px 60px;
  font-size: 16px;
  background: #0078ff;
  border: none;
  border-radius: 4px;
  margin-top: 30px;
  color: white;
  cursor: pointer;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

button:hover {
  background: #0050ac;
  transition: 0.5s ease-in-out;
}

button:focus {
  outline: 0;
}

/* ####################################################################################################################### */

/* Main Navigation - Menu Overlay Styling */

/* ####################################################################################################################### */

/* Top Navigation */
.main-navigation{
  top: 0;
  position: absolute;
  width: 100%;
  height: 100px;
  text-align: center;
  margin: 0 auto;
  z-index: 1;
}

img {
  height: 50px;
  width: auto;
  padding-top: 25px;
  z-index: 2;
  opacity: 1;
}
  
/* Menu Overlay Container */
.nav-container {
  width: 100%;
  height: 100%;
  left: 0;
  margin: 0 auto;
  }
.nav-container p {
  font-size: 20px;
}
.nav-container > a {
  display: inline-block;
  position: relative;
  text-align: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  overflow: hidden;
  top: 5px;
}
.overlay-menu a:after {
  content: '';
  position: absolute;
  background: white;
  height: 2px;
  width: 0%;
  transform: translateX(-50%);
  left: 50%;
  bottom: 0;
  transition: .35s ease;
}
.nav-container a:hover:after, .nav-container a:focus:after, .nav-container a:active:after {
  width: 100%;
}
    
h1 {
  position: relative;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
}
  
/* ####################################################################################################################### */
  
/* Overlay Menu Button */

/* ####################################################################################################################### */

.button_container {
  position: absolute;
  top: 35%;
  right: 2%;
  height: 27px;
  width: 35px;
  cursor: pointer;
  z-index: 100;
  transition: opacity .25s ease;
}
.button_container:hover {
  opacity: .7;
}
.button_container.active .top {
  transform: translateY(11px) translateX(0) rotate(45deg);
  background: white;
}
.button_container.active .middle {
  opacity: 0;
  background: white;
}
.button_container.active .bottom {
  transform: translateY(-11px) translateX(0) rotate(-45deg);
  background: white;
}
.button_container span {
  background: white;
  border: none;
  height: 5px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: all .35s ease;
  cursor: pointer;
}
.button_container span:nth-of-type(2) {
  top: 11px;
}
.button_container span:nth-of-type(3) {
  top: 22px;
}

/* ####################################################################################################################### */

/* Overlay Menu Styling */

/* ####################################################################################################################### */

.overlay {
  position: fixed;
  background: #00e096;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s, height .35s;
  overflow: hidden;
}
.overlay.open {
  opacity: .9;
  visibility: visible;
  height: 100%;
  z-index: 1;
}
.overlay.open li {
  animation: fadeInRight .5s ease forwards;
  animation-delay: .35s;
}
.overlay.open li:nth-of-type(2) {
  animation-delay: .4s;
}
.overlay.open li:nth-of-type(3) {
  animation-delay: .45s;
}
.overlay.open li:nth-of-type(4) {
  animation-delay: .50s;
}
.overlay.open li:nth-of-type(5) {
  animation-delay: .55s;
}
.overlay nav {
  position: relative;
  height: 70%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  text-align: center;
}
.overlay .nav-menu {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: inline-block;
  position: relative;
  height: 100%;
}
.overlay .nav-menu li {
  display: block;
  height: 25%;
  height: calc(100% / 5);
  min-height: 50px;
  position: relative;
  opacity: 0;
}
.overlay .nav-menu li a {
  display: block;
  position: relative;
  color: #FFF;
  text-decoration: none;
  overflow: hidden;
}
.overlay .nav-menu li a:hover:after, .overlay ul li a:focus:after, .overlay ul li a:active:after {
  width: 25%;
}
.overlay .nav-menu li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0%;
  transform: translateX(-50%);
  height: 2px;
  transition: .35s;
}
  
/* ####################################################################################################################### */
  
/* Animations */

/* ####################################################################################################################### */

  /* Overlay Menu Text Animation */
  @keyframes fadeInRight {
    0% {
      opacity: 0;
      left: 20%;
    }
    100% {
      opacity: 1;
      left: 0;
    }
  }

/* ####################################################################################################################### */

  /* Responsive States */

/* ####################################################################################################################### */

  @media only screen and (max-width: 768px){

  .header {
      text-align: center;
      padding-top: 100px;
      margin: 0 10%;
    }
    
    .header h1 {
        color: white;
        font-size: 30px;
        font-weight: 400;
    }
    
    .header p {
        color: white;
        font-size: 14px;
        font-weight: 200;
    }
    
    .form{
        margin: 0 10%;
        padding-bottom: 80px;
    }
  }