@font-face {
  font-family: 'Material Icons Outlined';
  src: url('MaterialIcons.woff') format('woff');
  /* src: url('MaterialIconsOutlined-Regular.otf') format('truetype'); */
}

.icon {
  font-family: 'Material Icons Outlined';
  /* font-size: 5em; */
  /* display: inline-block;
  vertical-align: middle; */
}

@font-face {
  font-family: 'Abyssinica SIL';
  src: url('AbyssinicaSIL.woff') format('woff');
}

/* @font-face {
  font-family: 'Noto Serif';
  src: url('NotoSerif-400.woff') format('woff');
  font-weight: 400;
} */

@font-face {
  font-family: 'Noto Serif';
  src: url('NotoSerif-400i.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

/* @font-face {
  font-family: 'Noto Serif';
  src: url('NotoSerif-600.woff') format('woff');
  font-weight: 600;
} */

@font-face {
  font-family: 'Noto Sans';
  src: url('NotoSans-400.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Noto Sans';
  src: url('NotoSans-400i.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: 'Noto Sans';
  src: url('NotoSans-600.woff') format('woff');
  font-weight: 700;
}

@font-face {
  font-family: 'Noto Serif';
  src: url('NotoSerif-400.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Noto Serif';
  src: url('NotoSerif-600.woff') format('woff');
  font-weight: 700;
}

@font-face {
  font-family: 'Andika';
  src: url('Andika-400.woff') format('woff');
  font-weight: 400;
}

@font-face {
  font-family: 'Andika';
  src: url('Andika-700.woff') format('woff');
  font-weight: 700;
}

@font-face {
  font-family: 'SBL Greek';
  src: url('SBLGreek.woff') format('woff');
}

@font-face {
  font-family: 'SBL Hebrew';
  src: url('SBLHebrew.woff') format('woff');
}

* {
  box-sizing: content-box;
}

html {
  margin: 0;
  user-select: none;
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  border: none;
  background-color: #fff;
  line-height: 1.5;
  font-family: sans-serif;
  width: 100%;
  height: 100%;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

body.loading {
  background-color: #888;
}

/* .loading {
  background-color: #888 !important;
  min-height: 1em;
  text-align: center;
} */

@keyframes spin {
  100% {
    -webkit-transform: rotate(-360deg);
    transform: rotate(-360deg);
  }
}

/* @media (prefers-color-scheme: dark) {
  body {
    background-color: #222;
    color: white;
  }
} */

#pages {
  width: 100%;
  height: 100%;
  /* height: calc(100vh - 100px); */
  /* height: calc(100% - 60px);
  height: calc(100lvh - 60px); */
  /* height: 100%; */
  overflow: hidden;
  /* margin-bottom: 60px; */
  /* position: absolute;
  left: 0px;
  top: 0px; */
  /* margin-bottom: 100px;
  padding-bottom: 100px; */
  position: relative;
}

.page {
  background-color: #fff;
  display: none;
  width: 100%;
  height: 100%;
  /* height: calc(100% - 60px); */
  /* height: calc(100vh - 120px); */
  /* height: calc(100lvh - 60px); */
  overflow-y: scroll;

  position: absolute;
  top: 0px;
  /* bottom: 100px; */
  /* height: calc(100vh - 60px);
  height: calc(100lvh - 60px);
  inset: 0px; */
  /* height: -webkit-fill-available; */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.page::after {
  content: "";
  display: block;
  height: 120px;
}

.hidden {
  display: none;
}

.page.show,
.hidden.show {
  display: block;
}

.week {
  text-align: center;
}

.day {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 32px;
  height: 1.5em;
  background-color: #aaaaaa22;
  border: 2px solid transparent;
  /* border-color: red; */
  margin: 2px;
  padding: 0 2px;
  width: calc(14% - 12px);
  max-width: 60px;
}

ul.holidays {
  max-width: 500px;
  margin: 12px auto 0;
}

.holiday {
  background-color: #aaaaaa88;
}

.day.holiday::after {
  content: "";
  display: block;
  position: absolute;
  background-color: black;
  border: 2px solid white;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  right: -7px;
  top: -7px;
}

.day.empty {
  background-color: transparent !important;
}

.day.label {
  background-color: transparent !important;
  /* font-weight: 600; */
  /* font-size: .8em; */
}

/* .day.today {
  border-color: #00a2ff;
} */

.day.today::after {
  content: "";
  display: block;
  position: absolute;
  background-color: #00a2ff;
  border: 2px solid white;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  right: -7px;
  top: -7px;
}

section {
  padding: 1em .5em 2em;
  clear: both;
}

header .inner,
section .inner {
  max-width: 500px;
  margin: 0 auto;
}

#daily-date {
  padding: .5em;
}

/* .svg-button {
  padding: 0 .5em;
  vertical-align: middle;
} */
.button,
.loading {
  font-size: 32px;
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-align: center;
  line-height: 1.0;
  padding: 5px;
  overflow: visible;
}

.loading {
  animation: spin 2s linear infinite;
}

.button {
  background-color: #eee;
}

section:nth-of-type(2n) {
  background-color: #aaaaaa18;
}

header {
  padding: 2.5em 1em 3em;
  background-color: #eee;
  /* background-image: url('cross.svg');
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: 120% 50%;
  min-height: 20vw; */
  position: relative;
  overflow: hidden;
}

#cross {
  position: absolute;
  width: 150vw;
  height: 20em;
  right: -50%;
  top: -50%;
  right: calc(6em - 75%);
  top: calc(10% - 5em);
  top: -4.5em;
  color: #fff1;
}

.color_w #cross,
.color_n #cross {
  color: #0001;
}

.color_n {
  color: #555;
  /* box-shadow: none; */
}

.color_w {
  background-color: #ffffff;
  color: black;
}

header.color_w {
  box-shadow: 0 0 24px rgba(191, 191, 191, 0.5);
}

.color_b {
  background-color: #000000;
  color: white;
}

.color_g {
  background-color: #008800;
  color: white;
}

.color_r {
  background-color: #aa0000;
  /* background-color: #cc2200; */
  color: white;
}

.color_p {
  background-color: #880088;
  color: white;
}

footer {
  background-color: #444444;
  color: white;
  padding: 3em .5em;
  text-align: center;
  font-weight: 700;
}

h2 {
  text-align: center;
  opacity: .9;
  line-height: 1.3;
  margin: 0;
  font-size: 1.3em;
  margin-top: .4em;
}

h2.name {
  font-size: 1.2em;
}

h2.name .latin {
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-weight: 700;
}

h3 {
  margin-bottom: .2em;
  /* font-weight: 300; */
  font-weight: 700;
  /* letter-spacing: .06em; */
  text-align: center;
  font-size: 1.1em;
}

h3.reading {
  font-weight: 400;
  margin-bottom: 0;
}

h3.reading .latin {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 0.9em;
}

h3.ref {
  margin-top: 0;
}

#setup {
  text-align: center;
  margin-top: 1em;
}

.ref {
  /* float: right; */
  /* white-space: nowrap; */
  display: block;
  /* font-style: italic; */
  /* opacity: .7; */
}

/* .ref::before {
  content: "–";
  padding-right: .5em;
} */

sup.verse {
  position: relative;
  line-height: 0;
  margin-right: .2em;
  font-size: .7em;
  font-weight: 700;
}

.text {
  clear: both;
  margin-bottom: .5em;
  /* overflow: TODO: why?! (auto) */
}

p {
  clear: both;
  position: relative;
  margin-top: 0;
  margin-bottom: .5em;
  /* line-height: 1.6; */
}

p::after {
  content: "";
  display: table;
  clear: both;
}

.info {
  text-align: center;
  opacity: .6;
}

.inRange {
  background-color: #ffeecc;
  background-color: #bfecae;
}

.collapsed .outofRange,
.collapsed sup.verse {
  display: none;
}

.collapsed .inRange {
  background-color: unset !important;
}

.expand {
  display: none;
}

.collapsed .expand {
  display: block;
  text-align: center;
}

ul {
  padding-left: 1.5em;
}

.latin {}

.ethiopic {
  font-family: 'Abyssinica SIL';
  font-weight: 400 !important;
}

.ethiopic.number {
  font-size: 1.2em;
  line-height: 1;
}

.hebrew {
  direction: rtl;
  text-align: right;
  font-family: 'SBL Hebrew';
  font-size: 1.3em;
}

.hebrew sup.verse {
  margin-left: .2em;
  margin-right: 0;
}

.greek {
  font-family: 'SBL Greek';
  font-size: 1.15em;
}

#tabbar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: #ffffff;
}

.tab-icon {
  display: inline-block;
  width: 25%;
  text-align: center;
  font-size: 32px;
  border-top: 1px solid #ddd;
  padding: 12px 0 0;
  line-height: 1.0;
}

.tab-icon .icon {
  padding: 4px 12px;
  border-radius: 20px;
  background-color: transparent;
}

.center {
  padding: 10px;
  text-align: center;
}

#loading {
  background-color: #ffffff99;
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
}

.svg-loader {
  display: block;
  width: 50%;
  height: auto;
  margin: 40vh auto 0;
}


.group {
  text-align: center;
  margin-top: 20px;
}

.settings-button {
  display: inline-block;
  vertical-align: top;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid #888;
  margin-right: 10px;
  width: 22%;
  margin-right: 2%;
  margin-right: 2vw;
  width: 22vw;
  height: 22vw;
}

.settings-button .inner {
  text-align: left;
  width: 7em;
  padding: 7px;
}

.preview {
  margin-top: 50px;
}

.preview p {
  margin-left: 1em;
}

.selection {
  text-align: center;
  border-bottom: #ddd 1px solid;
  padding: .5em;
}


@media screen and (min-width: 600px) {
  header {
    background-size: 20%;
    background-position: 80% 50%;
  }
}
