body {
    background-color: lightgray;
}

streams {
    display: none;
}

/*
 * HELPER CLASSES
 */

.psLink {
    cursor: pointer;
}

.bigger .psStreams blockquote {
    font-size: 14px;
}

.bigger .ref-num {
    font-size: 10px;
}

.smaller .psStreams blockquote {
    font-size: 10px;
}

.smaller .ref-num {
    font-size: 8px;
}

.psHidden {
    display: none !important;
}

.psLineClamp {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.glyphicon-spin {
    animation: spin 2s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

a.plain, a.plain:hover {
    color: black;
    text-decoration: none;
}

/*
 * LAYERS
 */
#psStreamBackgroundLayer rect.psStreamCommentary {
    /*fill: rgba(255, 252, 0, 1);*/
    fill: #ffffe7;
}

#psStreamBackgroundLayer rect.psStreamReading {
    fill: #FFF;
}

#psStreamBackgroundLayer rect.psStreamComparing {
    fill: rgba(255, 255, 255, 0.5);
}

#psStreamBackgroundHighlightLayer rect.psStreamReading {
    fill: rgba(125, 168, 255, 0.1);
    /*fill: rgba(0, 255, 54, 0.2);*/
}

#psStreamBackgroundHighlightLayer rect.psStreamCommentary {
    fill: transparent;
    /*fill: rgba(0, 255, 54, 0.2);*/
}

#psStreamBackgroundHighlightLayer rect.psStreamComparing {
    /*fill: rgba(255, 255, 255, 0.8);*/
    /*fill: rgba(0, 255, 54, 0.05);*/
    /*fill: rgba(0, 255, 54, 0.2);*/
    /*fill: rgba(125, 168, 255, 0.1);*/
    fill: transparent;
}

#psRefLinkLayer line.psActive {
    stroke: rgba(0, 255, 54, 1);
    stroke-width: 3;
}

#psRefLinkLayer line {
    stroke: rgba(0, 255, 54, 0.8);
    stroke-width: 1;
}

#psRefLinkHighlightLayer line {
    stroke: rgba(125, 168, 255, 1);
    stroke-width: 3;
}

/*
 * STREAM
 */

.psStreams {
    /*position: absolute;*/
    /*float: left;*/
    width: 100%;
    z-index: 3;
    position: absolute;
    white-space: nowrap; /* allow horizontal scroll */
    text-align: center;
    /*background-color: lightgray;*/
    /*height:  100%;*/
    /* Fix remove space between child inline elements */
    font-size: 0px;
}

.psStreams blockquote {
    border-left: none;
    margin: 0px;
    padding: 0px;
}

.psStreams blockquote h5, .psStreams blockquote p, .psStreams blockquote div {
    padding-left: 20px;
    padding-right: 20px;
}

.psStreams blockquote p {
    margin-bottom: 0px;
}

.psStreams blockquote h5 {
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    display: inline-block;
}

.psStreams blockquote small {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 10px;
    /*display: inline-block;*/
    display: block;

}

.psStreams blockquote small:before {
    content: '';
}

.psStreams blockquote small:after {
    content: '';
}

.psStreams blockquote.psPassage.psActive {
    color: black;
}

/* allow horizontal scroll */
.psStream {
    /*display: block;*/
    display: inline-block;
    float: none;
    white-space: normal;
    vertical-align: top;
    text-align: left;
    padding: 0px;
    margin: 0px;
    padding-top: 40px;
}

.psStreamHeader {
    width: 25%;
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    /*top: 0px;*/
    top: 87px;
    position: fixed;
    background-color: white;
    z-index: 10;
    font-size: 12px;
    vertical-align: middle;
    line-height: 24px;
}

.psStreamHeader h3 {
    margin: 0px;
    padding: 0px;
}

.psStreamSource {
    display: none;
}

.psStreamCommentary {
}

.psStreamReading {
}

.psStreamCommentary .psRefPassage, .psStreamCommentary .psRefComment {
    /*background-color: transparent;*/
}

.psStream.inactive blockquote {
    color: lightgray;
}

.psStream.inactive blockquote:hover {
    color: black;
}

.psStream.inactive {
}

.psStream .psVerseLink.psActive {

}

.psStream.psStreamCommentary .psStreamHeader {
    background-color: #ffffe7;
}

.psStream.psStreamReading .psStreamHeader {
    background-color: #FFF;
}

.psStream.psStreamComparing .psStreamHeader {
    background-color: rgba(255, 255, 255, 0.5);
}

/**
*  PASSAGE
*/

.psPassage {
    padding-top: 10px;
    padding-bottom: 10px;
}

.psPassage.inactive {
    color: rgba(0, 0, 0, 0.2);
}

.psPassage.inactive:hover {
    color: rgba(0, 0, 0, 0.5);
}

.psPassage.inactive .psRefPassage {
    color: rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 255, 54, 0.2);
}

.psPassage.inactive .psRefComment {
    color: rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 252, 0, 0.2);
}

.psPassage.inactive:hover .psRefPassage {
    color: rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 255, 54, 0.5);
}

.psPassage.inactive:hover .psRefComment {
    color: rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 252, 0, 0.5);
}

.psStreamCommentary .psRefComment {
    background-color: rgba(255, 252, 0, 0.3);
}

.psStreamCommentary .psRefPassage {
    background-color: rgba(0, 255, 54, 0.3);
}

.psPassage.psActive {
    color: black;
}

.psStreamCommentary .psPassage blockquote {
    margin-bottom: 10px;
}

.ref-num {
}

.psRefComment {
    background-color: #fffc00;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

.psRefComment:hover {
    text-decoration: none;
    color: black;
}

.psRefPassage, .psRefPassage > .psRefComment {
    /*background-color: #00ff36;*/
    background-color: #00ff36;
    /*background-color: yellow;*/
    /*white-space: nowrap; todo this causes columns to be too large, breaking background rendering - consider improving line drawing instead*/
    /*text-decoration: underline;*/
    cursor: pointer;
}

.psStream .psHighlight, .psStream .psHighlight:focus, .psStream .psHighlight:visited, .psStream .psHighlight:active, .psStream .psHighlight:hover {
    background-color: #7da8ff;
    color: white;
    text-decoration: none;
}

.tooltip {
    width: 200px;
}

.tooltip-inner {
    text-align: left;
}

/* Must keep scrollbars on modal otherwise associatinos calculated on incorrect page width */
.modal-open {
    overflow: scroll;
}

/*
* COMPONENTS
*/
.psAction {
    cursor: pointer;
}

/**
*  REF
*/
.psStreamCommentary .psVerseLink:hover {
    background-color: rgba(255, 252, 0, 0.1);
    cursor: pointer;
}

.psStreamCommentary .psVerse.psActive {
    background-color: rgba(255, 252, 0, 0.3);
}

.psStreamComparing .psVerse.psActive {
    background-color: rgba(255, 255, 255, 0.5);
}

/*
* BOOTSTRAP OVERRIDE
*/
.nav-pills > li > a {
    padding: 5px;
    font-size: 11px;
    line-height: 9px;
}