/*
Theme Name: Stop Moz Gas Divi child theme
Theme URI: https://stopmozgas.org
Description: Stop Moz Gas Divi child theme
Author: Rafa Ramos
Author URI: https://webcomposter.com
Template: Divi
Version: Updated for Divi 3+
*/



/*------------------------------------------------*/
/*-------------------[GENERAL]--------------------*/
/*------------------------------------------------*/


/*General titles*/
h1,h2{
	text-align:center !important;
	/*text-transform: uppercase !important;*/
}

#content-area a:hover, .entry-content a:hover{
	color:#8cc401;
}

#logo img{
	max-width:100px !important;
}

/*Titles in posts*/
h2.entry-title, .single-post h1, .single-post h2 {
    text-align: left !important;
}

.single-post h2 {
    padding-bottom: 1em;
}

/*interactivity opacity when hovering posts*/
.et_pb_image_container :hover {
    opacity: 0.9 !important;
}

/*Image hover pro module - Hover texts*/
[class*=" imagehover-fade"] figcaption{
    padding: 7px !important;
}

/*images in posts content*/
.single-post img {
    margin: 1em 0 1em 0;
}

/*Advanced tabs titles*/
/*.dg_at_nav {
    border-left: 10px solid #30BBBB !important;
    padding: 1em !important;
	/*width:fit-content !important;
}*/




/*Padding for body text in open toggle modules*/
.et_pb_toggle_open {
    padding: 2em !IMPORTANT;
}

/*Apply shadow to any element/module with this css class*/
.shadow {
	opacity:1;
}

/*class shadow - when hovering elements*/
.shadow:hover {
    opacity:0.85;
	border:5px solid;
}

/*Language switcher option in menu*/
/*
li.lang-item {
    width: fit-content !important;
    display: inline-block !important;
}

.lang-item a {
    padding: 0.5em 0.3em 0.5em 0.3em !important;
    border-radius: 10em !important;
	border:2px solid white !important;
    background: #007491;
    color: #fff !important;
	font-size:1.2em !important;
}

li.lang-item a:hover{
	color:#fff !important;
	border:2px solid #fff !important;
}
*/
/*END Language switcher option in menu*/



/*styles for polylang language switcher*/
.lang-item {
    padding: 0.3em 0.4em 0.3em 0.4em !important;
    border: 3px solid white;
	border-bottom:0 !important;

}

.lang-item-16 {
background:#004667 !important;
}


.lang-item-19 {
	background:#327c99 !important;
}


.lang-item:hover {
    background:black !important;
}

#top-menu .lang-item a, .et-fixed-header #top-menu .lang-item a {
    color: white !important;
    padding: 0.1em;
	font-size:1em;
}

.et_mobile_menu .lang-item {
    width: fit-content;
    padding: 0 0.7em 0 0.7em! important;
    border-radius: 5em;
	border:0px !important;
    margin: 1em;
	color: white !important;
}

.et_mobile_menu .lang-item a{
	color:white !important;
	font-weight:bolder;
	width:fit-content;
	font-size:1.3em;
}

#menu-item-1916-pt,#menu-item-1916-en {
	color:white !important;
}


/*END styles for Polylang switcher*/





/******************************************************/
/*CSS for collapsing submenu options in mobile devices*/
/******************************************************/

/*change hamburger icon to x when mobile menu is open*/

#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before,
.et_pb_module.et_pb_menu .et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}


/*adjust the new toggle element which is added via jQuery*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
ul.et_mobile_menu li.page_item_has_children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.page_item_has_children .mobile-toggle {
	width: 44px;
	height: 100%;
	padding: 0px !important;
	max-height: 44px;
	border: none;
	position: absolute;
	right: 0px;
	top: 0px;
	z-index: 999;
	background-color: transparent;
}


/*some code to keep everyting positioned properly*/

ul.et_mobile_menu>li.menu-item-has-children,
ul.et_mobile_menu>li.page_item_has_children,
ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.page_item_has_children,
.et-db #et-boc .et-l ul.et_mobile_menu>li.menu-item-has-children .sub-menu li.menu-item-has-children {
	position: relative;
}


/*remove default background color from menu items that have children*/

.et_mobile_menu .menu-item-has-children>a,
.et-db #et-boc .et-l .et_mobile_menu .menu-item-has-children>a {
	background-color: transparent;
}


/*hide the submenu by default*/

ul.et_mobile_menu .menu-item-has-children .sub-menu,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu {
	display: none !important;
	visibility: hidden !important;
}


/*show the submenu when toggled open*/

ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
#main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #et-boc .et-l ul.et_mobile_menu .menu-item-has-children .sub-menu.visible,
.et-db #main-header ul.et_mobile_menu .menu-item-has-children .sub-menu.visible {
	display: block !important;
	visibility: visible !important;
}


/*adjust the toggle icon position and transparency*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle {
	text-align: center;
	opacity: 1;
}


/*submenu toggle icon when closed*/

ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children .mobile-toggle::after {
	top: 10px;
	position: relative;
	font-family: "ETModules";
	content: '\33';
	color: #fff;
	background: #007491;
	border-radius: 50%;
	padding: 3px;
}


/*submenu toggle icon when open*/

ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after,
.et-db #et-boc .et-l ul.et_mobile_menu li.menu-item-has-children.dt-open>.mobile-toggle::after {
	content: '\32';
}


/*add point on top of the menu submenu dropdown*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu:after {
	position: absolute;
	right: 5%;
	margin-left: -20px;
	top: -14px;
	width: 0;
	height: 0;
	content: '';
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-bottom: 20px solid #ffffff;
}


/*adjust the position of the hamburger menu*/

.mobile_menu_bar {
	position: relative;
	display: block;
	bottom: 10px;
	line-height: 0;
}


