@import url(http://fonts.googleapis.com/css?family=Open+Sans:400);

@import "//netdna.bootstrapcdn.com/font-awesome/3.0/css/font-awesome.css";

body{
	font-family: 'Athiti', sans-serif;
  overflow-x:hidden;
}
.container-fluid{
	background-color: #fff;
}
 .facilities img {
    display: block;
    max-width: 85%;
    margin: 30px auto;
}
table{
  font-size: 1.3em;
}
table, th{
    text-align: center;
}
table,td {
  text-align: left;
}

@media (min-width: 1200px) {
  .container {
    width: 1300px;
  }
  .facilities img {
    display: block;
    max-width: 60%;
    margin: 30px auto;
}
}

.logo-mahidol img{
	margin-top: 40px;
	margin-bottom: 40px;
}

.logo-eco img{
	margin: 20px 50px 0;
	padding-bottom: 20px; 
}

.texture-mahidol {
	background: url('../img/texture-mahidol2.png')center no-repeat ;
	height: 150px;
}

/* ===  navbar === */

.navbar{
	background-color: #2d6534;
	background-size: cover;
	margin-bottom: 0px;
  border: 0px solid transparent;
}

.navbar-default .navbar-nav>li>a{
	color: #fff;
	font-size: 1.5em;
  padding-right: 6px;
  padding-left: 10px;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    background-color: #72c503;
    color: #fff;
}
.navbar-default .navbar-nav > .active > a, 
.navbar-default .navbar-nav > .active > a:hover, 
.navbar-default .navbar-nav > .active > a:focus {
    background-color: #72c503;
    color: #fff;
}

.dropdown-menu {
  padding: 0px 0px;
}
.dropdown-menu li>a{
  font-size: 1.5em;
  color: #fff;
  background-color: #406d3e;
}
.dropdown-menu li>a:hover{ 
  color: #17586a;
}
.carousel-control.left, .carousel-control.right {
    background-image: none
}

.carousel-caption {
   font-size: 1em;
}

@media screen and (max-width: 60em) {
	.logo-mahidol img{
	margin: 40px 30px 0;
	padding-bottom: 40px; 
	}
	.navbar{
	background-size: 68em;
	}
	 .facilities img {
    display: block;
    max-width: 95%;
    margin: 30px auto;
}
h1{
    font-size: 1.8em;
  }
  .carousel-caption p{
   font-size: 0.8em;
}

.carousel-caption h1{
   font-size: 1em;
   line-height: 16px;
   margin-top: 0px;
}
.carousel-caption h2{
   font-size: 0.9em;
}
#activity {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
}
#video {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
}

.flipper img{
  width: 90%;
}
/*#button-social {
    width: 300px;
}*/

}
@media screen and (max-width: 40em){
	.logo-mahidol img{
	margin: 40px 0px 0;
  padding-left: 0px;
	padding-bottom: 40px; 
	}
	.navbar{
	background-size: 48em;
	}
	 .facilities img {
    display: block;
    max-width: 95%;
    margin: 30px auto;
	}
  h1{
    font-size: 1.8em;
  }
  .carousel-caption p{
   font-size: 0.8em;
}
.carousel-caption h1{
   font-size: 1em;
   line-height: 16px;
   margin-top: 0px;
}
.carousel-caption h2{
   font-size: 0.9em;
}
#activity {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
}
#video {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
}

.flipper img{
  width: 90%;
}
#bottom{
  padding: 10px;
}
body{
  overflow-x:hidden;
}
.alignc img{
  text-align: center;
  width: 100%;
  padding: 15px;
}
/*#button-social {
    width: 300px;
}*/
.cuvemahidol img{
  width: 80%;
}


}


/* ===  UI Green metric === */
#slider{
	background-color: #2d6534;
	
}
.list-group{
  position: absolute;
  z-index: 10;
  font-size: 1.4em;
  right:0;
  width: 250px;
}

