@charset "UTF-8";

/** Base **/


*, *:before, *:after {
  padding: 0;
  margin: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  background-color: #eee;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  color: #333;
}

ol, ul { list-style: none; }

h1 {
  font-size: 2em;
  font-weight: 700;
  line-height: 2;
}

p { line-height: 1.4; }

a {
  color: inherit;
  text-decoration: none;
}

strong { color: #E53935; }

::-moz-selection {
 background-color: #E53935;
 color: white;
}

::selection {
  background-color: #E53935;
  color: white;
}

/** Mobile Bar **/


.toggle-nav { display: none; }

.mobile-bar {
  z-index: 5;
  position: relative;
  height: 60px;
  background-color: #E53935;
  -webkit-box-shadow: 0px 1px 5px rgba(0,0,0,0.3);
  box-shadow: 0px 1px 5px rgba(0,0,0,0.3);
}

.mobile-bar label {
  position: absolute;
  top: 0;
  left: 10px;
  width: 60px;
  height: 60px;
  text-align: center;
  cursor: pointer;
  -webkit-transition: -webkit-transform 500ms ease;
  transition: -webkit-transform 500ms ease;
  transition: transform 500ms ease;
  transition: transform 500ms ease, -webkit-transform 500ms ease;
}

.mobile-bar label:after {
  content: "\2630";
  font-size: 2em;
  color: #eee;
  line-height: 60px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: 500ms ease;
  transition: 500ms ease;
}

/** Slide-Down Effect **/


.toggle-nav:checked ~ .container { /* when the checkbox is checked the container slide-down */
  -webkit-transform: translateY(270px);
  transform: translateY(270px);
  -webkit-transform: translate3d(0, 270px, 0);
  transform: translate3d(0, 270px, 0);
}

/** Label Effect (Menu Icon) **/


.toggle-nav:checked + .mobile-bar label {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.toggle-nav:checked + .mobile-bar label:after { color: black; }

/** Container **/


.container {
  margin-top: -270px;
  -webkit-transition: -webkit-transform 500ms ease;
  transition: -webkit-transform 500ms ease;
  transition: transform 500ms ease;
  transition: transform 500ms ease, -webkit-transform 500ms ease;
}

/** Header **/


.header { background-color: #E53935; }

.header ul {
  font-size: 1.2em;
  font-weight: 100;
  text-align: center;
  text-transform: uppercase;
}

.header a {
  display: block;
  padding: 15px;
  border-bottom: 1px solid #eee;
  color: #eee;
  -webkit-transition: background-color 300ms;
  transition: background-color 300ms;
}

.header a:active { background-color: #D32F2F; }

/** Content **/


.content {
  padding: 20px;
  margin: 0 auto;
  max-width: 800px;
}

.content h1 { padding: 20px 0; }

.content p { padding-bottom: 15px; }

/** Footer **/


.footer {
  padding: 20px;
  font-size: 0.9em;
  text-align: center;
}

.footer a {
  font-weight: 700;
  color: #E53935;
}

.footer a:hover { text-decoration: underline; }

/** Viewport >= 730px **/

@media (min-width: 730px) {

.mobile-bar { display: none; }

.toggle-nav:checked ~ .container {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.container {
  margin-top: 0;
  -webkit-transition: none;
  transition: none;
}

.header ul { font-size: 1.1em; }

.header li,  .header a { display: inline-block; }

.header li { margin-right: -6px; /* fix the inline-block margin gap */ }

.header a {
  padding: 10px 45px;
  border-bottom: none;
}

.header a:hover { background-color: #D32F2F; }

.content p { padding-bottom: 10px; }
}
