/*setting*/
html,body{
	font-family: 'Kanit', sans-serif !important;
}
.post-page {
	text-align: center;
}
.shadow{
	box-shadow: 0 0px 10px 1px rgba(0,0,0,0.2) !important;
}
.shadow-main{
	box-shadow: 0 0px 10px 1px rgba(214,50,50,0.5) !important;
}
.pl-8{
	padding-left: 3.5rem!important;
}
.pr-8{
	padding-right: 3.5rem!important;
}

/*color*/
.bg-main{
	background-color: #4AD138
}
.bg-black{
	background-color: #000;
}
.bg-gray{
	background-color: #f4f4f4;
}
.text-main{
	color: #4AD138
}
.text-blue{
	color: #0049ff;
}
.text-gray{
	color: #6b6b6b;
}

/*navber*/
.navbar-brand{
	font-size: 2em;
}
.navbar-nav .nav-item{
	margin-top:10px;
}
.navbar-nav .nav-item a.nav-link{
	padding: 5px 10px;
}
.navbar-nav .nav-item.active{
	background-color: #50a345;
	border-radius: 5px;
}
.sub-nav-item {
    display: block;
    padding: .5rem 1.25rem;
    margin-bottom: -1px;
    background-color: #fff;
}
#tabien-nav a:hover{
	text-decoration: none;
}
#tabien-nav li.sub-nav-item{
	border:none;
	box-sizing: border-box;
}
#tabien-nav li.sub-nav-item:hover,#tabien-nav li.sub-nav-item.active{
	border-left: 4px #DD4B39 solid;
	font-weight: 600;
	background-color: #efefef;
	color: #000;
}
.dropdown-menu {
	padding-top: 0;
}
@media (min-width: 992px) {
.navbar-expand-lg .navbar-nav .dropdown-menu {
    width: 300px;
}
}

@media (max-width: 992px) {
.col-md-6 {
    padding-bottom: 5px;
}
}
    

/*header page*/
.bg-header{
	height: 194px;
	background-image: url('../images/bg-header.jpg');
	background-size: 100%;
	background-position: center;
	background-repeat: no-repeat;
	text-align: center;
	color: #fff;
}
.bg-header h4{
	position: relative;
	z-index: 5;
	top: 20%;
}

/*content*/
.content{
	position: relative;
	z-index: 5;
	margin-top: -80px;
}

	/*search*/
	#tabien-group a:hover{
	    text-decoration: none;
	}
	#tabien-group li.list-group-item{
		border:none;
		box-sizing: border-box;
	}
	#tabien-group li.list-group-item:hover,#tabien-group li.list-group-item.active{
	    border-left: 4px #DD4B39 solid;
	    font-weight: 600;
	    background-color: #efefef;
	    color: #000;
	}
	/*content-panel*/
	.row .posts-page {
		padding: 30px;
	}
	.post-title {
		padding: 0.3rem;
    padding-left: 0;
	}
	.post-title a {
		
		font-size: 1rem;
    color: #212529;
    text-align: left;
	}
	.content-panel .card-header{
		border-left: 4px solid #50a345 !important;
	}
	.content-panel .card-header p{
		font-weight: 900;
	}
	.license-plate{
		padding: 3px;
		cursor: pointer;
		border: 2px solid #333;
		cursor: pointer;
	}
	.license-plate .license-plate-number{
		position: absolute;
		right: 20px;
		bottom: 10px;
		background-color: #e58383;
		border-radius: 100%;
		width: 30px;
		height: 30px;
		font-size: 12px;
		display: flex;
		justify-content: center;
		align-items: center;
		color: #fff;
	}
	.license-plate .license-plate-booked{
		z-index: 1;
		position: absolute;
		left: 0px;
		bottom: 10px;
		color: #fff;
		width:60px;
		height: 25px;
		font-size: 12px;
		display: flex;
		justify-content: left;
		padding-left: 5px;
		align-items: center;
		background: #4AD138;
	}
	.license-plate .license-plate-booked:after{
		z-index: -1;
		width: 100%;
		height: 100%;
		position: absolute;
		clip-path: polygon(100% 0, 80% 50%, 100% 100%, 0 100%, 0 0);
		background-color: #4AD138
		left: 0;
		content: '';
	}
	.license-plate .license-plate-booked::before{
		position: absolute;
		width: 15px;
		height: 15px;
		content: '';
		left: 0;
		top: -15px;
		clip-path: polygon(100% 0, 0% 100%, 100% 100%);
		background-color: #721515;
	}
	.license-plate-box{

		background-color: #f9f9f9;

		padding: 5px 10px;

		background-repeat: no-repeat;

		background-size: 120%;

		background-position: center;

		font-family: 'Sarabun', sans-serif !important;

	}

	.license-plate-box.bg-img{

		background-image: url('../images/purple.png');

		background-position: center;

		background-size: cover;

		background-repeat: no-repeat;

	}
	#model-license-plate .modal-dialog.modal-dialog-centered{
		max-width: 800px;
	}
	#model-license-plate .modal-dialog.modal-dialog-centered .border-right{
		border-right: 1px solid #000 !important;
	}
	#model-license-plate .modal-dialog.modal-dialog-centered h4 span{
		border-bottom: 1px dashed #21a00e;
		color: #21a00e;
	}
/*custom*/
@media screen and (min-width: 768px){
	.w-md-auto{
		width: auto !important;
	}
	.w-md-50{
		width: 50% !important;
	}
	.border-md-right{
		border-right:1px solid #000;
	}
}
.overlay-black{
	position: relative;
}
.overlay-black:before{
	z-index: 0;
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(0,0,0,0.5);
}
.fade-out{
	position: relative;
}
.fade-out:before{
	content: '';
    position:absolute;
    z-index:2;
    right:0; bottom:0; left:0;
    height:100px; /* adjust it to your needs */
    background: url(data:image/svg+xml;base64,alotofcodehere);
    background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(255,255,255,1) 70%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0)), color-stop(70%,rgba(255,255,255,1)));
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);
    background: -o-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);
    background: -ms-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);
    background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(255,255,255,1) 70%);
}​
