#home-page-pattern{
    position: absolute;
    top: -288px;
    left: 0;
    right: 0;
    width: 100%;
    height: 500px;
    background: url('../img/sadaham-deshana-pattern.jpg') center top no-repeat;
    background-size: auto 100%;
}

#home-tag-box{
    position: relative;
}

#tag-box-viewport {
    height: 269px;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #fff;
    padding-bottom: 24px;
    border-radius: 10px;
}

#tag-box-all-btn{
    position: absolute;
    top: 6px;
    right: 1px;
    background-color: #fff;
    min-width: 48px;
    height: 24px;
    text-align: right;
    border-radius: 4px;
}

#tag-box-all-btn > span{
    display: inline-block;
    vertical-align: top;
    padding: 2px 3px 0 0;
    color: #aeaeae;
    font-size: 12px;
    transition: color 4s linear;
}

#tag-box-all-btn > i{
    color: #aeaeae;
    height: 24px;
    line-height: 24px;
    margin: 1px 4px 0 0;
    transition: color 4s linear;
}

body.non-touch-device #tag-box-all-btn:hover > span,
body.non-touch-device #tag-box-all-btn:active > span{

    color: #5378B7;
    transition: color 0.2s linear;
}

body.non-touch-device #tag-box-all-btn:hover > i,
body.non-touch-device #tag-box-all-btn:active > i{
    color: #5378B7 !important;
    transition: color 0.2s linear;
}

#tagg-box-bottom-bar{
    position: absolute;
    left: 0;
    right: 0;
    bottom: -31px;
    width: 100%;
    height: 31px;
    background: #fff;

    -webkit-box-shadow: 0px -8px 8px -8px rgba(0,0,0,0.28);
    -moz-box-shadow: 0px -8px 8px -8px rgba(0,0,0,0.28);
    box-shadow: 0px -8px 8px -8px rgba(0,0,0,0.28);
}

#all-tags-btn{
    position: absolute;
    right: 0;
    bottom: 0;
    text-align: center;
    border: none;
    background: #fff;
    padding: 0 8px 0 4px;
}

#all-tags-btn::before{
    content: "";
    position: absolute;
    top: 2px;
    left: -24px;
    width: 24px;
    height: 27px;
    background: rgb(255,255,255);
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5172443977591037) 52%, rgba(255,255,255,1) 100%);
}

body.non-touch-device #all-tags-btn:hover,
body.non-touch-device #all-tags-btn:active{
    background-color: #555;
}

#all-tags-btn > i{
    color: #ccc;
    height: 24px;
    line-height: 24px;
    padding: 0;
    margin: 0;
}

body.non-touch-device #all-tags-btn:hover > i,
body.non-touch-device #all-tags-btn:active > i{
    color: #fff;
}

#tag-box a.tag-pill{
    font-size: 12px;
    padding: 4px 6px 3px 8px;
    border: none;
    margin: 3px 3px 3px 3px;
}

#tag-overlay{
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    -moz-transition: opacity 200ms ease-out;
    -o-transition: opacity 200ms ease-out;
    -webkit-transition: opacity 200ms ease-out;
    transition: opacity 200ms ease-out;
    display: none;
}

#tag-overlay.visible{
    opacity: 0.8;
    -moz-transition: opacity 0.4s ease-out;
    -o-transition: opacity 0.4s ease-out;
    -webkit-transition: opacity 0.4s ease-out;
    transition: opacity 0.4s ease-out;
}

#home-tags-breaker-narrow{
    display: none;
}

/* Home tile - Secondary */
#home-tile-secondary-box{
    font-size: 0;
}

#home-study-area-box > .home-card{
    position: relative;
    height: 163px;
}

#home-study-area-box i{
    position: absolute;
    top: 21px;
    left: 0;
    right: 0;
    margin: 0 auto;
}

#home-study-area-box p{
    margin-top: 57px;
}

body.user-logged-in #home-study-area-box > .home-card{
    background-color: #5378B7;
    background-image: url('../img/blue_pattern.png');
    background-size: 120px 120px;
    background-repeat: repeat;

    box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.18) inset;
    -webkit-box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.18) inset;
    -moz-box-shadow: 1px 1px 15px 0px rgba(0,0,0,0.18) inset;
}

body.user-logged-in #home-study-area-box i{
    color: #f0f0f0;
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

body.user-logged-in #home-study-area-box p{
    color: #f7f7f7;
}

#home-study-area-label{
    position: absolute;
    left: 0;
    top: 0;
    height: 40px;
}

