@font-face {
    font-family: 'blockregular';
    src: url('../fonts/block-regular-webfont.eot');
    src: url('../fonts/block-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/block-regular-webfont.woff2') format('woff2'),
         url('../fonts/block-regular-webfont.woff') format('woff'),
         url('../fonts/block-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'thai_sans_literegular';
    src: url('../fonts/thaisanslite_r1-webfont.eot');
    src: url('../fonts/thaisanslite_r1-webfont.eot?#iefix') format('embedded-opentype'),
         url('../fonts/thaisanslite_r1-webfont.woff2') format('woff2'),
         url('../fonts/thaisanslite_r1-webfont.woff') format('woff'),
         url('../fonts/thaisanslite_r1-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@media (min-width: 1200px) {
  .container {
    width: 1000px;
  }
}

.img-thumb
{
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0px;
  position: relative;
}
.img-thumb img {
  position:absolute;
  left: -100%;
  right: -100%;
  top: -100%;
  bottom: -100%;
  margin: auto;
  min-height: 100%;
  min-width: 100%;
}

body { background-color: #edecec; font-size: 20px; line-height:23px; font-family: 'thai_sans_literegular'; }
a { color:#666; }
a:hover {  }
a.btn { color: #fff; }
a.btn:hover { color: #fff; }
button.btn:hover { color: #fff; }
.btn { font-size: 1.1em; }
h1, h2, h3, h4, h5 { font-family: 'thai_sans_literegular'; margin-top: 0px; }
h1 { color: #00609b; border-bottom: 1px solid #00609b; padding: 0px 0px 10px 0px; margin: 0px 0px 20px 0px; font-weight: bold; font-size: 40px; }
h2 { color: #003f5e; }
h3 { color: #818181; font-weight: bold; }
h4 { font-size: 20px; color: #0061a1; font-weight: bold; }
h5 { color: #3295AD; font-size: 16px; }
input { font-size: 20px; }
li.active h4.list-group-item-heading { color:#fff; }

/* footer */
.footer { background-color: #3295AD; padding-top:40px;
  padding-bottom: 40px; color:#5e98bc; background-image: url(../images/block2.jpg);
  background-position: center center;
  font-size: 16px;
  line-height: 18px;
  }
.footer a { color:#5e98bc; }
.footer ul { padding: 0px; padding-left:10px; border-left: 1px solid #5e98bc; margin-left: 10px; }
.footer ul li { list-style: none; line-height: 18px; font-size: 16px; color: #5e98bc; }
.footer h2 { color: #fff; line-height: 18px; }
/* footer */

h1.header { background-color: #e20909; color:#fff; padding: 5px 0px 5px 20px; font-size: 30px; }
.red_bar { background-color: #071D2B; color:#fff; }
.comic-cover { border: 1px solid #00609b; }

/* nav bar */
.background { background-image: url(../images/header-bg.jpg); }
.navbar-blue { background-color: #003f5e; font-size: 18px; border-radius: 0px; }
.navbar-blue li a { color: #fff; font-size: 20px; }
.navbar-blue li a:hover { color: #071D2B; }
.smallnav li a { color:#fff; font-size: 14px; }
.smallnav li a:hover { color:#071D2B; }
ul.dropdown-menu { background-color:#003f5e; font-size: 16px; }
a.navbar-brand {
  padding: 0px;
}
.navbar-toggle { border: 1px solid #fff; }
.icon-bar { background-color: #fff; }
/* nav bar */

#wrapper { background-color: #fff; margin-bottom: 40px; margin-top:40px; height:auto; min-height: 700px; padding: 40px 20px; display: block; }
#wrapper img { max-width: 100%; height: auto; }
ul.category { float: right; padding:0px 0 0 0px; margin: 0px; }
ul.category li { float: left; padding: 0px 5px; margin: 0px; line-height: 50px; list-style: none; }

ul.category2 { padding:0px 0 0 0px; margin: 0px; }
ul.category2 li { border-bottom: 1px dashed #B2B2B2; display: block; }
.fix-height { height: 250px; }

/* button color */
.btn-green { background-color: #71ae26; color: #fff; }
.btn-facebook { background-color: #2d4486; color: #fff; }

/* thumbnail */
.img-thumb {
  display: block;
  width: 100%;
  position: relative;
  height: 0;
  padding: 100% 0 0 0;
  overflow: hidden;
}
.img-thumb img {
  position: absolute;
  display: block;
  width: 100%;
  height: auto;

  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
}
.img-thumb img {
  width: 100%;
  height: auto;
}

.block1 { background-color: #0066A9; padding:100px 0px; color: #fff; background-image: url(../images/block1.jpg); background-position: top center; }
.block2 { background-color: #fff; color:#071D2B; padding-top: 40px; padding-bottom: 40px; }
.block2 table { color:#000; }
.block3 a { color: #fff; }

.block4 { padding:50px 0px; color: #fff; background-image: url(../images/block4.jpg); background-position: top center; }
.block4 a { color:#fff; }

.block5 { padding:50px 0px; color: #fff; background-image: url(../images/block5.jpg); background-position: top center; }
.block6 { padding:50px 0px; color: #fff; background-image: url(../images/block6.jpg); background-position: top center; }
.block7 { padding:50px 0px; color: #fff; background-image: url(../images/block7.jpg); background-position: top center; }
.block8 { padding:50px 0px; color: #fff; background-image: url(../images/block8.jpg); background-position: top center; }
.block9 { padding:50px 0px; color: #fff; background-image: url(../images/block9.jpg); background-position: top center; }
.block10 { padding:50px 0px; color: #fff; background-image: url(../images/block10.jpg); background-position: top center; }
.block11 { padding:50px 0px; background-color: #FAB220;  }

.tab .nav-tabs li { margin: 0px; padding:0px;  }
.tab .nav-tabs li a { color:#000; margin: 0px; border-radius:0; border:none; font-size: 18px; text-align: center }
.tab .nav-tabs li a:hover { background-color: #3295AD; }
.tab .nav-tabs li.active a { border:none; outline: 0; margin:0; background-color: #3295AD; }
.nav-tabs, .nav-tabs li.active.focus, .nav-tabs li.active:hover { outline: none; border:none; }

/* page_training */
.training { background-color: #003552; padding: 10px 10px 10px 10px; border-top: 2px solid #3295AD; color: #71b0d6; }
.training a { color: #fff; }
.training_block { margin-bottom: 40px; }
.img-thumbnail {
    padding: 10px;
    margin-bottom: 10px;
    position: relative;
}
.post-box {
    margin: 15px 0 15px 0;
}
.post-box h3 { font-size: 20px; color:#fff; height: 66px; overflow: hidden; }
.post-box a { color: #fff; }
.post-box hr { border-top: 1px solid #3295AD; padding: 0px; margin: 0 0 10px 0; height: 1px; line-height: 1px; }
.post-box .by { font-size: 16px; line-height: 16px; }
.post-box .category { position:absolute; top:0px; left:0px; padding: 10px; width: 100%; z-index: 99; color: #3295AD; transition: background-color 0.5s ease; }
.post-box:hover .category { background-color: #000; opacity: 0.8; }
.blue-border { border: 1px solid #00619c;
  -webkit-box-shadow: 0 7px 10px -6px black;
     -moz-box-shadow: 0 7px 10px -6px black;
          box-shadow: 0 7px 10px -6px black;
}
.counter { background-color:#3295AD; padding:5px 10px; color:#003552; font-size:14px; }

.news_block { position: relative; }
.news_block img { width: 100%; }
.caption { position: absolute; bottom:0px; left:0px; background-color: rgba(50,129,173,0.9); padding: 5px; width: 100%; font-size:20px; }

.slide_caption { position: absolute; top:10%; left:13%; width: 35%; font-size: 22px; line-height: 29px; color: #fff; }
.shadow {
  -moz-box-shadow:    0px 0px 5px 0px #666666;
  -webkit-box-shadow: 0px 0px 5px 0px #666666;
  box-shadow:         0px 0px 5px 0px #666666;
}

.content {  }
.content img { max-width: 100%; height: auto; }

ul.userlist { padding: 0px; }
ul.userlist li { list-style: none; }

/* page_translate */
.vertical .carousel-inner {
  height: auto;
}

.carousel.vertical .item {
  -webkit-transition: 0.6s ease-in-out top;
     -moz-transition: 0.6s ease-in-out top;
      -ms-transition: 0.6s ease-in-out top;
       -o-transition: 0.6s ease-in-out top;
          transition: 0.6s ease-in-out top;
}

.carousel.vertical .active {
  top: 0;
}

.carousel.vertical .next {
  top: 100%;
}

.carousel.vertical .prev {
  top: -100%;
}

.carousel.vertical .next.left,
.carousel.vertical .prev.right {
  top: 0;
}

.carousel.vertical .active.left {
  top: -100%;
}

.carousel.vertical .active.right {
  top: 100%;
}

a.left.carousel-control { background-color: none; width: 10%; background-image: none; }
a.right.carousel-control { background-color: none; width: 10%; background-image: none; }

/* scroll to top */
#top-link-block {
    position: fixed; /* allows it to "slide" up into view */
    bottom: 10px; /* negative of the offset - height of link element */
    right: 15px; /* padding from the left side of the window */
}
#top-link-block a { color: #003F5E; }
/* scroll to top */

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

#activity_box { padding: 0 10px 20px 10px; }
#activity_box .col-xs-3 { margin: 5px; padding: 0px; }
.more_view .col-xs-2 { margin: 0px; padding: 5px; }

img {
  pointer-events: none;
}
