/* 
 Theme Name:     Rikke Ekelund Child Theme
 Author:         Rikke Ekelund
 Author URI:     https://rikkeekelund.dk 
 Template:       Divi
 Version:        1.0 
*/


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



/*** custom stacking START ***/
@media all and (max-width: 980px) {
/*** wrap row in a flex box ***/
.custom_row {
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
-webkit-flex-wrap: wrap; /* Safari 6.1+ */
flex-wrap: wrap;
}
 
/*** custom classes that will designate the order of columns in the flex box row ***/
.first-on-mobile {
-webkit-order: 1;
order: 1;
}
 
.second-on-mobile {
-webkit-order: 2;
order: 2;
}
 
.third-on-mobile {
-webkit-order: 3;
order: 3;
}
 
.fourth-on-mobile {
-webkit-order: 4;
order: 4;
}
/*** add margin to last column ***/
.custom_row:last-child .et_pb_column:last-child {
margin-bottom: 30px;
}
 
}
/*Custom stacking END*/



/*BACK TO TOP BUTTON STYLE*/
.et_pb_scroll_top.et-pb-icon.et-visible,
.et_pb_scroll_top.et-hidden {
    background: #1dafec;
    color: #ffffff;
    
    border: 2px solid #1dafec;
 }


/*Works with JQ-code in head marked jumping header fix'*/
#page-container {
    visibility: hidden;
}

/*correcting the search-button icon*/
.et_pb_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__search-button, .et_pb_menu_0_tb_header .et_pb_menu__icon.et_pb_menu__close-search-button {
  margin-top: -10px;
}

/* Start of testimonials style */
#testimonial-style3 .et_pb_testimonial_description_inner p {
    color: #282828 !important;
    font-size: 18px;
    font-style: italic;
}
#testimonial-style3 .et_pb_testimonial {
    overflow: visible;
}
#testimonial-style3 .et_pb_testimonial::before {
    content: "\7b";
    z-index: 9;
    font-size: 55px !important;
    transform: rotate(360deg);
    top: -30px;
    margin-left: -30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}
#testimonial-style3 .et_pb_testimonial_description {
    margin-top: 20px;
}

@media screen and (max-width:980px){
	#testimonial-style3 .et_pb_column_1_3 {
	    max-width: 500px;
		width: 100%;
		display: block;
		margin: 0 auto 36px !important;
		float: none;
	}
	#testimonial-style3 .et_pb_column_1_3:last-child{
		margin: 0 auto !important;
	}
	#testimonial-style3.et_pb_section .et_pb_row, 
	#testimonial-style3.et_pb_section.et_section_specialty .et_pb_row {
		max-width: 1080px !important;
		width: 80%;
	}
}
@media screen and (max-width:440px){
	#testimonial-style3.et_pb_section .et_pb_row, 
	#testimonial-style3.et_pb_section.et_section_specialty .et_pb_row {
		max-width: 1080px !important;
		width: 90%;
	}
}
/* End testimonitals */


/*edit the Divi submenu*/
.et_pb_menu li ul {
    margin-top: 8px;
    }


/* Ul positioning */
.et_pb_text ul, .et_pb_text ol, .et_pb_tab ul, .et_pb_tab ol, .et_pb_toggle ul, .et_pb_toggle ol {
 list-style-position: outside;
}

.et_pb_text li, .et_pb_tab li, .et_pb_toggle li {
 margin-bottom: 6px !important;
 line-height: 1.4em;
}


/*** Media queries ***/

/*** MAKE SITE WIDER ON SMALLER SCREENS ***/
@media only screen and (max-width: 980px) {
.et_pb_row {
width: 90%; /*** you might need !important ***/
}
}

/* Tablets in landscape mode (981-1100px) */

/* Hamburger menu on Tablet Landscape */
@media only screen and ( min-width: 981px ) and ( max-width: 1100px ) {
/* Hero-bg on tablet landscape */
	#front-hero.et_pb_section.et_pb_section_0 {
	            background-position: 50%!important;
	  }
/* Logo on Tablet Landscape */	
	#logo {
    max-width: 150px!important;
		max-height: 20%
}
	
}

/*make Divi Builder text style settings sticky on scroll*/

.mce-panel .mce-stack-layout-item.mce-first {
	position: sticky!important;
	top: -60px;
}

/* Custom spacings to texts START*/

/* Removes default bottom padding */
.my-spacing h1,
.my-spacing h2,
.my-spacing h3,
.my-spacing h4,
.my-spacing h5,
.my-spacing h6 {
  padding: 0;
}

/* Sets default top margin for all text items */
.my-spacing * + * {
  padding: 0;
  margin-top: 0.8em;
}

/* Sets top paragraph margin where para follows a heading */
.my-spacing h1 + p,
.my-spacing h2 + p,
.my-spacing h3 + p,
.my-spacing h4 + p,
.my-spacing h5 + p,
.my-spacing h6 + p {
  margin-top: 1em;
}

/* Sets top heading margin where heading follows a paragraph */
.my-spacing p + h1,
.my-spacing p + h2,
.my-spacing p + h3,
.my-spacing p + h4,
.my-spacing p + h5,
.my-spacing p + h6 {
  margin-top: 0.75em;
}

/* Sets top  margin for unordered lists */
.my-spacing * + ul {
  margin-top: 1em;
  margin-left: 1em;
}

/* Sets top and left margins for list items in UL */
.my-spacing ul li {
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 1em;
  margin-top: 1em;
}

/* Sets top and left margins for ordered lists */
.my-spacing * + ol {
  margin-top: 1em;
  padding-left: 1em;
}

/* Sets top and left margins for list items in OL */
.my-spacing ol li {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 1em;
}

/* Sets spacing between marker (number) and text in OL */
.my-spacing ol li::before {
  content: "";
  padding-left: 1em;
}

/* Custom spacings to texts END*/


/*Make Divi Builder text style settings sticky on scroll START*/

.mce-panel .mce-stack-layout-item.mce-first {
	position: sticky!important;
	top: -60px;
}

/*Make Divi Builder text style settings sticky on scroll END*/

/*Ninja Forms styling START*/

.nf-form-fields-required {
  display: none;
}



/*Ninja Forms styling END*/
