#tuit_sidebar {
  position: fixed;
  top: 50%;
  transform: translate(0, -50%);
  left: calc(91.7%); /* Half of closed width */
  right: calc(8.3% / 2 + 3.5vw / 2); /* Half of closed width */
  width: 3.5vw;
  height: 50vh;
  background-color: rgba(0, 0, 0, 0.4);
  /* border-radius: 20px 0px 0px 20px; */
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  -webkit-transition: width 300ms;
  -moz-transition: width 300ms;
  -ms-transition: width 300ms;
  -o-transition: width 300ms;
  transition: width 300ms, left 300ms, right 300ms;
  overflow: hidden;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(156%) blur(4px);
}

#tuit_sidebar .sidebar-chapter__text {
  /* display: none; */
  /* text */
  opacity: 0;
  text-decoration: none;
  color: white;
  font-size: 1.2vw;
  -webkit-transition: color 300ms, opacity 300ms;
  -moz-transition: color 300ms, opacity 300ms;
  -ms-transition: color 300ms, opacity 300ms;
  -o-transition: color 300ms, opacity 300ms;
  transition: color 300ms, opacity 100ms;
  cursor: pointer;
  text-align: center;
  padding: 0px 10%;
}

/* Hover on chapter text */
#tuit_sidebar .sidebar-chapter__text:hover {
  opacity: 0.8;
}

#tuit_sidebar .sidebar-default__text {
  /* text */
  position: relative;
  text-decoration: none;
  color: white;
  font-size: 1.4vw;
}

/* Sliding behaviour */
/* 
    TODO
        - Check smooth scrolling on Safari.
        - Check smooth scrolling on Mozilla firefox.

 */
#tuit_sidebar:hover {
  left: calc(91.7% - 7.5vw); /* Sidebar expands equally to both sides */
  right: calc(8.3% / 2 - 1.75vw / 2 - 7.5vw);
  width: 15vw;
  background-color: rgba(0, 0, 0, 0.7);
}

/* #tuit_sidebar .sidebar-chapter__text {
  display: none;
} */

#tuit_sidebar:hover .sidebar-default__text {
  display: none;
}

#tuit_sidebar:hover .sidebar-chapter__text {
  /* display: inline; */
  opacity: 1;
  transition: opacity 300ms 200ms;
}

.sidebar-default-container {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
}

.sidebar-chapter-container {
  position: relative;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 0px;
  overflow: hidden;
}
