/* Styles copied from Conduit site */
:root {
    --content-max-width: 1000px;
    --primary-color: #01274f;
    --secondary-color: #fcfaff;
    --primary-text-color: #f4f6f1;
    --sidebar-bg: #FFF;
}

body {
    font-family: "Fira Sans", sans-serif;
    font-size: 18px;
    letter-spacing: 0.2px;
    line-height: 26px;
}

.main-header {
    align-items: center;
    box-sizing: border-box;
    color: #000;
    display: flex;
    height: 100px;
    justify-content: space-between;
    padding: 20px 50px;
    background-color: var(--primary-color);
    position: sticky;
}

.logo {
    font-family: "Alfa Slab One", serif;
    font-size: 32px;
    color: var(--primary-text-color);
    display: flex;
    align-items: center;
    margin: 0 40px;
}
.logo img {
    width: 60px;
    margin: 0 25px;
}

.subtitle-text,
a.subtitle-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--primary-text-color);
}

a.nav-item {
    margin: 0 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}
.nav-item:hover {
    color: #fff;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .main-header {
      padding: 10px 30px;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .logo {
      font-size:28px;
      margin: 10px;
    }
    .logo img {
      width: 45px;
      margin: 0 10px 0 0
    }
    .nav-item, a.nav-item {
      margin: 0 5px;
      font-size: 14px
    }
  }

/* ------------------------------------ */
/* Overrides for default mdbook styling */
.page-wrapper, .sidebar, #body-container, #menu-bar {
    background-color: var(--secondary-color);
}

#body-container {
    display: flex;
    justify-content: center;
}

.main-header > a {
    text-decoration: none;
}

.sidebar {
    align-self: flex-start;
    flex-shrink: 0;
    position: sticky;
    top: 1rem;
}

.sidebar .sidebar-scrollbox {
    background-color: var(--sidebar-bg);
    border-radius: 3px;
    border-top: 5px solid var(--primary-color);
    margin-left: 4rem;
    margin-top: 2rem;
    position: static;
}

.js .sidebar .sidebar-resize-handle {
    display: none;
}

#sidebar-toggle-anchor:checked ~ .page-wrapper {
    margin-inline-start: 2rem;
    transform: none;
}

.nav-chapters {
    display: none;
}

.menu-bar {
    justify-content: space-between;
}

/* Things to hide in mdbook top bar */
#theme-toggle, .menu-title, #sidebar-toggle {
    display: none;
}

/* Basic mobile support */
@media only screen and (max-width: 768px) {
    #body-container {
        flex-direction: column;
    }
    .sidebar {
        position: static;
    }
}
