/* 
Theme Name:		 Harford Mutual
Author:			 Main St. Design
Author URI:		 https://www.mainstdesign.net
Template:		 kadence
Version:		 1.0.0
Text Domain:		 harford-mutual
*/
@import url("https://use.typekit.net/mvm6mcp.css");

.hmhero {
    display:flex;
}
.hmhero > div {
    flex:1;
}
.slidenav {
    align-self:center;
    text-align:right;
}
.slidenav a {
    text-decoration: none;
    font-size:14px;
    font-weight:600;
    margin-bottom:2em;    
    display:block;    
    text-align: right;    
    float:right;
    max-width:250px;
    clear:both;
    position: relative;
    
}
.slidenav a:first-of-type::after {
    transition:none;
}
.slidenav a::after {
    content:'';
    color:#BF5127;
    transition: top 1s;
    position: absolute; top:-90px; right:-30px;
}
.slidenav a.cycle-pager-active::after {
    content:'\25C4';    
    position: absolute; top:-5px; right:-30px;
    font-size:30px;    
}

.slidenav a .anum {
    color:#AD8924;
    font-size:44px;
    display:block;
    font-weight:100;
    line-height:.9em;
}
.hmslider {
    position:relative;
    clear:both;
    min-height:680px;   
    max-width:500px;
}
.hmslider .slide {
    max-width:400px;
    max-height:400px;
	visibility:hidden;
}
.hmslider h2::before {
    content:'\25BA';    
    color:#BF5127;
    position: absolute; top:-30px; left:0;
    font-size:30px;  
}

#alertwrap {
	background-color:#bf5127;
	color:#FFF;
	text-align:left;
	padding:10px;
	display:none;    
}
#alertwrap hr {
	border:none;
	height:1px;
	background-color:#fff;
    margin:15px auto;
}
#alertwrap #inneralert hr:last-child {
	display:none;
}
.alert {
	background-image:url(alert-yellow.png);
	background-position:left center;
	background-repeat:no-repeat;
	background-size:18px 18px;
	padding-left:30px;
	padding-right:30px;
	display:inline-block;
	text-transform:uppercase;
	font-size:15px;
	text-align:left;
}
.alert span {
	color:#FFB000;
	font-weight:bold;
}
#inneralert {
	max-width:900px;
	margin:0 auto;
	position:relative;
}
#closealert {
	position:absolute;
	top:0px; right: 0px;
	cursor:pointer;
}
.alert-content {
	margin:10px auto;
	text-align:left;
	font-size:15px;
}
.alert-content a {
	color:#FFF!important;
}
.acf-map {
    width: 100%;
    height: 500px;
    border: #ccc solid 1px;
    margin: 0;
}
// Fixes potential theme css conflict.
.acf-map img {
   max-width: inherit !important;
}
#mapbox #sidebar {
	overflow-y:scroll;
	flex:1;
	max-height:500px;
}
#zipform {
	line-height:3em;
}

.diamond {          
    width:500px;
    height:500px;     
    transform:rotate(45deg);
    display:block;	
    position:absolute;
    top:0;right:0;left:0;bottom:0;
    margin:auto;
    z-index:-1;
}

.diamond::before {
    content: "";
    position: absolute;    
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    background: transparent;
    border: 5px solid transparent;
    animation: animate 1s linear forwards;
}
 
 
@keyframes animate {
    0% {
        width: 0;
        height: 0;
        border-top-color: #AD8924;
        border-right-color: transparent;
        border-bottom-color: transparent;
        border-left-color: transparent;
}

    50% {
        width: 100%;
        height: 0;
        border-top-color: #AD8924;
        border-right-color: #AD8924;
        border-bottom-color: transparent;
        border-left-color: transparent;
}
    100% {
        width: 100%;
        height: 100%;
        border-top-color: #AD8924;
        border-right-color: #AD8924;
        border-bottom-color: transparent;
        border-left-color: transparent;
}
}
 
.diamond::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    background: transparent;
    border: 5px solid transparent;            
    animation: animates 1s linear 1s forwards;
}

@keyframes animates {
    0% {
        width: 0;
        height: 0;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #AD8924;
        border-left-color: transparent;
}
    50% {
        width: 100%;
        height: 0;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #AD8924;
        border-left-color: #AD8924;
      }
    100% {
        width: 100%;
        height: 100%;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: #AD8924;
        border-left-color: #AD8924;
    }
}
.homebtn {
	overflow:hidden;
}
.homebtn h2 {
	z-index:5;
}
.homebtn > div {
	transition:all 0.5s ease;
}
.homebtn > div:hover   {
	transform:scale(1.1);
}

.home .wp-block-cover {
	transition:all 0.5s ease;
	overflow:hidden;
}
.home .kb-section-has-link .wp-block-cover span {
	transition:all 0.5s ease;
	opacity:.89!important;
}

.home .kb-section-has-link a:hover + .wp-block-cover span {
	opacity:.6!important;
}
.home .wp-block-cover p {
	transition:all 0.5s ease;
	font-size:32px!important;
	text-decoration:underline;
	text-decoration-color:transparent;
}
.home .kb-section-has-link:hover p {
	text-decoration:underline;
	text-decoration-color:#FFF;
}
.home .kb-section-has-link {
	overflow:hidden;
}
.home .kb-section-has-link .kt-inside-inner-col, .home .kb-section-has-link .kt-inside-inner-col p {
	transition:all 0.5s ease;	
}
.home .kb-section-has-link:hover .kt-inside-inner-col {
	transform:scale(1.1);
}
.home .kb-section-has-link:hover .kt-inside-inner-col p {
	/*transform:scale(0.9);*/
}

.home .kt-row-layout-row.kt-v-gutter-default > .wp-block-kadence-column {
    margin-bottom: 0px!important;
}
.home .kt-mobile-layout-row.kt-v-gutter-default>.wp-block-kadence-column {
	margin-bottom: 0px!important;
}
@media only screen and (max-width: 800px) {
	.hmslider {		
		min-height:400px;		
	}
	.hmslider h2 {
		font-size:20px;
	}
	.slidenav a .atitle {
		display:none;		
	}
	.slidenav a .anum {
		font-size:32px;
	}
	.hmhero > div {
		flex:3;
	}
	.slidenav {
		flex:1!important;
	}
	.hmhero .diamond {
		display:none;
	}
	.home .wp-block-cover p {	
		font-size:16px!important;	
	}
	.home .wp-block-cover {
		min-height:100px!important;
	}
    #mapbox {
        flex-direction:column-reverse;
    }
  }