/*
Theme Name: Color Genomics Base
Description: Base WordPress theme by Color Genomics
Theme URI: https://www.color.com/
Author: MentorMate
Version: 1
Textdomain: color
License: GPL-2.0
License URI: https://www.gnu.org/licenses/gpl2.html
*/

/* TODO get webpack running and convert this css to the scss that webpack is using */

.r-posts-container {
    /*margin-top: 8em;*/
    padding-left: 0;
    padding-right: 0;
}

.c-intro-text-bgimage__text {
    z-index: 1;
}

.c-withAnimation .layered-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    /*animation-name: fadeIn;*/
    /*animation-duration: 15s;*/
    /*animation-iteration-count: infinite;*/
    /*opacity: 0;*/
}

/*.c-withAnimation .layered-image.layer-0 {
    animation-delay: 0s;
}

.c-withAnimation .layered-image.layer-1 {
    animation-delay: 1s;
}

.c-withAnimation .layered-image.layer-2 {
    animation-delay: 2s;
}

.c-withAnimation .layered-image.layer-3 {
    animation-delay: 3s;
}

.c-withAnimation .layered-image.layer-4 {
    animation-delay: 4s;
}

.c-withAnimation .layered-image.layer-5 {
    animation-delay: 5s;
}

.c-withAnimation .layered-image.layer-6 {
    animation-delay: 6s;
}

.c-withAnimation .layered-image.layer-7 {
    animation-delay: 7s;
}

.c-withAnimation .layered-image.layer-8 {
    animation-delay: 8s;
}

.c-withAnimation .layered-image.layer-9 {
    animation-delay: 9s;
}

.c-withAnimation .layered-image.layer-10 {
    animation-delay: 10s;
}

.c-withAnimation .layered-image.layer-11 {
    animation-delay: 11s;
}

.c-withAnimation .layered-image.layer-12 {
    animation-delay: 12s;
}*/

/*@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}*/
.c-withAnimation .c-intro-text-bgimage__text h1 {
    font-size: 45px;
}

.c-withAnimation .c-intro-text-bgimage__text p {
    color: #fff;
    /*max-width: 30%;*/
    /*margin: 0 auto;*/
    font-size: 16px;
    line-height: 1.625em;
}

.c-withAnimation .c-intro-text-bgimage__text h3 {
    color: #fff;
    font-weight: 400;
}

