/*
Theme Name: Divi Child
Theme URI: https://constalink.com
Version: 1.21.5
Description: Child theme that allows customization of the global Divi theme
Author: Constalink
Author URI: https://consta.link
Template: Divi
*/

@import url("../Divi/style.css");

/* Fixes headers so that when they wrap, they have some spacing and gives them some additional spacing underneath */
h1,
h2,
h3,
h4,
h5,
h6 {
	padding-bottom: 20px;
	line-height: 1.3em;
}

/* Fixes accessibility issues */
p#footer-info {
	color: #aaa;
}

/* Fixes mobile devices so there is no wasted space on either side of the content with boxed layout */
@media screen and (max-width: 1440px) {
	body.et_boxed_layout div#page-container,
	body.et_boxed_layout header#main-header,
	body.et_boxed_layout div#top-header {
		width: 100% !important;
	}
}

/* Fixes the full screen navigation so that it has some play at the bottom and the last item doesn't get stuck underneath the sharing bar */
#mobile_menu_slide {
	padding-bottom: 100px !important;
}

/* Fixes the search input box on the full screen navigation.. Without this, it gets really messed up on mobile */
.et_header_style_fullscreen .et_pb_top_menu_inner {
	width: 400px !important;
	max-width: 100% !important;
}
.et_header_style_fullscreen .et_slide_menu_top .et-search-form {
	width: 140px !important;
	margin: auto !important;
}

/* Fixes the slide in menu so that the phone number and email are aligned left on mobile as they are on non mobile */
.et_header_style_slide #et-info {
	text-align: left !important;
}

@media screen and (max-width: 1024px) {
	.hide_on_mobile {
		display: none;
	}
}

/* Layout styles */
.et_pb_row.et_pb_row_fullwidth.full-width-row,
.et_pb_specialty_fullwidth > .et_pb_row.full-width-row {
	margin: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
}

/* Formidable forms styles */
.frm_dropzone.dz-clickable.frm_single_upload {
	max-width: 100% !important;
}
.frm_form_fields input {
	font-size: 16px !important;
}
.frm_form_fields select {
	font-size: 16px !important;
	padding: 6px 20px !important;
	height: 42px !important;
}
.frm_form_fields textarea {
	font-size: 16px !important;
	padding: 20px !important;
}
.frm_form_fields button {
	padding: 13px 20px !important;
	font-size: 20px !important;
	border: none !important;
	box-shadow: 0 0 18px 0 rgba(0, 0, 0, 0.3) !important;
	border-radius: 5px !important;
	margin: 10px !important;
}
.formidable-dark label {
	color: #fff !important;
}
.formidable-dark .frm_required,
.formidable-dark .frm_error {
	color: #fa8c8a !important;
}

/* Question and Answer lists */
dl.q-a {
	margin-left: 20px;
}
dl.q-a > dt:nth-child(odd) {
	font-weight: bold;
}
dl.q-a > dt:nth-child(odd):before {
	content: 'Q. ';
	margin-left: -15px;
}
dl.q-a > dt:nth-child(even):before {
	content: 'A. ';
	font-weight: bold;
	margin-left: -15px;
}
dl.q-a > dt:nth-child(even) {
	font-weight: normal;
}

/* Dollar circle counters */
.dollar-circle-counter .percent-value::before,
.dollar-and-month-circle-counter .percent-value::before {
	content: "$";
}
.dollar-and-month-circle-counter .percent-value::after {
	content: "/mo";
	font-size: 16px;
}

/* Nav buttons for magnific popup nagivation */
.popup-nav-button {
	display: block;
	padding: 8px 15px;
	background: #efefef;
	border-radius: 5px;
	font-size: 16px;
	margin-bottom: 5px;
}

/* Custom, non divi buttons */
.cl-button {
	padding: 8px 30px;
	font-size: 18px;
	line-height: 1.3em;
	text-decoration: none;
	display: inline-block;
	box-sizing: border-box;
	text-align: center;
	transition: background 0.3s cubic-bezier(0.77, 0, 0.175, 1);
	border-radius: 5px;
	box-shadow: 0 2px 18px 0 rgba(0,0,0,0.3);
}
.cl-button-light {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.2);
}
.cl-button-dark {
	color: #ffffff;
	background: rgba(12, 113, 195, 0.8);
}

/* Hover styles */
.hoverable span {
	visibility: hidden;
	width: 1px;
	opacity: 0;
	display: inline-block;
	transition: visibility 0s, width 0.3s, opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
.hoverable.cl-button-light:hover {
	background: rgba(255, 255, 255, 0.4);
}
.hoverable.cl-button-dark:hover {
	background: #0c71c3;
}
.hoverable:hover span {
	visibility: visible;
	opacity: 1;
	width: 30px;
}
.hover-row .hover-text {
	opacity: 0;
	transition: opacity 0.5s linear;
}
.hover-row > .et_pb_column:hover .hover-text {
	opacity: 1;
}
.hoverfill {
	position: relative;
}
.hoverfill-content {
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	align-items: stretch;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
.hoverfill:hover .hoverfill-content,
.hoverfill-content.dev {
	opacity: 1;
}

/* Magnific Youtube and Vimeo Buttons */
.youtube-button-container,
.vimeo-button-container {
	text-align: center;
}
.youtube-button-image,
.vimeo-button-image {
	position: relative;
}
.vimeo-button-size-thumb img {
	max-width: 320px;
}
.youtube-button-image > img,
.vimeo-button-image > img {
	border-radius: 5px;
	box-shadow: 0 0 18px 0 rgba(0, 0, 0, 0.3);
	display: block;
	margin: auto;
}
.youtube-button-icon,
.vimeo-button-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	font-size: 55px;
	filter: drop-shadow(0 0 4px #fff);
	color: #f00;
	margin-top: -27px;
	margin-left: -31px;
	z-index: 3;
}
.youtube-button-play-background {
	border-radius: 15px;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	height: 30px;
	background: #fff;
	margin-top: -15px;
	margin-left: -15px;
	z-index: 1;
}
.youtube-button-title,
.vimeo-button-title {
	font-size: 18px;
	padding-top: 10px;
}

/* Hide on mobile / desktop / tablet - Because the Divi version of it doesn't work */
@media (max-width: 767px) {
	.hide-on-mobile {
		display: none !important;
	}
}
@media (min-width: 768px) and (max-width: 980px) {
	.hide-on-tablet {
		display: none !important;
	}
}
@media (min-width: 981px) {
	.hide-on-desktop {
		display: none !important;
	}
}

/* Center username / password login boxes [protected] shortcode */
.et-protected {
	margin-left: auto !important;
	margin-right: auto !important;
}
body.logged-in .logged-out-only {
	display: none !important;
}
body.logged-out .logged-in-only {
	display: none !important;
}
