/*
Theme Name: Impreza Child
Template: Impreza
Version: 1.0
Author:	UpSolution
Theme URI: http://impreza.us-themes.com/
Author URI: http://us-themes.com/
*/

/*Add your own styles here:*/


/* HEADER */
.current-lang, .wpml-ls-current-language {
	font-weight: bold;
}
.menu-item:not(.level_1) {
    text-transform: none !important;
}

.l-header.pos_fixed {
    z-index: 99999;
}

/* HOME */

.mapaAside {
    margin-bottom: 2rem!important;
    padding-top: 3rem!important;
    padding-bottom: 3rem!important;
    background: url(https://www.northafricatrees.org/wp-content/uploads/2020/10/bg-maps.jpg) no-repeat top center / cover!important;
}

.aside {
	padding-left: 2.5rem!important;
    padding-right: 2.5rem!important;
    background: #fff2e4!important;
}

.title-home strong {
	font-size: 4rem;
}

.title-home {
	font-size: 3.5rem;
}

.subtitle-home {
	font-size: 1.5rem;
    line-height: 1;
}

h2 strong {
	font-weight: 400;
}

/*NOTICIAS*/

.noticias-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #185c29;
}

/*GALERÍAS*/

 a.w-gallery-item > div.w-gallery-item-meta > div.w-gallery-item-title {
	font-size: 0.8rem;
}
.w-gallery-item-description {
	display: none;
}

/* GENERAL */
h1, h2, h3, h4, h5, h6 {
	padding-top: 0.5rem;	
}
p, ul, ol, dl, address, pre, table, blockquote, fieldset {
    margin-bottom: 1rem;
}

.wpb_text_column a {
	text-decoration: underline;
}

.no-touch .us-btn-style_1.active {
    box-shadow: 0 0em 0em rgba(0,0,0,0.2);
    background: #0b3e18;
    border-color: transparent;
    color: #ffffff !important;
}

.l-main .aligncenter {
    max-width: 100% !important;
}

p.tab {
	position: relative;
	padding: 0 10rem 0 30px;
	margin-bottom: 0.1rem;
}
p.tab:before {
	content: '';
	position: absolute;
	left: 0;
	bottom: .4rem;
	width: 100%;
	height: 0;
	line-height: 0;
	border-bottom: 2px dotted #484848
}
p.tab span.description {
	display: inline;
	z-index: 1;
	padding-right: .2rem;
	position: relative;
	background: #ffffff;
}
p.tab span.num {
	position: absolute;
	min-width: 30px;
	top: 0;
	left: 0;
	padding-right: .2rem;
	text-align: left;
	z-index: 2;	
	background: #ffffff;
	display: inline-block;
	height: 100%;
}
p.tab span.word {
	position: absolute;
	bottom: 0;
	right: 0;
	padding-left: .2rem;
	text-align: right;
	z-index: 2;	
	background: #ffffff;
}

.search-results #us_grid_0 .w-grid-item {
    padding: 0;
    margin-bottom: 0.5rem;
}
.search-results #us_grid_0 .w-grid-item h2 a {
	color: #185c29 !important;
}
.search-results .cols_2 > div[class*="list"] > * {
    width: 33.33%;
}
.pagination > :not(.custom) .page-numbers {
    font-size: 1rem;
    line-height: 2.5rem;
    height: 2.5rem;
    width: 2.5rem;
}

.vc_custom_heading > a {
	color: #185c29 !important;
}

.listaNews {
	max-height: 250px;
    overflow: auto;
    padding-right: 1rem;
	min-height: 230px;
}

.listaNews > div.w-grid-list > article.w-grid-item > div.w-grid-item-h > div.w-hwrapper {
    justify-content: space-between;
}

/* GLOSARIO */

#glossary-text .wpb_wrapper p {
	margin-bottom: 0.1rem;
	margin-left: 2em;
	text-indent: -2em;
}


/* BIBLIOGRAFÍA */

.w-tabs-section-content .wpb_wrapper p {	
	margin-left: 2em;
	text-indent: -2em;
	margin-bottom: 0.1rem;
}