#home-study-area-label h4,
#home-study-area-label span,
#home-study-area-label i{
    display: inline-block;
    height: 40px;
    line-height: 40px;
    vertical-align: top;
    color: #5378B7;
    padding: 0;
}

#home-study-area-label i{
    margin: 0 8px 0 12px;
}

#home-study-area-label span{
    padding-top: 1px;
}

#home-study-area-guidance{
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    margin: 4px 12px;
    height: 32px;
    line-height: 32px;
    color: #888;
}

#home-study-area-loading-box{
    width: 100%;
    height: 100px;
    margin-top: 40px;
    background-image: url('../img/spinner.gif');
    background-position: center center;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: 28px 28px;
    opacity: 0.5;
}

body.user-pane-initialized #home-study-area-loading-box{
    display: none;
}

#home-study-area-contents-box{
    display: none;
}

body.user-pane-initialized.user-logged-in #home-study-area-contents-box{
    display: block;
}

#home-study-area-contents-box a:last-child{
    margin-left: 8px;
}

#home-study-area-contents-box > div{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    width: 100%;
}

#home-page #home-study-area-contents-box > div > a.card-pill{
    position: relative;
    display: inline-block;
    text-align: center;
    left: auto;
    right: auto;
    bottom: auto;
}

/* -------------------------------------------------------------------------*/
#home-page a.home-btn{
    position: relative;
    display: inline-block;
    font-weight: bold;
    padding: 10px 15px 11px 15px;
    cursor: pointer;
    color: #a05800;
    border-radius: 6px;
}

body.non-touch-device #home-page a.home-btn:hover,
body.non-touch-device #home-page a.home-btn:active{
    color: #0070c0;
}

.home-cards-box{
    display: inline-block;
    width: 674px;
    font-size: 0;
}

.home-card-container{
    width: 25%;
    padding: 0 6px;
    min-width: 100px;
    margin-bottom: 12px;
    vertical-align: top;
    display: inline-block;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
}

.home-card-container.wide{
    width: 50%;
    min-width: 200px;
}

.home-card{
    position: relative;
    background-color: #f0f0f0;
    border-radius: 24px;
    padding: 6px;
    min-height: 156px;
}

.home-card i{
    display: block;
    margin: 15px 0 0 0;
    color: #5378B7;
}

.home-card p{
    margin: 18px 4px 57px 4px;
    color: #888;
    font-size: 12px;
}

#home-page a.card-pill{
    position: relative;
    display: inline-block;
    border: 1px solid #eaeaea;
    background-color: #fff;
    color: #555;
    margin-top: 9px;
    padding: 0 8px;
    width: auto;
    height: 36px;
    line-height: 39px;
    font-size: 12px;
    font-weight: 600;
    min-width: 80px;
    vertical-align: top;
    text-align: center;
    border-radius: 20px;
}

.home-tab-footer a.card-pill:last-child{
    margin-left: 8px;
}

#home-page .card-pill > i{
    vertical-align: top;
    height: 40px;
    line-height: 37px;
    padding-right: 6px;
    margin-left: -2px;
}

#home-page .card-pill > span{
    display: inline-block;
    height: 32px;
    line-height: 32px;
}

#home-page .home-card .card-pill{
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    bottom: 10px;
    margin: 0 auto;
    line-height: 36px;
    width: 104px;
}

#home-study-area-login-box{
    display: none;
}

body.user-pane-initialized #home-study-area-login-box{
    display: block;
}

body.user-pane-initialized.user-logged-in #home-study-area-login-box{
    display: none;
}

#home-random-sermon-box{
    position: relative;
    background-color: #fff;
    border-bottom: 1px solid #ececec;
    border-radius: 0;
    margin-top: 3px;
    padding: 14px 0 0 0;
    min-height: 148px;
}

#home-random-sermon-box > h4{
    margin: 8px 0;
}

#home-random-sermon-box > p{
    margin-top: 20px;
    margin-bottom: 70px;
}

#home-random-sermon-box > .pill{
    box-shadow: none;
    border: 1px solid #ececec;
}

#home-random-sermon-loading-box{
    position: absolute;
    left: 0;
    top: 12px;
    right: 0;
    bottom: 74px;
    display: none;
    width: 100%;
    background-image: url('../img/spinner.gif');
    background-position: center center;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: 32px 32px;
    opacity: 0.5;
}

#home-random-sermon-box.random-sermon-loading > #home-random-sermon-loading-box{
    display: block;
}

