html {
  scroll-padding-top: 57px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Roboto, 'Helvetica Neue', sans-serif;
  overflow: hidden;
}

h1 {
  font-weight: normal;
  font-size: 48px;
  letter-spacing: 0;
}

h2 {
  font-weight: normal;
  font-size: 24px;
  letter-spacing: 0;
}

h3 {
  font-weight: medium;
  font-size: 20px;
  letter-spacing: 0.15px;
}

p {
  font-weight: normal;
  font-size: 16px;
  letter-spacing: 0.5px;
}

figure {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;

  img {
    display: block;
    height: auto;
    width: 100%;
    border: 1px solid #B0B0B0;
    border-radius: 16px;
  }
}

.toolbar {
  position: sticky;
  top: 0;
  height: 56px;
  width: 100%;
  align-content: center;
  border-bottom: 1px solid rgba(0,0,0,.12);
  background-color: whitesmoke;

  img {
    height: 24px;
    margin-top: 5px;
    margin-left: 10px;
  }
}

.content {
  display: flex;
  height: 100vh;
}

nav {
  display: flex;
  flex-direction: column;
  width: 256px;
  border-right: 1px solid #B0B0B0;
  overflow-y: auto;
}

nav a {
  padding: 10px 16px;
  color: black;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-decoration: none;
}

a.nivel-2 {
  font-weight: normal;
  padding: 10px 24px;
}

a.nivel-3 {
  font-weight: normal;
  padding: 10px 32px;
}

nav a:hover {
  background: #E0E0E0;
}

main {
  flex: 1;
  padding: 0 256px 0 32px;
  overflow-y: auto;
}

.w-25 {
  width: 25%;
}

.w-50 {
  width: 50%;
}

.w-75 {
  width: 75%;
}

.toggle {
  cursor: pointer;
  display: inline-block;
}

.toggle-switch {
  display: inline-block;
  background: #ccc;
  border-radius: 16px;
  width: 58px;
  height: 32px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
}

.toggle-switch:before, .toggle-switch:after {
  content: "";
}

.toggle-switch:before {
  display: block;
  background: linear-gradient(to bottom, #fff 0%, #eee 100%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  width: 24px;
  height: 24px;
  position: absolute;
  top: 4px;
  left: 4px;
  transition: left 0.25s;
}

.toggle:hover .toggle-switch:before {
  background: linear-gradient(to bottom, #fff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.toggle-checkbox:checked + .toggle-switch {
  background: #56c080;
}

.toggle-checkbox:checked + .toggle-switch:before {
  left: 30px;
}

.toggle-checkbox {
  position: absolute;
  visibility: hidden;
}

.toggle-label {
  margin-left: 5px;
  position: relative;
  top: 2px;
}

.dark-theme {
  color: #E0E0E0;
  background-color: #404040;
  border-color: #808080;

  .toolbar {
    background-color: #202020;
  }

  nav {
    border-color: #808080;
  }

  nav a {
    color: #E0E0E0;
  }

  nav a:hover {
    background: #303030;
  }
}

@media screen and (max-width: 599px) {
  nav {
    display: none;
  }

  main {
    padding: 0 16px;
  }

  .w-25 {
    width: 50%;
  }

  .w-50, .w-75 {
    width: 100%;
  }
}