.list-group .glyphicon{
  font-size: 0.9em;
  line-height: 0.1em;
  padding: 0px;
  color: #fff;
}
.list-group-item:first-child{
  border-bottom: 1px dashed #fff;
}
.list-group-item:last-child{
  border-bottom: 1px dashed #fff;
  border-top:1px dashed #fff;
}
@media only screen and (max-width: 500px) {
    .list-group{
  position: absolute;
  z-index: 10;
  font-size: 0.8em;
  right:0;
  width: 60px;
  padding:0px;
  margin:0px;
  top: 20px; 
}
}

#uigreen {
    background: white;
    padding-top: 50px;
    padding-bottom: 50px;
    text-align: center;
    overflow: hidden;
}
#uigreen img{
	border-radius: 5px;
}

/* ===  Policy === */
#policy {
    background: white;
    padding-top: 50px;
    text-align: center;
    overflow: hidden;
    font-size: 1.5em;
}
#policy2 {
    background-color : transparent;
    padding-top: 50px;
    text-align: center;
    overflow: hidden;
    font-size: 1.5em;
}

#policy h2 ,p{
	color: rgba(154, 159, 165, 1);
}
.embed-responsive-4by3{

}

.glyphicon{
	font-size: 2em;
	padding-top: 20px;
}
.glyphicon-edit{
	color: rgba(25, 123, 48, 1);
}
.glyphicon-send {
	color: rgba(25, 123, 48, 1);
}
.glyphicon-globe {
	color: rgba(25, 123, 48, 1);
}
.glyphicon-user{
	color: rgba(25, 123, 48, 1);
}
.glyphicon-link{
  color: rgba(0, 114, 188, 1);  
  font-size: 1em !important ;
  padding-top: 0px !important;
}
.glyphicon-flag{
  color: rgba(25, 123, 48, 1);  
  font-size: 1em !important ;
  padding-top: 0px !important;
}
.glyphicon-circle-arrow-right{
  color: rgba(96, 57, 19, 1);  
  font-size: 1em !important ;
  padding-top: 0px !important;
}
.glyphicon-home{
  font-size: 0.8em !important ;
  padding-top: 0px !important;
}
.glyphicon-tree-conifer{
  font-size: 0.8em !important ;
  padding-top: 0px !important;
}
.glyphicon-ok-sign{
  font-size: 0.8em !important ;
  margin-right: 15px;
}
.glyphicon-leaf{
  font-size: 0.8em !important ;
  padding-top: 0px;
}
.glyphicon-share-alt{
  font-size: 0.8em !important ;
  padding-top: 0px;
  color: #fff;
}
.glyphicon-link{
  font-size: 0.8em !important ;
  padding-top: 0px;
  color: #fff;
}


.btn-success{
	background-color: rgba(25, 123, 48, 1);
	border: 1px solid #fff;
	border-radius: 25px;
	width: 150px;
}
.btn-success:hover{
	background-color: rgba(225, 225, 255, 0);
	border: 1px solid;
	border-color: rgba(25, 123, 48, 1);
	color: rgba(154, 159, 165, 1);
}

.line{
	   border-bottom: 1px solid rgba(151, 156, 164, 0.3);
	   padding-top: 50px;
}

/* ===  Activity === */
#activity {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  float: left;
  position: relative;
	padding:5px;
	padding-bottom: 50px;
	margin-bottom: 50px;
}

#activity h1{
	text-align: center;
	color: #fff;
	text-shadow: 2px 2px 4px #656669;
}

#activity .bgOverlay {   
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#statistics h1{
  text-align: center;
}

/** page structure **/
#w {
  display: block;
  max-width: 1168px;
  min-width: 180px;
  margin: 0 auto;
  padding: 2px 3px;
}


/** posts slider widget **/
.crsl-items {
  display: block;
  padding: 5px ;
}

.crsl-item {
  background: #fff;
  border-radius: 4px;
}

