@import "user/story-buttons.css";
@import "user/login.css";


:root {
    --storycove-beige: #a5a07c;
    --storycove-green: #718632;
    --body-bg: white;
    --header-color: var(--storycove-green);
    --cassiopeia-color-primary: var(--storycove-beige);
    --cassiopeia-color-link: hsl(222, 80%, 66%);
    --cassiopeia-color-hover: hsl(221, 46%, 53%);
}

body {
    border: 1rem solid var(--storycove-beige);
    background-color: var(--storycove-beige);
    border-top-width: 0;
}

@media (min-width: 992px) {
    body {
        border-width: 2rem;
        border-top-width: 0;
    }
}

body > .site-grid {
    background-color: var(--storycove-beige);
    /* move to top*/
    align-content: flex-start;
    /* don't expand to fill 100% width*/
    flex-grow: 1;
}

body > .site-grid > .grid-child {
    padding:  1rem 0.5rem;
    background-color: var(--body-bg);
}

body > .site-grid > .grid-child.container-top-a {
  height: 0;
  padding: 0;
}

@media only screen and (max-device-width: 480px) and (orientation: portait),
         only screen and (max-width: 640px) {
           .alert-mobile-browser-warning {
             display: initial !important;
           }
           
           body > .site-grid > .grid-child.container-top-a {
				height: auto;
             	padding: 1rem 0.5rem;
           }
}

/*add more padding at larger width*/
@media (min-width: 992px) {
    /* consider moving this to target a more specific container */
    body > .site-grid > .grid-child.container-component {
        padding:  2rem 3rem;
        min-height: calc(100vh - 375px);
    }
  


    ul.two-col {
        column-count: 2;
    }

    ul.two-col > li,
    ul.three-col > li {
        padding-right: 1em;
    }

    ul.three-col {
        column-count: 3;
    }
}


.container-header {
    background-image: none;
    display: flex;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    /* apply tree border to bottom edge */
    border-image-source: url("user/images/top_wide.png");
    border-image-slice: 11;
    border-image-width: 0 11px 11px 11px;
    border-image-repeat: stretch;
}


.container-header .grid-child {
    width: initial;
}
.container-header > .grid-child:first-of-type {
    margin-left: 0;
}
.container-header > .grid-child:last-of-type {
    margin-right: 0;
}

.container-header .mod-menu {
    text-align: right;
}

.navbar-brand {
    align-self: flex-end;
}

/* logo */
.navbar-brand img {
    max-width: 400px;
}

@media (max-width: 576px) {
    /* logo */
    .navbar-brand img {
        max-width: 100%;
    }
}

@media (min-width: 768px) {

    .navbar-brand {
        max-width: 50%;
    }


    .container-header .mod-menu {
        display: flex;
        flex: 1 1 0%;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
    }

    .mod-list li {
        padding: .15em 0;
    }

    .container-header .mod-menu>li+li {
        margin-left: 0.55rem;
    }
}

@media (min-width: 992px) {
    /*.navbar-brand img {*/
        /*max-width: 100%;*/
    /*}*/

    .container-header .mod-menu {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex: 1 0 100%;
        flex: 1 0 0%;
        -ms-flex-direction: row;
        flex-direction: row;
    }

    .container-header .mod-menu>li:after {
        bottom: 2px;
        opacity: .5;
        right: 0 !important;
    }

    .container-header .mod-menu>li+li {
        margin-left: 1.55em;
    }
}

.footer {
    margin-top: 0;
    background-image: none;
    padding: 0 1rem;
    color: black;
}


@media (min-width: 992px) and (max-width: 1500px) {
    .container-footer .grid-child {
        padding-right: 100px !important;
    }
}
.container-footer .grid-child {
    background-color: white;
    padding: 0.7em;

    /* apply image border to top of footer */
    border-image-source: url(user/images/bot_wide.png);

    border-image-slice: 11;
    border-image-width: 11px 11px 0 11px;
    border-image-repeat: stretch;
}


@media (min-width: 992px) {
    .container-footer .mod-menu {
        display: flex;
        flex-direction: row;
    }
    .container-footer .mod-menu > li + li {
        margin-left: 1.55em;
    }
}



.container-component>*+*,.container-component>:first-child,.container-sidebar-left>*+*,.container-sidebar-left>:first-child,.container-sidebar-right>*+*,.container-sidebar-right>:first-child {
    margin-top: 0;
}


h1, h2, h3, h4, h5 {
    color: var(--header-color);
}

/* bold content links */
.com-content-article a:link {
    font-weight: 700;
}

figure[data-wf-figure] figcaption {
    display: block !important;
}


.com-content-article.story-summary {
    display: flex;
}



.com-content-article.story-summary .story-summary-header {
    min-width: 13rem;
    max-width: 18rem;
    margin-right: 2rem;
}

