@import url('https://fonts.googleapis.com/css?family=Kanit');

body { 	 
 	color: rgba(0,0,0,0.87); 
 	margin: 0; 
 	padding: 0;
	background-image:url('../image/TNIbg_new.jpg');
	background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Kanit', sans-serif;
}
.fa-spin {
    -webkit-animation: fa-spin 15s infinite linear;
    animation: fa-spin 15s infinite linear;
}
#message {
	background: white;
	margin: 0px; 
	padding: 26px 18px; 
}
#message h2 { 
	color: #ffa100; 
	font-weight: bold; 
	font-size: 16px; 
	margin: 0 0 8px;
}
#message h1 { 
	/* font-size: 19px; */
	font-size: 20px;
	font-weight: 300; 
	color: rgba(0,0,0,0.6); 
	margin: 0 0 16px;
}
#message p { 
	line-height: 140%; 
	margin: 16px 0 24px; 
	font-size: 14px;
}
#message a { 
	display: block; 
	text-align: center; 
	background: #039be5; 
	text-transform: uppercase; 
	text-decoration: none; 
	color: white; padding: 16px; 
	border-radius: 4px; 
}
#message, #message a { 
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.img-name-b {
	max-width: 100%;
}
.header-con {
	padding: 15%;
	background-color: rgba(255,255,255,0.25);
	padding-bottom: 0px;
}
.con {
	background-color: rgba(255,255,255,0.25);
	padding-top: 15%;
    padding-bottom: 15%;
    padding-left: 5%;
    padding-right: 5%;
}
.header-logo-tni {
	text-align: center;
}
.block-header {
	margin-top: 3%;
	margin-bottom: 3%;
}
.header-name-b {
	text-align: center;
}
#h-name {
	font-weight: bold!important;
}
.content-header {
	background-color: rgba(255,255,255,0.25);
	width: 100%;
	margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 2.5%;
    text-align: center;
}
.inner-con {
	background-color: white;
}
#message-header{ 
	padding: 2%;
}
#message-header h1 { 
	font-size: 19px; 
	font-weight: 300; 
	color: rgba(0,0,0,0.6); 
	margin: 0px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
	background-color: white;
	padding: 32px 24px;
}
#con-content {
	margin-bottom: 4%;
	width: 100%;
}
#logo-navbar-middle {
	width: 25%;
}
.footer-tni-pm {
	background-color: rgba(0,0,0,0.6);
    padding-top: 1%;
    padding-bottom: 1%;
    text-align: center;
    color: white;
    font-size: 17px;
}
.col-sm-2-chart {
	width: 16.666667%;
	float: left;
}
#chart-value {
	font-size:19px;
	margin-top: 0px;
    margin-bottom: 0px;
    /* color: rgba(0,0,0,0.6)!important; */
    color: white!important;
}
#set-space {
	margin-left: 0px;
	margin-right: 0px;
	display: flex;
}
.timestamp-label {
	font-style: italic;
	text-align: center;
	margin: 0px!important;
}
#timestamp-update-a,#timestamp-update-b,#timestamp-update-c,#timestamp-update-d{
	font-size: 12px!important;
}

/* Logo Building */

#bg-chart-good {
	background-color: #009966;
}
#bg-chart-moderate {
	background-color: #ffde33;
}
#bg-chart-unhealthy-sensitive {
	background-color: #ff9933;
}
#bg-chart-unhealthy {
	background-color: #cc0033;
}
#bg-chart-v-unhealthy {
	background-color: #660099;
}
#bg-chart-hazardous {
	background-color: #7e0023;
}
.chart-set-text {
	text-align: center;
}

/* Responsive */

