@font-face {
    font-family: "montserrat";
    font-style: normal;
    font-weight: 700;
    src: url("https:www.youngliving.com/shared/fonts/montserrat/montserrat-regular-webfont.woff2") format("woff2"), url("https:www.youngliving.com/shared/fonts/montserrat/montserrat-regular-webfont.woff") format("woff");
}

.sectionheader {
    background: #000 url("../images/Repeat_Grid_8.png");
    margin: 0 auto;
    width: 17em;
    height: 4.5em;
    text-align: center;
    margin-bottom: 2em;
}

.sectionheader h2 {
    font: 5em "jasmine_reminiscentse", "Libre Baskerville", serif;
    color: #fff;
    padding-top: .01em;
}

.ja_JP .sectionheader h2 {
    font-family: Montserrat, sans-serif;
    font-size: 1.5rem;
    padding-top: 0.86em;
}

h2 {
    font: 1.45em "Montserrat", sans-serif;
    color: #d7187d;
}

hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, #d7187d 38%, transparent 0, transparent 62%, #d7187d -34%);
    position: relative;
    top: 6.5em;
    z-index: 0;
    width: 65%;
}

.ja_JP hr {
    top: 3.5em;
}

.producthr {
    top: 5em;
    z-index: -1;
}

#header_nav {
    height: auto;
    overflow: hidden;
    width: 100%;
    display: block;
    position: fixed;
    top: 0;
    z-index: 9999;
    margin: 0 auto;
    padding: 0;
    background: #fff url("../images/backgrounds/Symbol_6_1-2x.png") top center no-repeat;
    background-size: 429px;
}

#header_nav h1 {
    position: relative;
    top: 0;
}

nav {
    width: 98%;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    display: block;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    font: 1.5em "Montserrat", sans-serif;
    font-weight: lighter;
}

nav ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin: 0.25em;
    padding: 0;
}

.ja_JP nav ul, .en_SG nav ul, .en_MY nav ul, .zh_MY nav ul, .en_AU nav ul, .en_NZ nav ul, .en_ID nav ul, .id_ID nav ul, .en_CA nav ul, .fr_CA nav ul {
    grid-template-columns: repeat(4, 1fr);
}

nav a {
    color: #000;
    text-transform: uppercase;
}

.navlinks {
    display: inline-block;
    position: relative;
    margin-top: .25em;
}

.logo {
    width: 15%;
    margin: auto;
    display: block;
}

.mobile-logo {
    display: none;
    width: 50%;
    margin: auto;
}

.shrink {
    height: 5%;
}

.story {
    height: auto;
    background-image: url("../images/backgrounds/background-2x.png");
    background-size: cover;
}

.story h2 {
    position: relative;
    top: -.10em;
}

.story p {
    font: 1.5em/1.25em "Montserrat", sans-serif;
    margin: 0 4em;
    font-weight: lighter;
}

.products figure p {
    right: 0;
    width: 100%;
    margin: 0;
    height: 5em;
    background: rgba(0, 0, 0, 0.8);
    padding: .5em;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    padding: .5em;
    color: #fff;
    opacity: 1;
    transition: opacity .35s;
}

.products figure:hover p {
    opacity: 0;
}

.products figure {
    position: relative;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
    margin: .35em .45em;
    box-sizing: border-box;
    width: 610px;
    height: 368px;
}

.products figure img {
    height: 100%;
    width: 100%;
    position: relative;
    display: block;
    vertical-align: center;
}

.products figure figcaption {
    color: #fff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.products figure figcaption::before, .products figure figcaption::after {
    pointer-events: none;
}

.products figure figcaption, .products figure figcaption>a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.products figure figcaption>a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.product-gallery {
    box-shadow: -.25em .25em .75em #ddd;
}

.product-gallery img {
    transition: opacity .35s;
}

.product-gallery figcaption {
    transition: background-color .35s;
}

.product-gallery figcaption:hover {
    background: rgba(0, 0, 0, 0.8);
}

.product-gallery figcaption::before {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    border: thin solid #d7187d;
    content: '';
}

.product-gallery h2 {
    font: 5em "jasmine_reminiscentse", "Libre Baskerville", serif;
    color: #fff;
    margin: 20% 0 10px 0;
    transition: transform .35s;
    transform: translate3d(0, 100%, 0);
}

.ja_JP .product-gallery h2 {
    font-family: Montserrat, sans-serif;
    font-size: 3rem;
}

