.fixed-add-button {
  position: fixed;
  bottom: 0;
  right: 0;
  padding-top: 0rem;
  padding-left: 0.3rem;
  box-sizing: border-box;
  background-color: #eee;
  height: 4.5rem;
  width: 3.5rem;
  border-radius: 3rem 0 0 0;
  text-align: center;
  line-height: 4.5rem;
  font-size: 250%;
  color: gray;
  box-shadow: 3px 3px 5px 5px lightgray;
}

.ChapterAutocomplete {
  width: 100%;
}

.ChapterAutocomplete__input {
  line-height: 2em;
  width: 100%;
  padding-left: 0.5em;
  appearance: none;
  border: none;
  border-bottom: 1px lightgray solid;
  box-sizing: border-box;
}

.ChapterAutocomplete__list {
  width: 50%;
  float: left;
  padding: 0.5em 0;
  max-height: 400px;
  overflow-y: auto;
}

.ChapterAutocomplete__list-item {
  padding: 0 0.5em;
  white-space: nowrap;
}
.ChapterAutocomplete__list-item--hover,
.ChapterAutocomplete__list-item:hover {
  background-color: lightgray;
}
.ChapterAutocomplete__list-item--active {
  font-weight: bold;
}

.ChapterSelect {
  width: 50%;
  line-height: 2em;
  border: none;
  border-bottom: 1px lightgray solid;
  font-size: 150%;
  cursor: pointer;
}

.ChapterSelect_handle {
  margin-left: 0.5em;
}

.ChapterSelect_dropdown {
  z-index: 5;
  position: absolute;
  top: 2.5em;
  left: 5px;
  padding: 0;
  width: 75%;
  background-color: white;
  border: 1px solid lightgray;
  box-shadow: 0 5px 34px 0 rgba(0, 0, 0, 0.2);
}

.Loader {
  height: 0px;
  width: 100%;
  position: relative;
}
.Loader:before {
  display: block;
  position: absolute;
  content: "";
  left: -100%;
  width: 100%;
  height: 1px;
  background-color: #be7d54;
  animation: loading 2s linear infinite;
  z-index: 20;
}

@keyframes loading {
  from {
    left: 0;
    width: 0;
  }
  35% {
    left: 0;
    width: 30%;
  }
  50% {
    left: 0;
    width: 50%;
  }
  70% {
    width: 60%;
  }
  80% {
    left: 50%;
    width: 50%;
  }
  90% {
    left: 80%;
    width: 20%;
  }
  to {
    left: 100%;
    width: 0;
  }
}

.BibleVersionAutocomplete {
  width: 100%;
}

.BibleVersionAutocomplete__input {
  line-height: 2em;
  width: 100%;
  padding-left: 0.5em;
  appearance: none;
  border: none;
  border-bottom: 1px lightgray solid;
  box-sizing: border-box;
}

.BibleVersionAutocomplete__list {
  padding: 0.5em 0;
  max-height: 200px;
  overflow-y: auto;
}

.BibleVersionAutocomplete__list-item {
  padding: 0 0.5em;
  white-space: nowrap;
}
.BibleVersionAutocomplete__list-item--hover {
  background-color: lightgray;
}
.BibleVersionAutocomplete__list-item--active {
  font-weight: bold;
}

.BibleVersionAutocomplete__list-item-fullname {
  margin-left: 1ex;
  color: gray;
  font-size: 80%;
}

.BibleVersionSelect {
  width: 5em;
  line-height: 2em;
  padding-left: 0.5em;
  border: none;
  border-bottom: 1px lightgray solid;
  font-size: 150%;
  cursor: pointer;
}

.BibleVersionSelect_dropdown {
  z-index: 5;
  position: absolute;
  top: 2.5em;
  right: 5px;
  padding: 0;
  width: 75%;
  background-color: white;
  border: 1px solid lightgray;
  box-shadow: 0 5px 34px 0 rgba(0, 0, 0, 0.2);
}

.PassageNavigation {
  position: relative;
  padding-top: 0.5rem;
  padding-left: 1rem;
  margin-bottom: -1px;
  display: flex;
  justify-content: space-between;
}

.PassageNavigation_close-button {
  border: 0;
  border-radius: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  font-size: 18px;
  color: #bbb;
}

.PassageNavigation_close-button:hover {
  color: #555;
}
.PassageNavigation_close-button:focus {
  color: #555;
  outline: 0;
}

.PassagePreviousNextButtons {
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-evenly;
}

.PassagePreviousNextButtons:last-child {
  margin-bottom: 3rem;
}

.PassagePreviousNextButtons__button {
  padding-left: 1rem;
  padding-right: 1rem;
}

