/*

Theme Name: The Crayon Initiative 2020
Theme URI: https://thecrayoninitiative.org
Author: Cecile Design Studio, Inc.
Author URI: http://ceciledesignstudio.com
Version: 1.0.3
Template: pro

*/

/* ------- TYPOGRAPHY ------ */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    margin-top: 0.75em;
}
body h4, body h5, body h6, 
body .h4, body .h5, body .h6 {
    margin: 0;
}
body h1, body .h1 {
    font-size: 101px;
    line-height: 91px;
    font-family: "Bourton Outline", "Bourton Base", sans-serif;
}
body h2, body .h2 {
    font-size: 57px;
    line-height: 68px;
    font-family: "Bourton Outline", "Bourton Base", sans-serif;
}
body h3, body .h3 {
	font-size: 48px;
	line-height: 53px;
    font-family: "Bourton Base", sans-serif;
}
body h4, body .h4 {
    font-size: 36px;
    line-height: 43px;
    font-family: "Bourton Base", sans-serif;
}
.bourton-base {
	font-family: "Bourton Base", sans-serif !important;
}
.bourton-outline {
	font-family: "Bourton Outline", sans-serif !important;
}
.bourton-sketch-a {
	font-family: "Bourton Sketch A", sans-serif !important;
}
.bourton-sketch-b {
	font-family: "Bourton Sketch B", sans-serif !important;
}
.dark * { color: white !important; }

