@font-face {
  font-family: Cellestial;
  src: url(../fonts/Cellestial.woff);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

:root {
  font-size: 14px;
}

html {
  --background: #f7f7f7;
  --sidebar: #f7f7f7;
  --accent: #009688;
  --secondary: #05302c;
  --dark-grey: #8a8a8a;
  --light-grey: #e4e6e6;
  --switcher: #ccc;
  --uno: #e2efee;
  --dos: #c4e3e0;
  --tres: #a8d8d3;
}

body {
  background: var(--background);
}

html,
body {
  height: 100%;
}

.sidebar-toggle {
  display: block;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-self: center;
  z-index: 99;
}

.ham {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 4px;
  border-radius: 5px;
  background: var(--accent);
  transition: 0.5s;
}

.ham:before,
.ham:after {
  content: '';
  position: absolute;
  width: 30px;
  height: 4px;
  border-radius: 5px;
  background: var(--accent);
  transition: 0.5s;
}

.ham:before {
  top: -9px;
}

.ham:after {
  top: 9px;
}

.sidebar-toggle.active .ham {
  background: rgba(0, 0, 0, 0);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0);
}

.sidebar-toggle.active .ham:before {
  top: 0;
  transform: rotate(45deg);
}

.sidebar-toggle.active .ham:after {
  top: 0;
  transform: rotate(135deg);
}

nav {
  position: absolute;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30px;
}

a {
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}

nav .logo {
  font-family: 'Cellestial', sans-serif;
  font-size: 2rem;
  color: var(--accent);
}

nav .desktop-navigation {
  display: none;
}

.button {
  display: block;
  padding: 15px 0px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
  text-align: center;
  font-size: 1rem;
  border-radius: 4px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.16);
  transition: 0.2s;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: #007369;
  color: #fff;
}

.button.secondary {
  background: var(--light-grey);
  color: #05302c;
  margin-top: 0.75rem;
}

.button.secondary:hover {
  background: #c7c9c9;
  color: #05302c;
  margin-top: 0.75rem;
}

.sidebar.open {
  display: block;
  right: 0;
  opacity: 1;
}

.sidebar {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  right: -350px;
  min-width: 300px;
  max-width: 350px;
  width: 100%;
  height: 100%;
  background: var(--sidebar);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
  z-index: 99;
  transition: 0.2s;
}

.sidebar .logo {
  font-family: Cellestial, sans-serif;
  font-size: 2rem;
  color: var(--accent);
  user-select: none;
  width: 100%;
  text-align: center;
  margin-top: 50px;
}

.sidebar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  margin-top: 100px;
  font-size: 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
}

.sidebar ul li {
  width: 100%;
}

.sidebar ul li a {
  display: inline-block;
  padding: 15px 0;
  text-decoration: none;
  width: 100%;
  color: var(--accent);
  text-align: center;
}

.sidebar ul li a.active {
  background: var(--accent);
  color: #fff;
}

footer {
  background: var(--secondary);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer .social-links {
  padding: 1rem;
}

footer .social-links a i,
.social-links a {
  font-size: 1.5rem;
  color: #fff;
  margin: 0 5px;
  cursor: pointer;
}

footer .pages-container {
  padding: 0.5rem;
}

footer .pages-container a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  cursor: pointer;
}

footer .pages-container a:hover {
  color: #ccc;
}

footer p {
  color: #6f8785;
  padding: 0.75rem;
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

hr {
  border: 0;
  clear: both;
  display: block;
  width: 96%;
  background-color: var(--light-grey);
  height: 1px;
  margin: 1rem 0;
}

@media only screen and (min-width: 768px) {
  :root {
    font-size: 16px;
  }

  nav {
    padding: 40px 80px;
  }

  nav .desktop-navigation {
    display: block;
  }

  .desktop-navigation ul {
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
  }

  .desktop-navigation ul li {
    float: left;
    margin-left: 30px;
  }

  .desktop-navigation ul li a {
    text-decoration: none;
    color: var(--accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    padding: 8px 24px;
    border-radius: 4px;
  }

  .desktop-navigation ul a.active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.16);
  }

  nav .sidebar-toggle {
    display: none;
  }

  nav .logo {
    font-size: 1.75rem;
  }
}
