/* The navigation bar, the footer, the round menu button and the sidebar
   it opens. Lifted out of the theme's style-index.css so the frame around
   the site is the one it has always had. */

/* Navbar section */
.my-navbar-container {
  position: relative;
  height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #f7f7ff;
}
@media screen and (min-width: 576px) {
  .my-navbar-container {
    display: block;
  }
}
@media screen and (min-width: 768px) {
  .my-navbar-container {
    height: 96px;
    background-color: #fff;
    box-shadow: 0px 2px 18px rgba(0, 0, 0, 0.07);
  }
}

.navbar-items-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  height: 62px;
}
@media screen and (min-width: 768px) {
  .navbar-items-container {
    height: 96px !important;
  }
}

.heading-title {
  visibility: hidden;
}
@media screen and (min-width: 576px) {
  .heading-title {
    position: relative;
    top: 0;
    left: 0;
    color: #754fd0;
    width: 120px;
  }
}
@media screen and (min-width: 768px) {
  .heading-title {
    visibility: visible;
    top: 4px;
    left: 54px;
    width: auto;
  }
}

.my-navbar-container ul li {
  display: inline-block;
  margin-top: 18px;
  margin-left: 38px;
}

.my-navbar-container ul li:first-child {
  margin-left: 0;
  margin-left: -40px;
}

.my-navbar-container a {
  font-family: "Satoshi", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #4E3D89;
  text-decoration: none;
}

.my-navbar-container .navbar-text-logo-container {
  width: 115px;
  height: 41px;
  margin-left: 24px;
  position: absolute;
  top: 30px;
  left: 66px;
  background-repeat: no-repeat;
}

.navbar-elements {
  display: none;
}

/***** FOOTER PAGE *****/
/* Footer section */
.main-footer {
  background-color: #0a0e3c;
  color: #fff;
}
.main-footer p {
  color: #9a9fde;
  font-style: italic;
  text-align: center;
}
.main-footer p:first-of-type {
  padding-top: 36px;
  font-size: 14px;
}
.main-footer p.open-learning {
  color: #8d92d0;
  font-style: normal;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.7px;
  margin-top: 36px;
  text-transform: uppercase;
}
.main-footer p.open-learning::before {
  content: url("data:image/svg+xml;charset=UTF-8, <svg width='13' height='12' viewBox='0 0 13 12' fill='none' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' clip-rule='evenodd' d='M6.42857 1.05124C9.99492 -2.59835 18.9116 3.78803 6.42857 12C-6.05445 3.78883 2.86222 -2.59835 6.42857 1.05124Z' fill='%238D92D0'/></svg>");
  display: inline-block;
  width: 13px;
  height: 12px;
  position: relative;
  top: 2px;
  left: -5px;
}
.main-footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

/* Side menu button */
#side-menu-button {
  background-color: #F1C935;
  background-repeat: no-repeat;
  background-position: center;
  border-color: #F1C935;
  height: 48px;
  width: 48px;
  border-radius: 100%;
  position: fixed;
  top: 0;
  left: 0;
  margin-top: 24px;
  margin-left: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 21px rgba(0, 0, 0, 0.1);
  transition: 0.5s ease-in-out;
  -webkit-transition: 0.5s ease-in-out;
  -moz-transition: 0.5s ease-in-out;
  -ms-transition: 0.5s ease-in-out;
  -o-transition: 0.5s ease-in-out;
  z-index: 1100;
}

#side-menu-button:hover,
#side-menu-button:active {
  background-color: transparent;
  border: none;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
}

.hamburger-icon {
  height: 16px;
  width: 18px;
}

.hamburger-icon svg {
  vertical-align: unset !important;
}

#side-menu-button .hamburger-line-one,
#side-menu-button .hamburger-line-two,
#side-menu-button .hamburger-line-three {
  transition: 0.3s ease-in-out;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  -ms-transition: 0.3s ease-in-out;
  -o-transition: 0.3s ease-in-out;
}

#side-menu-button.morphed .hamburger-line-one {
  transform: rotate(-45deg) translate(-8px, 11px);
  -webkit-transform: rotate(-45deg) translate(-8px, 11px);
  -moz-transform: rotate(-45deg) translate(-8px, 11px);
  -ms-transform: rotate(-45deg) translate(-8px, 11px);
  -o-transform: rotate(-45deg) translate(-8px, 11px);
}

#side-menu-button.morphed .hamburger-line-two {
  visibility: hidden;
}