#home-random-sermon-box.random-sermon-loading > p,
#home-random-sermon-box.random-sermon-loaded > p{
    display: none;
}

#home-random-sermon-content > .sermon-item{
    text-align: left;
    border: none;
    border-radius: 10px;
    padding-right: 4px;
    box-shadow: 0 3px 6px rgba(0,0,0,.132);
    box-shadow: 0 3px 6px var(--callout-shadow-color,rgba(0, 0, 0, .132));
    border: 1px solid #f0f0f0;
}

#home-random-sermon-box > #home-random-sermon-btn{
    position: absolute;
    box-shadow: none;
    -moz-window-shadow: none;
    bottom: 14px;
    width: 168px;
    left: 0;
    right: 0;
    margin: auto;
}

/* Home - tabs */
#home-tabs-box{
    width: 100%;
    max-width: 1200px;
    margin: 14px auto 10px auto;
    padding: 0 20px;
}

#home-tabs-header-strip{
    position: relative;
    display: inline-block;
    font-size: 0;
    margin-top: 10px;
}

#home-tabs-header-strip a.home-btn::before{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    margin: 0 auto;
    width: 12px;
    height: 3px;
    border-radius: 3px;
    background-color: #cecece;
    transition: opacity 0.1s ease-in-out;
    opacity: 0;
}

#home-tabs-header-strip a.home-btn.selected::before{
    transition: opacity 0.28s ease-in-out;
    opacity: 1;
}

#home-tabs-header-strip a.home-btn.selected,
#home-tabs-header-strip a.home-btn.selected:hover,
#home-tabs-header-strip a.home-btn.selected:active{
    cursor: default;
    color: #a05800 !important;
}

#home-tabs-body{
    height: 300px;
    margin-top: 12px;
}

.home-tab-body{
    position: relative;
}

.home-tab-body > .scroll-btn{
    position: absolute;
    display: block;
    top: -48px;
    bottom: 0;
    width: 42px;
    height: 278px;
    cursor: pointer;
    background-color: #fff;
    filter: grayscale(100%);
}

.home-tab-body > .scroll-btn > span{
    position: absolute;
    display: block;
    top: 88px;
    left: 12px;

    width: 24px;
    height: 24px;
    padding-top: 12px;

    transition: opacity 0.58s ease;
    transition: background-color 0.58s ease;
}

.home-tab-body > .left.scroll-btn{
    left: 0;
}

.home-tab-body > .scroll-btn i{
    color: #888;
}

.home-tab-body > .right.scroll-btn{
    right: 0;
}

.home-tab-body > .scroll-btn::before{
    content: "";
    position: absolute;
    top: 44px;
    right: 0;
    width: 1px;
    background-color: #eaeaea;
    height: 140px;
}

.home-tab-body > .right.scroll-btn::before{

    left: 0;
    right: auto;
}

.home-tab-body > .left.scroll-btn i{
    padding-right: 2px;
}

.home-tab-body > .right.scroll-btn i{
    padding-left: 2px;
}

.home-tab-body > .scroll-viewport{
    position: relative;
    text-align: left;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    margin-bottom: 5px;
}

#home-tab-body-cds > .scroll-viewport{
    height: 149px;
}

#home-tab-body-books > .scroll-viewport{
    height: 186px;
}

#home-tab-body-magazine > .scroll-viewport{
    height: 164px;
}

.home-tab-scroll-strip{
    position: absolute;
    left: 0;
    top: 0;
    padding: 0 40px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease-out;
    opacity: 0;
    transform: translateX(240px) translateY(0) translateZ(0);
    text-align: center;
    font-size: 0;
    min-width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    will-change: scroll-position;
}

/* Home Tab - Items */
.home-tab-scroll-strip  a{
    display: inline-block;
    vertical-align: top;
    cursor: pointer;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body.non-touch-device .home-tab-scroll-strip a:hover,
body.non-touch-device .home-tab-scroll-strip a:active{
    background-color: #f0f0f0;
}

.home-tab-scroll-strip  a > span{
    display: block;
    -webkit-box-shadow: 0px 6px 14px -5px rgba(0,0,0,0.42);
    -moz-box-shadow: 0px 6px 14px -5px rgba(0,0,0,0.42);
    box-shadow: 0px 6px 14px -5px rgba(0,0,0,0.42);
}

.home-tab-scroll-strip a > p{
    display: block;
    text-align: center;
    white-space: normal;
    color: #555;
    margin: auto;
    font-size: 11px;
}

.home-tab-footer{
    display: inline-block;
    max-width: 664px;
    padding: 0;
    margin-bottom: 20px;
    height: 48px;
}

.home-tab-footer > div {
    display: inline-block;
    width: 100%;
    max-width: 664px;
    font-size: 0;
}

#home-page .home-tab-footer a.card-pill{
    margin-top: 0;
    border-radius: 11px;
    padding-left: 12px;
    padding-right: 12px;
}

