@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500&display=swap');

body {
  display: flex;
  margin: 0;
  overflow: hidden;
  height: 100vh;
}

.pdf-button {
  font-family: 'Barlow', sans-serif;
  font-size: 1.5em;
  padding: 1em 1.2em;
  background-color: #2a879e;
  text-decoration: none;
  text-align: center;
  border-radius: 3px;
  max-width: 10em;
  display: block;
  margin: 2em auto;
  color: white;
  box-shadow: 1px 1px 2px 0 rgb(0 0 0 / 50%);
}

.pdf-button:hover {
  color: white !important;
  filter: brightness(1.1);
}

#sidebar {
  position: relative;
  overflow: unset;
  width: 0;
}

#sidebar #outline {
  display: none
}

#sidebar.opened {
  width: 300px;
}

#sidebar.opened #outline {
  display: block;
}

#page-container {
  position: unset;
  flex: 1;
}

#outline {
  padding: 2em 1em;
  margin: 0;
  font-family: sans-serif;
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
}

.resizer {
  position: absolute;
  left: 100%;
  height: 35px;
  top: 5px;
  width: 30px;
  background-color: white;
  color: black;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border: 2px solid rgba(0 0 0 / 50%);
  border-left: none;
  z-index: 1;
}

.resizer:hover {
  filter: contrast(1.5)
}

.resizer::after {
  content: '》';
  font-size: 1.2em;
  color: rgba(0 0 0 / 50%);
  position: relative;
  left: 0.2em;
}

#sidebar.opened .resizer::after {
  content: '《';
  left: unset;
  right: 0.3em;
}