#side-menu-button.morphed .hamburger-line-three {
  transform: rotate(45deg) translate(3px, -16px);
  -webkit-transform: rotate(45deg) translate(3px, -16px);
  -moz-transform: rotate(45deg) translate(3px, -16px);
  -ms-transform: rotate(45deg) translate(3px, -16px);
  -o-transform: rotate(45deg) translate(3px, -16px);
}

#side-menu-button:hover .hamburger-line-one,
#side-menu-button:active .hamburger-line-one,
#side-menu-button:hover .hamburger-line-two,
#side-menu-button:active .hamburger-line-two,
#side-menu-button:hover .hamburger-line-three,
#side-menu-button:active .hamburger-line-three {
  fill: #5D5180;
}

.current-menu-item {
  border-bottom: 6px solid #E9DFFB;
  padding-bottom: 29px;
  position: relative;
  top: 18px;
}

.current-menu-item a {
  font-weight: 700;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* Sidebar menu */
.offcanvas-title {
  color: #754fd0;
}

.offcanvas-logo-title-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 16px 28px 16px;
}

/*
.sidebar-logo-image {
  height: 48px;
  width: 48px;
  border-radius: 100%;
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  -ms-border-radius: 100%;
  -o-border-radius: 100%;
  background-size: contain;
  margin-right: 12px;
}
*/
.my-sidebar .navbar-text-logo-container {
  width: 115px;
  height: 41px;
  margin-left: 77px;
  margin-top: 12px;
  position: relative;
  top: 2px;
  background-repeat: no-repeat;
}

.my-sidebar .offcanvas-header {
  padding: 0 !important;
}

.my-sidebar .offcanvas-header .btn-close {
  position: relative;
  right: 319px;
  top: 6px;
  background-color: #F1C935;
  border-radius: 100%;
  padding: 16px;
}

.my-sidebar .offcanvas-body {
  padding-top: 0 !important;
}

.sidebar-general-menu ul {
  list-style: none;
  padding-left: 0;
}

.sidebar-general-menu ul li {
  margin-top: 3px;
}

.sidebar-general-menu ul li a {
  font-weight: 500;
  font-size: 13px;
  color: #665e7b;
  text-transform: uppercase;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
}
.sidebar-general-menu ul li a span {
  text-transform: uppercase;
  background-color: #e70caa;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 1px 4px;
  margin-left: 4px;
  border-radius: 3px;
  position: relative;
  bottom: 1px;
}

.sidebar-components-menu ul {
  list-style: none;
  padding-left: 0;
  margin-top: 24px;
}

.sidebar-components-menu ul li {
  padding: 6px 24px;
}

.sidebar-components-menu ul li a {
  text-decoration: none;
  display: block;
}

.sidebar-components-menu .submenu-title {
  padding-left: 19px;
  font-weight: bold;
}

.sidebar-components-menu .contextual-menu li a,
.sidebar-components-menu .procedural-menu li a,
.sidebar-components-menu .evaluative-menu li a,
.sidebar-components-menu .helper-menu li a {
  color: inherit;
}

.sidebar-components-menu .contextual-menu li:hover {
  background-color: #ECF4FF;
}

.sidebar-components-menu .contextual-menu li:hover a {
  color: #1679F9;
}

.sidebar-components-menu .contextual-menu .submenu-title {
  color: #1679F9;
  border-left: 4px solid #1679F9;
  background-color: #ECF4FF;
}

.sidebar-components-menu .procedural-menu li:hover {
  background-color: #FFF1F5;
}

.sidebar-components-menu .procedural-menu li:hover a {
  color: #D93562;
}

.sidebar-components-menu .procedural-menu .submenu-title {
  color: #D93562;
  border-left: 4px solid #D93562;
  background-color: #FFF1F5;
}

.sidebar-components-menu .evaluative-menu li:hover {
  background-color: #fff5e9;
}

.sidebar-components-menu .evaluative-menu li:hover a {
  color: #F5982B;
}

.sidebar-components-menu .evaluative-menu .submenu-title {
  color: #F5982B;
  border-left: 4px solid #F5982B;
  background-color: #fff5e9;
}

.sidebar-components-menu .helper-menu li:hover {
  background-color: #E5FFE1;
}

.sidebar-components-menu .helper-menu li:hover a {
  color: #3AAF2A;
}

.sidebar-components-menu .helper-menu .submenu-title {
  color: #3AAF2A;
  border-left: 4px solid #3AAF2A;
  background-color: #E5FFE1;
}

