/* Extra small devices (phones, less than 768px) */
/* No media query since this is the default in Bootstrap */
@import url(./template.css);

body {
  font-family: 'Montserrat', serif;
  font-weight: normal;
  background-color: var(--primary-color);
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  scroll-behavior: smooth;
  flex-direction: column;
}

.main-control {
  padding: 5%;
  display: grid;
  width: 100%;
  grid-template-columns: 25% 25% 25% 25%;
  /* CSS rules for extra small devices */
}

.overlay-cover-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* สีดำโปร่งแสง */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-video-play-button{
  width: 100px;
  height: 100px;
  object-fit: contain;
  cursor: pointer;
  z-index: 99999;
}

.header-control {
  width: 100%;
  height: 80px;
  display: flex;
  background-color: var(--primary-color);
  padding: 0px 120px;
  position: fixed;
  z-index: 999;
}

.header-logo-control {
  cursor: pointer;
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
}

.header-logo {
  width: auto;
  height: 50px;
  object-fit: contain;
}

.header-menu {
  margin-left: auto;
  display: flex;
  margin-top: auto;
  margin-bottom: auto;
}

.header-menu-text {
  cursor: pointer;
  font-size: 16px;
  font-weight: 300;
  color: #EDEDED;
  text-decoration: none;
  margin-left: 56px;
  margin-top: auto;
  margin-bottom: auto;
}

.header-menu-text:active {
  color: var(--green-main);

}

.header-menu-text:hover {
  color: var(--green-main);
}

.header-menu-text:focus {
  color: var(--green-main);
}

.cover-control {
  margin-top: 80px;
  height: auto;
  width: 100%;
  padding-bottom: 60px;
  height: auto;
  display: flex;
  position: relative;
  flex-direction: column;
}

.cover-text-control {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9;
  margin-top: 10%;
  display: flex;
  flex-direction: column;
}

.wrapper {
  display: inline-block;
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
}



.cover-container-green {
  z-index: 1000;
  position: relative;
  width: 200px;
  /* Adjust as needed */
  height: 100px;
  margin-top: 36px;
  /* Adjust as needed */
  overflow: hidden;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  /* Center items vertically */
  justify-content: flex-start;
  /* Align items to the left */
}

.green-bar {
  position: absolute;
  width: 30px;
  /* Width of the green bar */
  height: 80px;
  /* Height of the green bar */
  background-color: #00AB4F;
  /* Green color */
  z-index: 2;
  opacity: 0;
  /* Above the text */
  /* animation: slideRight 1s forwards 2s; */
  /* Animation for sliding right */
}

.cover-text-green {
  font-size: 60px;
  /* Adjust as needed */
  color: #00AB4F;
  /* Text color */
  font-weight: 900;
  z-index: 1;
  /* Below the green bar */
  opacity: 0;
  /* Start with text invisible */
  margin-left: 0px;
  /* Space for the green bar */
  animation: showText 0.5s 2.2s forwards;
  /* Animation for showing text, delayed by 1s */
}

.cover-bg-black-cover {
  width: 100%;
  height: auto;
  display: flex;
  position: relative;
  /* Adjust as needed, vh unit for full viewport height */
}

.cover-arrow-down {
  display: none;
}

.video-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  /* Black with opacity */
  z-index: 2;
  /* Ensure overlay is above the video but below the content */
}

.cover-bg-video {
  width: 100%;
  height: auto;
  /* background-color: black; */
  background-size: cover; 
   background-position: bottom bottom;
  z-index: -100;
  opacity: 1;
  animation: none;
}


.cover-bg-video-2 {
  width: 100%;
  position: absolute;
  height: auto;
  top: 0;
  background-size: cover;
  background-position: bottom bottom;
  z-index: -99;
  opacity: 1;
}
.cover-arrow-control {
  position: absolute;
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  left: 0;
  right: 0;
  top: 0;
  margin-top: 75vh;
  z-index: 99;
  transition: opacity 0.5s ease-out;
}