@media screen and (max-width: 600px) {
    .c-intro-text-bgimage.c-withAnimation.o-container {
        height: initial;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    .c-withAnimation .c-intro-text-bgimage__text p {
        max-width: 80%;
    }
}

.r-post {
    border-bottom: 3px solid #EEE;
    transition: all 500ms;
}

.r-post:hover {
    /*text-decoration: none;*/
    /*background-color: #EEE;*/
}

.r-post h2 {
    color: var(--color-primary-six);
    font-size: 24px;
}

.r-post h2 a {
    color: var(--color-primary-six);
    line-height: inherit;
}

.r-post h2 a:hover {
    text-decoration: none;
}

.hero .r-image-container {
    min-height: 400px;
}
.r-image-container {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    display: block;
}

.r-image-container.spacer {
    border: 0.5em solid transparent;
}

.r-post .r-image-container .wp-post-image {
    position: absolute;
    width: 100%;
    height: auto;
}

.r-post.hero .r-image-container .wp-post-image {
    padding: 0 21px 0 20px;
    left: 8px;
}

.r-post .r-image-container.vertical .wp-post-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.r-post .r-image-container.vertical .wp-post-image.cover {
    object-fit: cover;
}

.r-image-wrapper {
    padding: 0 1em 0 0;
}

.r-p-top_small {
    padding-top: 1em;
}

.r-p-top_large {
    padding-top: 2em;
}

.r-p-top_x-small {
    padding-top: 0.5em;
}

.r-p-bottom_large {
    padding-bottom: 2em;
}

.r-p-bottom_small {
    padding-bottom: 1em;
}

.r-p-bottom_x-small {
    padding-bottom: 0.5em;
}

.r-p-right_x-small {
    padding-right: 0.5em;
}

.r-m-top-small {
    margin-top: 12px;
}

.r-no-padding {
    padding:0;
}

.r-no-margin-right {
    margin-right: 0;
}

.r-p-vertical-medium {
    padding-top: 1.25em;
    padding-bottom: 1.25em;
}

.r-width-full {
    width: 100%;
}

.r-width-full .wp-post-image {
    width: 100%;
    height: auto;
}

.c-pagination ul {
    justify-content: center;
}

.c-pagination li {
    margin: 0 0.5em;
}

.c-loop-single {
    max-width: 1024px;
}

.c-loop-single__header__info {
    margin-left: 0;
}

.article__meta .avatar {
    border-radius: 25px;
}

.c-loop-single__header__info .article__meta span {
    color: grey;
    font-weight: 400;
}

.r-read-more-link {
    display: block;
    padding-top: 0.75em;
}

.r-blog-sub-nav {
    /*border-bottom: 1px solid #EEE;*/
    /*background-color: #EEE;*/
}

.r-blog-sub-nav .menu-item  {
    display: inline-block;
    padding-right: 1.75em;
    font-family: var(--font-family-primary);
}
.r-blog-sub-nav .menu-item:last-child {
    padding: 10px 0 10px 10px;
}

.r-blog-sub-nav .menu-item a {
    color: var(--color-primary-one);
    font-weight: bold;
}

.r-blog-sub-nav .menu-item a:hover {
    text-decoration: none;
}

.r-sticky-spacer {
    height: 90px;
}

.r-var-responsive-width {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.r-var-responsive-width:nth-child(1) {
    flex-basis: 66.66667%;
    max-width: 66.66667%;
}

.r-var-responsive-width:nth-child(2) {
    flex-basis: 33.33333%;
    max-width: 33.33333%;
    padding-left: 20px;
    padding-right: 20px;
}
.c-navbar.is-empty {
    height: 60px;
}
.r-tablet-show {
    display: none;
}
.navtop__secondary,
.navtop__secondary > div,
.navtop__secondary ul,
.navtop__secondary ul li,
.navtop__secondary .menu li a{
    height: 100%;
}

.navtop__secondary .menu li a {
    line-height: 70px;
}

/*-- menu behavior --*/

/*-- below full width --*/
@media only screen and (max-width: 1566px) {
    .menu-blog-sub-menu-container {
        overflow: scroll;
        overflow-y: hidden;
    }
    #menu-blog-sub-menu {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
    }
    .r-var-responsive-width:nth-child(2) {
        padding-left: calc(20px + 1em);
    }
}

@media screen and (max-width: 1375px) {
    .wp-megamenu-wrap .wpmm-nav-wrap > ul > li > a {
        padding-left: 6px;
        padding-right: 6px;
    }
    .navtop__root.is-visible {
        padding: 0 20px;
    }
}

@media screen and (min-width: 1080px) and (max-width: 1175px) {
    .c-page-content {
        top: 79px;
    }
}

/*-- tablet --*/
@media only screen and (max-width: 1024px) {
    .r-tablet-hide {
        display: none;
    }
    .r-tablet-show {
        display: block;
    }
    .c-navbar.is-empty {
        height: 90px;
    }
    .r-var-responsive-width:nth-child(2) {
        padding-left: 20px;
    }
}

/*-- mobile --*/
@media only screen and (max-width: 768px) {
    .r-mobile-hide {
        display: none;
    }
    .r-mobile-only {
        display: block;
    }
    .r-sticky-spacer {
        height: 100px;
    }
    .hero .r-image-wrapper {
        padding-right: 0;
    }
    #menu-blog-sub-menu {
        height: 40px;
    }
    .c-loop {
        margin-top: 120px;
    }
    .c-loop-single {
        margin-top: 50px;
        width: 100%;
    }
    .r-sticky-spacer .sticky {
        position: relative;
    }
    .r-var-responsive-width:nth-child(1) {
        flex-basis: 100%;
        max-width: 100%;
    }
    .r-var-responsive-width:nth-child(2) {
        flex-basis: 100%;
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero .r-image-container {
        min-height: initial;
    }
    .r-post .r-image-container .wp-post-image {
        position: relative;
    }
    .r-sm-p-top_medium {
        padding-top: 10px;
        padding-left: 0;
        padding-right: 0;
    }
}


.r-p-left-zero {
    padding-left: 0;
}

.r-sub-text {
    color: grey;
}

figure img {
    max-width: 100%;
}

.r-transparent-border {
    border-bottom-color: transparent;
}

.o-container:not(.o-container--no-padding):not(.o-container--width-wide):not(.o-container--width-full) [class*=-col-] .o-container:not(.o-container--no-padding).r-m-horizontal-none,
.r-m-horizontal-none {
    margin-right: 0;
    margin-left: 0;
}

.r-image-min-height {
    min-height: 200px;
}
.r-blog-sub-nav .menu-item .r-icon-wrapper a {
    font-weight: normal;
}
.r-sticky-margin-spacer + .c-loop-single{
    margin-top: 0;
}
.r-sticky-margin-spacer {
    margin-top: 90px;
}

.c-search-form--search-result form[role=search] div input[type=submit] {
    -webkit-appearance: none;
}

.c-images__inner__content .asset {
    justify-content: flex-start;
    position: relative;
}

.c-images__inner__content .asset .asset_body {
    padding: 0 20px;
}

.constrain-max-width img {
    max-width: 100%;
    height: auto;
}

.bottom-center {
    text-align: center;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

@media screen and (max-width: 800px) {
    .bottom-center {
        position: relative;
        bottom: initial;
    }
}

@media screen and (min-width: 356px) and (max-width: 374px) {
    .mobile-shrink-letting {
        letter-spacing: 1px;
    }
}

.page-id-9454 .top-navigation:not(.opaque) #wp-megamenu-header-menu>.wpmm-nav-wrap ul.wp-megamenu>li>a {
    transition: all 250ms;
}

body #wp-megamenu-header-menu>.wpmm-nav-wrap ul.wp-megamenu>li.wpmm_mega_menu>ul.wp-megamenu-sub-menu {
    box-shadow: none;
}