@media screen and (max-width: 1280px){
	.value-pm h1,#chart-value{
		font-size: 18px!important;
	}
}
@media screen and (max-width: 1235px){
	.value-pm h1,#chart-value{
		font-size: 17px!important;
	}
}
@media screen and (max-width: 1190px){
	.value-pm h1,#chart-value{
		font-size: 16px!important;
	}
	.col-sm-3 {
	    padding-left: 10px;
	    padding-right: 10px;
	}
	.set-space-left-right {
		padding-left: 10px;
	    padding-right: 10px;
	}
}
@media screen and (max-width: 1180px){
	.value-pm h1,#chart-value{
		font-size: 15.5px!important;
	}
}
@media screen and (max-width: 1150px){
	#message {
	    padding: 23px 15px;
	    font-size: 15px!important;
	}
}
@media screen and (max-width: 1105px){
	.col-sm-3 {
		width: 100%;
		float: none;
		display: inline-block;
	}
	.header-con {
		width: 30%;
		float: left;
		padding: 3%;
		display: inline-block;
		background-color: transparent;
		padding-right: 0px;
	}
	.con {
		display: inline-block;
		width: 70%;
		background-color: transparent;
		padding: 5%;
	}
	#logo-navbar-middle {
    	width: 45%;

	}
	.bg-con {
		background-color: rgba(255,255,255,0.25);
		margin:5%;
		margin-bottom: 0px;
		display: flex;
    	align-items: center;
	}
	#message h1 {
	    font-size: 24px!important;
	}
	#message {
	    font-size: 23px!important;
	}
	.block-header {
	    margin-top: 5%;
	    margin-bottom: 1%;
	}
	#con-content {
	    margin-bottom: 6%;
	    width: 100%;
	}
	.footer-tni-pm {
	    padding-top: 2%;
	    padding-bottom: 2%;
	}
@media screen and (max-width: 870px){
	.header-con {
		width: 40%;
	}
	.con {
		width: 60%;
	}
	#message h1 {
	    font-size: 22px!important;
	}
	#logo-navbar-middle {
	    width: 50%;
	}
}
@media screen and (max-width: 800px){
	#message h1 {
	    font-size: 21.5px!important;
	}
	#con-content {
	    margin-bottom: 8%;
	}
	.footer-tni-pm {
	    padding-top: 3%;
	    padding-bottom: 3%;
	 }
}
@media screen and (max-width: 730px){
	#message h1 {
	    font-size: 21px!important;
	}
}
@media screen and (max-width: 650px){
	#chart-value {
	    font-size: 14px!important;
	}
}
@media screen and (max-width: 600px){
	#message h1 {
	    font-size: 18px!important;
	}
	#message {
    	padding: 20px 15px;
	}
	#con-content {
	    margin-bottom: 5%;
	}
}
@media screen and (max-width: 550px){
	#chart-value {
	    font-size: 13px!important;
	}
}
@media screen and (max-width: 520px){
	#logo-navbar-middle {
	    width: 55%;
	}
}
@media screen and (max-width: 510px){
	#chart-value {
	    font-size: 12px!important;
	}
}
@media screen and (max-width: 475px){
	#chart-value {
	    font-size: 11px!important;
	}
}
@media screen and (max-width: 470px){
	#message {
    	padding: 15px 15px;
	}
	#message h1 {
	    font-size: 16.5px!important;
		margin: 0 0 15px;
	    margin-top: 7px;
	}
	.footer-tni-pm {
    	font-size: 15px;
	}
}
@media screen and (max-width: 440px){
	#message h1 {
    	font-size: 15.5px!important;
    	margin: 0 0 10px;
    	margin-top: 7px;
	}
	#chart-value {
	    font-size: 10px!important;
	}
}
@media screen and (max-width: 420px){
	#message h1 {
    	font-size: 14.5px!important;
	}
	.footer-tni-pm {
    	font-size: 14px;
	}
}
@media screen and (max-width: 399px){
	#chart-value {
	    font-size: 9px!important;
	}
}
@media screen and (max-width: 380px){
	#chart-value {
	    font-size: 8px!important;
	}
}

      