/* FAMILIAS */
.families-tabs {
	margin-bottom: 1.5rem;
}
.families-content .families-list {
	column-count: 3;
}
.families-content .families-list .family-item {
	width: 100%;
	max-width: 100%;
	margin-bottom: 0.5rem;
	padding: 0 1rem;
}
.families-content .families-list .family-item .family-title {
	color: #185c29;
	max-width: 100%;
	padding: 0 0.5rem;
	line-height: 1.2;
	font-size: 15px;
	display: flex;
	align-items: flex-end;
}
.families-content .families-list .family-item .family-short {
	font-size: 16px;
	padding: 0.5rem;
	color: #484848;
	line-height: 1.2;
}
.families-content .families-list .family-item a {
	text-decoration: none;
}

.genuses-content {
	margin-top: 1rem;
}

/* ESPECIES */
.specie-content h1 {
	margin-bottom: 0;
}
.specie-content .subtitle {
	display: block;
	margin-bottom: 1rem;
	font-size: 1rem;
}
.specie-content .subtitle p:first-child {
	margin-bottom: 0;
	margin-top: 0 !important;
}
.specie-content .subtitle p:last-child {
	margin-top: 0.5rem;
}
.specie-content .container {
	margin-bottom: 1rem;
}
.specie-content .container h2 {
	margin: 0 !important;
	font-size: 1rem !important;
	display: inline;
}
.specie-content .container p {
	display: inline;
}

div.specie-content > div.container:not(:nth-child(5)) {
     display: grid;
}

/* GÉNERO */
#family-reference p,
#genus-reference p {
	margin-left: 2em;
	text-indent: -2em;
	margin-bottom: 0.1rem;
}
.species-content {
	margin-top: 1rem;
}

/* BUSCADOR MAPA */
#searcher-map {
	margin: 0;
}
#searcher-map .species-container .vc_column-inner {
	padding: 3rem 1.5rem;
}
#searcher-map .map-container .vc_column-inner {
	padding: 0;
}
.logged-in #searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
    top: 132px;
}
.logged-in #searcher-map div#map {
	height: calc(100vh - 132px);
}
#searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
    top: 100px;
}
#searcher-map div#map {
	height: calc(100vh - 100px);
}
#searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
    top: 100px;
}
#searcher-map div#map {
	height: calc(100vh - 100px);
}
#searcher-map .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    font-size: 1.3rem;
    height: 100vh;
    position: fixed;
    flex-direction: column;
    top: 0;
    left: 0;
    background: rgba(255,255,255,0.6);
    z-index: 9;
}

.loader-container {
	display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: white;
    padding: 1rem;
	box-shadow: 0px 1px 20px 0px #00000014;
}

#searcher-map .map-container .map-block {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ffffff;
    z-index: 9999;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 16px;
    padding: 0.5rem;
    border-radius: 3px;
    text-align: center;	
	font-size: 18px;
}
#searcher-map .map-container .buttons-container {
	display: flex;
	justify-content: center;
	align-items: center;
}
#searcher-map .map-container .messages-container #drawMessage {
	padding-top: 10px;
	display: inline-block;
}
#searcher-map .map-container .buttons-container button {
	background-color: #0b3e18;
	font-size: 18px;
	margin: 0 5px;
}
#searcher-map .map-container .buttons-container button i {
	margin-right: 5px;
}
#searcher-map .map-container .buttons-container #deleteBtn {
	background-color: #d64541;
}

#searcher-map #species-list-searcher {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: flex-start;
	margin: 0 -1rem;
}
#searcher-map #species-list-searcher .specie-item {
	width: 50%;
	max-width: 50%;
	flex: 1 1 auto;
	padding: 0 1rem;
	margin-bottom: 0.5rem;
}
#searcher-map #species-list-searcher .specie-item .specie-title {
	font-weight: 500;
	color: #185c29;
	max-width: 100%;
	line-height: 1.2;
	font-size: 15px;
	padding: 0 0.5rem;
}
#searcher-map #species-list-searcher .specie-item a {
	text-decoration: none;
}

/* GALLERY */
.images-content .w-image-title {
	line-height: 1.2;
    font-size: 0.75rem;
    margin: 0 auto 1rem auto;
	max-width: 340px;
	padding-top: 0.25rem;
	text-align: left;
}
.images-content .w-image-meta {	
	padding-top: 0 !important;
}
.images-content img {
	width: 340px;
}
.mfp-bg {
    z-index: 999999;
}
.mfp-wrap {
    z-index: 999999;
}

/* CONTACTO */
input:not([type="submit"]) {
	min-height: 1.7rem !important;
	line-height: 1.7rem !important;
	padding: 0 0.8rem !important;
}
.wpcf7-textarea {
	height: 300px;
	resize: none;
}
.contactForm > div, label {
	margin-bottom: 0.2rem !important;
}