.crsl-item .thumbnail {
  display: block;
  position: relative;
  margin-bottom: 10px;
  cursor: pointer;
  padding: 0px;
  border: 0px;

}
.crsl-item .thumbnail img { 
  display: block; /* fix 1px image space http://stackoverflow.com/q/5804256/477958 */
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.crsl-item .thumbnail:hover img {
  opacity: 0.8;
}

.crsl-item h3 {
  font-family: 'Athiti', sans-serif;
  font-size: 1.95em;
  line-height: 1.25em;
  margin-bottom: 12px;
  padding: 15px 0 0 15px;
  
}
.crsl-item h3 a {
  text-decoration: none;
  color: #333;
}
.crsl-item h3 a:hover {
    color: rgba(88, 207, 144, 1);
}

.postdate {
  display: block; 
  bottom: 0;
  left: 0;
  padding: 5px 0 15px 15px;
  color: #333;
  font-size: 1.2em; 
}

.postdate:after {
  content: "";
    width: 25px;
    height: 25px;
    display: block;
    background: url('../img/time.png') center no-repeat;
    position: static;
    margin-top: -25px;
    left: 50%;
    margin-left: 95px;
}


.crsl-item p {
  font-size: 14px;
  line-height: 1.55em;
  margin-bottom: 5px;
  padding: 0 0 15px 15px;
  border-bottom: 1px solid #ddd;
}

.crsl-item p a {
  font-size: 14px;
  line-height: 1.55em;
  margin-bottom: 5px;
  color: rgba(88, 207, 144, 1);
  text-decoration:none;
}

.crsl-item p a:hover{
  
  color: #ddd;
  
}

.crsl-item p.readmore a {
  display: block;
  float: right;
  color: #4e90da;
  padding: 3px 5px;
  text-decoration: none;
  font-weight: bold;
  -webkit-border-radius: 3px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}
.crsl-item p.readmore a:hover {
  background: #4b6caa;
  color: #fff;
}


/** posts slider nav **/
.slidernav {
  display: block;
  text-align: right;
  margin-bottom: 5px;
}

.slidernav a {
	display: inline-block;
    width:35px;
    height:35px;
    line-height:35px;
    border: 1px solid #ddd;
    border-radius: 50%;
    color:#404040;
    text-align:center;
    text-decoration:none;
    background: #fff;
    font-size:9px;
    
    
}
.slidernav a:hover {
   background: #cccccc;
   border: 1px solid #000;
   color:#fff;
}


/** media queries **/
@media screen and (max-width: 1168px) {
  h1 { font-size: 2em; 
    line-height: 1.2em; 
     font-weight: 600;
  }
  
  .crsl-item h3 { font-size: 1.65em; }
}

/** clearfix **/
.clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }
.clearfix { display: inline-block; }
 
html[xmlns] .clearfix { display: block; }
* html .clearfix { height: 1%; }

/* ===  Statistics === */
.statistics h1{
	padding-top: 15px;
    
    text-align: center;
    overflow: hidden;
}

/* ===  Note === */
#note {
    background: white;
    padding-top: 50px;
    text-align: left;
    overflow: hidden;
    font-size: 1.5em;
    padding-bottom: 50px;
}

#note h2 ,p{
	color: rgba(154, 159, 165, 1);
}

#video {
  width: 100%;
  background: url('../img/texture-activity.jpg') center no-repeat;
  -webkit-background-size: cover;
  background-size: cover;
  background-attachment: fixed;
  float: left;
  position: relative;
  padding:5px;
  margin-top: 50px;
}

#video h1{
  text-align: center;
  color: #fff;
  text-shadow: 2px 2px 4px #656669;
  margin-bottom: 30px;
}

#video .bgOverlay {   
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#video .youtube{
  width: 100%;
  margin-top: 30px;
  margin-bottom: 50px;
}

#map{
  padding-top: 30px;
}

#map h1{
  text-align: center;
  margin-top: 50px;    
}

#googleMap{
  width: 100%;
  padding: 50px;
}
#bottom{
  font-size: 1.5em;
  background: #242424;
  color: #fff; 
  padding-top: 50px;
}

#bottom h2{
  text-align: left;
}

.menugreen li{
  border-bottom: 1px solid rgba(151, 156, 164, 0.3);
  padding-bottom: 15px;
}
.menugreen a{
  color: #6a6a6a;
}
.menugreen a:hover{
  color: #fff;
  text-decoration: none;
}
.greenso li{
  padding-bottom: 15px;
}
.greenso a{
  color: #65b165;
}
.greenso a:hover{
  color: #ebebeb;
  text-decoration: none;
}
.contact li{
  color: #6a6a6a;
  padding-bottom: 15px;
}
.contact a{
  color: #65b165;
}
.contact a:hover{
  color: #ebebeb;
  text-decoration: none;
}

