/*
 Theme Name:   Canada Safety Council
 Theme URI:    N/A
 Description:  Canada Safety Council Theme
 Author:       Canada Safety Council
 Author URI:   http://canadasafetycouncil.org
 Template:     Divi
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  twenty-fifteen-child
*/

@media only screen and (max-width: 981px){
#logo {
/*this adjusts the size of the logo*/
height: auto;
max-height: 90px !important;
padding-bottom: 12px;
}

/* overwriting built-in max-width that we don't want */
.et_header_style_left #logo{
max-width:75%;
}
}

/* @media only screen and (max-width: 1210px){#logo {max-width:54%;}} */

/* hiding logo at 450 px */


/* HIDE BOTTOM FOOTER BAR */
#footer-bottom {
display: none;
}

#footer-csc .et_pb_widget_area_left{border-right:none;}

/* HIDE SHOP/PRODUCT OVERLAY & ICON ON HOVER */
.et_overlay {
display: none;
}

/* FULL-WIDTH SPONSOR SLIDER */

#sponsor-slider .et_pb_container{
margin:0;
}

#sponsor-slider .et_pb_slide_title, #sponsor-slider .et_pb_slide_content { 
background-color: rgba(0, 0, 0, 0.3);
padding: 3%;

}

/* === Begin: Set the divi slider height === */
/* Src: https://divibooster.com/changing-the-height-of-the-divi-slider/ */

/* Desktop */
.myslider .et_pb_slide .et_pb_container {
	height: auto !important;
	min-height: 300px !important;
}
/* Tablet */
@media only screen and (min-width: 768px) and (max-width: 980px) {
	.myslider .et_pb_slide .et_pb_container {
		height: auto !important;
		min-height: 300px !important;
	}
}
/* Phone */
@media only screen and (max-width: 767px) {
	.myslider .et_pb_slide .et_pb_container {
		height: auto !important;
		min-height: 300px !important;
	}
}

/* Handle padding */
.myslider .et_pb_slide {
	padding-bottom: 0px !important;
}
.myslider div.et_pb_slide_description, 
.myslider .et_pb_slider_fullwidth_off div.et_pb_slide_description {
	padding-top: 1%;
	padding-bottom: 1%;
}

/* === End: Set divi slider height === */


/* COLOUR OVERLAY TRAINING HEADER */

.et_pb_fullwidth_header_0.et_pb_fullwidth_header .header-content h1, .et_pb_fullwidth_header_0.et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
background-color: rgba(0, 0, 0, 0.5); 
padding: 3%;
}  

/* REMOVE OVERLAY ON SUB PAGE HEADER */

.sub-page-header h1 {
background-color: transparent !important;
}


/* IMG ZOOM ON HOVER */
.image-zoom img {
transition:all 0.5s;
-moz-transition:all 0.5s;
-webkit-transition: all 0.5s;
}

.image-zoom img:hover {
transform:scale(1.1);
-moz-transform: scale(1.1);
-webkit-transform:scale(1.1);
}

/* SHOP/PRODUCT IMG ZOOM */

.et_shop_image img {
transition:all 0.5s;
-moz-transition:all 0.5s;
-webkit-transition: all 0.5s;
}

.et_shop_image img:hover {
transform:scale(1.1);
-moz-transform: scale(1.1);
-webkit-transform:scale(1.1);
}

/* PURCHASE PRODUCT BUTTON */

a.single_add_to_cart_button.button.alt {
background-color:#ce001d;
border-radius: 20px;
font-weight: bold;
color:white;
}
a.single_add_to_cart_button.button.alt {color:#ffffff !important;}
section.related.products{clear:both;}

/*PURCHASE PRODUCT HOVER */
a.single_add_to_cart_button.button.alt:hover {
padding:.3em 1em;
background-color: #ff0000;
color: white;
}

/*PURCHASE PRODUCT BUTTON ON HOVER AFTER */
a.single_add_to_cart_button.button.alt:hover:after{
display:none;
}

/* PRODUCT TAGS */
.product_meta a {
color: red;
}

/* PRODUCT CATEGORY SIDEBAR COLOR */
#woocommerce_product_categories-3 span.count {color:#CE001D;font-weight: bold;display:none;}

/* MENU ITEM HOVER ANIMATION */

#top-menu .current-menu-item a::before,
#top-menu .current_page_item a::before {
 content: "";
 position: absolute;
 z-index: 2;
 left: 0;
 right: 0;
}

