/*
Theme Name: Partidul DREPT template
Description: Divi Child Theme for Partidul DREPT website
Author: Bogdan
Template: Divi
Version: 1.0.18
*/

/* Add your custom styles here */

#tip_id {
	padding: 8px;
}

.content-candidati {
	background-color: #f4f4f4 !important;
}

.et_pb_candidati {
	margin-bottom: 2.75%;
	background-color: #ffffff;
	position: relative;
	overflow: hidden;
}

.et_pb_candidati .et_pb_bg_layout_light {
	display: list-item;
	float: left;
	margin-right: -100%;
	position: relative;
	width: 100%;
	text-align: center;
	padding: 3% 6%;
	list-style: none !important;
}
.et_pb_candidati .et_pb_container {
	width: 100%;
	margin: 0 auto;
	position: relative;
	z-index: 2;
}
.et_pb_candidati .et_pb_container_inner {
	display: table-row;
	width: 100%;
	vertical-align: middle;
}

.et_pb_candidati .et_pb_image {
	width: 47.25%;
	margin-right: 5.5%;
	display: table-cell;
}

.et_pb_candidati .et_pb_description {
	width: 47.25%;
	display: table-cell;
	padding: 0 4%;
	text-align: left;
	vertical-align: middle;
}

.et_pb_candidati .et_pb_description .et_pb_slide_title a {
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
	font-weight: 700;
	color: #110b49 !important;
	display: block;
}

.et_pb_candidati .et_pb_description .et_pb_slide_content {
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 300 !important;
	font-size: 15px;
}

.et_pb_candidati .et_pb_description .et_pb_button,
.et_pb_candidati_page a {
	color: #110b49 !important;
	border-color: RGBA(255, 255, 255, 0);
	font-size: 16px;
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif !important;
	font-weight: 600 !important;
	padding-right: 2em;
	padding-left: 0.7em;
	background-color: #fcec00;
}
.et_pb_candidati .et_pb_description .et_pb_button::after,
.et_pb_candidati_page a::after {
	content: attr(data-icon);
	color: #1bbfff;
	line-height: inherit;
	font-size: inherit !important;
	opacity: 1;
	margin-left: 0.3em;
	left: auto;
	font-family: ETmodules !important;
	font-weight: 400 !important;
}

.et_pb_candidati_page {
	margin: 15px 0;
	text-align: center;
}

@media (max-width: 770px) {
	.et_pb_candidati .et_pb_image {
		width: 100%;
		display: block;
	}
	.et_pb_candidati .et_pb_description {
		margin-top: 20px;
		width: 100%;
		display: block;
	}
}

/* Harta candidati */
.map-container {
	max-width: 1080px;
	margin: auto;
	position: relative;
}
.map-container svg {
	width: 100%;
	height: auto;
}
.map-container svg .county {
	cursor: pointer;
}
.map-container svg .county:hover path {
	fill: #1bbfff;
}
.map-container svg text {
	text-anchor: middle;
	fill: #ffffff;
	stroke-width: 0;
	font-size: 16px;
	font-weight: bold;
	font-family: 'Arial';
	opacity: 1;
}

.map-container #modal {
	display: none;
	z-index: 100001;
	background-color: #f4f4f4;
	padding: 30px;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 90vw;
	max-width: 1080px;
	max-height: 100vh;
	overflow-y: scroll;
	text-align: center;
	font-family: 'Poppins', Helvetica, Arial, Lucida, sans-serif;
}
.map-container #modal.active {
	display: block;
}
.map-container #modal #close-button {
	fill: #0f1729;
	width: 40px;
	height: 40px;
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
}
.map-container #modal #close-button:hover {
	fill: #2f3749;
	transform: scale(1.2);
}
.map-container #modal .title {
	text-align: left;
	font-weight: 700;
	font-size: 26px;
	line-height: 26px;
	color: #110b49;
	margin-bottom: 20px;
}
.map-container #modal .title a {
	margin-left: 40px;
	font-size: 18px;
}
.map-container #modal .modal-container {
	display: flex;
	justify-content: space-between;
	align-items: stretch;
	gap: 30px;
	padding: 0;
}
.map-container #modal .modal-container .candidate {
	flex: 1 1 50%;
	text-align: center;
	position: relative;
	background-color: #ffffff;
	padding: 30px;
	white-space-collapse: collapse;
	font-size: 0;
}
.map-container #modal .modal-container img {
	width: 100%;
	height: 220px;
	object-fit: contain;
}
.map-container #modal .modal-container .name {
	display: inline-block;
	font-weight: 700;
	font-size: 46px;
	line-height: 46px;
	color: #110b49;
	margin-top: 5px;
}
.map-container #modal .modal-container .profile-button {
	display: inline-block;
	color: #110b49;
	font-size: 16px;
	line-height: 16px;
	font-weight: 600;
	text-decoration: none;
	background-color: #fcec00;
	padding: 0.7em 2em;
	margin-top: 20px;
}

@media (max-width: 770px) {
	.map-container #modal {
		left: 0;
		top: 0;
		transform: none;
		width: 100%;
	}
	.map-container #modal .modal-container {
		flex-direction: column;
	}
	.map-container #modal .modal-container img {
		height: auto;
	}
	.map-container #modal .modal-container .name {
		font-size: 32px;
		line-height: 32px;
	}
	
}

@media (max-width: 500px) {
	body.category-candidati .et_pb_candidati .et_pb_container_inner {
	    display: block !important;
	}
}

.boxbg1 { 
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background-image: url('img/1.back.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.candidatImg {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.boxbg3 {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-image: url('img/3.hover.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.linkjudet {
    color: #2ea3f2;
}


.map-container.style2 svg .county:hover path {
	fill: #1bbfff !important;
}
.map-container.style2 svg text {
	fill: #171349 !important;
}

.map-container.style2 svg text.cnt {
	font-size: 18px;
}
.map-container.style2 svg text.cnt.red {
	/*fill: #AA0000 !important;*/
}

.map-container.style2 svg .county:hover text.cnt {
	font-size: 22px;
}



