/*
    @media screen and (min-width: 750px) {
        {
        } }
    @media screen and (min-width: 900px) {
        {
        } }
    @media screen and (min-width: 1200px) {
        {
        } }
    @media screen and (min-width: 1400px) {
        {
        } }
*/

a {
    background-color: white;
    border-radius: 5px;
    color: #0A351B;
    display: block;
    font-family: 'EB Garamond', sans-serif;
    font-size: 2em;
    margin: 30px auto;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    width: 160px;
}

b {
    color: #0A351B;
    font-weight: 700;
}

body {
    color: #111;
    font-family: 'Open Sans', sans-serif;
    font-size: 10pt;
    max-width: 100%;
}

footer {
    background-color: #0A351B;
    color: white;
    font-size: .8em;
    padding: 20px;
    text-align: center;
    width: 100%;
}

h1 {
    color: #0A351B;
    font-family: 'EB Garamond', sans-serif;
    font-size: 2.4em;
    text-align: center;
    text-transform: uppercase;
}

h2 {
    color: #0A351B;
    font-size: 1.8em;
    line-height: 1.3em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    width: auto;
}

h3 {
    color: white;
    font-size: 1.5em;
    font-weight: 500;
    line-height: 1.2em;
    padding: 20px;
    text-align: center;
    text-transform: uppercase;
}

h4 {
    color: white;
    font-size: 1.6em;
    font-weight: 500;
    text-align: center;
}

h5 {
    margin: 30px auto;
    font-size: 1.4em;
    text-align: center;
}

hr {
    border-bottom: solid 2px #603112;
    margin: 30px auto;
}

i {
    font-style: italic;
}

li {
    margin-left: 15px;
    margin-bottom: 10px;
    list-style: disc;
}

nav {
    background-color: #0A351B;
    display: none;
    height: 70px;
    padding: 15px 50px;
    position: fixed;
    width: 100%;
    z-index: 3;
}

p {
    font-size: 1.1em;
    line-height: 1.3em;
    margin: 0 auto;
}

section {
    padding: 40px 0;
}

ul {
    margin: 15px auto;
    font-size: 1.1em;
    line-height: 1.3em;
}

/*  IDS SECTION  */

#about {
    background-color: #603112;
    background-image: url(../_images/pinecones.png);
    background-size: contain;
    background-position: center;
    color: white;
    padding-left: 7.5%;
    padding-right: 7.5%;
    width: 100%;
}

#about > h1 {
    color: white;
}

#about > hr {
    border-bottom: solid 2px #008e37;
}

#about p {
    margin-bottom: 40px;
    text-align: center;
}

#contact {
    background: none;
    color: white;
    font-family: 'EB Garamond', sans-serif;
    font-size: 2em;
    line-height: 1.3em;
    margin: 15px auto;
    width: auto;
}

#contact:hover {
    cursor: pointer;
}

#obfuscate {
    unicode-bidi: bidi-override;
    direction: rtl;    
}

#hero {
    background-image: url(../_images/Hero.jpg);
    background-size: cover;
    background-position: left;
    padding: 14vh 0 12vh 0;
    width: 100%;
}

#herologo {
    display: block;
    margin: 0 auto;
    width: 45%;
}

#navbtn {
    display: inline-block;
    float: right;
    font-size: 1.5em;
    height: 100%;
    margin: 0;
    padding: 9px 15px;
    width: auto;
}

#navbtn .btntxt {
    font-size: 1.3em;
}

#navlogo {
    background-size: contain;
    display: inline-block;
    float: left;
    max-height: 100%;
    max-width: 40vw;
}

#services {
    background-image: url(../_images/ServicesBackground.png);
    background-position: left;
    padding-left: 7.5%;
    padding-right: 7.5%;
    height: auto;
}

/*  CLASSES SECTION  */

.aboutimg {
    background-image: url(../_images/AboutJustinArtisan800w.jpg);
    background-position: center;
    background-size: cover;
    height: 350px;
    margin: 0 auto;
    max-width: 350px;
    width: 100%;
}

.btngreen {
    background-color: #005b23;
    color: white;
    margin-top: 15px;
}

.contact {
    background: none;
    color: white;
    font-family: 'EB Garamond', sans-serif;
    font-size: 1em;
    line-height: 1.3em;
    display: inline;
}

.h1break {
    border-bottom: 2px solid #603112;
    margin: 20px auto 20px;
    width: 100px;
}

.memberimg {
    display: block;
    height: 100px;
/*    margin: 0 auto;*/
    width: 100px;
}

.memberships {
    display: flex;
    justify-content: space-around;
    max-width: 400px;
    margin:0 auto 40px;
}

