/*
 Theme Name:     Prokuntotarkastus
 Theme URI:      https://mark.granath.fi
 Description:    
 Author:         Mark Granath
 Author URI:     https://mark.granath.fi
 Template:       Divi
 Version:        1.0.49
*/
 
/* =Theme customization starts here
------------------------------------------------------- */

html, body, h1, h2, h3, h4 { hyphens: auto; }

h2 {
	margin-top: 1em;
	margin-bottom: 0.7em;
	font-size:21pt;
}

h3 {
	margin-top: 1em;
	margin-bottom: 0.5em;
	font-size:18pt;
}

.wp-block-table.hinnasto tbody {
	border: 2pt solid #fff;
}

.wp-block-table.hinnasto tbody tr td {
	border: 1pt solid #1b1919;
	padding: 1%;
	color: #1b1919;
}

.wp-block-table.hinnasto {
	padding-bottom: 2em;
}

ul, li {
	line-height: inherit !important;
}

.et_pb_contact_field_checkbox {
    float: left !important;
    padding-right: 2em !important;
}

.et-l--body ul li {
    margin-left: 1em;
}

.et_pb_button {
	line-height: 1.3em !important;
}

#firstbar a.et_pb_button:hover {
	padding-right: 1px !important;
	background: none !important;
}

.nav li ul {
    line-height: 1.5 !important;
}

.et_pb_module.et_pb_blog_grid_wrapper .more-link {
    position: absolute;
    bottom: 0.5em;
    width: 90%;
	text-align: right;
}
.et_pb_module.et_pb_blog_grid_wrapper .et_pb_post {
    position: relative;
}

.centerdiv {
	max-height: 50vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.et_builder_inner_content ul {
	margin-top: 1em;
}


.et_builder_inner_content ul li {
	margin-bottom: 1em;
}

@media (max-width: 767px) {
	h1 {
		font-size: 30px !important;
	}
}

.et_pb_section {
	background-color: #1b1919 !important;
}

input[type=text], input.text, input.title, textarea, select, input[type=submit] {
    margin: 0;
    padding: 1em;
    font-size: 10pt;
}

.wpcf7 input[type="url"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"] {
    direction: ltr;
    padding: 1em;
    font-size: 10pt;
}
input.hideradio{ /* HIDE RADIO */
    visibility: hidden; /* Makes input not-clickable */
    position: absolute; /* Remove input from document flow */
}
.imgradio label > input + img{ /* IMAGE STYLES */
    cursor:pointer;
    border:2px solid transparent;
}
.imgradio label > input:checked + img{ /* (RADIO CHECKED) IMAGE STYLES */
    border:4px solid #d303fc;
}

small, .pk-small {
    line-height: 1.2em;
    font-size: 75%;
}


/* PART 1 - Before Lazy Load */
img[data-lazyloaded]{
    opacity: 0;
}

/* PART 2 - Upon Lazy Load */
img.litespeed-loaded{
    -webkit-transition: opacity .5s linear 0.2s;
    -moz-transition: opacity .5s linear 0.2s;
    transition: opacity .5s linear 0.2s;
    opacity: 1;
}


/* Contact Form 7 */
.flexformfields {
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2em;
}

.wpcf7-radio, .wpcf7-checkbox {
	display: flex;
    flex-direction: column;
}

.wpcf7-date, .wpcf7-file {
    margin: 0;
    padding: 1em;
    font-size: 10pt;
    width: 24em;
}

.intend {
    margin: 0 2em;
}

.paragraph-after {
    margin-bottom: 2em;
}

.space-before {
    margin-top: 2em;
}