.cd-top {
  display: inline-block;
  height: 60px;
  width: 60px;
  position: fixed;
  bottom: 40px;
  right: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  /* image replacement properties */
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: rgba(88, 200, 223, 0.8) url(../img/cd-top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  -moz-transition: opacity .3s 0s, visibility 0s .3s;
  transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  -moz-transition: opacity .3s 0s, visibility 0s 0s;
  transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
  /* the button becomes visible */
  visibility: visible;
  opacity: 1;
}
.cd-top.cd-fade-out {
  /* if the user keeps scrolling down, the button is out of focus and becomes less visible */
  opacity: .5;
}
.no-touch .cd-top:hover {
  background-color: #e86256;
  opacity: 1;
}
.article{
  padding-left: 50px;
}
.article h1{
  color: #2d6534;
  font-weight: 600;
}
.navigation{
  border-bottom: 1px solid rgba(151, 156, 164, 0.3);
  padding: 15px 0;
}
.navigation a{
  color: rgba(151, 156, 164, 1);
}
.navigation a:hover{
  color: #2d6534;
  text-decoration: none;
}
.navigation ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.navigation li{
    display: inline;
}
.calendar{
  color: rgba(151, 156, 164, 1);
}
.calendar a{
  color: #2d6534;
}
.calendar a:hover{
  color: rgba(151, 156, 164, 1);
  text-decoration: none;
}
.calendar ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.calendar li{
    display: inline;
}
.content{
  padding-top: 30px;
}
.content ul{
  list-style-type: none;

}

.content li{
  padding: 5px 0;
  font-size: 1.5em;
}
.content p {
    color: #000;
    font-size: 1.5em;
}
.content a{
    color: #0072bc;
    font-size: 1em;
}
.content a:hover{
  color: #a1a1a1;
  text-decoration: none;
}
.alignc img{
  text-align: center;
  width: 60%;
}
#space{
  height: 300px;
}
.bs-callout {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}
.bs-callout h4 {
    margin-top: 0;
    margin-bottom: 5px;
}
.bs-callout p:last-child {
    margin-bottom: 0;
}
.bs-callout code {
    border-radius: 3px;
}
.bs-callout+.bs-callout {
    margin-top: -5px;
}
.bs-callout-default {
    border-left-color: #777;
}
.bs-callout-default h4 {
    color: #777;
}
.bs-callout-primary {
    border-left-color: #428bca;
}
.bs-callout-primary h4 {
    color: #428bca;
}
.bs-callout-success {
    border-left-color: #2d6534;
}
.bs-callout-success h4 {
    color: #603913;
    font-size: 1.6em;
    font-weight: 600;
}
.bs-callout-success h3 {
    font-size: 1.3em
}
.bs-callout-success h2 {
    color: #2d6534;
    font-weight: 450;
    font-size: 1.7em
}
.bs-callout-danger {
    border-left-color: #d9534f;
}
.bs-callout-danger h4 {
    color: #d9534f;
}
.bs-callout-warning {
    border-left-color: #f0ad4e;
}
.bs-callout-warning h4 {
    color: #f0ad4e;
}
.bs-callout-info {
    border-left-color: #5bc0de;
}
.bs-callout-info h4 {
    color: #5bc0de;
}
.download img{
    width: 25px;
    height: 25px;
    margin-left: 15px; 
}
.download {
  font-size: 1.5em;
}
.photo img{
  width: 100%;
  padding: 15px;
}

.content .glyphicon {
    font-size: 20px;
}
/* icon zoom css */
.gallery {
 list-style: none;
 display: flex;
 justify-content: space-between;
 flex-wrap: wrap;
 margin: 2em 0;
}

.gallery_item {
 width: 75%; 
 margin-bottom: .25em;
}

.gallery_link {
 text-decoration: none;
 display: flex;
 position: relative;
 height: 0;
 padding-bottom: 100%; 
}

.thumbnail2 {
 position: absolute;
 top:0;right:0;bottom:0;left:0;
 transition: all .3s;
}

.gallery_link:hover .thumbnail2 {
 max-width: 80%;
 left: -2%;
 top: -10%;
 z-index: 1; 
}
/* end icon zoom css */

