* {
  box-sizing: border-box;
}

html {
  --border-radius: 5px;
  --text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  font-size: 18px;
  line-height: 2rem;
  color: rgba(0, 0, 0, 0.8);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--background-light);
}

.night, .night section, .night section * {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  border-bottom-color: var(--background-light);
}

.night .cta:before, .night .cta:after {
  background-color: var(--background-light);
}

h1 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
}

header h2 {
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 400;
  color: var(--background-light);
  text-shadow: 3px 3px 1px rgba(0,0,0,0.75);
  text-align: center;
  margin: 0 auto;
  padding: 3rem 0;
  background-image: radial-gradient(var(--background-dark), rgba(0,0,0,0), rgba(0,0,0,0));
  max-width: var(--content-width);
}

h3 {
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
}

h4 {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
}

h5 {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 300;
  color: var(--primary-color);
  text-shadow: var(--text-shadow);
}

h6 {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--tertiary-color);
  text-shadow: var(--text-shadow);
}

.header-container > img {
  width: 100%;
}

.blog-title {
  text-decoration: none;
}

a {
  color: var(--primary-color);
}

a.external-link span {
  position: relative;
}

a.external-link span:after {
  display: inline-block;
  position: absolute;
  top: 0.35rem;
  right: -1rem;
  content: '';
  background-image: url(/icons/external-link-icon-dark.png);
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
  background-size: 0.8rem 0.8rem;
  background-repeat: no-repeat;
}

.night a.external-link span:after {
  background-image: url(/icons/external-link-icon-light.png);
}

p a:not(.cta), .night p a:not(.cta) {
  color: var(--deep-link-color);
}

p {
  font-size: 1rem;
}

main {
  padding-top: 1rem;
}

main p {
  text-align: justify;
}

button {
  text-decoration: none;
  border: none;
  font-size: 1rem;
  padding: 0.6rem;
  cursor: pointer;
  text-align: center;
  outline: none;
  background-color: var(--secondary-color);
  color: var(--background-color);
  border-radius: 5px;
  border: 1px solid var(--secondary-color);
  box-shadow: 1px 1px 4px var(--background-dark);
  transition: all 0.2s;
}

.night button {
  background-color: var(--pale-secondary-color);
  color: var(--text-color-dark);
  border-color: transparent;
}

button:hover {
  background-color: var(--background-color);
  color: var(--secondary-color);
}

.night button:hover {
  background-color: var(--background-dark);
  border-color: var(--secondary-color);
}

button:disabled, button:hover:disabled {
  cursor: default;
  background-color: var(--pale-secondary-color);
  color: var(--pale-tertiary-color);
}

.cta {
  display: inline-block;
  text-decoration: none;
  padding: 5px 0;
  text-transform: capitalize;
  position: relative;
  transition: letter-spacing 0.4s;
}

.cta:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background-color: var(--primary-color);
  height: 1px;
  width: 0%;
  transition: width 0.4s;
}

.cta:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  height: 1px;
  width: 0%;
  transition: width 0.4s;
}

.cta:hover {
  text-decoration: none;
  letter-spacing: 2px;
}

.cta:hover:before, .cta:hover:after {
  width: 100%;
}

.big-btn {
  padding: 1rem;
}

.small-btn {
  padding: 0.4rem;
}

.full-btn {
  padding: 0.65rem;
  width: 100%;
}

section > a img {
  width: 100%;
  display: block;
}

section > img {
  display: block;
  margin: auto;
  max-width: 100vw;
}

section {
  border-bottom: 1px solid var(--primary-color);
}

section > *:not(img):not(a):not(ol):not(ul), footer > *:not(img) {
  padding: 0 1rem;
}

section > ol, section > ul {
  padding: 0 2rem;
}

section:last-of-type {
  padding-bottom: 2rem;
}

section > a {
  display: block;
}

section blockquote {
  position: relative;
  font-style: italic;
  font-weight: bold;
}

section blockquote:before {
  content: '\201C';
  font-family: serif;
  position: absolute;
  top: 0.15em;
  left: -0.1em;
  color: var(--text-color-dark);
  opacity: 0.2;
  font-size: 6em;
  z-index: -1;
}

