/*************************************************************************************
	form style
**************************************************************************************/


#stfb_content{
    display:flex;
    width:100%;
	align-items: start;
}

#stfb_content.stfb_content-error #stfb_form-filter
{
	display: none;
}

#stfb_content #stfb_form-filter {      
	display: flex;
	width:30%;
	margin:0 20px;
	padding:0;
	flex-direction: column;
	position: sticky;
	top: 60px;
}
@media screen and (max-width:980px){
	#stfb_content #stfb_form-filter { 
		top: 10px;
	}
}

@media screen and (max-width:953px){
    #stfb_content #stfb_form-filter{
     width:40%;
    }
}

@media screen and (max-width:770px){
    #stfb_content #stfb_form-filter{
     width:50%;
    }
}

@media screen and (max-width:650px),screen and (max-height:550px){
    #stfb_content{
    	flex-wrap:wrap;
    }
	#stfb_content #stfb_form-filter {   
		width: 50%;
		position:initial;
    	margin: 0 auto 30px auto;
	}
}

#stfb_content .stfb_tag-checkbox__label,
#stfb_content .stfb_tag-select {
	background: #fff;
	height: 60px;
	width: 100%;
	margin: 5px 0px;
	display: flex;
	align-items: center;
	justify-content: space-evenly;
	border-radius: 5px;
	cursor: pointer;
	border: 2px solid lightgrey;
	transition: all 0.3s ease;
	text-align:center;
	padding:5px;
}

@media screen and (max-width:650px){
	#stfb_content .stfb_tag-checkbox__label,
	#stfb_content .stfb_tag-select{
		height: 60px;
	}
}

#stfb_content input[type="checkbox"]{
	display: none;
}

#stfb_content .stfb_tag-checkbox__input[type=checkbox]:checked + label{
	border-color: #faa400;;
	background: #faa400;;
	color: #fff;
}

#stfb_content .stfb_tag-select.selected{
	border-color: #faa400;;
	background: #faa400;;
	color: #fff;
}

#stfb_content .stfb_tag-select.selected option {
	color: black;
	background: white;
}

#stfb_content .stfb_tag-checkbox__label span,
#stfb_content .stfb_tag-select {
	padding: 0 5px;
	font-size: 15px;
	color: #808080;
	text-align: center; 
	text-overflow:ellipsis;
}

#stfb_content  #stfb_main--loading-spinner{
	--size: 160px;

	border: 4px solid;
	border-color: #faa400 #000 #000;
 	border-radius: 50%;
	width: var(--size);
    height: var(--size);
	animation: spin 1s ease-in-out infinite;
	flex: 0 0 auto;
	position:absolute;
	left: calc(50% - var(--size) / 2);
	display:none;
}

/* Safari */
@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*************************************************************************************
	post style
**************************************************************************************/
#stfb_content #stfb_main{
	width: 100%;
	position:relative;
}
#stfb_content #stfb_main--posts-container{
	margin:auto;
	min-height: 25vh;
	display:flex;
	flex-wrap:wrap;
	justify-content: space-around;
	margin: auto;
	padding: 0;

}

#stfb_content .stfb_post{
	text-align:center; 
	width:30%; 
}



#stfb_content .stfb_post a img{
	border-radius: 9999px;
	border: 1px solid black;
	margin-top:20px;
}

#stfb_content .stfb_post a p:first-of-type{
	text-align: center!important;
	color:#aaa!important;;
}

#stfb_content .stfb_post p{
	text-align: left;
	color:#666!important;
}
@media screen and (max-width:953px){
   #stfb_content .stfb_post{
	width:42%; 
    }
}

@media screen and (max-width:420px){
	   #stfb_content .stfb_post{
		width:90%; 
    }
}


/* style texte cas pas de bénévole trouver*/
#stfb_form-filter .stfb_main--posts-container_display .error_no_element_box{
	width:100%;
	height:25vh;
	display:flex;
	justify-content:center;
	align-items:center
}

#stfb_form-filter .stfb_main--posts-container_display .error_no_element_box span{
	color:midnightblue;
	font-size:25px;
}



/* Tests accessibilité */

/* .stfb_tag-checkbox__input {
	display: block !important;
	clip: rect(0 0 0 0);
	clip-path: inset(100%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

select:focus,
.stfb_tag-checkbox__input:focus,
.stfb_tag-checkbox__input:focus + .stfb_tag-checkbox__label {
	outline: 10px solid red;
} */
