/*
Theme Name: Floyd Simple Divi
Theme URI: http://floydandfriends.se
Description: Floyd Floyd Floyd!
Version: 1.0
Template: Divi
*/


/** FLOYD **/

body {
    background-color: white;
    font-size: 15px;
    min-width: 320px;
	line-height:1.4em !important;
}

a {
    text-decoration: underline !important;
}

a:hover {
    text-decoration: none !important;
}

#top-menu a {
    text-decoration: none !important;
}

#top-menu a:hover {
    color: #c4f9c5 !important;
}

h1,
h2,
h3,
h4 {
    font-weight: 400 !important;
    margin-top: 0px;
    text-transform: uppercase;
	margin-bottom: 0.5em !important;
}

h1 a,
h2 a,
h3 a,
h4 a,
a h1,
a h2,
a h3,
a h4 {
    text-decoration: none !important;
}

h2.widgettitle {
    font-size: 24px;
}

p {
    margin-bottom: 0.5em !important;
}

h1 {
    font-size: 2em !important;
}

h2 {
    font-size: 1.625em;
}

h3 {
    font-size: 1.125em;
}

h4 {
    font-size: 1em;
}

h5 {
    font-size: .95em;
}

h6 {
    font-size: .85em;
	text-transform: uppercase;
}

.blog-front {
    color: black !important;
}

.et_pb_bg_layout_light .et_pb_post .post-meta,
.et_pb_bg_layout_light .et_pb_portfolio_item .post-meta,
.et_pb_bg_layout_light .et_pb_post .post-meta a,
.et_pb_bg_layout_light .et_pb_portfolio_item .post-meta a,
.et_pb_bg_layout_light .et_pb_post p,
.et_pb_bg_layout_light p.et_pb_title_meta_container,
.et_pb_bg_layout_light p.et_pb_title_meta_container a {
    color: #222;
}

.law {
    text-align: right;
    text-decoration: none !important;
    font-weight: bold !important;
    color: #fff !important;
}

.et_pb_column {
    margin-bottom: 30px;
}

.face-row {
    margin-top: 44px;
}

.profile-card {
    position: absolute;
    margin-top: -180px;
}

.mobile_menu_bar:before {
    color: white;
}
.et_mobile_menu {
   border-color: white !important;
}
.profile-row {
    min-height: 400px;
}

.profile-card ~ .et_pb_text {
    padding-top: 50px;
}

#main-header {
    min-width: 320px;
}

.et_pb_post .entry-title {
    margin-top: 0;
}


.c-page-banner .et_pb_fullwidth_header_container,
.c-page-banner .header-content {
    width: 100% !important;
}

.face-card {
	max-width: 510px;
	width: 48%;
	flex: 0 1 48%;
	margin-bottom: inherit !important;
}

.et_pb_row .et_pb_column .face-card.face-card--mode {
	background-position-x: inherit;
}

/* .page-id-17 .et_pb_section_0.et_pb_section p a {
    color: #fff;
} */

.u-text-style-custom {
	text-align: center !important;
}

.u-text-style-custom > a {
	margin-right: 5px;
	margin-left: 5px;
}

@media screen and (min-width: 1400px) {
    .profile-row {
        min-height: 700px;
    }
}

@media (max-width: 980px) {
    h1.entry-title {
        font-size: 1.8em !important;
    }

    .et_pb_section {
        padding: 0px 0px;
    }
    p {
        line-height: 1.5em !important;
    }
    .face-row {
        margin-top: 80px;
    }

    /** Pigment Tweaks */
    #main-header {
        position: absolute;
    }

    #main-header .container {
        position: static;
    }

    .et_header_style_left .logo_container {
        left: 0;
        top: 0;
        padding-left: 10%;
    }

    #main-header #et-top-navigation {
        padding-top: 20px;
    }

    #main-header .mobile_menu_bar {
        padding-bottom: 20px;
    }

    #mobile_menu {
        padding: 20px 10%;
    }

    #mobile_menu li a {
        padding: 8px 0;
        text-decoration: none !important;
    }

    #mobile_menu .sub-menu {
        display: block !important;
        max-height: 0;
        overflow: hidden;
    }

    #mobile_menu li:hover > .sub-menu {
        max-height: 1000px;
    }

    #mobile_menu .sub-menu li a {
        padding: 4px 0;
    }

    #mobile_menu li li {
        padding-left: 2%;
    }

    .et_pb_fullwidth_section .header-content > img {
        margin-bottom: 20px;
    }

    .et_pb_fullwidth_section .header-content > h3 {
        font-size: 1.3em;
        line-height: 1.4;
        text-transform: none;
    }

    .link-buttons .et_pb_row {
        padding: 0;
    }

    .link-buttons .et_pb_row .et_pb_column {
        padding: 0;
        margin-bottom: 20px;
    }

    .et_pb_equal_columns .et_pb_column .et_pb_text {
        overflow: hidden;
        margin-bottom: 0;
    }

    .et_pb_equal_columns .et_pb_text p {
        margin-bottom: 10px;
    }

    .post h2.entry-title,
    .entry-content .et_pb_text h4,
    .link-buttons .et_pb_text h4 {
        font-weight: 700 !important;
        text-transform: none;
    }

    .et_pb_section_5 .et_pb_row_4 {
        padding-bottom: 0;
    }

    .et_pb_section_5 .et_pb_row_4 .et_pb_column {
        margin-bottom: 0;
    }

    .et_pb_row_6 .et_pb_column {
        float: none;
        margin: 0 -1% !important;
        width: auto !important;
        overflow: hidden;
    }

    .et_pb_row_6:last-child .et_pb_column:last-child {
        margin-right: -1% !important;
    }

    .et_pb_row .et_pb_column .face-card {
        width: 48%;
	    flex-basis: 48%;
        margin: 0 1% 15px;
        background-repeat: no-repeat;
        background-position: right top !important;
    }

    .et_pb_row .et_pb_column .face-card.face-card--mode {
        background-position-x: center !important;
    }

    .face-card .email {
        display: inline-block;
        vertical-align: top;
        font-size: 0;
        line-height: 0;
        text-decoration: none !important;
    }

    .face-card .email:before {
        content: "\e076";
        font-size: 16px;
        font-family: "ETmodules" !important;
        line-height: 1;
    }

    .entry-content .et_pb_column {
        margin-bottom: 0;
    }

    .page .et_pb_row_1 {
        padding-top: 0;
    }

    #left-area .post-meta {
        padding-bottom: 0;
    }

    .entry-content p {
        padding-bottom: 0;
    }

    .pagination {
        padding-bottom: 10px;
    }

    .widget_archive ul li {
        margin-bottom: 0;
    }

    .type-page .et_pb_row_2 {
        padding-top: 0;
    }

    .et_pb_fullwidth_header:not(.et_pb_fullwidth_header_0) {
        min-height: 0 !important;
        height: 400px;
    }

    #main-content .container {
        padding-top: 30px;
    }

    .profile-card ~ .et_pb_text {
        padding-top: 10px;
    }
}

