@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: 'Kanit', sans-serif !important;
  font-size: 16px;
  background-color: #FFF;
}

a {
  text-decoration: auto;
  color: #000;
}

.iframe-container {
  position: relative;
  width: 100%;
  height: auto;
  /* padding-bottom: 75%; */
  /* This is the aspect ratio of a 16:9 video */
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 720px;
}

.logo {
  max-height: 61px;
}

.nav-link {
  font-size: 1.35rem !important;
  font-weight: 200 !important;
}

.logo-top {
  max-height: 140px;
  width: auto;
  margin-bottom: 20px;
}

.card-img-top {
  opacity: 1;
  display: block;
  cursor: pointer;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.card:hover .card-img-top {
  opacity: 0.3;
}

.card:hover .middle {
  opacity: 1;
}

.play-icon {
  /*background-color: #ffffff; */
  background-color: #00aff0;
  color: white;
  border-radius: 50%;
  padding: 14px;
  margin-top: -80px;
}

.play-icon:hover {
  /* background-color: #d8d8d8; */
  background-color: #007aa7;
  padding: 14px;
  margin-top: -80px;
}

.newBG {
  background-color: #00AFF0 !important;
  border-top: 1px solid #00AFF0;
  border-bottom: 1px solid #00AFF0;
}

.bg-full-dark {
  /* background-color: #000 !important;
  border-top: 1px solid #2d2d2d;
  border-bottom: 1px solid #2d2d2d; */
  background-color: #1FB9F2 !important;
  border-top: 0px solid #1FB9F2;
  border-bottom: 0px solid #1FB9F2;
}

.av-card {
  /*  background-color: #fff;
  border: 1px solid #ffffff;
  color: #000 !important;*/
  background-color: #f0fbff;
  border: 1px solid #ffffff;
  color: #000 !important;
  padding: 9px;
  border-radius: 8px;
}

.page-link {
  background-color: #700 !important;
  color: #fff;
}

.active>.page-link,
.page-link.active {
  background-color: #000 !important;
  color: #fff;
  border: 1px solid;
}

.page-link:hover {
  background-color: #000 !important;
  color: #fff;
  border: 1px solid;
}

.card-footer {
  background-color: rgb(47 47 47);
}

.search-av {
  color: #FFF;
  border: 1px solid #2f2f2f;
}

.form-control:focus {
  color: #FFF;
}

#skipButton {
  position: absolute;
  margin-left: 10px;
  margin-top: 10px;
}

.ad-img {
  max-width: 750px;
}

.title-av-home {
  /*  background-color: #EEE;
    color: #000; */
  background-color: #16B6F1;
  color: #000;
}

.input-search,
.input-search:focus {
  background-color: #ffffff;
  border-color: #00aff0;
  line-height: 2;
  color: #000;
}

.btn-search {
  color: #FFF;
  line-height: 2;
  background-color: #004b67;
  border-color: #004b67;
  border-radius: 0 4px 4px 0;
}

.wp-pagenavi {
  text-align: center;
  margin-bottom: 20px;
}

.wp-pagenavi .current,
.wp-pagenavi a,
.wp-pagenavi span {
  border-radius: 3px;
  border: solid 1px #00aff0;
  color: #00aff0;
  padding: 0 12px !important;
  line-height: 30px;
  display: inline-block;
  margin: 0 3px;
}

.wp-pagenavi a:hover,
.wp-pagenavi .current {
  background: #00aff0;
  color: #fff;
  text-decoration: none;
}

#scrollToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  /* 
  background-color: #333333ba;
  */
  background-color: #00aff0;
  color: white;
  cursor: pointer;
  font-size: 2.3rem;
  padding: 0 6px;
  border-radius: 4px;
}

#scrollToTopBtn:hover {
  background-color: #333333;
}


.my-video {
  /* position: absolute; */
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: auto;
  /* ทำให้สูงปรับตามอัตราส่วนของวีดีโอ */
}

.skip-ads {
  position: absolute;
  font-size: 1.5rem;
  top: 70px;
  color: #FFF;
  padding: 6px 20px;
  display: none;
  background-color: #404040;
  z-index: 102;
  cursor: pointer;
}

.register-ads{
  position: absolute;
  font-size: 1.5rem;
  top: 15px;
  color: #FFF;
  padding: 6px 20px;
  /* display: none; */
  background-color: #da4545;
  z-index: 102;
  cursor: pointer;
}

.intrinsic-container {
  position: relative;
  height: 0;
  overflow: hidden;
  display: none;
}


.intrinsic-container-16x9 {
  padding-bottom: 56.25%;
}

.intrinsic-container-4x3 {
  padding-bottom: 75%;
}

.intrinsic-container iframe {
  /* position: absolute; */
  /* top: 0;
  left: 0; */
  position: relative;
  width: 100%;
  display: flex;
  height: 720px;
}

.display-block {
  display: contents !important;
}

@media only screen and (max-width: 991px) {
  body {
    font-size: 14px;
  }
  .skip-ads {
    font-size: 1rem;
    top: 55px;
    color: #FFF;
    padding: 6px 20px;
  }


  .register-ads{
    font-size: 1rem;
    top: 15px;
    color: #FFF;
    padding: 6px 20px;
  }


  .navbar-toggler {
    border: 1px solid #434343;
  }

  .navbar-icon-mobile {
    color: #ffbf00;
    font-size: 30px;
  }

  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
  }


  .iframe-container iframe {
    height: 100%;
  }

  

  .logo-top {
    max-height: 64px;
  }

  .white_content3,
  .white_content2 {
    display: none !important;
  }

  .wp-pagenavi .current,
  .wp-pagenavi a,
  .wp-pagenavi span {
    border-radius: 3px;
    border: solid 1px #4141a0;
    color: #4141a0;
    padding: 0 6px !important;
    line-height: 22px;
    font-size: 12px;
    display: inline-block;
    margin: 0 1px;
  }

  .bg-full-dark {
    padding: 0;
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
  }

  .pd0-mobile {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .white_content1 {
    margin-bottom: 0px !important;
  }

  .av-card {
    padding: 3px;
  }

  .play-icon {
    margin-top: -37px;
  }
}