html {
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  background: #efefef;
  width: 100%;
  height: 100vh;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: greyscale;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

#toggle-nav {
  display: none;
}

header {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1000;
  padding: 50px 0 0;
  display: block;
  width: 100%;
}

#social-nav {
  position: absolute;
  left: 50px;
  top: 50px;
  text-align: center;
  font-size: 0;
}

#social-nav a {
  color: white;
  font-size: 22px;
  padding: 5px;
  margin: 0 7px;
}

#follow {
  width: 100%;
  text-align: center;
}

#signup {
  position: absolute;
  right: 50px;
  top: 50px;
}

#signup a {
  font-size: 14px;
  color: white;
}

#signup a li {
  font-size: 22px;
  margin-left: 5px;
}

#wrapper {
  width: calc(100% - 50px);
  height: calc(100% - 50px);
  margin: 25px;
  text-align: center;
}

section {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  position: relative;
}

.table {
  width: 100%;
  height: 100%;
  display: table;
  table-layout: fixed;
  vertical-align: baseline;
}

.table-cell {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  width: 100%;
  height: 100%;
}

.wrapper {
  padding: 150px 50px 50px;
  margin: 0 auto;
  position: relative;
}

.section-heading {
  display: none;
}

.more {
  position: absolute;
  left: 0;
  bottom: 50px;
  width: 100%;
  font-size: 60px;
  text-align: center;
  color: white;
}

#branding h1 {
  position: absolute;
  top: -99999em;
}

#branding img {
  max-width: 900px;
  width: 100%;
  height: auto;
  margin-bottom: 50px;
}

#main-nav {
  text-transform: uppercase;
  display: block;
  margin: 100px 0 -80px;
  font-size: 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

#main-nav a {
  font-size: 60px;
  font-style: italic;
  color: white;
  margin: 0 20px;
  opacity: .5;
  transition: opacity .3s;
}

#main-nav a:hover {
  opacity: 1;
}

#main-nav a.active {
  opacity: 1;
}

#news .wrapper {
  max-width: 1330px;
}

.grid-item {
  float: left;
  color: white;
  font-size: 16px;
  text-align: left;
  width: calc(100% - 20px);
  padding: 50px;
  margin: 10px 10px 100px;
  background: black;
  transition: background .3s;
}

.grid-item h1 {
  margin: 0;
  text-transform: uppercase;

}

.grid-item a {
  color: white;
  text-decoration: underline;
}

.grid-item > a {
  color: white;
  opacity: .5;
  text-transform: uppercase;
  transition: opacity .3s;
  display: block;
  text-decoration: none;
  margin-top: 50px;
}

.grid-item > a:hover {
  opacity: 1;
}

.grid-item img {
  max-width: 100%;
}

.grid-item .date-posted {
  opacity: .5;
}

#topHider {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 25px;
  background: #efefef;
  z-index: 1000;
}

#bottomHider {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  height: 25px;
  background: #efefef;
  z-index: 1000;
}

/*
* MENU FONT SIZE
*/
@media screen and (max-width: 1392px) {
  #main-nav a {
    font-size: 50px;
  }
}

@media screen and (max-width: 1230px) {
  #main-nav a {
    font-size: 40px;
  }
}

@media screen and (max-width: 1070px) {
  #main-nav a {
    font-size: 30px;
  }
}

@media screen and (max-width: 900px) {
  #main-nav a {
    font-size: 21px;
  }
}

/*
* MOBILE SITE
*/
@keyframes open-menu {
  0% {
    display: block;
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media screen and (max-width: 760px) {
  #toggle-nav {
    position: fixed;
    left: 25px;
    top: 25px;
    z-index: 1001;
    width: 28px;
    display: block;
    cursor: pointer;
  }

  #toggle-nav span {
    display: block;
    width: 100%;
    height: 4px;
    background-color: white;
    margin: 0 auto 7px;
    transition: transform .3s, opacity .3s, width .3s;
  }

  #toggle-nav span:nth-child(3) {
    margin-top: -11px;
  }

  #toggle-nav.opened span:first-child, #toggle-nav.opened span:last-child {
    opacity: 0;
    width: 50%;
  }

  #toggle-nav.opened span:nth-child(2) {
    transform: rotate(-45deg);
  }

  #toggle-nav.opened span:nth-child(3) {
    transform: rotate(45deg);
  }

  #main-nav {
    display: none;
    opacity: 0;
  }

  #toggle-nav.opened ~ #main-nav {
    position: fixed;
    display: block;
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    background: rgba(0, 0, 0, .9);
    opacity: 1;
    padding-top: calc(50vh - 200px);
    animation: open-menu;
    animation-duration: .3s;
  }

  #toggle-nav.opened ~ #main-nav a {
    display: block;
    margin: 0 auto;
    font-size: 50px;
  }

  header {
    display: none;
  }

  #wrapper {
    margin: 0;
    width: 100%;
    height: 100%;
  }

  #background {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  }

  #topHider {
    display: none;
  }

  #bottomHider {
    display: none;
  }
}