/* icon spin css */
/* entire container, keeps perspective */
.flip-container {
  perspective: 1000px;
}
  /* flip the pane when hovered */
  .flip-container:hover .flipper, .flip-container.hover .flipper {
    transform: rotateY(180deg);
  }

.flip-container, .front, .back {
    height: 600px;

}

/* flip speed goes here */
.flipper {
  transition: 0.6s;
  transform-style: preserve-3d;

  position: relative;
}

/* hide back of pane during swap */
.front, .back {
  backface-visibility: hidden;

  position: absolute;
  top: 0;
  left: 0;
}

/* front pane, placed above back */
.front {
  z-index: 2;
  /* for firefox 31 */
  transform: rotateY(0deg);
}

/* back, initially hidden pane */
.back {
  transform: rotateY(180deg);
}
/* endicon spin css */

.cuvemahidol{
  padding-right: 15px;
}

/* social css */
.button-social {
  margin: 5px auto;
  text-align: center;
}
#button-social {
    border-radius: 5px;
    padding: 14px 7px;
    background: white;
    overflow: hidden;
    margin: 25px 25px 25px;
}
.button-social {
    background: #DCE0E0;
    position: relative;
    display: block;
    float: left;
    height: 40px;
    margin: 0 7px;
    overflow: hidden;
    width: 150px;
    border-radius: 3px;
    -o-border-radius: 3px;
    -ms-border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}

.icon2 {
    display: block;
    float: left;
    position: relative;
    z-index: 3;
    height: 100%;
    vertical-align: top;
    width: 38px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 0px;
    -moz-border-radius-bottomright: 0px;
    -moz-border-radius-bottomleft: 3px;
    -webkit-border-radius: 3px 0px 0px 3px;
    border-radius: 3px 0px 0px 3px;
    text-align: center;
}

.icon2 i {
    color: #fff;
    line-height: 42px;
}

.slide2 {
    z-index: 2;
    display: block;
    margin: 0;
    height: 100%;
    left: 38px;
    position: absolute;
    width: 112px;
    -moz-border-radius-topleft: 0px;
    -moz-border-radius-topright: 3px;
    -moz-border-radius-bottomright: 3px;
    -moz-border-radius-bottomleft: 0px;
    -webkit-border-radius: 0px 3px 3px 0px;
    border-radius: 0px 3px 3px 0px;
}

.slide2 p {
    font-family: Open Sans;
    font-weight: 400;
    border-left: 1px solid #fff;
    border-left: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 16px;
    left: 0;
    margin: 0;
    position: absolute;
    text-align: center;
    top: 10px;
    width: 100%;
}

.button-social .slide2 {
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -ms-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

.fb-like {
    display: block;
    position: absolute;
    right: 5px;
    top: 10px;
    z-index: 1;
}

.twitter iframe {
    width: 90px !important;
    right: 5px;
    top: 10px;
    z-index: 1;
    display: block;
    position: absolute;
}

.google #___plusone_0 {
    width: 70px !important;
    top: 10px;
    right: 15px;
    position: absolute;
    display: block;
    z-index: 1;
}

.linkedin .IN-widget {
    top: 10px;
    right: 22px;
    position: absolute;
    display: block;
    z-index: 1;
}

.facebook:hover .slide2 {
    left: 150px;
}

.twitter:hover .slide2 {
    top: -40px;
}

.google:hover .slide2 {
    bottom: -40px;
}

.linkedin:hover .slide2 {
    left: -150px;
}

.facebook .icon2, .facebook .slide2 {
    background: #305c99;
}

.twitter .icon2, .twitter .slide2 {
    background: #00cdff;
}

.google .icon2, .google .slide2 {
    background: #d24228;
}

.linkedin .icon2, .linkedin .slide2 {
    background: #007bb6;
}

ul {
   list-style:none;
}
/*----- Footer ------*/
footer {
  padding: 50px 0;
  float: left;
  width: 100%;
  text-align: center;
  background: #222;
}

footer div {
    margin: 80px 0;
}

footer img {
    width: 50px;
    display: inline-block;
}

footer p {
    text-transform: uppercase;
}
