/*!
 * Copyright Anucha Puangpaka
 * Contact anucha.ppk@icloud.com 062-479-9836
 */

body {
  padding-top: 0px;
  padding-bottom: 30px;
  /*background-color: #4f3a77;*/
  /* background-color: #F8F9F9; */
}

.theme-dropdown .dropdown-menu {
  position: static;
  display: block;
  margin-bottom: 20px;
}

.theme-showcase > p > .btn {
  margin: 5px 0;
}

.theme-showcase .navbar .container {
  width: auto;
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu>.dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
  margin-left: -1px;
  -webkit-border-radius: 0 6px 6px 6px;
  -moz-border-radius: 0 6px 6px;
  border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
  display: block;
}

.dropdown-submenu>a:after {
  display: block;
  content: " ";
  float: right;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-left-color: #ccc;
  margin-top: 5px;
  margin-right: -10px;
}

.dropdown-submenu:hover>a:after {
  border-left-color: #fff;
}

.dropdown-submenu.pull-left {
  float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
  left: -100%;
  margin-left: 10px;
  -webkit-border-radius: 6px 0 6px 6px;
  -moz-border-radius: 6px 0 6px 6px;
  border-radius: 6px 0 6px 6px;
}

@font-face {
  font-family: "THSarabun";
  src: url('fonts/THSarabun.ttf');
  src: local('THSarabun'), url('fonts/THSarabun.ttf') format('truetype');
  font-style: normal;
}
.font-fullname {
  font-family: "THSarabun";
  font-size: 16px;
  /*color: black;*/
  /*font-weight: bold;*/
  /*vertical-align: center;*/
}
.font-dePart {
  font-family: "THSarabun";
  font-size: 12px;
  /*color: black;*/
  /*font-weight: bold;*/
  /*vertical-align: center;*/
}

@font-face {
  font-family: "Mi Teiyng Script";
  src: url('fonts/Mi_Teiyng_Script.ttf');
  src: local('SOV laizen2'), url('fonts/Mi_Teiyng_Script.ttf') format('truetype');
  font-style: normal;
}
.font-signature {
  font-family: "Mi Teiyng Script";
  font-size: 15px;
  color: black;
  font-weight: bold;
  vertical-align: center;
}

.style1 {
  font-family: "THSarabun";
  font-size: 12pt;
  font-weight: bold;
}
.style2 {
  font-family: "THSarabun";
  font-size: 12pt;
  font-weight: bold;
}
.style3 {
  font-family: "THSarabun";
  font-size: 12pt;
}
.style4 {
  font-family: "THSarabun";
  font-size: 10pt;
}

.jumbotron {
  background-color: #f4511e;
  color: #fff;
  padding: 100px 25px;
}
.container-fluid {
  padding: 60px 50px;
}
.bg-grey {
  background-color: #f6f6f6;
}
.logo-small {
  color: #f4511e;
  font-size: 50px;
}
.logo {
  color: #f4511e;
  font-size: 200px;
}
.thumbnail {
  padding: 0 0 15px 0;
  border: none;
  border-radius: 0;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  margin-bottom: 10px;
}
.carousel-control.right, .carousel-control.left {
 background-image: none;
 color: #f4511e;
}
.carousel-indicators li {
  border-color: #f4511e;
}
.carousel-indicators li.active {
  background-color: #f4511e;
}
.item h4 {
  font-size: 19px;
  line-height: 1.375em;
  font-weight: 400;
  font-style: italic;
  margin: 70px 0;
}
.item span {
  font-style: normal;
}
.panel {
  /*border: 1px solid #4f3a77;*/
  border: 1px solid gray;
  border-radius:0 !important;
  transition: box-shadow 0.5s;
}
.panel:hover {
  box-shadow: 3px 3px 3px 3px rgba(0,0,0, .1);
}
.panel-footer .btn:hover {
  border: 1px solid #f4511e;
  background-color: #fff !important;
  color: #f4511e;
}
.panel-heading {
  color: #fff !important;
  /*background-color: #f4511e !important;*/
  background-color: gray !important;
  /*background-color: #4f3a77 !important;*/
  padding: 5px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 0px;
  border-top-right-radius: 0px;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
}
.panel-footer {
  background-color: white !important;
}
.panel-footer h3 {
  font-size: 32px;
}
.panel-footer h4 {
  color: #aaa;
  font-size: 14px;
}
.panel-footer .btn {
  margin: 15px 0;
  background-color: #f4511e;
  color: #fff;
}
@media screen and (max-width: 768px) {
  .col-sm-4 {
    text-align: center;
    margin: 25px 0;
  }
}
footer {
  /* background-color: #CCCCCC; */
  /* bottom: 0px; */
  padding: 10px;
  width: 100%;
  position: absolute;
}
footer .glyphicon {
  font-size: 20px;
  margin-bottom: 20px;
  color: #f4511e;
}

