
*,
*::before,
*::after{
	margin:0;
	padding: 0;
	box-sizing: border-box;
}

html,body,textarea,form,input,button,select,option{
	font-family:Arial, sans-serif;
	font-size: 20px;
}

/*  sticky  footer  this  2 rules */
body{
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex-grow: 1;
}


ul{
	list-style-type:none;
}
a{
	text-decoration: none;
}

.topbar{
	height: 60px;
	background-color: #f71d7f;
}

.center{
	max-width: 360px;
	margin: 0 auto;
	padding: 0 4px;
}

.topbar__flex{
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 60px;
}

.topbar__logo {
	font-size: 40px;
	color: #FFFFFF;
}

.topbar__post__button {
	color: #FFFFFF;
	font-size: 25px;
	background-color: #5CB85C;
	padding: 6px;
	border-radius: 6px;
}







.auth__flex{
	display: flex;
	width: 300px;
	justify-content: space-between;
	margin: 20px 0;
}

.auth__profile__button,
.auth__logout__button{
	color: white;
	padding: 10px;
	border-radius: 10px;
	font-size: 20px;
}

.auth__profile__button{
	background-color: 	#6bbde5;
}

.auth__logout__button{
	background-color: red;
}




main{
	margin-top: 20px;
}

.state{
	text-align: center;
	margin-bottom: 10px;
	font-size: 22px;
}
.state__name{
	background-color:#a24bfd;
	display: block;
	color: #FFFFFF;
	border-radius: 5px;
	cursor: pointer;
	padding: 6px 0;

}

.city{
	display: none;
}
.city.active{
	display: block;
}

.city__name{
	display: block;
	color: #000000;
	padding: 6px 0;
}
.city__name:hover{
	color: #f71d7f;
	font-weight: bold;
}

.city-link:hover{
	font-weight: bold;
}

.auth__text {
	font-size: 20px;
	margin-top: 20px;
	margin-bottom: 30px; 
}

.auth__text a:link,
.auth__text a:visited{
	color:red;
	font-weight: bold;
	text-decoration: underline;
}

.register-wrapper{
	margin-bottom: 30px;
}

.auth_label, .auth_input {
	display: block;
}

.auth_input{
	width: 100%;
	height: 40px;
	border: 2px solid black;
}

.auth_button{
	background-color: #5CB85C;
	color: white;
	width: 100%;
	padding: 10px 0;
}


.auth_error{
	color:red;
	font-size: 14px;
}

.error{
	color:red;
	margin: 20px 0;
}






textarea{
	width: 100%;
	height: 200px;
	resize: none;
}

select{
	width: 100%;
	padding: 6px;
	display: block;
}

.state-select option{
	padding: 5px;
}

#images{
	display: none;
}
.load_image_container{
	display: flex;
	align-items: center;
	width: 220px;
	margin-bottom: 10px;
	justify-content: space-between;
}
.loaded_images{
	margin-top: 10px;
}

.loaded_images button{
	padding: 4px;
	background-color: red;
	color: white;
}
.load_image{
	width: 150px;
	height: 150px;
	object-fit: fill;
	background-color: black;
}

.images__button{
	display: block;
	background-color: #6bbde5;
	padding: 6px;
	color: white;
	font-size: 18px;
	border-radius: 6px;
}

.location_title{
	font-size: 26px;
	text-align: center;
	margin-bottom: 30px;
}

.selected_location_wrapper{
	margin: 30px 0;
}

footer{
	background-color: #f71d7f;
	height: 60px;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #FFFFFF;
}


.ads_location_wrapper{
	display: flex;
	justify-content: space-around;
	margin-bottom: 10px;
}
.ads_location_wrapper span{
	background-color: #a24bfd;
	padding: 6px;
	border-radius: 6px;
	color: white;
	font-weight: bold;
}
.ad__wrapper{
	margin-bottom: 20px;
	display: flex;
	height: 150px;
	background-color: #c2c2c2;
}
.ad__wrapper span{
	font-weight:bold;
}

.ad__wrapper img{
	width: 150px;
	height: 150px;
	object-fit: fill;
	background-color: black;
}
.ad__info{
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding-left: 4px;
}
.post{
	font-size: 20px;
	padding: 0 8px;
}

.post .title{
	font-size: 26px;
	font-weight: bold;
	margin-bottom: 20px;
}

.post_images_container{
	display: flex;
	flex-direction: column;
	align-items: center;

}

.post_images_container img{
	margin-bottom: 10px;
	border: 3px solid #a24bfd;
}

.post_details_wrapper{
	margin-bottom: 60px;
	margin-top:20px;
}

.post_details_wrapper p{
	margin-bottom: 20px;
}
.post_details_wrapper span{
	font-weight:bold;
}
.post_details_wrapper a{
	color: red;
	text-decoration: underline;
}

.pagination{
	display: flex;
	justify-content: space-around;
}

.pagination a{
	padding: 10px;
	background-color: #6bbde5;
	color: white;
	border-radius: 6px;
}

.all_post_wrapper{
	margin-bottom: 20px;
}

.all_post_wrapper form{
	display: inline;
}
.all_post_wrapper input, .view_button{
	display: inline-block;
	padding: 6px;
	border-radius: 6px;
	margin-right: 10px;
	border: solid 2px black;
}

.move_up_button{
	background-color: #5CB85C;
	color: white ;
}

.delete_button {
	background-color: red;
	color: white;
}

.view_button {
	background-color: #a24bfd;
	color: white;
}

.flash-success, .flash-warning {
	margin-bottom: 30px;
}

.flash-success{
	background-color: #5CB85C;
	color:white;
	padding: 8px;
	border-radius: 6px;
}

.flash-warning{
	background-color: #ffc107;
	color:white;
	padding: 8px;
	border-radius: 6px;
}

.forgot_password_link {
	color: red;
	font-weight: bold;
	text-decoration: underline;
}

.user_errors{
	color: red;
	margin: 30px 0;
}
.user_errors li{
	margin-bottom: 10px;
}