.product-gallery div {
    font-family: "Montserrat", sans-serif;
    font-weight: normal;
    width: 100%;
    display: block;
    margin: auto;
    position: absolute;
    bottom: 0;
    left: 0;
}

.product-gallery figcaption::before, .product-gallery h2 {
    opacity: 0;
    transition: transform .35s;
    transform: scale(0);
}

.product-gallery p {
    position: relative;
    color: #000;
    text-align: left;
    width: 65%;
}

.product-gallery:hover h2 {
    transform: translate3d(0, 0, 0);
}

.product-gallery:hover figcaption::before, .product-gallery:hover h2 {
    opacity: 1;
    transform: scale(1);
}

.product-gallery:hover img {
    opacity: 1;
}

button {
    border: none;
    background: none;
    font: 1.5em "Montserrat", sans-serif;
    text-transform: uppercase;
    color: #000;
    outline: none;
    cursor: pointer;
    transition: .35s;
}

button.active, button:hover {
    color: #d7187d;
}

.submit {
    width: 65%;
    display: block;
    margin: 2em auto;
    text-align: center;
}

.shade {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: auto;
    position: relative;
}

.tutorials {
    background-image: url("../images/backgrounds/background-2x.png");
}

.tutorials h2 {
    position: relative;
    top: -.15em;
}

.tab {
    overflow: hidden;
    border-top: thin solid #d7187d;
    border-bottom: thin solid #d7187d;
    padding: 1em 0;
    display: block;
    width: 98.9999%;
    margin: auto;
    text-align: center;
}

.tab button:not(:last-child) {
    margin-right: none;
}

.tab button:hover {
    color: #d7187d;
}

.tablinks {
    font-weight: lighter;
    margin-right: 1em;
}

.tab button.active {
    color: #d7187d;
}

#ShadePicker {
    display: block;
}

.tabcontent {
    display: none;
    vertical-align: top;
}

.tabcontent p {
    padding-bottom: 1em;
}

.tabcontent h2 {
    word-break: break-word;
}

.desktop {
    width: 80%;
    margin: auto;
}

.shadepicker {
    vertical-align: top;
    position: relative;
    float: left;
    height: auto;
    margin-right: 2em;
}

.shadepicker ul, .mob-pic ul {
    font: 0.75em "Montserrat", sans-serif;
    text-transform: uppercase;
    padding: 0;
    margin: 0;
    text-align: center;
}

.shadepicker li, .mob-pic li {
    padding: 1.2em 0;
    height: 1em;
}

.shadepicker li:not(:first-child), .shadepicker li:not(:last-child), .mob-pic li:not(:first-child), .mob-pic li:not(:last-child) {
    border-bottom: thin solid #fff;
}

@media screen and (max-width: 800px) {
    .shadepicker li {
        height: 3.5em;
    }
}

.shadepicker ul {
    height: 70px;
    box-sizing: border-box;
    display: inline-block;
    width: 560px;
}

.warm1 {
    background-color: #e5d5ba;
}

.warm2 {
    background-color: #d6c19e;
}

.cool3 {
    background-color: #dabea1;
}

.cool1 {
    background-color: #f5e4d1;
    color: #000;
}

.cool2 {
    background-color: #e7d0b6;
    color: #000;
}

.warm3 {
    background-color: #ecd09c;
    color: #000;
}

.dark1 {
    background-color: #9b8967;
    color: #fff;
}

.dark2 {
    background-color: #867150;
    color: #fff;
}

.dark3 {
    background-color: #65502d;
    color: #fff;
}

.dark4 {
    background-color: #362921;
    color: #fff;
}

.shadetext {
    display: block;
    width: 100%;
    margin-left: 1em;
    margin-top: -1.2em;
}

.mobile {
    display: none;
}

.mob-pic-txt {
    display: block;
}

.mobile {
    margin-bottom: 2em;
}

.mobile:last-child {
    border-bottom: thin solid #d7187d;
}

.accordion, .accordion * {
    box-sizing: border-box;
}

.accordion {
    overflow: hidden;
}

.accordion-section-title {
    width: 100%;
    padding: 15px;
    display: inline-block;
    border-bottom: thin solid #d7187d;
    transition: all linear 0.15s;
    font: 1.2em "Montserrat", sans-serif;
    font-weight: lighter;
    text-transform: uppercase;
    text-align: center;
    color: #000;
}

.accordion-section-title.active {
    box-shadow: .25em .25em .5em #ddd;
    color: #d7187d;
}

.accordion-section:last-child .accordion-section-title {
    border-bottom: none;
}

