/*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: #D63232;
}

.bg-black {
    background-color: #000;
}

.bg-gray {
    background-color: #f4f4f4;
}

.text-main {
    color: #D63232;
}

.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: #bf2626;
    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 #D63232 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;
    }
    .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    .col-12 {
        padding-left: 2.5px;
        padding-right: 2.5px;
    }
    div.form-group.row {
        padding: 0 10px 0 10px;
    }

    .license-plate .license-plate-number {
        right: 10px !important;
        bottom: 10px !important;;
    }
}


/*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 #D63232 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 #D63232 !important;
}

.content-panel .card-header p {
    font-weight: 900;
}

.license-plate {
    padding: 0px;
    cursor: pointer;
    border: 2px solid #333;
    cursor: pointer;
}

.license-plate .license-plate-number {
    position: absolute;
    right: 20px;
    bottom: 5px;
    background-color: #D63232;
    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;
}

.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);
    -webkit-clip-path: polygon(100% 0, 80% 50%, 100% 100%, 0 100%, 0 0);
    background-color: #D63232;
    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: 0;
    background-repeat: no-repeat;
    background-size: 130%;
    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%);
}

​ .license-plate-box {
    font-family: 'Kanit', 'Open Sans';
}
.tabien-main {
    font-family: 'Tabien', sans-serif !important;
}

.tabien-number {
    font-family: 'Tabien', sans-serif !important;
}

.th-text {
    font-size: 39px;
    line-height: 25px;
    font-family: 'Tabien', sans-serif !important;
}

.tabien-text, .tabien-number {
    font-family: 'Tabien', sans-serif !important;
    font-size: 34px;
    line-height: 25px;
    position: inherit;
    z-index: 1;
    text-shadow: -1px -1px 1px #d6d6d6, 1px 1px 1px #525252;
    margin-bottom: 2px;
    top: 0px;
    bottom: 0;
    right: 0;
    font-weight: bold;
}



.tabien-price {
    font-family: 'Kanit', sans-serif;
    color: #ff0000;
    text-shadow: 1px 1px 1px whitesmoke;
    font-weight: bold;
    position: inherit;
    z-index: 1;
    bottom: 0;
    right: 0;
    padding-top: 0;
    height: 15px;
    font-size: 15px;
    margin-bottom: 2px;
}

.tabien-province {
    font-family: 'Tabien', sans-serif;
    position: inherit;
    z-index: 1;
    bottom: 0;
    right: 0;
    height: 25px;
    opacity: 0.9;
    font-weight: bold;
    font-size: 16px;
    text-shadow: -1px -1px 1px whitesmoke, 1px 1px 1px grey;
    margin: 0;
}