/* 
 Theme Name:     CoMaSys
 Author:         CoMaSys
 Author URI:     https://comasys.dk/
 Template:       Divi
 Version:        1.0.0
 Description:   A Child Theme built using the elegantmarketplace.com Child theme maker
Developed by Andrew Palmer for Elegant Marketplace www.elegantmarketplace.com Free to use and duplicate as many times as you like
 Wordpress Version: 4.9.9
*/ 


/* ----------- PUT YOUR CUSTOM CSS BELOW THIS LINE -- DO NOT EDIT ABOVE THIS LINE --------------------------- */ 

/*Fjern horisontal scrollbar*/
body {overflow-x:hidden;}

/*Fix mobil menu*/
header#main-header.et-fixed-header, div#top-header.et-fixed-header {position: fixed!important;}

/*Højde på mobil dropdown og scroll*/
.et_mobile_menu {max-height: 300px;	 overflow-y: scroll;}

/*Mobile Menu Collapsible Submenu*/
/* when mobile menu is open, change hamburger icon to x icon */
#et_mobile_nav_menu .mobile_nav.opened .mobile_menu_bar::before {
	content: '\4d';
}

/* makes sub sub menu icon be right arrow instead of down arrow */
#top-menu .menu-item-has-children .menu-item-has-children > a:first-child::after, 
#et-secondary-nav .menu-item-has-children .menu-item-has-children > a:first-child::after {
	content: '5';	
}

/* - mobile menu toggling elements, injected via jQuery - */

/* make menu list item be relative, to be able to position toggle within this item */
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children {
	position: relative;	
}
/* the new toggle element, which is added via jQuery */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle {
	position: absolute;
	background-color: rgba(0,0,0,0.03);
	z-index: 1;
	width: 36px;
	height: 36px;
	line-height: 36px;
	border-radius: 50%;
	top: 4px;
	right: 4px;
	cursor: pointer;
	text-align: center;
}
/* the new toggle element when popped */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped {
	background-color: rgba(0,0,0,0.1);
}
/* toggle icon */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle::before {
	font-family: "ETmodules" !important;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 36px;
	font-size: 24px;
	text-transform: none;
	speak: none;
	content: '\33';
}
/* toggle icon when triggered */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped::before {
	content: '\32';
}
/* hide sub menus by default */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle ~ ul.sub-menu {
	display: none !important;
	padding-left: 0;
}
/* show sub menu when triggered via jQuery toggle, and add slight bg color */
#main-header #mobile_menu.et_mobile_menu .sub-menu-toggle.popped ~ ul.sub-menu {
	display: block !important;
	background-color: rgba(0,0,0,0.03);
}
/* remove sub menu list item left padding, since padding will be on anchors */
	#main-header #mobile_menu.et_mobile_menu li li {
	padding-left: 0;
}

/* adjust mobile menu anchors side paddings */
#main-header #mobile_menu.et_mobile_menu li a {
	padding-left: 20px;
	padding-right: 20px;
}
/* indent sub menu */
#main-header #mobile_menu.et_mobile_menu li li a {
	padding-left: 40px;
	padding-right: 20px;
}
/* indent sub sub menus further */
#main-header #mobile_menu.et_mobile_menu li li li a {
	padding-left: 60px;
	padding-right: 20px;
}
/* if mobile menu anchor has toggle, make room for it to fit next to the link */
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children .sub-menu-toggle + a {
	padding-right: 44px;
}

/* - end mobile menu toggling elements - */

/* undo Divi's default styling of mobile menu links that have children */
#main-header #mobile_menu.et_mobile_menu .menu-item-has-children > a {
	background-color: transparent;
	font-weight: inherit;
}

/* make the current page's mobile menu link be different */
#main-header #mobile_menu.et_mobile_menu li.current-menu-item > a {
	font-weight: bolder;
}
 
 a, a:hover, a:focus{-webkit-transition:none;-moz-transition:none; transition:none;opacity:1!important;}
 
 .et-social-google-plus a.icon:before {content: "\e081";}

/*Ninja Forms*/
.nf-form-content{max-width:100%!important;}
.nf-form-fields-required {font-size: 13px; line-height: 20px;}
.nf-field-container:last-child {
    margin-bottom: 0px!important;
}

.et-pb-arrow-prev, .et_pb_slider:hover .et-pb-arrow-prev {left:0px;}
.et-pb-arrow-next, .et_pb_slider:hover .et-pb-arrow-next {right:0px;}

/*Flex indhold*/
/*sæt flex-content i kolonnens class HUSK at justere modulernes bredde*/
.flex-content {
	display: flex;
    flex-wrap: wrap;
    justify-content: center;}


 /*4 col til 2 på mobil*/
 /*Rammer alle 1/4-dels kolonner*/
@media (max-width: 479px){
.et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4, .et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4, .et_pb_row_4col>.et_pb_column.et_pb_column_1_4 {  width: 47.25%!important;margin-right: 5.5%!important;}
	.et_pb_row_1-4_1-4>.et_pb_column.et_pb_column_1_4:nth-child(even), .et_pb_row_1-4_1-4_1-2>.et_pb_column.et_pb_column_1_4:nth-child(even), .et_pb_row_4col>.et_pb_column.et_pb_column_1_4:nth-child(even) {    margin-right: 0!important;}
}
 /*4 col til 2 på mobil*/
 /*HUSK at sætte col-2-mobil som class på rækken*/
@media (max-width: 479px){
.col-2-mobil>.et_pb_column.et_pb_column_1_4 {  width: 47.25%!important;margin-right: 5.5%!important;}
	.col-2-mobil>.et_pb_column.et_pb_column_1_4:nth-child(even) {    margin-right: 0!important;}
}