@import url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Anton&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  /* font-size: 100%; */
}

.main-header {
  width: 100vw;
  background: #2ddf5c;
  padding: .5rem 1rem;
  position: fixed;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.backdrop {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(177, 162, 162, 0.29);
  z-index: 100;
}

.brand {
  color: #0e4f1f;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  /* margin-left: 1rem; */
  margin: 0.4rem 0;
  /* display: inline-block;
    vertical-align: middle;*/
}

.brand img {
  height: 2.5rem;
  /* height: 25px;
    width: 25px; */
  padding: 5px;
  vertical-align: middle;
}

/* .main-header > div {
    display: inline-block;
    vertical-align: middle;
} */
.toggle-button {
  width: 3rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-block;
  vertical-align: middle;
  /* margin-left: 15px; */
}

.toggle-button:focus {
  outline: none;
}

.toggle-button__bar {
  width: 100%;
  height: 0.2rem;
  background: black;
  display: block;
  margin: 0.5rem 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  z-index: 110;
  top: 0;
  left: 0;
  background: black;
  width: 75vw;
  height: 100vh;
  text-align: center;
}

.mobile-nav__items {
  width: 90%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-nav__item {
  margin: 1rem 0;
}

.mobile-nav__item a {
  font-size: 1.5rem;
}

/* .main-nav {
    display: inline-block;
    text-align: right;
    width: calc(100% - 125px);
    vertical-align: middle;
} */
.main-nav__items {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  /* justify-content: center; */
}

.main-nav__item {
  margin: 0 0.7rem;
  font-weight: bold;
}

.main-nav__item a {
  color: #0e4f1f;
  text-decoration: none;
  font-weight: bold;
  padding: .2rem 0;
}

.mobile-nav__item a {
  color: #1deb53;
  text-decoration: none;
}

.main-nav__item a:hover,
.mobile-nav__item a:hover {
  color: aliceblue;
  text-decoration: underline;
}

.main-nav__item a:active,
.mobile-nav__item a:active {
  color: aliceblue;
}

.main-nav__item--cta a,
.mobile-nav__item--cta a {
  color: wheat;
  background: #ff1b68;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.main-nav__item--cta {
  animation: wiggle 200ms 2s 8;
}

.main-nav__item--cta a:hover,
.mobile-nav__item--cta a:hover {
  background: white;
  color: red;
  border: none;
}

@media (max-width: 40rem) {
  .main-nav {
    display: none;
  }
}

@media (min-width: 40rem) {
  .toggle-button {
    display: none;
  }
}

.main-footer {
  background: black;
  margin-top: 3rem;
  padding: 2rem;
}

.main-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-footer-link {
  margin: .5rem auto;
}

.main-footer-link a {
  color: white;
  text-decoration: none;
}

.main-footer-link a:hover,
.main-footer-link a:active {
  color: grey;
}

.open {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

main {
  min-height: calc(100vh - 5.25rem - 3.4rem);
}

@media (min-width: 40rem) {
  .main-footer-link {
    margin: 0 1rem;
  }

  .main-footer-links {
    flex-direction: row;
    justify-content: center;
  }
}


@keyframes wiggle {
  from {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(-10deg);
  }
  to {
    transform: rotate(10deg);
  }
}