#top-menu li a:before {
 content: "";
 position: absolute;
 z-index: -2;
 left: 0;
 right: 100%;
 bottom: 50%;
 background: #A0041D; /*** COLOR OF THE LINE ***/
 height: 3px; /*** THICKNESS OF THE LINE ***/
 -webkit-transition-property: right;
 transition-property: right;
 -webkit-transition-duration: 0.3s;
 transition-duration: 0.3s;
 -webkit-transition-timing-function: ease-out;
 transition-timing-function: ease-out;
}

#top-menu li a:hover {
 opacity: 1 !important;
}

#top-menu li a:hover:before {
 right: 0;
}

#top-menu li li a:before {
 bottom: 10%;
}

@media only screen and (max-width:1030px) {#top-menu li a{font-size:90%;}}

/* SIDEBAR STYLE */
.et_pb_widget_area_right {
	border-left: 3px solid red;
	font-weight: 600;
}

/* SCROLL BACK TO TOP BUTTON STYLE */
.et_pb_scroll_top.et-pb-icon {
    background-color: red;
	}

/* FOOTER STYLES */
/* HIDE BULLETS IN FOOTER MENU */
.footer-widget li:before { 
display: none; 
}

/* STYLE DONATE BUTTON */
#donate-button{background: #12C333;border-radius: 8px;font-size: 16px;color: #FFFFFF;text-align:center;max-width: 60%;}


/* FOOTER HOVER LINKS */
#footer-csc ul li a:hover, #donate-button a:hover{color:#fbe9e8;}
#donate-button a{color:#fff;}

/* FOOTER TWITTER ICON COLOUR */
i.fa.fa-twitter.fa-2x {
color: #00aced;
}

/* FOOTER FB ICON COLOUR */
i.fa.fa-facebook-square.fa-2x {
color: #3B5998;
}

/* BREADCRUMB COLOUR */
.woocommerce .woocommerce-breadcrumb {
color:red;
font-style: italic;
font-weight: 600;
}

body.woocommerce #content-area div.product .woocommerce-tabs ul.tabs, body.woocommerce div.product .woocommerce-tabs ul.tabs {
background: #C4122F;
}

/* ANNIVERSARY PAGE STYLING */
#post-541 div.et_post_meta_wrapper p.post-meta, #post-541 div.et_post_meta_wrapper img{display:none;}
#product-5584>section.related.products{display:none;}