/*SPECIES LOADER*/


.skeleton-box {
	display: inline-block;
	height: 1em;
	position: relative;
	overflow: hidden;
	background-color: #DDDBDD;
	width: 300px;
	max-width: 300px;
  }

  .o-media__figure > .skeleton-box {
	height: 280px;
  }
  .skeleton-box::after {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	transform: translateX(-100%);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
	-webkit-animation: shimmer 2s infinite;
			animation: shimmer 2s infinite;
	content: "";
  }
  @-webkit-keyframes shimmer {
	100% {
	  transform: translateX(100%);
	}
  }
  @keyframes shimmer {
	100% {
	  transform: translateX(100%);
	}
  }
  
  .blog-post__headline {
	font-size: 1.25em;
	font-weight: bold;
  }
  .blog-post__meta {
	font-size: 0.85em;
	color: #6b6b6b;
  }
  
  .o-media {
	display: flex;
	flex-direction: column;
	align-items: center;
  }
  .o-media__body {
	flex-grow: 1;
  }
  
  .o-vertical-spacing > * + * {
	margin-top: 0.75em;
  }
  .o-vertical-spacing--l > * + * {
	margin-top: 2em;
  }
  

.floracion {
	display: block !important;
}

@media screen and (max-width: 1370px) {
	.families-content .families-list {
		column-count: 2;
	}
}

/************************************************************************************
smaller than 1266px
*************************************************************************************/
@media screen and (max-width: 1266px) {
	
	body h1.title-home {
		font-size: 1.7rem !important;
	}
	.title-home strong {
		font-size: 4.8rem;
	}
	
	body .aside {
		padding-left: 1.5rem !important;
		padding-right: 1.5rem !important;
	}
	
	.families-content .families-list {
		column-count: 2;
	}
	
	.logged-in #searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
		top: 112px;
	}
	#searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
		top: 80px;
	}
	.logged-in #searcher-map div#map {
		height: calc(100vh - 112px);
	}
	#searcher-map div#map {
		height: calc(100vh - 80px);
	}
	
}


/************************************************************************************
smaller than 991px
*************************************************************************************/
@media screen and (max-width: 991px) {
	
	p.tab {
		padding: 0 5rem 0 30px;
	}
	
	.families-tabslinks {
		font-size: 15px !important;
		margin: 0.2rem !important;
	}
	
	#map {
		height: 300px !important;
	}
	#searcher-map #map {
		height: 450px !important;
	}
	#searcher-map {
		flex-direction: column-reverse;
	}
	#searcher-map .map-container .map-block {
    	top: 90px;
		width: 254px;
		padding: 0.25rem 0.5rem;
	}
	#searcher-map .map-container .buttons-container button {
		font-size: 15px;
		margin: 5px 0;
		width: 100%;
	}
	#searcher-map .map-container .buttons-container {
		flex-direction: column;
	}
	#searcher-map .map-container .messages-container #drawMessage {
		font-size: 14px;
		line-height: 1.2;
		padding-top: 0px;
	}
	
	footer .w-hwrapper.align_right {
		justify-content: center;
	}

	.w-popup-trigger {
		font-size: 0.9rem !important;
	}
}

/************************************************************************************
smaller than 768px
*************************************************************************************/
@media screen and (max-width: 768px) {
	
	div.glossary-searcher #clearSearch {
		font-size: 28px !important;
		top: 0.2rem;
		padding: 0.05rem 0.75rem;
	}
	
}

/************************************************************************************
smaller than 599px
*************************************************************************************/
@media screen and (max-width: 599px) {
	
	body h1.title-home {
		font-size: 1.2rem !important;
	}
	.title-home strong {
		font-size: 2.8rem;
	}
	
	.families-content .families-list {
		column-count: 1;
	}
		
	#searcher-map #species-list-searcher .specie-item {
		width: 100%;
		max-width: 100%;
	}
	
	.logged-in #searcher-map .vc_column-inner.type_sticky > .wpb_wrapper,
	#searcher-map .vc_column-inner.type_sticky > .wpb_wrapper {
		top: 50px;
	}
	.logged-in #searcher-map div#map,
	#searcher-map div#map {
		height: calc(100vh - 50px);
	}
	#searcher-map .map-container .map-block {
		top: 60px;
	}
	
}