.accordion-section-content {
    padding: 15px;
    display: none;
}

.products {
    background-image: url("../images/backgrounds/Symbol4-12x.png");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: 590px 700px;
    width: 100%;
    display: block;
    text-align: center;
    display: inline-block;
}

.products h2 {
    text-align: center;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: 16px/32px 'Montserrat', sans-serif;
    transition: all .35s ease-in-out;
    background: url("../images/backgrounds/Symbol_7_1-2x.png") no-repeat;
    background-position: 100% 27%;
    background-size: 576px;
    overflow-x: hidden;
}

ul {
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

.main {
    position: relative;
    display: block;
    width: 100%;
    margin: 15em auto auto;
}

.intro {
    text-align: center;
    height: auto;
    padding-bottom: 1em;
    border-top: thin solid #ddd;
    box-shadow: .25em .25em .75em #ddd;
}

.intro p {
    width: 65%;
    margin: 1em auto;
    display: block;
}

.top-vid {
    background: url("../images/product/blackmamba_2X.png");
    width: 100%;
    display: block;
    height: auto;
    box-shadow: .125em .125em .25em #ddd;
    overflow-x: hidden;
}

iframe {
    max-width: 1067px;
    max-height: 600px;
    width: 80vw;
    height: 51vw;
    display: block;
    margin: 0 auto;
}

.clearfix {
    height: 1em;
    display: block;
}

.clearfix:after {
    clear: both;
    content: '';
    width: 100%;
}

footer {
    display: block;
    width: 100%;
    height: 100px;
    padding-bottom: 3em;
    background: #fff url("../images/backgrounds/Symbol_3_1-2x.png") top center no-repeat;
    background-size: contain;
    border-top: thin solid #ddd;
    text-align: center;
}

footer img {
    width: 15%;
    margin-top: 2.5em;
}

#products, #tutorials, #befaft, #ingredients {
    display: block;
    clear: both;
    width: 100%;
    height: 50px;
    position: relative;
    top: -50px;
}

@media screen and (max-width: 600px) {
    #products, #tutorials, #befaft, #ingredients {
        height: 8em;
    }
}

#story {
    height: .25em !important;
    display: block;
    width: 100%;
}

@media screen and (max-width: 640px) {
    hr {
        display: none;
    }
    #header_nav {
        background-size: 70%;
    }
    .sectionheader {
        width: 14em;
        margin-bottom: 0;
    }
    .sectionheader h2 {
        font-size: 4em;
        padding-top: .25em;
        margin-top: 0;
        margin-bottom: 0;
    }
    hr {
        top: 2.9em;
    }
    .mobile-logo {
        display: block;
        width: 52%;
        min-width: 45%;
    }
    ul .navlinks {
        font-size: .55em;
    }
    .intro {
        width: 100%;
        margin-top: 1em;
    }
    .placeholder {
        height: 200px;
    }
    .story p {
        margin: 1em 0;
        font-size: 1.25rem;
        width: 100%;
    }
    .products, .product-gallery {
        width: 100%;
    }
    .product-gallery {
        padding: 0;
    }
}

@media screen and (max-width: 700px) {
    .navlinks {
        font-size: 0.75rem;
    }
}

@media all and (max-width: 800px) {
    #header_nav {
        background: #fff url("../images/Symbol_6_Mobile.png") top center no-repeat;
    }
    #ShadePicker {
        display: none;
    }
    .navlinks {
        top: .25em;
        font-size: 1.2rem;
    }
    .navlinks:nth-child(4), .navlinks:nth-child(5) {
        padding-bottom: 0.75em;
    }
    .mobile-logo {
        display: block;
    }
    .logo {
        display: none;
    }
    .tab {
        display: none;
    }
    .mobile {
        display: block;
    }
    .tabcontent:last-child {
        display: none;
    }
}