/* TIMELINE COLOUR CHANGES */
.tl-timegroup .tl-timegroup-message{color:#000 !important; text-transform:uppercase !important; font-family:'Open Sans', 'Verdana', sans-serif !important; font-weight:bold !important;}
.tl-timemarker .tl-timemarker-content-container{background-color:#fff !important;}
.tl-timemarker .tl-timemarker-content-container .tl-timemarker-content .tl-timemarker-text h2.tl-headline, .tl-timemarker .tl-timemarker-content-container .tl-timemarker-content .tl-timemarker-text h2.tl-headline p{color:#ce001d !important;}
.tl-timemarker .tl-timemarker-content-container .tl-timemarker-content.tl-timemarker-content-small .tl-timemarker-text h2.tl-headline{font-size:16px !important;}

/* CAMPAIGN MENU STYLING */
#menu-campaign-menu, #menu-menu-campagnes{padding:8% !important;}
#nav_menu-9, #nav_menu-17{margin-bottom:0!important;padding-top:7.5%;}

/* NEWS PAGE MENU */
ul#menu-news-menu{padding-right:7.5%;}
#line-removal:before{display:none;}
.navigation-news{float:left;padding-left:10%;padding-right:2%;}
.navigation-news h4{color:#c4122f;font-weight:700;}
.container-news{width:50%;}
#menu-dates li, #menu-news-dates-fr li{margin-bottom:.5em;}
#menu-dates a, #menu-news-dates-fr a{color:#666;}
#menu-dates a:hover, #menu-news-dates-fr a:hover{color:#e02b20;}
#menu-dates a:active, #menu-news-dates-fr a:active{font-weight:bold;}
@media only screen and (max-width:1670px) {.navigation-news{padding-left:5%;}}
@media only screen and (max-width:1480px) {.navigation-news{padding-left:1%;}}
@media only screen and (max-width:1400px) {.navigation-news{float:none;}#menu-dates li, #menu-news-dates-fr li{display:inline-block;padding:1%;}#news-box h2{font-size:120%;}}
@media only screen and (max-width:980px) {#menu-dates li, #menu-news-dates-fr li{display:block;background-color:#ce001d;border:2px solid black;padding:2%;}#menu-dates a, #menu-news-dates-fr a{color:#fff; font-size:26px;font-weight:bold;}#news-box h2{font-size:23px;}}

/* NEWS PAGE LOOP */
.top-clear{padding-top:2%;}
.post-categories{display:inline-block;}
div#news-box{height:350px;}
#news-box div.et_pb_ajax_pagination_container{margin-bottom:10%;}
.news-ad{float:right;padding-right:10%;}
@media only screen and (max-width:980px) {div#news-box{height:auto;} .news-ad{padding:0;width:100%;margin:0 auto;}}

/* NEWS PAGINATION */
.pagination{text-align:center;padding:2%;}
.pagination a, .pagination span{border:1px solid black;color:#fff;background-color:#ce001d;padding:2%;}
.pagination span{font-weight:bold;}

/* WOOCOMMERCE MENU ON LEFT */
.woocommerce #left-area {float: right !important;padding-right:7.5%;} .cat-item-302, .cat-item-320, .cat-item-309{display:none !important;}

/* CONTACT OFFICE ICON COLOUR */
i.fa.fa-building.fa-2x {
color: #ce001d;
}

/* CONTACT PHONE ICON COLOUR */
i.fa.fa-envelope.fa-2x {
color: #ce001d;
}

#board-button{background-color:#ce001d;width:10%;text-align:center;margin-left:2%;padding:0.25% 0;border-radius:2em;}
#board-button a{color:#fff;font-weight:bold;}

/* SEARCH RESULTS */
.search #left-area{-moz-column-count: 1;column-count: 1;-moz-column-gap: 20px;column-gap: 20px;}
.search #left-area .et_pb_post a img {float:left !important;max-width:300px !important;padding:10px;}
.search #left-area ul{list-style-type: none !important;}
.search .et_pb_post > a {margin: -20px -20px 10px;display: block;}
.search #left-area .et_pb_post {overflow: hidden;page-break-inside: avoid;break-inside: avoid-column;width: 100%;padding: 19px;border: 1px solid #d8d8d8;background-color: #fff; word-wrap: break-word;display: inline-block;margin-bottom: 10px;}
.search #left-area .et_pb_post h2{font-size: 18px;}
.search #left-area .et_pb_post.format-link,
.search #left-area .et_pb_post.format-quote,
.search #left-area .et_pb_post.format-audio
{padding: 0;}
.search .et_pb_post .et_pb_image_container,
.search .et_pb_post .et_main_video_container,
.search .et_pb_post .et_audio_content,
.search .et_pb_post .et_pb_slider {
    margin: -20px -20px 10px;
}
 
.search .et_pb_post .et_pb_slider .et_pb_slide {
    min-height: 180px;
}
 
.search .pagination {
    padding: 20px 0;
}
.search #sidebar, .search .container:before{display:none;}

/* BOLD ACCORDION TITLES */
#post-3713 h5.et_pb_toggle_title{font-weight:bold;}

#footer-text a{color:#fff;}

/* BOARD OF DIRECTORS LOGIN */
#wpmem_restricted_msg, #wpmem_login{width:80%;margin:0 auto;}
#wpmem_restricted_msg{padding-top:2.5%;}
#bod-box{padding-bottom:4%;}

/* LOGIN PAGE WARNING */
.tml .message{display:none;} #loginmessage{border:1px solid #e6db55;background-color:#ffffe0;padding:2%;}.tml{max-width:100%;} #user_login, #user_pass, #user_login1, #user_pass1{padding:2%; border-radius:0.5em;font-size:20px;}.tml label{font-weight:bold;}

/* MENU ITEM STYLING FOR MOBILE */
@media only screen and (max-width : 980px) {
	.et_pb_row.et_pb_row_0.et_pb_row_1-4_1-2_1-4{width:100%;}
	h4.widgettitle{font-size:36px;text-transform:uppercase;text-align:center;}
	.et_pb_widget ul li{display:block;border:2px solid black;background-color:#ce001d;padding:2%;text-align:center;}
	.et_pb_widget ul li a{color:#fff !important;font-size:26px;text-transform:uppercase;font-weight:bold;}
	.et_pb_sidebar_0.et_pb_widget_area a{text-align:center !important}
	#woocommerce_product_categories-3 span.count{display:none;}
	#woocommerce_product_categories-3, #nav_menu-9, #nav_menu-11,
	#nav_menu-12, #nav_menu-13, #nav_menu-14{width:100% !important;}
	#donate-button{margin:0 auto;padding:2%;font-size:150%;}
	.footer-menu-title{text-transform:uppercase;text-align:center;font-size:175%;}
	#main-footer .et_pb_widget ul li a{font-size:20px;}
}
.mobile-menu a{display:block;}
@media only screen and (max-width:760px) {
	.et_pb_widget ul li{padding:5%;}
}

/* ELMER BANNER */
#elmer-banner{text-align:center;}