.red:not(.color-in) { color: #e1251b !important; }
.yellow:not(.color-in) { color: #fed925 !important; }

.color-in { 
  position: relative; 
  padding-right: 1px;
	display: inline-block;
}
.color-in:before {
    content: attr(data-content);
    position: absolute;
    left: 0;
    right: 0;
    font-family: "Bourton Sketch A";
    color: #e1251b;
    z-index: -1;
    -webkit-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
.color-in:hover:before{    
    opacity: 1;
}
.color-in.yellow:before { color: #fed925; }
.color-in.green:before { color: #76bc21; }
.color-in.purple:before { color: #73308a; }
.color-in.blue:before { color: #194f90; }
.color-in.cyan:before { color: #39b5e4; }
.color-in.red:before { color: #ed1d24; }
.color-in.orange:before { color: #f18a00; }

/* ------- BUTTONS ------ */

.x-anchor-button.custom {
  overflow: visible;
  margin-bottom: 6px;
  margin-right: 7px;
  background-image: url(../../uploads/2020/09/button-border-left.svg), url(../../uploads/2020/09/button-border-top.svg), url(../../uploads/2020/09/button-border-right.svg), url(../../uploads/2020/09/button-border-bottom.svg);
  background-repeat: no-repeat;
  background-size:  2px 100%, 100% 2px;
  background-position: left, top, calc(100% - 1px), bottom;
}
.x-anchor-button.custom.small {
  margin-bottom: 5px;
  margin-right: 4px;
  background-image: url(../../uploads/2021/02/button-border-left-small.svg), url(../../uploads/2021/02/button-border-top-small.svg), url(../../uploads/2021/02/button-border-right-small.svg), url(../../uploads/2021/02/button-border-bottom-small.svg);
  background-size: 1px 100%, 100% 2px;
  background-position: left 1px, top, right 1px, bottom;
}
.x-anchor-button.custom:before {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% + 7px);
  height: calc(100% + 6px);
  content: "";
  background-image: url(../../uploads/2020/09/button-border-relief-right.svg),url(../../uploads/2020/09/button-border-relief-bottom.svg);
  background-position: right top,bottom left;
  background-repeat: no-repeat;
  background-size: auto 100%,99% auto;
}
.x-anchor-button.custom.small:before {
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background-image: url(../../uploads/2021/02/button-border-relief-right-small.svg),url(../../uploads/2021/02/button-border-relief-bottom-small.svg);
  background-position: right 1px, 1px bottom;
}
.x-anchor-button.custom:active {
  margin-top: 6px;
  margin-left: 7px;
  margin-bottom: 0 !important;
  margin-right: 0 !important;
}
.x-anchor-button.custom:active:before {
  display: none;
}
.x-anchor-button.custom:after {
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: "";
  background-image: url(../../uploads/2020/10/crayon-scribble-large-green.png);
  background-size: cover;
  background-repeat: no-repeat;
  transition: opacity 0.5s ease-in-out;
  opacity: 0;
}
.x-anchor-button.custom:hover:after {  
  opacity: 1;
}
.x-anchor-button.custom.wide {
    background-size: 2px 100%, 100% 3px;
}
.x-anchor-button.custom.tall {
    margin-bottom: 14px;
    margin-right: 14px;
}
.x-anchor-button.custom.tall.wide {
    margin-bottom: 9px;
    margin-right: 9px;
    background-size: 4px 100%, 100% 3px;
}
.x-anchor-button.custom.tall:before {
  width: calc(100% + 14px);
  height: calc(100% + 14px);
  background-image: url(../../uploads/2020/09/button-border-relief-tall-right.svg),url(../../uploads/2020/09/button-border-relief-tall-bottom.svg);
}
.x-anchor-button.custom.tall:active {
  margin-top: 14px;
  margin-left: 14px;
}
.x-anchor-button.custom.tall.wide:active {
  margin-top: 9px;
  margin-left: 9px;
}
.x-anchor-button.custom.wide {
  background-image: url(../../uploads/2020/09/button-border-left.svg), url(../../uploads/2020/09/button-border-wide-top.svg), url(../../uploads/2020/09/button-border-right.svg), url(../../uploads/2020/09/button-border-wide-bottom.svg);
}
.x-anchor-button.custom.wide:before {
    background-size: auto 100%,99.5% auto;
    background-image: url(../../uploads/2020/09/button-border-relief-right.svg),url(../../uploads/2020/09/button-border-relief-wide-bottom.svg);
}
.x-anchor-button.custom.tall.wide:before {
    background-size: auto 100%,100% auto;
    width: calc(100% + 9px);
    height: calc(100% + 9px);
    background-image: url(../../uploads/2020/09/button-border-relief-tall-wide-right.svg),url(../../uploads/2020/09/button-border-relief-tall-wide-bottom.svg);
}
.x-anchor-button.custom.tall.wide:after {
  background-image: url(../../uploads/2020/10/crayon-scribble-large-green.png);
}
.x-anchor-button.custom.orange:after {
  background-image: url(../../uploads/2020/10/crayon-scribble-large-orange.png);
}
.x-anchor-button.custom.green:after {
  background-image: url(../../uploads/2020/10/crayon-scribble-large-green.png);
}

/* ------- BORDERS ------ */

.row-borders:before, .row-borders:after,
.row-borders .x-col:before, .row-borders .x-col:after,
.row-borders .x-row-inner:before, .row-borders .x-row-inner:after{
    position: absolute;
    background-size: cover;
    content: "";
    background-repeat: no-repeat;
}
.row-borders:before, .row-borders:after {
    width: 100%;
    height: 2px; 
}
.row-borders:before {
    top: -2px;
    background-image: url(../../uploads/2020/09/boxes-border-top.svg);
}
.row-borders:after {
    bottom: -2px;
    background-image: url(../../uploads/2020/09/boxes-border-bottom.svg);
}
.row-borders .x-col:before, .row-borders .x-col:nth-child(3):after,
.row-borders .x-row-inner:before, .row-borders .x-row-inner:after{
    width: 2px;
    top: -2px;
    height: calc(100% + 4px);  
}

@media (min-width: 768px){
  .row-borders .x-col:before {
    left: 0; 
    background-image: url(../../uploads/2020/09/boxes-border-left.svg);
  }
  .row-borders .x-col:nth-child(3):after {
    right: 0; 
    background-image: url(../../uploads/2020/09/boxes-border-right.svg);
  }
  .row-borders .x-col:nth-child(2):before {  
    background-image: url(../../uploads/2020/09/boxes-border-between1.svg);
  }
  .row-borders .x-col:nth-child(3):before {  
    background-image: url(../../uploads/2020/09/boxes-border-between2.svg);
  }
}
@media (max-width: 767px){
  .row-borders .x-row-inner:before {
    left: -2px; 
    background-image: url(../../uploads/2020/09/boxes-border-left.svg);
  }
  .row-borders .x-row-inner:after {
    right: -2px; 
    background-image: url(../../uploads/2020/09/boxes-border-right.svg);
  }
  .row-borders .x-col:nth-child(2):before, .row-borders .x-col:nth-child(3):before {
    top: 0;
    width: 100%;
    height: 2px;  
    background-image: url(../../uploads/2020/09/boxes-border-top.svg);
  }
}

/* ------- HERO SLIDER ------ */

a.hero-heading:before{
    content: "Color a Life";
    position: absolute;
    left: 0;
    right: 0;
    font-family: "Bourton Sketch A";
    color: #fed925;
    z-index: -1;
    -webkit-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
a.hero-heading:hover:before {
    opacity: 1;
}
a.hero-heading:hover,
.dark a.hero-heading {
	color: black !important;
}
a.hero-give {
	padding: 20px 19px 8px 19px !important;
	  -webkit-transition: background-color 0.3s ease-in-out;
	transition: background-color 0.3s ease-in-out;
	position: relative;
	top: 22px;
}
.dark a.hero-give {
	color: black !important;
}
a.hero-give:before {
    content: "";
    position: absolute;
    z-index: -1 !important;
    left: 0px;
    top: 0px;
    width: 166px;
    height: 83px;
    background-image: url(../../uploads/2020/08/crayon-texture-blue.png);
    background-size: 166px 83px;
    -webkit-transition: opacity 0.5s ease-in-out;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}
a.hero-give:hover:before {
  opacity: 1;
}
a.hero-give:after {
  content: "";
  position: absolute;
  top: 0px;
  left: 0px;
  width: 166px;
  height: 83px;
  background-position: top left;
  background-image: url(../../uploads/2020/10/hero-button-outline-white.svg);
  background-repeat: no-repeat;
  background-size: 166px 83px;
}
.dark a.hero-give:after {
	background-image: url(../../uploads/2020/10/hero-button-outline-black.svg);
}
a.hero-give:hover {
	color: white;
}
/*
a.hero-give:active {
	top: 30px;
	left: 10px;
}
a.hero-give:active:before {
	width: 147px;
	height: 71px;
}
*/

/* ------- CAROUSELS ------ */

p.testimonial-content {
	font-family: "Rival Slab" !important;
}
p.testimonial-content span {
    margin-bottom: 15px;
    display: inline-block;
	text-indent: -11px;
}

#x-site #rev_slider_6_2_wrapper .custom.tparrows,
#x-site #rev_slider_4_3_wrapper .custom.tparrows {
    background: transparent;
    height: 66px;
    width: 66px;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:before,
#x-site #rev_slider_6_2_wrapper .custom.tparrows:after,
#x-site #rev_slider_4_3_wrapper .custom.tparrows:before,
#x-site #rev_slider_4_3_wrapper .custom.tparrows:after {
    font-family: "Bourton Outline";
    font-size: 155px;
    line-height: 97px;
    color: black;
    width: 66px;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:before,
#x-site #rev_slider_6_2_wrapper .custom.tparrows:after{
    width: 50px;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:before,
#x-site #rev_slider_6_2_wrapper .custom.tparrows:after {
    font-size: 126px;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows.tp-leftarrow:before,
#x-site #rev_slider_6_2_wrapper .custom.tparrows.tp-leftarrow:after,
#x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-leftarrow:before,
#x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-leftarrow:after {
    content: "<";
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows.tp-rightarrow:before,
#x-site #rev_slider_6_2_wrapper .custom.tparrows.tp-rightarrow:after,
#x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-rightarrow:before,
#x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-rightarrow:after {
    content: ">";
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:hover,
#x-site #rev_slider_4_3_wrapper .custom.tparrows:hover {
    background: transparent;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:after,
#x-site #rev_slider_4_3_wrapper .custom.tparrows:after {
    font-family: "Bourton Sketch A";
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0;
	-webkit-transition: opacity 0.3s ease-in-out;
	transition: opacity 0.3s ease-in-out;
}
#x-site #rev_slider_4_3_wrapper .custom.tparrows:after {
    color: #fed925;
}
#x-site #rev_slider_4_3_wrapper .custom.tparrows:hover:after,
#x-site #rev_slider_6_2_wrapper .custom.tparrows:hover:after {
	opacity: 1;
}
#x-site #rev_slider_6_2_wrapper .custom.tparrows:hover:after {
    color: #e1251b;
}
#x-site #rev_slider_6_2_wrapper rs-slide {
    border-left: 1px solid black;
}
@media (min-width: 1020px){
    #x-site #rev_slider_6_2_wrapper rs-carousel-wrap {
        border-right: 1px solid black;
    }
}
@media (max-width: 777px){
	#x-site #rev_slider_6_2_wrapper .custom.tparrows,
    #x-site #rev_slider_4_3_wrapper .custom.tparrows {
	    width: 30px;
	    height: 30px;
	}
	#x-site #rev_slider_6_2_wrapper .custom.tparrows:before,
    #x-site #rev_slider_6_2_wrapper .custom.tparrows:after,
    #x-site #rev_slider_4_3_wrapper .custom.tparrows:before,
	#x-site #rev_slider_4_3_wrapper .custom.tparrows:after {
	    font-size: 72px;
	    line-height: 48px;
        width: 30px;
	}

    #x-site #rev_slider_4_3_forcefullwidth { margin-bottom: 40px !important; }
    #x-site #rev_slider_4_3_wrapper .custom.tparrows { top: calc(100% - 50px) !important; }
    #x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-leftarrow { left: calc(50% - 70px) !important; }
    #x-site #rev_slider_4_3_wrapper .custom.tparrows.tp-rightarrow { left: calc(50% + 70px) !important; }

}

/* ------- STORE ------ */

.tax-product_tag .x-site {
  background-color: #39b5e4;
}
.tax-product_cat .x-site,
.post-type-archive-product .x-site {
  background-color: #194f90;
}
.single-product .x-main {
  padding: 90px 0; 
}
.woocommerce.archive li.product .entry-header h3 a,
h2.woocommerce-loop-category__title {
  font-family: "Rival Slab";
  font-weight: 300;
  font-size: 24px;
  color: white;
}
h2.woocommerce-loop-category__title {
   font-size: 36px;
}
.woocommerce.archive .price > .amount, 
.woocommerce.archive .price > ins > .amount, 
.woocommerce.archive li.product .entry-header h3 a:hover, 
.woocommerce.archive .star-rating:before, 
.woocommerce.archive .star-rating span:before {
  color: white !important;
}
h2.woocommerce-loop-category__title mark { 
  display: none; 
}
.woocommerce li.product .entry-header { 
  text-align: left;
}
.woocommerce li.product {
  text-align: center;
  padding-top: 20px;
  overflow: visible;
  margin: 0 4% 2% 0;
}
.product_title {
  font-family: "Bourton Base", sans-serif;
}
.product_title span {
  font-family: "Bourton Outline", "Bourton Base", sans-serif;
}
.woocommerce li.product a.button {    
  color: white;
  background-color: #1a508f;
  border-color: #1a508f;
}
.woocommerce.tax-product_tag li.product a.button {
    background-color: #39b5e4;
    border-color: #39b5e4;
}
.woocommerce li.product a {
  display: block;
}
.woocommerce li.product img {
  box-shadow: 0em 0.15em 1em 0px rgba(0,0,0,0.5);
}
.woocommerce li.product .entry-featured {
  background: transparent;
  border: 0;
  overflow: visible;
}
.woocommerce li.product .entry-featured>a {
  background: white;
}
.tax-product_tag .entry-title,
.tax-product_cat .entry-title {
  font-family: "Bourton Outline";
  font-size: 57px;
  color: white;
  text-align: center; 
  margin-top: 30px;
}
.woocommerce-result-count, .woocommerce-ordering {
  display: none;
}
.woocommerce-tabs .x-nav-tabs a {
  font-weight: bold; 
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.woocommerce-tabs .x-tab-pane > h2 {
  display: none;
}
.tax-product_tag .x-container.offset,
.tax-product_cat .x-container.offset,
.post-type-archive-product
.x-container.offset {
  margin-top: 0; 
}
.entry-header.shop {
  padding: 30px 0 15px;
}
.entry-header.shop ul {
  list-style: none; 
  margin: 0;
}
.entry-header.shop li:before {
  content: ">";
}
.entry-header.shop li:before,
.entry-header.shop ul a {
  font-family: "Bourton Base", sans-serif;
  color: white;
}
@media (min-width: 768px){
  .entry-header.shop {
    display: flex;
    align-items: center;
  }
  .entry-header.shop ul,
  .tax-product_tag .entry-title,
  .tax-product_cat .entry-title {
    width: 33.33%;
  }
}

/* ------- HUBSPOT ------ */

.hbspt-form fieldset {
    max-width: 600px !important;
}
.hbspt-form h1 {
  font-size: 40px;
  line-height: 44px;
}
.hbspt-form h2 {
  font-size: 38px;
  line-height: 38px;
  font-family: "Bourton Base", sans-serif;
}
.hbspt-form h3 {
    font-size: 24px;
    line-height: 24px;
}
.hbspt-form ul { 
  list-style: none;
  margin-left: 0;
}
.hbspt-form label {
  line-height: 1.4; 
}
.hbspt-form legend {
  border-bottom: 0; 
  font-size: 16px;
}
.hbspt-form textarea {
    border: 2px solid black;
}
.hbspt-form select,
.hbspt-form input {
  margin-right: 10px; 
  border: 2px solid black;
  font-weight: 300; 
  font-size: 16px;
  padding: 5px 15px;
}
.hbspt-form select,
.hbspt-form input:not([type=checkbox]) {
  height: 46px;
}
.hbspt-form input[type=radio] {
  height: 20px;
}
.hbspt-form input[type=text],
.hbspt-form input[type=email],
.hbspt-form input[type=tel],
.hbspt-form input[type=number]{
  width: 90%; 
}
.hbspt-form form ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: black;
  opacity: 1; /* Firefox */
}
.hbspt-form form :-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: black;
}
.hbspt-form form ::-ms-input-placeholder { /* Microsoft Edge */
  color: black;
}
.inline-form .hbspt-form ul.no-list { 
  list-style: none;
  margin-left: 0;
}
.inline-form .hbspt-form label:not(.hs-error-msg) {
  display: none;
}
.inline-form .hbspt-form form {
  display: flex;
  justify-content: center;
}
@media (max-width: 480px) {
  
  .hs-form fieldset.form-columns-1 .input,
  .hs-form fieldset.form-columns-2 .input,
  .hs-form fieldset.form-columns-3 .input,
  .hbspt-form select,
    .hbspt-form textarea,
  .hbspt-form input:not([type="radio"]):not([type="checkbox"]) { 
    width: 100% !important; 
    margin-right: 0 !important; 
  }
  .inline-form .hbspt-form form { flex-direction: column; }
}