@font-face {
  font-family: Iowan;
  src: url(fonts/bitstreamiowanoldstylebt.ttf);
  font-weight: normal;
}
@font-face {
  font-family: Iowan;
  src: url(fonts/bitstreamiowanoldstyleboldbt.ttf);
  font-weight: bold;
}
@font-face {
  font-family: Iowan;
  src: url(fonts/bitstreamiowanoldstyleitalicbt.ttf);
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: Iowan;
  src: url(fonts/bitstreamiowanoldstylebolditalicbt.ttf);
  font-weight: bold;
  font-style: italic;
}

html,
body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 20px;
    font-family: "Iowan", serif;
    color: #4F4D4F;
}
*:focus {
    outline: none;
}
table {
    border-collapse: collapse;
}
wrap {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    overflow: auto;
}

main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 8vw;
    box-sizing: border-box;
    background: #fff;
}
main verse {
    margin: 0;
}




#heading {
    position: fixed;
    transform: rotate(90deg);
    transform-origin: bottom left;
    top: calc(-36px + 20px); /* first num line height */
    left: 10px;
    font-weight: bold;
    font-size: 36px;
    line-height: 36px;
    z-index: 3;
    opacity: 0.2;
}
@media screen and (max-width: 600px) {
    #heading {
        top: calc(-12px + 20px); /* first num line height */
        font-size: 24px;
        line-height: 12px;
    }
}
#jump {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    box-sizing: border-box;
    z-index: 3;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 999px;
    backdrop-filter: blur(7px);
}


/* SELECTOR PANE */
#selector {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 400px;
    min-height: 300px;
    padding: 20px;
    overflow: auto;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 0.5s;
    font-size: 18px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ffffff;
    border-left: 1px solid #ccc;
}
#selector-toggle {
    position: fixed;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #ffffff;
    top: 50%;
    transform: translate(50%, -50%);
    transition: transform 0.5s;
    right: 0;
    z-index: 10;
    border-radius: 999px;
    cursor: pointer;
}
#selector-toggle > img {
    position: absolute;
    display: block;
    width: auto;
    height: 24px;
    margin: 0 auto;
    top: 50%;
    left: 50%;
    opacity: 0.4;
    transform: translateY(-50%) translateX(calc(-50% - 13px));
    transition: transform 0.5s;
    cursor: pointer;
}
#selector.open { transform: translateX(0) }
#selector-toggle.open { transform: translate(calc(50% - 400px), -50%) }
#selector-toggle.open > img {
    transform: translateY(-50%) translateX(calc(-50% - 13px)) rotate(180deg);
}
#selector book {
    display: block;
    cursor: pointer;
}
#selector book.open .chapter-wrap { display: flex; }
#selector .chapter-wrap {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 1em;
}
#selector chapter {
    background-color: rgba(0,0,0,0.05);
    width: calc(100% / 8);
    height: 50px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
}
@media screen and (max-width: 500px) {
    #selector {
        width: 300px;
    }
    #selector-toggle.open { transform: translate(calc(50% - 300px), -50%) }
    #selector chapter {
        width: calc(100% / 6);
    }
}


/* SETTINGS PANE */

#settings {
    position: fixed;
    bottom: 0;
    left: 50%;
    height: 60px;
    padding: 20px;
    overflow: auto;
    box-sizing: border-box;
    transform: translate(-50%, 100%);
    transition: transform 0.5s;
    font-size: 18px;
    z-index: 20;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    display: flex;
}
#settings > img {
    width: auto;
    height: 20px;
    cursor: pointer;
}
#settings-toggle {
    position: fixed;
    width: 60px;
    height: 60px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #ffffff;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    transition: transform 0.5s;
    z-index: 10;
    border-radius: 999px;
    cursor: pointer;
}
#settings-toggle > img {
    position: absolute;
    display: block;
    width: auto;
    height: 24px;
    margin: 0 auto;
    bottom: 50%;
    left: 50%;
    opacity: 0.4;
    transform: translateY(calc(-50% + 10px)) translateX(-50%);
    transform-origin: 50% 50%;
    transition: transform 0.5s;
    cursor: pointer;
}
#settings.open { transform: translate(-50%, 0) }
#settings-toggle.open { transform: translate(-50%, calc(50% - 60px)); }
@media screen and (max-width: 500px) {
    #settings-toggle.open {
        transform: translate(-50%, calc(50%));
    }
    #settings-toggle.open > img {
        transform: translateY(calc(-50% + 10px)) translateX(-50%) rotate(45deg);
    }
}


section {
    margin: 3em 0;
}
verse {
    display: block;
    margin: 0;
}
.chapter-heading {
    margin: 2em 0 1em 0;
}
.verse-ref {
    vertical-align: baseline;
    padding-right: 0.75em;
    font-size: 0.7em;
    opacity: 0.7;
}
.drop-cap {
    float: left;
    margin-right: 6px;
    font-size: 64px;
    line-height: 64px;
}
.verse {
    transition: background-color 0.5s;
}
.glow {
    background-color: #00ff7f45 !important;
}
added {
    font-style: italic;
}
name {
    text-transform: uppercase;
}