.cover-arrow-text {
  z-index: 9;
  cursor: pointer;
  font-size: 20px;
  font-weight: 200;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-white-color);
}

.cover-arrow-rotate {
  cursor: pointer;
  z-index: 9;
  /* Rotate the entire SVG by 180 degrees around its center */
  transform: rotate(90deg);
  margin-top: 16px;
  margin-left: auto;
  height: 24px;
  margin-right: auto;
  /* Ensures the rotation pivot is the center of the SVG */
  transform-origin: center;
  /* This transition ensures that the hover effect on the line is smooth */
  transition: transform 0.3s ease;
}

.arrow-line {

  cursor: pointer;
  stroke-dasharray: 45;
  /* Full length of the line */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.3s ease;
  /* Transition for a smooth effect */
}

svg:hover .arrow-line {
  stroke-dashoffset: -55;
  /* Adjust as needed to make the tail shorter */
}



@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}
.wrapper span {
  font-size: 200px;
  font-weight: 900;
  color: white;
  opacity: 0;
  height: 100px;
  z-index: 9;
  display: inline-block;
  transform: translateY(0%);
  animation: fadeInUpwards 0.9s ease forwards;
}

@keyframes fadeInUpwards {
  0% {
    opacity: 0;
    transform: translateY(100%) rotate(2deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}



.wrapper span:nth-child(1) {
  animation-delay: 0.1s;
}

.wrapper span:nth-child(2) {
  animation-delay: 0.14s;
}

.wrapper span:nth-child(3) {
  animation-delay: 0.18s;
}

.wrapper span:nth-child(4) {
  animation-delay: 0.22s;
}

.wrapper span:nth-child(5) {
  animation-delay: 0.26s;
}

.wrapper span:nth-child(6) {
  animation-delay: 0.30s;
}

.wrapper span:nth-child(7) {
  animation-delay: 0.34s;
}

.wrapper span:nth-child(8) {
  animation-delay: 0.40s;
}

.wrapper span:nth-child(9) {
  animation-delay: 0.46s;
}

.wrapper-last-text {
  font-size: 200px;
  font-weight: 900;
  color: white;
  opacity: 0;
  height: 100px;
  display: inline-block;
  transform: translateY(0%);
  animation: fadeInUpwards 0.9s ease forwards;
  animation-delay: 0.46s;
}



@keyframes slideRight {
  from {
    left: 0;
    opacity: 1;
  }

  to {
    opacity: 1;
    left: 70%;
    /* Slide to the right */
  }
}

@keyframes showText {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}



img {
  /* Standard size and transition setup */
  width: 100px;
  /* or your preferred size */
  height: auto;
  /* maintain aspect ratio */
  transition: transform 0.3s ease-in-out;
  /* Smooth transition for the zoom effect */
}

img:hover {
  /* Zoom in effect on hover */
  transform: scale(1.1);
  /* Adjust scale value as needed for the desired zoom level */
}


@media (min-width: 1441px) and (max-width: 1700px) {
  .cover-arrow-control {
    position: absolute;
    display: flex;
    opacity: 1;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    margin-top: 70vh;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
  }

}

/* Extra large devices (large desktops, 1400px and up) */
@media (min-width: 1441px) and (min-height: 700px) {

  .cover-arrow-control {
   
    margin-top: 75vh;
   
  }
}

/* Extra large devices (large desktops, 1400px and up) */
@media (max-width: 1440px) {
  .header-control{
    padding: 0px 30px;
  }
  .header-logo{
    height: 40px;
  }

  .cover-arrow-control {
   
    margin-top: 65vh;
   
  }

  .cover-text-control{
    margin-top: 15%;
  }
  

  .wrapper span {
    font-size: 150px;

  }

  .wrapper-last-text {
    font-size: 150px;

  }

}

/* Extra large devices (large desktops, 1400px and up) */
@media (max-width: 1440px) and (min-height: 800px) {

  .cover-arrow-control {
   
    margin-top: 75vh;
   
  }
}


/* Large devices (laptops/desktops, 1200px and up) */
@media (max-width: 1200px) and (max-height: 750px) {

  .cover-arrow-control {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    margin-top: 70vh;
    z-index: 99;
    transition: opacity 0.5s ease-out;
  }

  .wrapper span {
    font-size: 150px;

  }

  .wrapper-last-text {
    font-size: 150px;

  }
}
/* Large devices (laptops/desktops, 1200px and up) */
@media (max-width: 1200px) and (min-height: 750px) {

  .cover-arrow-control {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    margin-top: 550px;
    z-index: 99;
    transition: opacity 0.5s ease-out;
  }

}
/* Medium devices (small laptops, 992px and up) */
@media (max-width: 992px) {

  .header-control{
    padding: 0px 30px;
  }
  .header-logo{
    height: 30px;
  }


  .wrapper span {
    font-size: 110px;

  }

  .wrapper-last-text {
    font-size: 110px;

  }
}

/* Medium devices (small laptops, 992px and up) */
@media (max-width: 850px) {
  .header-control{
    padding: 0px 60px;
  }
  .header-logo{
    height: 25px;
  }


  .wrapper span {
    font-size: 110px;

  }

  .wrapper-last-text {
    font-size: 110px;

  }

  .cover-arrow-text {
    font-size: 14px;
  }
}

/* Small devices (tablets, 768px and up) */
@media (max-width: 768px) {
  .header-logo{
    height: 25px;
  }
  .header-control {
    height: 106px;
    padding: 12px 10px;
    height: 80px;
  }

  .main-control {
    padding: 5%;
    display: grid;
    width: 100%;
    grid-template-columns: 50% 50%;
    /* CSS rules for extra small devices */
  }



  .wrapper span {
    font-size: 80px;

  }

  .wrapper-last-text {
    font-size: 80px;

  }

  .cover-arrow-text {
    font-size: 14px;
  }

  .cover-arrow-rotate{
    margin-top: -4px;
  }
}
@media (min-width: 768px) and (min-height: 500px) {
 
  .cover-arrow-control {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    margin-top: 45%;
    z-index: 99;
    transition: opacity 0.5s ease-out;
  }
}
@media (max-width: 767px) and (min-height: 500px) {

  .cover-arrow-control {
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    position: absolute;
    margin-top: 45%;
    z-index: 99;
    transition: opacity 0.5s ease-out;
  }
}
/* Small devices (tablets, 768px and up) */
@media (max-width: 552px) {
  .header-logo{
    height: 15px;
  }

  .cover-video-play-button{
    width: 40px;
    height: 40px;
  }
  .cover-arrow-control {
    position: absolute;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin-bottom: 20px;
    transition: opacity 0.5s ease-out;
  }

  .wrapper {
    height: 50px;
  }

  .wrapper span {
    font-size: 40px;
    height: 50px;
  }

  .wrapper-last-text {
    font-size: 40px;
    height: 50px;

  }

  .cover-arrow-text {
    font-size: 8px;
  }

  .cover-text-green {
    font-size: 30px;
    margin-left: auto;
    margin-right: auto;
  }

  .green-bar {
    width: 20px;
    height: 40px;
    margin-left: 24px;
  }

  .cover-container-green {
    width: 180px;
    margin-top: 3px;
    height: 30px;
  }

  .header-control {
    height: 106px;
    padding: 12px 10px;
    height: 80px;
  }

  .header-menu-text {
    font-size: 12px;
    margin-left: 8px;
    text-decoration: none;
  }

  a:hover {
    color: var(--green-main);
  }

  .cover-text-control {
    margin-top: 15%;
  }

  .cover-arrow-down {
    display: flex;
    height: 20px;
    width: auto;
    object-fit: contain;
    margin-left: auto;
    margin-right: auto;
  }

  .cover-arrow-rotate {
    height: 10px;
    margin-top: -4px;

  }



  @keyframes slideRight {
    from {
      left: 0;
      opacity: 1;
    }

    to {
      opacity: 1;
      left: 60%;
      /* Slide to the right */
    }
  }

}