/* Bootstrap's offcanvas did the sliding. This is the same geometry without
   it — and the geometry includes the parts the theme then builds on: 400px
   wide, a flex column, and 1rem of padding inside the body. Leaving that
   padding out sat the menu flat against the left edge, and the theme
   positions the close button from the right of a 400px panel, so a narrower
   one put that in the wrong place as well. */
.my-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 400px;
  /* The one place this does not follow the original. 400px is wider than a
     375px phone, where the panel covers the screen and leaves no backdrop
     to tap. This bites below 466px and nowhere else, so every width the
     comparison checks above that is still the theme's 400px. */
  max-width: 86vw;
  display: flex; flex-direction: column;
  background: #fff;
  /* As Bootstrap's offcanvas: no focus ring on the panel itself, and the
     scrolling belongs to the body inside it. */
  outline: 0;
  transform: translateX(-100%); transition: transform .3s ease;
}
.my-sidebar .offcanvas-header { display: flex; align-items: center; padding: 1rem; }
.my-sidebar .offcanvas-body { flex-grow: 1; padding: 1rem; overflow-y: auto; }
.my-sidebar.shown { transform: none; }
.sidebar-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 1040;
}
.sidebar-backdrop.shown { opacity: 1; pointer-events: auto; }
body.sidebar-open { overflow: hidden; }

/* The theme centred these with Bootstrap's grid. */
/* The theme centres the bar with a container element wrapping the flex row,
   so the row itself has no margins of its own. */
.navbar-container { width: 100%; margin: 0 auto; padding: 0 12px; }
@media (min-width: 576px)  { .navbar-container { max-width: 540px; } }
@media (min-width: 768px)  { .navbar-container { max-width: 720px; } }
@media (min-width: 992px)  { .navbar-container { max-width: 960px; } }
@media (min-width: 1200px) { .navbar-container { max-width: 1140px; } }
@media (min-width: 1400px) { .navbar-container { max-width: 1320px; } }

/* 2. Bootstrap's .btn, which Reboot does not carry. Without it a <button>
      keeps the browser's outset border and its own colour — which is what
      the round menu button had. */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 16px;
  border-radius: 6px;
  background-color: transparent;
}
.btn-primary { color: #fff; }

/* 3. The sidebar sits where Bootstrap's offcanvas sat. */
.my-sidebar { z-index: 1050; display: flex; flex-direction: column; }
.my-sidebar .offcanvas-body { flex: 1 1 auto; overflow-y: auto; }
/* The footer text sits in a col-10 inside a container, same as the rest of
   the site — not in the narrower reading column. */
.main-footer .footer-inner {
  width: 100%; margin: 0 auto; padding: 0 12px;
  /* The theme's wrapper is a Bootstrap .row, and a flex container does not
     let its children's margins escape. Without this the last paragraph's
     margin-bottom collapses out of the footer: 16px shorter, and the Open
     learning mark sitting on the very edge. */
  display: flow-root;
}
@media (min-width: 576px)  { .main-footer .footer-inner { max-width: 540px; } }
@media (min-width: 768px)  { .main-footer .footer-inner { max-width: 720px; } }
@media (min-width: 992px)  { .main-footer .footer-inner { max-width: 960px; } }
@media (min-width: 1200px) { .main-footer .footer-inner { max-width: 1140px; } }
@media (min-width: 1400px) { .main-footer .footer-inner { max-width: 1320px; } }
.main-footer .footer-column { width: 83.3333%; margin: 0 auto; }


/* The rest of the navbar, which sits the other side of the carousel
   rules in the theme's stylesheet. */
.navbar-elements li a span {
  text-transform: uppercase;
  background-color: #e70caa;
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 1px 4px;
  margin-right: 4px;
  border-radius: 3px;
  position: relative;
  bottom: 2px;
}
@media screen and (min-width: 768px) {
  .navbar-elements {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
  }
}

.navbar-separator {
  visibility: hidden;
  color: rgba(147, 143, 158, 0.69) !important;
  margin: 0;
}

/* Links that leave the site. */
.external-icon { display: inline-block; vertical-align: -1px; margin-left: 5px; opacity: .75; }
a:hover > .external-icon { opacity: 1; }


/* The light purple underline under whichever nav item you are on. */
.current-menu-item {
  border-bottom: 6px solid #E9DFFB;
  padding-bottom: 29px;
  position: relative;
  top: 18px;
}

.current-menu-item a {
  font-weight: 700;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