.wp-megamenu-wrap .wpmm-nav-wrap > ul.wp-megamenu > li.wpmm_mega_menu > ul.wp-megamenu-sub-menu,
.wp-megamenu-wrap .wpmm-nav-wrap > ul.wp-megamenu > li.wpmm_mega_menu > .wpmm-strees-row-container > ul.wp-megamenu-sub-menu, .wp-megamenu-wrap .wpmm-nav-wrap > ul.wp-megamenu > li.wpmm_mega_menu > .wpmm-strees-row-and-content-container > ul.wp-megamenu-sub-menu {
    height: 0;
    display: initial;
    transition: all 250ms;
}

body #wp-megamenu-header-menu>.wpmm-nav-wrap ul.wp-megamenu>li.wpmm_mega_menu>ul.wp-megamenu-sub-menu {
    padding-left: 144px;
    left: -11px;
    width: calc(100% + 23px);
    top: 90px;
}

body .wp-megamenu-wrap .wpmm-nav-wrap > ul.wp-megamenu > li.wpmm_mega_menu:hover > ul.wp-megamenu-sub-menu {
    height: 290px;
    transition-delay: 250ms;
}

body .wp-megamenu-wrap .wpmm-nav-wrap>ul.wp-megamenu>li.wpmm_mega_menu>ul.wp-megamenu-sub-menu>li.wpmm-row>ul.wp-megamenu-sub-menu {
    width: 100%;
}

.menu-item.wpmm-type-widget p {
    padding-right: 20px;
}

.wp-megamenu .custom-html-widget h2 {
    padding-right: 20px;
}

@media screen and (max-width: 1175px) {
    #wp-megamenu-header-menu {
        display: none;
    }
}