/** Pigment Tweaks */
@media (max-width: 768px) {
    .et_pb_row_6 .et_pb_column {
        margin-bottom: 15px !important;
    }

    .et_pb_row .et_pb_column .face-card {
        width: 100%;
		max-width: 100%;
		flex-basis: 100%;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
		margin-right: 0;
        margin-bottom: 15px !important;
		margin-left: 0;
    }

    .et_pb_section_7 .et_pb_column .et_pb_posts,
    .et_pb_section_7 .et_pb_column .et_pb_posts .et_pb_post {
        margin-bottom: 0;
    }

    .et_pb_column .et_pb_text p,
    .et_pb_posts .format-standard .post-content p {
        padding-bottom: 0;
    }

    #footer-widgets .footer-widget:last-child {
        margin-bottom: 0 !important;
    }

    #footer-bottom {
        padding-top: 10px;
    }

    .page-id-9 .et_pb_section_0 .et_pb_column_1 {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 568px) {
    p {
        text-align: left !important;
    }

    .profile-card {
        position: relative;
        margin-top: 0;
    }

    .profile-card ~ .et_pb_text {
        padding-top: 0;
    }

    .profile-row {
        min-height: 400px;
    }
}

@media screen and (max-width: 470px) {
    .face-card {
        background-position: -100px !important;
    }
    #main-header .et_mobile_menu li ul, .et_pb_fullwidth_menu .et_mobile_menu li ul.sub-menu {
        display: none !important;
    }

}

@media (max-width: 480px) {
    .et_pb_row,
    .container {
        width: 90%;
    }

    .et_header_style_left .logo_container {
        padding-left: 5%;
    }

    .et_pb_fullwidth_header .et_pb_fullwidth_header_container.center .header-content {
        width: 100%;
    }

    .et_pb_fullscreen .et_pb_fullwidth_header_container {
        width: 90%;
    }

    .et_pb_fullwidth_section .header-content > img {
        margin-bottom: 15px;
    }

    .et_pb_fullwidth_section .header-content > h3 {
        font-size: 1.2em;
    }

    #main-header #et-top-navigation {
        padding-top: 15px;
    }

    #main-header .mobile_menu_bar {
        padding-bottom: 15px;
    }
	
/* 	.profile-row--alexandra,
	.profile-row--karin {
        background-position-x: -600px !important;
    }
	
	.profile-row--christina,
	.profile-row--isabella,
	.profile-row--camilla {
        background-position-x: -560px !important;
    }
	
	.profile-row--anna,
	.profile-row--johan {
		background-position-x: -530px !important;
	} */
}


/* Map on contact page */
.container--map {
    padding-top: 0 !important;
    padding-bottom: 100px;
}

.container--map::before {
    display: none;
}

.acf-map {
    position: relative;
	width: 100%;
	height: 440px;
}

/* fixes potential theme css conflict */
.acf-map img {
    max-width: inherit !important;
}


/* Setting the breakpoint of the mobile menu */
@media only screen and ( max-width: 1271px ) {
    #top-menu-nav, #top-menu { display: none; }
    #et_top_search { display: none; }
    #et_mobile_nav_menu { display: block; }
}

/* Widget nav menu */
.widget_nav_menu .menu {
    list-style-type: none;
}

.widget_nav_menu .menu li {
    padding-left: 0;
    margin-left: 0;
    font-weight: bold;
}


.widget_nav_menu .menu li::before {
    display: none;
}

.widget_nav_menu .menu li a {
    text-decoration: none !important;
}


.entry-content .et_pb_fullwidth_section .et_pb_fullwidth_header {
    min-height: 203px;
}

@media (min-width: 981px) {
    .entry-content .et_pb_fullwidth_section .et_pb_fullwidth_header {
        min-height: 374px;
    }
}