@media screen and (max-width: 900px) {
    hr {
        background-image: linear-gradient(to right, #d7187d 27%, transparent 0, transparent 73%, #d7187d -34%);
    }
}

@media screen and (max-width: 1000px) {
    .prodhr {
        background-image: linear-gradient(to right, #d7187d 30%, transparent 0, transparent 71%, #d7187d -34%);
    }
    .main {
        margin: 9em auto auto;
    }
    .tab button {
        font-size: 1.25rem;
    }
    .tab button:not(:last-child) {
        margin-right: 1em;
    }
}

@media screen and (max-width: 1200px) {
    nav ul {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas: "a a b b c c" "f d d g g h";
        padding: 0;
    }
    .ja_JP nav ul, .en_SG nav ul, .en_MY nav ul, .zh_MY nav ul, .en_AU nav ul, .en_NZ nav ul, .en_ID nav ul, .id_ID nav ul, .en_CA nav ul, .fr_CA nav ul {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas: "a a b b c c" "f f d d g g";
        padding: 0;
    }
    nav ul li:nth-child(1) {
        grid-area: a;
    }
    nav ul li:nth-child(2) {
        grid-area: b;
    }
    nav ul li:nth-child(3) {
        grid-area: c;
    }
    nav ul li:nth-child(4) {
        grid-area: d;
    }
    nav ul li:nth-child(5) {
        grid-area: g;
    }
}

@media screen and (max-width: 1400px) {
    hr {
        width: 100%;
    }
    .logo {
        width: 21%;
        min-width: 10%;
    }
    .tab button:not(:last-child) {
        margin-right: 1em;
    }
}

@media screen and (max-width: 50em) {
    .intro {
        border-top: none;
    }
    .products figure {
        display: inline-block;
        float: none;
        margin: 10px auto;
        width: 100%;
        height: initial;
    }
    .products figure p {
        height: 4.5em;
        line-height: 1.25em;
    }
    .product-gallery h2 {
        position: relative;
    }
    .product-gallery div {
        position: absolute;
        bottom: 0;
        left: 0;
    }
    iframe {
        width: 100%;
        height: 450px;
    }
    .products {
        background-image: none;
    }
    body {
        background-image: none;
    }
    footer img {
        width: 27%;
    }
}

@media screen and (max-width: 1023px) {
    .shadepicker, .shadepicker li, .shadepicker ul, .shadetext {
        display: block;
        width: 100%;
    }
    .shadetext {
        margin-left: 0;
        display: block;
        width: 100%;
    }
}

/* ingredients */

.ingredients ul {
    list-style-type: circle;
    margin-left: 2.75em;
}

.ingredients {
    width: 80%;
    display: block;
    margin: 0 auto;
}

.q {
    font-weight: bold;
}

.a:not(:last-child) {
    border-bottom: thin dotted rgba(0, 0, 0, .15);
}

/*test styles for button jury-rig*/

.buttonslide {
    display: inline;
    background: url(../images/Button.png) no-repeat center
}

/*Nav Media Query for CSS Grid*/

@media screen and (max-width: 640px) {
    nav ul {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas: "a a b b c c" "e d d g g h";
    }
    .ja_JP nav ul, .en_SG nav ul, .en_MY nav ul, .zh_MY nav ul, .en_AU nav ul, .en_NZ nav ul, .en_ID nav ul, .id_ID nav ul, .en_CA nav ul, .fr_CA nav ul {
        grid-template-columns: repeat(6, 1fr);
        grid-template-areas: "a a b b c c" "f f d d g g";
        padding: 0;
    }
    nav ul li:nth-child(1) {
        grid-area: a;
    }
    nav ul li:nth-child(2) {
        grid-area: b;
    }
    nav ul li:nth-child(3) {
        grid-area: c;
    }
    nav ul li:nth-child(4) {
        grid-area: d;
    }
    nav ul li:nth-child(5) {
        grid-area: g;
    }
}

@media screen and (max-width: 600px) {
    .navlinks:nth-child(1), .navlinks:nth-child(2), .navlinks:nth-child(3) {
        padding-bottom: 0.5em;
    }
}

@media screen and (max-width: 385px) {
    nav ul {
        display: inline;
        padding: 0;
    }
    .navlinks:nth-child(1), .navlinks:nth-child(2), .navlinks:nth-child(3) {
        padding-bottom: 0;
    }
    ul .navlinks:not(:last-child) {
        margin-right: .25em;
    }
}

/* New Section Title CSS */

.sectionheader {
    width: auto;
    height: auto;
    position: relative;
    background: none;
}

.sectionheader h2 {
    overflow: hidden;
    text-align: center;
    top: 0px;
}

.sectionheader h2>span {
    position: relative;
    display: inline-block;
    background: #000 url("../images/Repeat_Grid_8.png");
    padding: 10px;
}

.sectionheader h2>span:before, .sectionheader h2>span:after {
    content: '';
    position: absolute;
    top: 52%;
    border-bottom: 1px solid #d7187d;
    width: 100%;
    /* half of limiter*/
    margin: 0 20px;
}

.sectionheader h2>span:before {
    right: 100%;
}

.sectionheader h2>span:after {
    left: 100%;
}
