@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --um-blue: #00274c;
  --header-bg-color: #ffda07;
  --highlight-color: #fffcea;
  --border-color: rgb(192, 192, 192);
  --bs-border-color: var(--border-color);
  --body-bg-color: #f8f8f8;
  font-size: 14px;
  --border-radius: 8px;
  --bs-link-color: #0367fc;
  --bs-link-color-rgb: 3, 103, 252;
  --bs-font-sans-serif: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif, serif;
}

body {
  font-family: var(--bs-font-sans-serif);
  background-color: var(--body-bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  & > div {
    margin: 2em 0;
    display: flex;
    gap: 2em;
  }
}

header {
  background-color: var(--header-bg-color);
  border-bottom: 1px solid black;

  & h1 a {
    text-decoration: none;
    color: black;
  }

  & h1 a:hover {
    color: black;
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  & #skip {
    position: absolute;
    top: -50px;
    background-color: white;
    padding: 10px;
  }

  & #skip:focus {
    top: 10px;
    left: 10px;
  }
}

/* to make mathjax responsive */
mjx-container mjx-math {
  white-space: normal;
}

nav > div {
  padding: 10px;
  background-color: #ffffff70;
}
nav a {
  padding: 5px 1em;
  color: black;
  text-decoration: none;
  display: block;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

nav a.active-chapter {
  background-color: var(--highlight-color);
  border: 1px solid var(--border-color);
}

nav a:hover,
nav a:focus {
  background-color: var(--highlight-color);
  border: 1px dashed var(--border-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-section {
  border-radius: var(--border-radius);

  & h2 {
    padding-left: 6px;
  }

  & hr {
    margin: auto;
  }

  & a {
    font-size: 1.1em;
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 10px;
    color: rgb(100, 100, 100);
  }

  & a:hover,
  & a:focus {
    border: 1px dashed var(--border-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    background-color: white;
    color: black;
  }
}

.iclicker_solutions {
  display: none;
}

.link-button {
  /* font-weight: bold; */
  cursor: pointer;
  border: 1px solid rgb(192, 192, 192);
  border-radius: var(--border-radius);
  display: block;
  padding: 1em;
  margin: 1em;
  text-decoration: none;
  color: inherit;

  &:hover,
  &:focus {
    background-color: white;
    text-decoration: underline;
    text-underline-offset: 4px;
    border-style: dashed;
    /* border-color: black; */
  }
}

.table-container {
  overflow-x: auto;
}

.summary-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-toggle {
  display: block;
  font-weight: bold;
}

.sidebar {
  /* position: absolute; */
  display: none;
  width: 250px;
  flex-shrink: 0;
  min-height: 70%;
  /* padding: 1em; */
  border-right: 1px solid var(--border-color);
  background-color: var(--body-bg-color);

  & h2 {
    font-size: 1em;
    text-transform: uppercase;
  }

  & > ul {
    padding: 0;
    list-style: none;
  }

  & li {
    display: block;
  }

  & li ul {
    border-left: 1px solid var(--border-color);
    margin-left: 1em;
    padding-left: 1em;
  }

  & a {
    text-decoration: none;
    display: block;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 1px 5px 3px;
    margin-right: 1em;
    color: rgb(100, 100, 100);
  }

  & a:hover,
  & a:focus {
    border: 1px dashed var(--border-color);
    text-decoration: underline;
    text-underline-offset: 2px;
    background-color: white;
    color: black;
  }
}

footer {
  text-align: center;
  margin-top: auto;
  background-color: var(--um-blue);
  color: white;
}

/* Bootstrap sm breakpoint */
@media (min-width: 768px) {
  .sidebar {
    display: block;
  }

  /* .sidebar-toggle {
        display: none;
    } */

  body > div {
    display: flex;
  }

  hr {
    margin-left: -2em;
  }
}