#home-page .search-box-container{
    margin-top: 31px;
}

#home-page .home-tab-footer i.search-icon{
    font-size: 21px;
    line-height: 38px;
    margin-left: -4px;
}

#home-page .search-box .inline-alert-container > .inline-alert{
    bottom: auto;
    top: 100%;
}

#home-tab-body-magazine .home-tab-footer{
    height: 96px;
}

body.thin-scrollbars #tag-box-viewport {
    height: 201px;
    border-left: 1px solid #fcfcfc;
    border-right: 1px solid #fcfcfc;
    border-radius: 2px;
}

body.thin-scrollbars #home-tabs-box{
    max-width: none;
    padding: 0;
}

body.thin-scrollbars #home-tabs-box .scroll-btn{
    display: none;
}

body.thin-scrollbars #home-tabs-body .scroll-viewport{
    overflow-x: scroll;
    overflow: scroll hidden;
    -webkit-overflow-scrolling: touch;
}

/* Home Tab - CD's */
#home-tab-cds-strip > a{
    border-radius: 4px;
    text-align: center;
}

#home-tab-cds-strip > a > span{
    font-family: 'Times New Roman', Times, serif;
    font-size: 22px;
    font-weight: bold;
    color: #ececec;
    text-align: center;
    margin: 8px 12px 12px 12px;
    padding: 40px 0 0 8px;
    width: 84px;
    height: 84px;
    background-size: 84px 84px;
    border-radius: 3px;
}

#home-tab-cds-strip > a > p{
    max-width: 104px;
    padding-bottom: 4px;
}

/* Home Tab - Books */
#home-tab-books-strip > a{
    width: 127px;
    border-radius: 4px;
    text-align: center;
}

#home-tab-books-strip > a > span{
    display: inline-block;
    background-image: url(../data/books/thumbnails/0_9.jpg?v=1.00);
    background-position-y: 0;
    background-position: 0 0;
    margin: 8px;
    width: 77px;
    height: 109px;
    background-size: 77px auto;
    border-radius: 3px;
}

#home-tab-books-strip > a > p{
    padding: 0 8px 4px 8px;
}

/* Home Tab - Magazine */
#home-tab-magazine-strip a{
    width: 105px;
    border-radius: 4px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    cursor: pointer;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#home-tab-magazine-strip a > span{
    display: inline-block;
    background-position-y: 0;
    background-position: 0 0;
    margin: 8px 8px 5px 8px;
    width: 77px;
    height: 99.72px;
    background-size: 77px auto;
    border-radius: 3px;
}

#home-tab-magazine-strip a > p{
    padding: 0 8px 4px 8px;
}

#home-tab-magazine-strip a.home-latest-volume{
    font-weight: bold;
}

.home-magazine-year-separator{
    position: relative;
    display: inline-block;
    height: 122px;
    width: 1px;
    margin: 10px 7px 0 7px;
    border-right: 1px solid #f0f0f0;
    overflow: visible;
    overflow-x: visible;
    overflow-y: visible;
}

.home-magazine-year-separator > span {
    position: absolute;
    left: -22px;
    top: 122px;
    width: 46px;
    height: 24px;
    border-radius: 10.5px;
    line-height: 23px;
    padding-left: 1px;
    font-weight: bold;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    color: #5378B7;
}

#home-magazine-year-2011{
    margin: 0;
    width: 0;
    border-right-width: 0;
}

#home-magazine-year-2011 > span{
    display: none;
    width: 0;
}

/* Home page - bottom area */
#home-footer-box{
    margin-bottom: 17px;
}

#home-footer-box .lotus-box{
    margin: 49px 0;
}

#home-footer-box p{
    color: #888;
    margin-bottom: 8px;
    font-size: 12px;
}

#home-footer-box a{
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    text-decoration: underline;
    word-wrap: break-word;
    white-space: normal;
}

/* Waharaka Himi portal */
#home-waharaka-himi-portal{
    position: relative;
    display: inline-block;
    height: 20px;
    width: 100%;
    transition: height 0.68s ease-in-out, background-color 1s ease-in-out, margin 0.68s ease-in-out;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #fff;
    border-radius: 23px;
    margin: 0 0 57px 4px;
}