.PassagePreviousNextButtons__button > button {
  border: 0;
  border-radius: 0;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  font-size: 1.4rem;
  color: #aaa;
  cursor: pointer;
}

.PassageView {
  width: 45rem;
  height: 100%;
  box-sizing: border-box;
  display: inline-block;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.main.passages_3_columns .PassageView,
.main.passages_4_columns .PassageView,
.main.passages_5_columns .PassageView {
  width: 35rem;
}

.main.passages_many_columns .PassageView {
  width: 30rem;
}

.main.passages_3_columns .PassageView.add-passage,
.main.passages_4_columns .PassageView.add-passage,
.main.passages_5_columns .PassageView.add-passage,
.main.passages_many_columns .PassageView.add-passage,
.PassageView.add-passage {
  cursor: pointer;
  margin: 1rem 1.5rem 1rem 2rem;
  padding: 0;
  width: 5rem;
  height: 6rem;
  line-height: 6rem;
  vertical-align: middle;
  text-align: center;
  color: darkgray;
  font-size: 400%;
  white-space: normal;
  border: 1px dashed lightgray;
  border-top-right-radius: 2rem;
}

.PassageView.add-passage:hover,
.PassageView.add-passage:active,
.PassageView.add-passage:focus {
  background-color: white;
  border: 1px solid lightgray;
}

.PassageView__passage {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  white-space: normal;
  background-color: white;
  box-shadow: inset 2px 0 2px #ddd, 5px 0 10px #ddd;
}

.PassageView:first-child .PassageView__passage {
  box-shadow: 0 0 20px 3px #ddd;
}

.PassageView__header {
  flex: 0 0 auto;
  position: relative;
  min-height: 18px;
}

.PassageView__verses {
  flex: 1 1 auto;
  overflow-y: auto;
  z-index: 1;
  height: 100%;
  font-size: 160%;
}

.PassageView__passage p {
  padding-left: 1.5rem;
  padding-right: 2.5rem;
  white-space: normal;
  margin-block-start: 0.5rem;
  margin-block-end: 0.5rem;
}

.PassageView__passage p:first-child {
  margin-top: 1.5rem;
}

.PassageView__passage p:last-child {
  margin-bottom: 2.5rem;
}

@media (max-width: 825px) {
  .main.passages_1_columns .PassageView,
  .main.passages_2_columns .PassageView,
  .main.passages_3_columns .PassageView,
  .main.passages_4_columns .PassageView,
  .main.passages_5_columns .PassageView,
  .main.passages_many_columns .PassageView,
  .PassageView {
    width: 100%;
    display: block;
  }
  .PassageView__passage {
    box-shadow: none;
  }
  .PassageView:first-child .PassageView__passage {
    box-shadow: none;
  }
  .PassageView.add-passage {
    display: none;
  }
}

.PassagesNavbar {
  display: flex;
  border-top: 1px solid lightgray;
}

.PassagesNavbar__add-button {
  flex: 0 0 auto;
  height: 4.5rem;
  width: 3.5rem;
  padding-top: 0rem;
  padding-left: 0.3rem;
  box-sizing: border-box;
  border-radius: 3rem 0 0 0;
  line-height: 4.5rem;
  vertical-align: middle;
  text-align: center;
  font-size: 250%;
  color: gray;
  background-color: #eee;
  box-shadow: 3px 3px 5px 5px lightgray;
}

.PassagesNavbar_items {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-around;
  height: 4.5rem;
  overflow-y: hidden;
}

.PassagesNavbar__item {
  box-sizing: border-box;
  height: 4.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  text-transform: capitalize;
  color: #555;
  overflow-y: hidden;
}

.PassagesNavbar__item--active {
  font-weight: 800;
  border-bottom: 2px solid darkgray;
}

.PassagesNavbar__passage {
  font-size: 140%;
  margin-bottom: 0.2rem;
}

.PassagesNavbar__version {
  font-size: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100%;
  overscroll-behavior: contain;
}

html {
  font-size: 10px;
  height: 100%;
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape while allowing user zoom */
}

#root {
  height: 100%;
}

.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
}

.container .header {
  border-bottom: 1px dashed cornsilk;
}

.toolbar {
  z-index: 10;
  padding-bottom: 0.5rem;
  flex: 0 0 auto;
  background-color: #784321;
  box-shadow: 0 0 3px #555;
}

.container .header h1 {
  padding-left: 1rem;
  color: white;
}

.container .content {
  flex-grow: 1;
  position: relative;
}

.main {
  overflow-y: hidden;
  position: absolute;
  text-align: center;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  white-space: nowrap;
}