.night section blockquote:before {
  color: var(--text-color-light);
  z-index: 1;
}

input {
  margin-bottom: 0.5rem;
}

input[type="text"] {
  display: block;
  width: 400px;
  max-width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  -webkit-appearance: none;
  border: 1px solid var(--pale-tertiary-color);
  outline: none;
}

input[type="text"]:active, input[type="text"]:focus {
  box-shadow: inset 0 0 5px var(--primary-color);
}

.night input[type="text"]::placeholder {
  color: var(--pale-tertiary-color);
}

p code, ul code, li code {
  padding: 3px;
  color: #333;
  background-color: var(--code-background-color);
  border-radius: 5px;
}

pre {
  margin-top: 0;
}

footer {
  padding: 2rem 0 3.5rem 0;
  background: var(--tertiary-color);
  font-size: .75rem;
}

footer ul {
  list-style: none;
}

footer, footer a {
  color: var(--text-color-light);
}

footer img {
  display: block;
  margin: 20px auto;
}

ul.breadcrumb {
  padding: 0;
  list-style: none;
}

ul.breadcrumb li {
  display: inline;
}

ul.breadcrumb li+li:before {
  padding: 8px;
  content: "/\00a0";
}

.google-map {
  padding: 0;
  max-width: 100%;
}

.desktop {
  display: none;
}

.toggle-btn {
  height: 25px;
  width: 50px;
  border: 2px solid var(--background-dark);
  background-color: var(--background-light);
  border-radius: 25px;
  position: relative;
  box-shadow: none;
}

.toggle-btn:before {
  content: '';
  position: absolute;
  height: 17px;
  width: 17px;
  border-radius: 50%;
  top: 2px;
  left: 59%;
  background-color: var(--background-dark);
  transition: 0.4s;
}

.toggle-btn.active {
  border: 2px solid var(--background-light);
  background-color: var(--background-dark);
}

.toggle-btn.active:hover {
  border-color: var(--background-light);
}

.toggle-btn.active:before {
  left: 5%;
  background-color: var(--background-light);
}

.sun-and-moon-inline-container {
  display: none;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  right: 0;
}

.sun-and-moon-inline-container .sun-and-moon {
  margin: 0.5rem 0.5rem 0 0;
}

#nav-title-specifier {
  /* This is only used to update the nav title */
  display: none;
}

.loader {
  max-height: 100px;
  max-width: 100px;
  margin: 2rem auto;
  position: relative;
  display: block;
}

.loader:before {
  border: solid 3px var(--deep-background-color);
  border-bottom-color: var(--primary-color);
  border-radius: 50%;
  content: "";
  height: 40px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 40px;
  will-change: transform;
  animation: 1s linear infinite spinner;
}

@keyframes spinner {
  0% {
    transform: translate3d(-50%, -50%, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-50%, -50%, 0) rotate(100deg);
  }
  75% {
    transform: translate3d(-50%, -50%, 0) rotate(230deg);
  }
  100% {
    transform: translate3d(-50%, -50%, 0) rotate(360deg);
  }
}

.hide {
  display: none;
}

@media only screen and (min-width : 600px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: block;
  }
}

@media only screen and (min-width : 800px) {
  .sun-and-moon-inline-container {
    display: flex;
    align-content: center;
    justify-content: flex-end;
  }

  section > *, footer > * {
    max-width: var(--content-width);
    margin-right: auto;
    margin-left: auto;
  }

  section blockquote {
    max-width: calc(var(--content-width) - 5rem);
    margin-left: auto;
  }

  section > a img {
    margin: auto;
    width: auto;
    padding: 0 1rem;
    max-width: var(--content-width);
    display: block;
  }

  section > img {
    padding: 0 1rem;
    max-width: var(--content-width);
  }

  h1 {
    font-size: 3rem;
  }

  header h2 {
    font-size: 6rem;
    padding: 6rem 0;
  }

  h3 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 2rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  h6 {
    font-size: 1.25rem;
  }

  main > p {
    padding: 0;
  }
}