/*force the background color and add a rounded border*/

.et_pb_menu_0.et_pb_menu .et_mobile_menu,
.et_pb_menu_0.et_pb_menu .et_mobile_menu ul {
	background-color: #ffffff!important;
	border-radius: 10px;
}

/**********************************************************/
/*END CSS for collapsing submenu options in mobile devices*/
/**********************************************************/



/**************************************************************/
/*Post meta - Posts publishing Date and Breadcrumbs categories*/
/*Date*/
.published{
	font-family:"Anton" !important;
}

/*Category breadcrumbs*/
#left-area .post-meta a {
    color: #007491 !important;
}
/*END Post meta*/
/***************/


/********************************************/
/*Make images in slider have the same height*/
/********************************************/

/*set the height of the slide image*/

.et_pb_gallery_fullwidth .et_pb_gallery_image img {
   height: 40vh;
   width: auto;
   object-fit: cover
}


/*align the slide image to the middle*/

.et_pb_gallery_image {
   line-height: 0;
   text-align: center;
}


/*------------------------------------------------*/
/*********END Height images gallery slider*********/
/*------------------------------------------------*/


/*Images in carousel - same height*/
/*.dmpro_carousel_child .dmpro-carousel-image img {
    width: auto;
    object-fit: cover;
    max-height: 200px !important;
}*/

/*Arrows in divi default gallery slider mode*/
.et-pb-arrow-next, .et-pb-arrow-prev {
    background: #333 !important;
    color: #fff !important;
    border-radius: 10em !important;
}

/*Arrows in divi default gallery slider mode : hover*/
.et-pb-arrow-next:hover, .et-pb-arrow-prev:hover {
    background: #fff !important;
    color: #333 !important;
}


/*Remove navigation dots in image gallery sliders*/
.et-pb-controllers {
    display: none !important;
}

/*------------*/
/*--Carousel--*/
/*------------*/

/*Titles Carousel*/
.dmpro_carousel_child .dmpro-carousel-item-content {
    padding: 0.2em 0 0 0 !important;
}

h2.dmpro-carousel-item-title {
    text-align: left !important;
}

/*Image carousel*/
.dmpro-carousel-image:hover {
    opacity: 0.8 !important;
}


/*Carousel*/
/*Extra arrows prev and next*/
.swiper-button-next:after, .swiper-button-prev:after{
	display:none !important;
}

/*------------------------------------------------*/
/*---------------BLOG POSTS LIST-GRID-------------*/
/*------------------------------------------------*/

/*.et_pb_blog_grid .et_pb_post {
    padding: 19px;
    background-color: #333;
    word-wrap: break-word;
    border: 12px solid #333;
}


h2.entry-title, .single-post h1, .single-post h2 {
    color: #fff;
    text-align: left !important;
}

.post-meta span {
    font-size: 14px;
    margin-bottom: 6px;
    color: #30bbbb !important;
}*/

/*------------------------------------------------*/
/*------------END BLOG POSTS LIST-GRID------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*-----------------[HEADER-MENU]------------------*/
/*------------------------------------------------*/

/*Display submenu centered*/
.sub-menu{
	right:-1em !important;
}

#top-menu li {
    display: inline-block;
    font-size: 13px;
    padding-right: 12px;
}

#main-header .nav li ul{
    z-index: 9999999 !important;
}



/*------------------------------------------------*/
/*------------------[HOMEPAGE]--------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*------------------[SUBPAGES]--------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*-------------------[Footer]---------------------*/
/*------------------------------------------------*/


/*------------------------------------------------*/
/*--------------------[SIDEBAR]-----------------------*/
/*------------------------------------------------*/

/*Remove separation line between main content and sidebar*/
.container::before {
    display:none !important;
}

/*Sidebar general*/
#sidebar {
    line-height: 1.1em !important;
}

#sidebar .et_pb_widget {
    margin-bottom:0 !important;
}

.et_right_sidebar #sidebar {
    padding: 20px !important;
}

#sidebar h2 {
    background: #007491;
    color: white;
    padding: 0.3em !important;
	margin-bottom:1em !important;
	max-width:fit-content;
}

#sidebar li {
    margin-bottom: 0.9em !important;
	/*list-style: circle !important;*/
}

#sidebar li a {
    line-height: 0.8em !important;
	color:#007491;
	font-size: 0.85em !important;
}

/*Titles h2 sidebar area*/
div#sidebar h2 {
    font-size: 1.2em !important;
    text-align: left !important;
}

/*links to posts in sidebar area*/
/*.et_pb_widget a {
    margin-bottom: 0.5em !important;
}*/



/*------------------------------------------------*/
/*--------------------[RWD]-----------------------*/
/*------------------------------------------------*/

/*Big screen tablets or desktop*/
/*Fixed scrolling sidebar*/
@media all and (min-width: 981px){
.et_right_sidebar #sidebar {
    padding: 30px;
    margin-right: 3em;
    border: 2px solid cadetblue;
    position: fixed;
    right: 0 !important;
	background: white !important;
    z-index: 9999 !important;
	}
	

.et_fullwidth_nav #main-header .container {
    width: 100%;
    max-width: 100%;
    padding-right: 15px;
    padding-left: 15px;
	}


}


/*mobile and small screen tablets*/
@media all and (max-width: 980px) {
.dg_at_nav {
	width:100% !important;
}

	
/*Position lang switcher in mobile devices menu*/
/*	

	.lang-item {
    position: absolute;
    top: 0.5em !important;
	right: 5% !important;
}

*/
	
}



/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*--[ADD TUTORIAL CUSTOMIZATION BELOW THIS LINE]--*/
/*------------------------------------------------*/
/*------------------------------------------------*/
/*------------------------------------------------*/




