#right-sidebar {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #f8f9fa;
  overflow-x: hidden;
}

#right-sidebar h2 {
  text-align: left;
  margin-bottom: 0;
}

/* Hide the blurb on a small screen */
#right-blurb {
  display: none;
}

#right-sidebar-toggle {
  display: none;
}

/* add the three horizontal bars icon for the toggle */
.right-icon-custom {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

#page-content {
  padding: 80px 8px 32px;
}

@media (min-width: 48em) {
  #right-sidebar {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    width: 25rem;
    text-align: left;
    /* transition: 0.3s ease-in-out; */
    overflow-y: auto;
    overflow-x: hidden;
  }

  #right-sidebar-toggle {
    display: inline-block;
    position: relative;
    top: 0;
    /* transition: 0.3s ease-in-out; */
  }

  /* add negative margin to sidebar to achieve the collapse */ 
  #right-sidebar.collapsed-right {
    margin-right: -21.5rem;
    padding-left: 0.5rem;
  }

  /* move the sidebar toggle up to the top left corner */
  #right-sidebar.collapsed-right #right-sidebar-toggle {
    top: -2rem;
    margin-top: 16px;
  }

  /* also adjust margin of page content */
  #right-sidebar.collapsed-right~#page-content {
    margin-right: 6.5rem;
  }

  /* move all contents of navbar other than header (containing toggle) further
     off-screen */
  #right-sidebar.collapsed-right>*:not(:first-child) {
    margin-right: -6rem;
    margin-left: 6rem;
  }

  /* reveal the blurb on a large screen */
  #right-blurb {
    display: block;
  }

  /* Hide the toggle on a large screen */
  #right-navbar-toggle {
    display: none;
  }

  #right-collapse {
    display: block;
  }

  .pageContentOlo {
    margin-right: 3rem;
    margin-left: 20rem;
  }

  .pageContentOro {
    margin-left: 3rem;
    margin-right: 25rem;
  }

  .pageContentBo {
    margin-left: 20rem;
    margin-right: 25rem;
  }

  .pageContentBc {
    margin-left: 3rem;
    margin-right: 3rem;
  }

}