#sidebar-wrapper {
  z-index: 1000;
  position: fixed;
  top: 0;
  height: 100%;
  overflow-x: hidden;
  transition: all 0.4s ease;
  width: 220px;
}

#page-content-wrapper {
  position: relative;
  padding-left: 0;
  /* transition: all 0.4s ease; */
  animation: fadein 0.2s;
  padding-left: 220px;
}
#page-content-wrapper.animate {
  animation: fadein 0.4s;
}
@keyframes fadein {
    from { opacity: 0.7; }
    to   { opacity: 1; }
}

body {
  font-family: "Muli", sans-serif;
  color: #22446A;
  background-color: #f8f9ff;
  margin: 0 0 1em 0;
  overflow-x: hidden;
  font-size: 1.125em;
}

body a {
  font-weight: bold;
  text-decoration: none;
}

a:visited {
  color: #341d77;
}
a:hover {
  color: #6b4dff;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #cecece;
  margin: 1em 0;
  padding: 0;
}

.header {
  background: #f0f3ff;
  text-align: center;
  overflow-x: auto;
}

.header img {
  display: inline-block;
  vertical-align: middle;
  width: 110px;
  padding: 0 20px 0 20px;
  margin: 0;
}

.header h1 {
  display: inline-block;
  font-family: "Delius", Sans-Serif;
  font-size: 2.9em;
  vertical-align: middle;
  margin: 0;
  padding: 0.25em;
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  min-width: 220px;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background-color: #f0f3ff;
  text-align: center;
}

.nav img.profile  {
  display: inline-block;
  width: 130px;
  margin: 17px;
  border: 8px solid #ffffff;
  border-radius: 999px;
}

.nav ul {
  list-style-type: none;
  margin: 0 16px;
  padding: 0;
}

.nav li {
  padding: 4px 0px;
}

.button {
  font-family: "Delius", Sans-Serif;
  color: Navy;
  background: #fafafa;
  font-size: 1.1em;
  font-weight: bold;
  padding: 8px 16px;
  border: 2px solid #cecece;
  border-radius: 20px;
  text-decoration: none;
  display: inline-block;
  transition-property: color, box-shadow;
  transition-duration: 0.2s;
}

.button:hover {
  color: #6b4dff;
  box-shadow: inset 0 0 10px #fbfbfb;
}

.button:active {
  background: #fbfbfb;
}

.welcome {
  text-align: center;
  padding: 0 8vw;
}

.welcome h1 {
  font-size: 2.3em;
  font-weight: bold;
}

a:not(.button) img:not(.profile) {
  border: 6px solid #000080;
  border-radius: 6px;
  transition-property: border;
  transition-duration: 0.15s;
}
a:not(.button) img:not(.profile):hover {
  border: 6px solid #6b4dff;
  border-radius: 6px;
}

.review-links {
  border: 5px solid;
  border-radius: 999px;
}

.contents .review-links h1 {
  padding: 0px;
  background: none;
  border: 0;
  margin: -6px auto;
}

.contents {
  padding: 0 8vw;
}

.contents h1 {
  font-family: "Delius", Sans-Serif;
  font-size: 2.7em;
  font-weight: bold;
  border-radius: 999px;
  text-align: center;
}

.contents h2 {
  font-family: "Delius", Sans-Serif;
  font-size: 1.9em;
  margin-bottom: -0.5em;
  font-weight: bold;
}

.contrast-background {
  border-radius: 20px;
  padding: 0 1em;
  margin: 0.5em 1em;
  position: relative;
}

@media (min-width: 1000px) {
  .book-info-text.contrast-background.book-on-left:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 2.5em solid transparent;
    border-left: 0;
    margin-top: -2.5em;
    margin-left: -2.5em;
  }
  .book-info-text.contrast-background.book-on-right:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 0;
    height: 0;
    border: 2.5em solid transparent;
    border-right: 0;
    margin-top: -2.5em;
    margin-right: -2.5em;
  }
}
@media (max-width: 1220px) {
  .desktop-only {
    display: none;
  }
}

.left-column {
  display: inline-block;
  vertical-align: middle;
}

.right-column {
  display: inline-block;
  vertical-align: middle;
}

.book-info-text {
  text-align: left;
}

.book-info-text ul {
  list-style-type: none;
  padding: 0;
}

.book-info-text li {
  margin: 0 0 10px 0;
}

.where-to-buy ul {
  list-style-type: none;
  font-size: 1.3em;
  padding: 0;
}

.where-to-buy li {
  padding: 12px 0px;
}
  
.contact p {
  font-size: 1.3em;
}

.contact form {
  border-radius: 5px;
  overflow: hidden;
  width: 400px;
}

.contact fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.contact-form label {
  float: right;
  margin: 10px 0 0 20px;
}

.contact-form .btn {
  background: linear-gradient(#fafafa, #f0f3ff);
  border: 0;
  color: #22446A;
  cursor: pointer;
  font-weight: bold;
  padding: 8px 16px;
}

.contact-form .btn:hover {
  background: linear-gradient(#f0f3ff, #fafafa);
}

.presentations p {
  font-size: 1.3em;
}

.review {
  font-family: "Delius", Sans-Serif;
  margin: 2em 1em;
}

.review .author {
  font-family: "Muli", sans-serif;
  font-style: italic;
  margin-top: -0.25em;
}

.review .author::before {
  content: "\2014";
}

.middle-column {
  display: inline-block;
  vertical-align: middle;
}

.book-highlight {
  display: inline-block;
  /*border: 2px solid;
  border-radius: 20px;*/
  padding: 1px 30px;
  text-align: center;
  /*width: 500px;*/
}

.book-highlight h2 {
  margin-top: 10px;
}

ul .button {
  display: block;
}

.fun {
  font-family: "Delius", Sans-Serif;
}

.fun p {
  font-size: 1.2em;
  padding-bottom: 8px;
}

.fun .video, .fun audio {
  border: 2px solid;
}

.fun h3 {
  font-size: 1.5em;
}

.centered {
  text-align: center;
}

.review-page-link {
  white-space: pre;
  margin: 4px 10px;
}

.review-links.contrast-background {
  border-radius: 999px;
  border: 2px solid #cecece;
}

.monty-question {
  font-weight: bold;
}

.monty-answer {
  font-style: italic;
}

.contact .button {
  display: inline-block;
  width: 200px;
}

.fixed-width {
  max-width: 800px;
  margin: auto;
}

.footer {
  padding-bottom: 40px;
}

.menu-button {
  display: none;
  position: fixed;
  z-index: 1001;
  top: 0.5em;
  right: 0.5em;
  cursor: pointer;
  opacity: 0.75;
}
.menu-button:hover {
  opacity: 1;
}
.menu-button .button {
  padding: 0.9em;
}
  
.subheading {
  margin-top: -1em;
}

img {
  max-width: 100%;
}

@media only screen and (max-width: 767px) {
    /* phones */
    #sidebar-wrapper {
      width: 0;
    }
    #page-content-wrapper {
      padding-left: 0;
    }
    #wrapper.toggled #sidebar-wrapper {
      width: 100%;
    }
    .menu-button {
      display: block;
    }
    @media only screen and (min-width: 467px) {      
      .header h1 {
        padding-right: 1.5em;
        padding-left: 1.5em;
      }
    }
}