/* -------------------------------- 

Tab components 

-------------------------------- */

.cd-tab-messages {
    position: relative;
    max-width: 960px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.cd-tabs {
    position: relative;
    max-width: 960px;
    width: 90%;
    margin-bottom: 14px;
    margin-left: auto;
    margin-right: auto;
}

.cd-tabs:after {
    content: "";
    display: table;
    clear: both;
}
.cd-tabs::after {
    /* subtle gradient layer on top right - to indicate it's possible to scroll */
    position: absolute;
    top: 0;
    right: 0;
    height: 60px;
    width: 50px;
    z-index: 1;
    pointer-events: none;
/*    background: -webkit-linear-gradient( right , #f8f7ee, rgba(248, 247, 238, 0));
    background: linear-gradient(to left, #f8f7ee, rgba(248, 247, 238, 0));*/
    visibility: visible;
    opacity: 1;
    -webkit-transition: opacity .3s 0s, visibility 0s 0s;
    -moz-transition: opacity .3s 0s, visibility 0s 0s;
    transition: opacity .3s 0s, visibility 0s 0s;
}
.no-cssgradients .cd-tabs::after {
    display: none;
}
.cd-tabs.is-ended::after {
    /* class added in jQuery - remove the gradient layer when it's no longer possible to scroll */
    visibility: hidden;
    opacity: 0;
    -webkit-transition: opacity .3s 0s, visibility 0s .3s;
    -moz-transition: opacity .3s 0s, visibility 0s .3s;
    transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-tabs nav {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
/*    background: #f8f7ee;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);*/
}

.cd-tabs-navigation {
    width: auto;
/*    background-color: #f8f7ee;
    box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);*/
}

.cd-tabs-navigation:after {
    content: "";
    display: table;
    clear: both;
}

.cd-tabs-navigation.cd-two-tabs li {
    float: left;
    width: 50%; /* set this based on number of tabs (i.e. 3 = 33%) */ 
    padding-left: 5px;    
}

.cd-tabs-navigation.cd-three-tabs li {
    float: left;
    width: 33%; /* set this based on number of tabs (i.e. 3 = 33%) */ 
    padding-left: 5px;    
}

.cd-tabs-navigation.cd-six-tabs li {
    float: left;
    width: 16%; /* set this based on number of tabs (i.e. 3 = 33%) */ 
    padding-left: 5px;    
}

.cd-tabs-navigation a {
    position: relative;
    display: block;
    height: 60px;
    padding-top: 16px;
    margin-left: 8px;
    margin-right: 8px;
    width: auto;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 700;
    font-size: 90%;
    background-color: lightblue !important;
    box-shadow: 5px 10px 8px #888888;
    color: rgba(0,0,0,0.6);
    border-bottom: solid 2px #002765;
    opacity: 0.6;
}

.cd-tabs-navigation a:hover {
    text-decoration: none;
    color: #000000;
}
.no-touch .cd-tabs-navigation a:hover {
    color: #29324e;
    background-color: rgba(233, 230, 202, 0.3);
}
.cd-tabs-navigation a.selected {
    background-color: #002765 !important;
    box-shadow: inset 0 2px 0 #00839C;
    color: white;
    /*border-left: solid 2px #00839C;*/
    border-top: solid 2px #002765;
    /*border-right: solid 2px #00839C;*/
    border-bottom: solid 2px #002765;
    box-shadow: 5px 10px 8px #002765;
    opacity: 1.0;
}

.cd-tabs-navigation a::before {
    top: 50%;
    margin-top: -10px;
    margin-left: 0;
    left: 38px;
}

@media only screen and (min-width: 100px) {
    .cd-tabs-navigation a {
        font-size: 60%;
        height: 30px;
        padding-top: 10px;
        /*line-height: 30px;*/
        width: auto;
        text-align: center;
        /*padding: 0 1.0em 0 1.0em;*/
    }
}

@media only screen and (min-width: 360px) {
    .cd-tabs-navigation a {
        font-size: 70%;
        height: 40px;
        /*line-height: 40px;*/
        width: auto;
        text-align: center;
        /*padding: 0 1.0em 0 1.0em;*/
    }
}

@media only screen and (min-width: 768px) {
    .cd-tabs-navigation a {
        font-size: 90%;
        height: 50px;
        /*line-height: 50px;*/
        width: auto;
        text-align: center;
        /*padding: 0 1.0em 0 1.0em;*/
    }
}

@media only screen and (min-width: 992px) {
    .cd-tabs-navigation a {
        font-size: 100%;
        height: 56px;
        /*line-height: 60px;*/
        width: auto;
        text-align: center;
        padding-top: 12px;
        /*padding: 0 2.0em 0 2.0em;*/
    }
}

.cd-tabs-content {
    background: #ffffff;
    box-shadow: 5px 10px 8px #888888;
    border-top: 2px solid #002765;
    margin-top: -2px;
}

.cd-tabs-content li {
    display: none;
    padding: 1em;
}
.cd-tabs-content li.selected {
    display: block;
    -webkit-animation: cd-fade-in 0.5s;
    -moz-animation: cd-fade-in 0.5s;
    animation: cd-fade-in 0.5s;
}
.cd-tabs-content li p {
    line-height: 1.6;
    color: #8493bf;
    margin-bottom: 2em;
}


@media only screen and (min-width: 300px) {
    .cd-tabs-content {
        min-height: 0;
    }
    .cd-tabs-content li {
        /*padding: 3em;*/
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .cd-tabs-content li p {
        font-size: 16px;
        font-size: 1rem;
    }
}

@-webkit-keyframes cd-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@-moz-keyframes cd-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
@keyframes cd-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