.reviewcont {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.reviewblock {
    background-position: center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    color: white;
    padding: 60px;
    min-height: 260px;
}

.reviewp {
    font-weight: 100;
    line-height: 1.4em;
    margin-top: 20px;
    text-align: center;
}

.reviewcont > * {
    animation: 12s autoplay1 infinite ease-in-out;
/*    animation: 36s autoplay1 infinite ease-in-out;
    For 6 reviews*/
}


@keyframes autoplay1 {
    0% {left: 100%}
    6% {left: 0%}
    50% {left: 0%}
    56% {left: -100%}
    100% {left: -100%}
}
/*
For 6 reviews
@keyframes autoplay1 {
    0% {left: 100%}
    2% {left: 0%}
    16.7% {left: 0%}
    18.7% {left: -100%}
    100% {left: -100%}
}
*/

.reviewcont > *:nth-child(1) {animation-delay: 0s}
.reviewcont > *:nth-child(2) {animation-delay: 6s}
/*
.reviewcont > *:nth-child(3) {animation-delay: 12s}
.reviewcont > *:nth-child(4) {animation-delay: 18s}
.reviewcont > *:nth-child(5) {animation-delay: 24s}
.reviewcont > *:nth-child(6) {animation-delay: 30s}
*/
/*
for 6 reviews
.reviewcont > *:nth-child(1) {animation-delay: 0s}
.reviewcont > *:nth-child(2) {animation-delay: 6s}
.reviewcont > *:nth-child(3) {animation-delay: 12s}
.reviewcont > *:nth-child(4) {animation-delay: 18s}
.reviewcont > *:nth-child(5) {animation-delay: 24s}
.reviewcont > *:nth-child(6) {animation-delay: 30s}
*/

.reviewcont:hover > * {
    animation-play-state: paused;
}
    
    


@media screen and (min-width: 750px) {

    footer {
        padding: 25px;
    }

    h1 {
        font-size: 2.6em;
    }

    h2 {
        font-size: 2em;
        text-align: left;
    }

    h4 {
        font-size: 1.8em;
    }

    h5 {
        font-size: 1.6em;
    }

    p {
        font-size: 1.1em;
        line-height: 1.3em;
    }
    
    /*  IDS SECTION  */

    #about > p {
        max-width: 650px;
    }

    #hero {
        width: 100%;
    }

    #herologo {
        width: 250px;
    }
    
    #services a{
        margin: 30px 0;
    }    

    /*  CLASSES SECTION  */
    
    .servicestextflex {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .reviewp {
        max-width: 650px;
    }
    
    .pbreak {
        margin-bottom: 40px;
        width: 100%;
    }
    
    .reviewcont {
        height: 280px;
    }
    
    .serviceleft {
        width: 40%;
    }
    
    .serviceright {
        margin: 0;
        width: 55%;
    }
    }
@media screen and (min-width: 900px) {
    .serviceleft {
        width: 35%;
    }
    
    .serviceright {
        width: 63%;
    }
    }
@media screen and (min-width: 1200px) {
    section {
        padding: 60px 0;
    }
   /* 
    #about p {
        margin: 0;
        max-width: 650px;
        order: 2;
        text-align: left;
        width: 55%;
    }
    
    .aboutflex {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .aboutimg {
        margin: 0 40px;
        order: 3;
    }
    
    .memberships {
        flex-direction: column;
        gap: 40px;
        justify-content: flex-start;
        display: none;
        margin: 0 40px;
        order: 1;
    } */
    
    .servicestextflex {
        justify-content: flex-start;
        margin-right: 3%;
        max-width: 900px;
    }
    
    .h1break {
        margin-bottom: 40px;
    }
    
    .reviewblock {
        width: 50%;
    }
    
    .reviewcont {
        height: 245px;
    }
    
    .reviewcont > *:nth-child(even) {
        animation: 3s autoplay2 paused ease-in-out;
/*        animation: 18s autoplay2 infinite ease-in-out;*/
    }
    
    .reviewcont > *:nth-child(odd) {
        animation: 3s autoplay3 paused ease-in-out;
/*        animation: 18s autoplay3 infinite ease-in-out;*/
    }
    
    @keyframes autoplay2 {
        0% {left: 50%}
    }
    
    @keyframes autoplay3 {
        0% {left: 0%}
    }
    
/*
    @keyframes autoplay2 {
        0% {left: 150%}
        4% {left: 50%}
        33.36% {left: 50%}
        37.36% {left: -50%}
        100% {left: -50%}
    }
    
    @keyframes autoplay3 {
        0% {left: 100%}
        4% {left: 0%}
        33.36% {left: 0%}
        37.36% {left: -100%}
        100% {left: -100%}
    }
*/
    
    .reviewcont > *:nth-child(1) {animation-delay: 0s}
    .reviewcont > *:nth-child(2) {animation-delay: 0s}
    .reviewcont > *:nth-child(3) {animation-delay: 6s}
    .reviewcont > *:nth-child(4) {animation-delay: 6s}
    .reviewcont > *:nth-child(5) {animation-delay: 12s}
    .reviewcont > *:nth-child(6) {animation-delay: 12s}
    
    .reviewcont:hover > * {
        animation-play-state: paused;
    }
    
    .serviceleft {
        margin-right: 2%;
    }
    
    .serviceright {
        max-width: 650px;
        width: 63%;
    }
    .serviceimg {
        background-image: url(../_images/Review5.jpg);
        background-size: cover;
        width: 80%;
    }
    .servicesflex {
        display: flex;
        justify-content: space-between;
    }
    }
@media screen and (min-width: 1500px) {
    
    
    #about p {
        margin: 0;
        max-width: 650px;
        order: 2;
        text-align: left;
        width: 55%;
    }
    
    .aboutflex {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .aboutimg {
/*        align-self: stretch;*/
        margin: 0 40px;
        order: 3;
    }
    
    .memberships {
        flex-direction: column;
        gap: 40px;
        justify-content: flex-start;
        margin: 0 40px;
        order: 1;
    }
    }