.com-content-article__body a.btn.btn-subscribe,
.com-content-article__body .mod-menu .nav-item a.btn,
.com-content-article.story-summary .story-summary-header .overviewbuttons a.btn {
    width: 100%;
    margin: 0.5rem 0;
    background-repeat: no-repeat;
    background-position: 5px center;
    min-height: 70px;
    /*line-height: 50px;*/
    padding-left: 50px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.com-content-article__body a.btn.btn-subscribe,
.com-content-article__body .mod-menu .nav-item a.btn.btn-subscribe,
.com-content-article.story-summary .story-summary-header .overviewbuttons a.btn.btn-subscribe {
    background-image: url(/images/ogre/ogre-lean.png);
    background-size: 60px;
    line-height: 1.5rem;
    min-width: 12rem;
}

.com-content-article__body .mod-menu .nav-item a.btn.btn-sample-story,
.com-content-article.story-summary .story-summary-header .overviewbuttons a.btn.btn-sample-story {
    background-image: url("user/images/stories/tstab2.png");
}

.com-content-article.story-summary .story-summary-header .overviewbuttons a.btn.all-stories {
    background-image: url(user/images/storiesBackBtn.png);
    background-repeat: no-repeat;
    background-position: 10px center;
}

.com-content-article.story-summary .page-header h1 {
    text-align: center;
    font-size: 1.2em;
    background: url(user/images/arrow.png) no-repeat right bottom !important;
    padding-bottom: 30px;
}

/*space illustration images */
[aria-labelledby="rlta-about-this-story"] img + img,
.com-content-article.story-summary .com-content-article__body img + img {
    margin-left: 1rem;
}

/*style stories list*/
.category-module.stories-list a:link > img {
    transition: transform ease-in-out 0.3s;
}
.category-module.stories-list a:link > img:hover {
    transform: scale(1.1);
}
.category-module.stories-list .story-list-metadata {
    font-size: 80%;
    text-align: left;
}



.jm-category-module.default .jmm-rows > div > .jmm-item {
    float: none !important;
    padding: 0;
    text-align: center;
}

.jm-category-module.default .jmm-row:after {
    content: none !important;
}



/* for mobile, reduce padding on tab content panels */
@media screen and (max-width: 767px) {
    [data-rlta-element=container][data-rlta-state=ready][data-rlta-theme=neutral][data-rlta-type=accordions] > [data-rlta-element=panel] > [data-rlta-element=panel-content],
    [data-rlta-element=container][data-rlta-state=ready][data-rlta-theme=neutral][data-rlta-type=tabs] > [data-rlta-element=panels] > [data-rlta-element=panel] > [data-rlta-element=panel-content] {
        padding: 0.25rem;
    }
}

.nobossvideogallery {
    /*padding: 0px 0 !important;*/
    /*height: 500px;*/
}

.nobossvideogallery .nb-thumbnails-container .nb-video-image-thumb {
    background-position: top !important;
    background-size: contain;
    background-repeat: no-repeat;
    height: 170px;
}

.nobossvideogallery .nb-thumbnails-container .nb-video-content-thumb * {
    color: black !important;
}

.nobossvideogallery .nobossvideogallery__video.embed-responsive-16by9 {
    /*expand background img that is preloaded before video so it has the same dimensions as video*/
    background-size: contain !important;
    background-repeat: no-repeat !important;
    padding-bottom: 70%;
}

@media screen and (max-width: 767px) {
    .nobossvideogallery .nb-video-content__model1 {
        display: none;
    }
}


/*reset alignment of category headers */
.jmm-category-group {
    /*display: block;*/
}

.jmm-row {
    display: flex;
    justify-content: center;
}

.jmm-row.carousel-item.active {
    display: flex !important;
}

.jm-category-module .carousel-control-next, .jm-category-module .carousel-control-prev {
    width: 5%;
    margin-bottom: 4rem;
}
.jm-category-module .carousel-control-next-icon, .carousel-control-prev-icon {
    height: 4rem;
}
.jm-category-module.default .mod-article-image {
    margin-bottom: 0.2em;
}

.card.card-story-data {
    width: 222px;
    /*text-align: center;*/
}

.card.card-story-data .field-value:first-of-type,
.card.card-story-data .field-value img {
    width: 100%;
}
.card.card-story-data .card-body {
    padding: var(--card-spacer-y) 0.5em;
    padding-bottom: 0.3em;
}

.card.card-story-data .card-text span {
    display: block;
    font-size: 90%;
}

.card.card-story-data .card-text .field-label {
    align-self: flex-start;
    margin-right: auto;
    --bs-text-opacity: 1;
    color: #6c757d!important;
}

.card.card-story-data .card-text .field-value {
    align-self: flex-end;
}


.com-content-article .btn.btn-more-info {
    background-image: url(../../../../../images/ogre/ogre-lean.png);
    /*background-size: contain;*/
    background-size: 50px;
    background-repeat: no-repeat;
    padding-left: 45px;
    margin: 0.5em;
}

.jmm-image img {
    height: 200px;
}


.pp-checkout-menu .pp-currency,
.pp-checkout-menu .pp-amount {
    color: var(--storycove-green);
}
.pp-checkout-menu .pp-checkout-table__price,
.pp-checkout-menu .pp-checkout-table__title {
    color: var(--storycove-green) !important;
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
}