.fb-page, .fb-page iframe[style], .fb-page span {
  min-width: 100% !important;
  width: 100% !important;
}

.slideanim {visibility:hidden;}
.slide {
  animation-name: slide;
  -webkit-animation-name: slide;
  animation-duration: 1s;
  -webkit-animation-duration: 1s;
  visibility: visible;
}
@keyframes slide {
  0% {
    opacity: 0;
    transform: translateY(70%);
  }
  100% {
    opacity: 1;
    transform: translateY(0%);
  }
}
@-webkit-keyframes slide {
  0% {
    opacity: 0;
    -webkit-transform: translateY(70%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0%);
  }
}

.tiptext {
  color: #069;
  cursor: pointer;
}
.description {
  display: none;
  /*position: absolute;*/
  /*position: relative;*/
  margin: 0px;
  border: 1px solid #000;
  width: 100%;
  height: 250px;
  -webkit-overflow-scrolling: touch;
}

.AP {
  -webkit-pointer-events: none;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.AP-inactive {
  display: none;
}
.AP .AP-progress {
  /*background: #29d;*/
  background: #f4511e;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 3px;
}

.AP .AP-progress:after {
  display: block;
  position: absolute;
  top: 8px;
  right: .5rem;
  content: attr(data-progress-text);
  font-family: "Helvetica Neue", sans-serif;
  font-weight: 100;
  font-size: 2rem;
  line-height: 1;
  text-align: right;
  color: #f4511e;
}

.panel2 { position: relative; overflow: hidden; display: block; border-radius: 0 !important;  }
.panel2-default { border-color: #ebedef !important; }
.panel2 .panel2-body { position: relative; padding: 0 !important; overflow: hidden; height: auto; }
.panel2 .panel2-body a { overflow: hidden; }
.panel2 .panel2-body a img { display: block; margin: 0; width: 100%; height: auto;
    transition: all 0.5s;
    -moz-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
}
.panel2 .panel2-body a.zoom:hover img { transform: scale(1.2); -ms-transform: scale(1.2); -webkit-transform: scale(1.2); -o-transform: scale(1.2); -moz-transform: scale(1.2); }
.panel2 .panel2-body a.zoom span.overlay { position: absolute; top: 0; left: 0; visibility: visible; height: 100%; width: 100%; background-color: #000; opacity: 0.55; -moz-opacity: 0.55; -webkit-opacity: 0.55; filter: alpha(opacity=65); -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=65)";
    transition: opacity .25s ease-out;
    -moz-transition: opacity .25s ease-out;
    -webkit-transition: opacity .25s ease-out;
    -o-transition: opacity .25s ease-out;
}
.panel2 .panel2-body a.zoom:hover span.overlay { display: block; visibility: hidden; opacity: 0;  }
.panel2 .panel2-body a.zoom:hover span.overlay i { position: absolute; top: 45%; left: 0%; width: 100%; font-size: 2.25em; color: #fff !important; text-align: center;
    opacity: 1;
    -moz-opacity: 1;
    -webkit-opacity: 1;
    filter: alpha(opacity=1);
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=1)";
}

.vertical-menu {
    width: 95%;
}
.vertical-menu a {
    background-color: #eee;
    color: black;
    display: block;
    padding: 12px;
    text-decoration: none;
}
.vertical-menu a:hover {
    background-color: #ccc;
}
.vertical-menu a.active {
    background-color: #4CAF50;
    color: white;
}

.li {
  cursor:pointer;list-style-type: none;display: inline-block;color: #F0F0F0;text-shadow: 0 0 1px #666666;font-size:20px;
}
.selected {
  color:#F4B30A;text-shadow: 0 0 1px #F48F0A;
}

.bookshelf {
  margin-left: -40px;
}

/*Bookshelf Bookelement*/
.bookshelf-book {
  list-style-type:none;
  /*float:left;*/
  margin:0px;  
  width: 100%;
  height:240px;
  -webkit-box-shadow: 10px 10px 12px rgba(0,0,0,0.5);
  -moz-box-shadow:    10px 10px 12px rgba(0,0,0,0.5);
  box-shadow:         10px 10px 12px rgba(0,0,0,0.5);
  position:relative;
  overflow:hidden;
  -webkit-animation: trans 2s;
  animation: trans 2s;
}
.bookshelf-book img {
  width: 100%;
  /*height:100%;*/
}

/*Bookshelf Bookelement ribbon*/
.ribbon-new {
  width: 90px;
  height: 90px;
  overflow: hidden;
  position: absolute;
}
.ribbon-new > div {
  font: bold 13px sans-serif;
  color: #333;
  text-align: center;
  text-shadow: rgba(255,255,255,0.5) 0px 1px 0px;
  -webkit-transform: rotate(-45deg);
  -moz-transform:    rotate(-45deg);
  -ms-transform:     rotate(-45deg);
  -o-transform:      rotate(-45deg);
  position: relative;
  padding: 7px 0;
  left: -25px;
  top: 10px;
  width: 100px;
  background-color: red;
  /*background-color: #66BA59;
  background: #c9de96;
  background: -webkit-linear-gradient(top,  #c9de96 0%,#66ba59 100%);
  background:        -webkit-gradient(linear, left top, left bottom, color-stop(0%,#c9de96), color-stop(100%,#66ba59));
  background:    -moz-linear-gradient(top,  #c9de96 0%, #66ba59 100%);
  background:      -o-linear-gradient(top,  #c9de96 0%,#66ba59 100%);
  background:     -ms-linear-gradient(top,  #c9de96 0%,#66ba59 100%);
  background:         linear-gradient(to bottom,  #c9de96 0%,#66ba59 100%);*/
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9de96', endColorstr='#66ba59',GradientType=0 );
  -webkit-box-shadow: 0px 0px 3px rgba(0,0,0,0.3);
  -moz-box-shadow:    0px 0px 3px rgba(0,0,0,0.3);
  box-shadow:         0px 0px 3px rgba(0,0,0,0.3);
}

/*Bookshelf Bookelement caption*/
.bookshelf-caption {
  background-color: #000;
  color:#fff;
  opacity: 0.8;
  filter: alpha(opacity=80);
  position:absolute;
  height: 100%;
  padding:10px;
}
.bottom-to-top {
  top:100%;
 }
.bookshelf-book:hover .bottom-to-top {
  top:0%;
  transition: all 0.5s ease;
  -webkit-transition: all 0.5 ease;  
}

/*Animation*/
@-webkit-keyframes trans {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes trans {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ap_hr {
  display: block;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  margin-left: auto;
  margin-right: auto;
  border-style: inset;
  border-width: 1px;
}

hr {
  background-color: #CCCCCC;
  height: 1px;
}

.body-main-row-body {
    /* background-color: #F8F9F9; */
}
.body-main-row-foot {
    /* background-color: #cccccc; */
}

.section--map {
  background-color: #555555;
  text-align: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1; 
}
@media only screen and (max-width: 543px) {
  .section--map {
    padding-top: 100%; 
  } 
}
@media only screen and (min-width: 544px) {
  .section--map {
    padding-top: 32%; 
  } 
}

.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem
}
.card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem
}
.card-text:last-child {
    margin-bottom: 0
}
.card-img-top {
    width: 100%;
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px)
}
.box-shadow { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05); }

.bg-white {
  background-color: #fff;
  padding: .25rem
}

#tagcloud {
  width: 100%;
  /* background:#CFE3FF; */
  color:#0066FF;
  padding: 10px;
  border: 0px solid #559DFF;
  text-align:center;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px;
  border-radius: 4px;
}
#tagcloud span {
  padding: 4px;
}
#tagcloud .smallest {
  font-size: 100%;
  color: #000000;
}
#tagcloud .small {
  font-size: 125%;
  color: #21FF06;
}
#tagcloud .medium {
  font-size: 150%;
  color: #FC02FF;
}
#tagcloud .large {
  font-size: 175%;
  color: #0000FF;
}
#tagcloud .largest {
  font-size: 200%;
  color: #FC0107;
}
#tagcloud a:link, #tagcloud a:visited {
  text-decoration:none;
  /* color: #333; */
}
#tagcloud a:hover {
  text-decoration: underline;
}
