/* Have fun adding your style here :) - PS: At all times this file should contain a comment or a rule, otherwise opera might act buggy :( */

/* General Custom CSS */

.formulari .wpcf7-submit {
  background-color: #4e5053;
  font-size: 30px;
  border-radius: 10px;
  padding: 10px 30px 10px 30px;
  font-weight: bold;
	color: white;
	border: none;
	margin-bottom: 40px !important;
	cursor:pointer;
}
#results li{
	width: 32%;
	display: inline-block;
	border: 1px solid #883d1f;
	border-radius: 25px;
	margin: 5px 5px;
	height: 185px;
	padding: 15px;
}
#results li .company_logo{
	width:35%;
	vertical-align: top;
	padding-top: 25px;
}
#results li .company_info{
	/*width:60%;*/
	display: inline-block;
}
#results li .company_name{
	font-size: 18px;
	color: black;
	font-weight: bold;
	display: block;
	cursor: pointer;
}
#results li span{
	display:block;
}
.formulari .wpcf7-response-output{
	color: white;
	text-align: center;
}
#results h2{
	text-align:center;
}

.company_details{
    display: none;
}

#content_result{
	background: white;
margin-top: 10px;
padding: 20px;
}

#content_result li{
	width: 30%;
display: inline-block;
margin: 5px;
}

#content_result li .company_name{
	cursor: pointer;
	color: black;
	font-weight: bold;
	font-size: 14px;
}

#content_result li span{
	display:block;
}

#content_result li .company_info {
	font-size: 14px;
}

.resultimg{
	margin-left: 20px;
	width: 200px;
}

select#poblacio {
    margin: auto !important;
    height: 35px;
    border-radius: 0px !important;
    margin-bottom: 20px !important;
    color: #4e5053 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    width: 100%;
}

 /* Style the buttons that are used to open and close the accordion panel */
 #content_result .accordion {
	background-color: #eee;
	color: #444;
	cursor: pointer;
	padding: 18px;
	width: 100%;
	text-align: left;
	border: none;
	outline: none;
	transition: 0.4s;
  }
  
  /* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
  #content_result .active,#content_result .accordion:hover {
	background-color: #ccc;
  }
  
  /* Style the accordion panel. Note: hidden by default */
  #content_result .company_details {
	padding: 0 18px;
	background-color: white;
	display: none;
	overflow: hidden;
  } 

   /* The Modal (background) */
   #content_result .modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  #content_result .modal-content {
	background-color: #fefefe;
	margin: 15% auto; /* 15% from the top and centered */
	padding: 20px;
	border: 1px solid #888;
	width: 80%; /* Could be more or less, depending on screen size */
	font-size: 13px;
  }

  #content_result .modal-content a, #content_result .modal-content a:hover{
	color: #99202cba;
  }
  
  /* The Close Button */
  #content_result .close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
  }
  
  #content_result .close:hover,
  #content_result .close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
  } 



/*
Desktop Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the desktop view of your site */

@media only screen and (min-width: 768px) {
  /* Add your Desktop Styles here */

}



/*
Mobile Styles
================================================== */
/* Note: Add new css to the media query below that you want to only effect the Mobile and Tablet Portrait view */

@media only screen and (max-width: 767px) {
  /* Add your Mobile Styles here */
  #av_section_1 > div {
    max-height: 100% !important;
  }
  div#av_section_1 {
      background-position: top center;
  }
  #results li{
    width: 100%;
  }
  #results li .company_name {
    font-size: 14px;
  }
}