#home-waharaka-himi-portal.showing-contents{
    height: 256px;
    margin-top: 11px;
    background: url("../img/flowers-background.jpg") repeat;
    background-position: center center;
    transition: height 0.4s ease-in-out, background-color 0.4s ease-in-out, margin 0.4s ease-in-out;
}

#home-waharaka-himi-portal > canvas{
    opacity: 0;
    pointer-events: none;
}

#home-waharaka-himi-portal.effect-error > canvas{
    display: none !important;
}

#home-waharaka-himi-portal.showing-contents > canvas{
    opacity: 1;
    pointer-events: all;
    touch-action: none;
}

#home-waharaka-himi-portal a{
    font-weight: normal;
    transition: margin 0.4s ease-in-out;
    margin: 0;
}

#home-waharaka-himi-portal.showing-contents a,
#home-waharaka-himi-portal.showing-contents a:hover,
#home-waharaka-himi-portal.showing-contents a:active{
    text-decoration: none;
    transition: margin 0.4s ease-in-out;
}

#home-waharaka-himi-portal a > span:first-child::after{
    content: " ";
}

#home-waharaka-himi-portal-inner{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
    width: 61.803%;
    height: 48px;
    background-color: #fff;
    padding-top: 17px;
    transition: height 0.4s ease-in-out;
}

#home-waharaka-himi-portal.showing-contents #home-waharaka-himi-portal-inner{
    height: 102px;
}

#home-waharaka-himi-portal.showing-contents .links-list{
    font-size: 0;
    margin-top: 6px;
}

#home-waharaka-himi-portal .links-list > a{
    margin-left: 8px;
    min-width: 98px;
    opacity: 0;
}

#home-waharaka-himi-portal.showing-contents .links-list > a{
    opacity: 1;
    transition: opacity 1.2s ease-in-out;
    background-color: #f8f8f8;
    border-width: 0;
}

#home-waharaka-himi-portal.showing-contents .links-list > a:first-child{
    margin-left: 0;
}

#home-waharaka-himi-portal-close{
    position: absolute;
    display: none !important;
    margin: 0;
    padding: 0;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border: 1px solid #fff;
    border-radius: 0 4px 0 4px;
}

#home-waharaka-himi-portal.showing-contents #home-waharaka-himi-portal-close{
    display: block !important;
}

#home-waharaka-himi-portal-close:hover,
#home-waharaka-himi-portal-close:active{
    border-left-color: #eaeaea;
    border-bottom-color: #eaeaea;
}

#home-waharaka-himi-portal-close > i{
    display: block;
    color: #888;
    margin-top: -6px;
}

/* Other websites box */
#home-other-websites{
    display: inline-block;
    height: 20px;
    transition: height 0.4s ease-in-out, background-color 1s ease-in-out, margin-top 0.4s ease-in-out;
    overflow: hidden;
    overflow-y: hidden;
    background-color: #fff;
    border-radius: 8px;
    padding: 0 16px 8px 16px;
    margin-top: 1px;
}

#home-other-websites-break{
    display: none;
}

#home-other-websites.showing-websites{
    height: 193px;
    background-color: #fff;
    border: 1px solid #eaeaea;
    transition: height 0.4s ease-in-out, background-color 0.4s ease-in-out, margin-top 0.4s ease-in-out;
    margin-top: 12px;
}

#home-other-websites a{
    font-weight: normal;
    transition: margin 0.4s ease-in-out;
    margin: 0;
}

#home-other-websites .links-list{
    display: none;
    padding-top: 18px;
}

#home-other-websites.showing-websites > a,
#home-other-websites.showing-websites > a:hover,
#home-other-websites.showing-websites > a:active{
    text-decoration: none;
    transition: margin 0.4s ease-in-out;
    margin-top: 20px;
}

#home-other-websites.showing-websites .links-list{
    display: inline-block;
    margin-top: 6px;
}

#home-other-websites.showing-websites .links-list > a{
    position: relative;
    display: block;
    padding: 2px;
}

/* Preload Images */
#preload-imgs{
    position: absolute;
    width: 1px;
    height: 1px;
    left: -200px;
    top: 0;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: hidden;
}

#preload-imgs > img{
    width: 1px;
    height: 1px;
}

#home-page-header-shadow-cover{
    position: absolute;
    display: none;
    left: 0;
    top: -26px;
    right: 0;
    width: 100%;
    height: 10px;
    background-color: #fff;
    z-index: 1001;
}