/* Enter Animation Fonts */
@font-face {
  font-family:'GalleryModern';
  src: local('GalleryModern'), local('../FONT/GalleryModern'),
      url('../FONT/GalleryModern.otf') format('opentype');
}

@font-face {
  font-family:'Branch';
  src: local('Branch'), local('../FONT/Branch'),
      url('../FONT/Branch.otf') format('opentype');
}

@import url('https://fonts.cdnfonts.com/css/gill-sans');


#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

body {
  visibility: hidden;
}


#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* เพิ่ม transition */
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

#loading-screen.fade-out {
  opacity: 0;
}

.loader {
  text-align: center;
}

#loading-progress {
  font-size: 24px;
  margin-top: 10px;
}


.element_background0,
.element_background1,
.element_background2,
.element_background3,
.element_background4,
.element_background5,
.element_background6,
.enter_site_element1
.enter_site_element2
.enter_site_element3
.enter_site_element4
.enter_site_element5
.enter_site_element6
.enter_site_element7
.element1,
.element2,
.element3,
.element4,
.element6,
.element7,
.element8 {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
    /* เพิ่ม properties เหล่านี้ */
    perspective: 2000;
    -webkit-perspective: 2000;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    /* ป้องกัน GPU acceleration issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#enter_site_introl {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  perspective: 2000;
  -webkit-perspective: 2000;
}

.enter_heading,
.outrol_heading{
  position: absolute;
  width: 100%;
  opacity: 1;
  top: 45%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 16;
  white-space: nowrap;
}
  .enter_heading h1,
  .outrol_heading h1{
    font-family: "GalleryModern";
    font-size: 12vh;
    font-weight:lighter;
    letter-spacing: 0.1em;
    text-align: center;
    color: #fff;
  }
  .outrol_heading h1{
    font-size: 4vh;
  }


  .enter_heading h2{
    font-family:'Gill Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5em;
    text-align: center;
    color: #fff;
  }

  .enter_heading h3{
    font-family:'Branch';
    font-size: 2.1vh;
    font-weight: 100;
    font-style: italic;
    text-align: center;
    color: #fff;
  }

  .enter_heading button{
    font-family:'Branch';
    font-size: 2.1vh;
    line-height: 1em;
    font-weight: 400;
    font-style: italic;
    text-align: center;
    color: #1f1f1f;
    background-color: #fff;
    border-radius: 2.5em;
    border: white solid;
    cursor: pointer;
    padding: 0 1.5em;
    height: 2em;
    margin: 2em auto 0;
    position: absolute;
    left: 50%;
    transform: translate(-50%,-50%);


    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
}


/* Enter Animation */
.element_background0{
  position: absolute;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 8;
}
.element_background1{
  position: absolute;
  width: 170%;
  top: -115%;
  left: -38%;
  z-index: 10;
}
.element_background2{
  position: absolute;
  width: 80%;
  top: -20%;
  left: 5%;
  transform: rotate(-5deg);
  z-index: 9;
}
.element_background3{
  z-index: 11;
  width: 100%; 
  height: 100vh; 
  position: absolute; 
  background: rgb(0,0,0);
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0, 0, 0, 0.397) 100%);
  top: 50%; 
  left: 50%; 
  transform: translate(-50%,-50%);
  opacity: 0;
  
}
.element_background4{
  z-index: 15; 
  width: 100%; 
  height: 100vh; 
  position: absolute; 
  background: rgb(0,0,0);
  background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0, 0, 0, 0) 30%);
  top: 50%; 
  left: 50%; 
  transform: translate(-50%,-50%);
  opacity: 0;
  
}

.element_background6{
  opacity: 0;
  position: absolute;
  width: 15%;
  top: 28%;
  left: 43%;
  transform: rotate(40deg);
  z-index: 10;
}

.element_background5{
  position: absolute;
  width: 80%;
  top: -40%;
  left: 6%;
  transform: rotate(15deg);
  z-index: 9;
}

.element1{
  position: absolute;
  width: 22.5%;
  top: 25%;
  left: 13%;
  transform: translate(-50%,-50%) rotate(-11deg); /* rotate(-7deg) */
  z-index: 12;
}

.element2{
  position: absolute;
  width: 27%;
  top: 75%;
  left: 65%;
  transform: translate(-50%,-50%) rotate(-10deg); /* rotate(-7deg) */
  z-index: 12;
}

.element3{
  position: absolute;
  width: 31%;
  top: 75%;
  left: 85%;
  transform: translate(-50%,-50%) rotate(8deg); /* rotate(-7deg) */
  z-index: 13;
}

.element4{
  position: absolute;
  width: 20%;
  top: 75%;
  left: 14%;
  transform: translate(-50%,-50%) rotate(-3deg); /* rotate(-7deg) */
  z-index: 12;
}

.element6{
  position: absolute;
  width: 28%;
  top: 100%;
  left: 36%;
  transform: translate(-50%,-50%) rotate(11deg); /* rotate(-7deg) */
  z-index: 12;
}

.element7{
  position: absolute;
  width: 25%;
  top: 0%;
  left: 31%;
  transform: rotate(4deg); /* rotate(-7deg) */
  z-index: 12;
}

.element8{
  position: absolute;
  width: 20%;
  top: 0%;
  left: 74%;
  transform: rotate(0deg); /* rotate(-7deg) */
  z-index: 12;
}

        
.enter_site_element1{
  position: absolute;
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 12;
}

.enter_site_element2{
  position: absolute;
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 12;
}

.enter_site_element3{
  position: absolute;
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 13;
}

.enter_site_element4{
  position: absolute;
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 10;
}

.enter_site_element5{
  position: absolute;
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 13;
}

.enter_site_element6{
  position: absolute;
  /* width: 9.48%; */
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 10;
}

.enter_site_element7{
  position: absolute;
  /* width: 40%; */
  width: 0%;
  top: 50%;
  left: 50%;
  z-index: 1;
}


.entersite_subheading{
  opacity: 0;
  z-index: 30;
  text-align: center;
  align-content: center;
  margin: 0;
  left: 50%;
  bottom: 10%;
  width: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.entersite_subheading p{
  font-family: "GalleryModern";
  font-size: 1.13rem;
  font-weight:lighter;
  letter-spacing: 0.1em;
  text-align: center;
  color: #1f1f1f;
  z-index: 15;
  line-height: 22px;
  text-shadow: 0 2 30px rgb(255, 255, 255);
}

.entersite_subheading button{
  font-family:'Branch';
  font-size: 2.1vh;
  line-height: 1em;
  font-weight: 400;
  font-style: italic;
  text-align: center;
  color: #1f1f1f;
  background-color: #fff;
  border: 2em #1f1f1f solid;
  border-width: 0.1px;
  border-radius: 3em;

  cursor: pointer;
  padding: 0 1.5em;
  height: 2em;
  margin: 2em auto 0;
  position: absolute;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 1;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.entersite_heading{
  z-index: 30;
  text-align: center;
  align-content: center;
  margin: 0;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}

.entersite_heading h1{
  opacity: 0;
  font-family: "GalleryModern";
  font-size: 5vh;
  font-weight: 100;
  letter-spacing: 0.1em;
  text-align: center;
  color: #1f1f1f;
  z-index: 15;
  /* text-shadow: rgba(0, 0, 0, 0.239) 20px 0 10px;  */
  /* -webkit-text-stroke: 0.6px black;
  font-family: sans;
  color: white; */
}

.leftside{
  left: 8.5vh;
  padding-left: 2vh;
  cursor: pointer;
}
.rightside{
  right: 8.5vh;
  padding-right: 2vh;
  cursor: pointer;

}
.entersite_IconWrapper {
  opacity: 0;
  row-gap: 5vh;
  position: absolute;
  align-content: center;
  top: 50%;
  transform: translate(0%,-50%);
}

.entersite_IconWrapper a{
  color: #1f1f1f6c;
}


        .entersite_IconWrapper .icon {
          margin: auto;
          text-align: center;
          cursor: pointer;
          display: grid;
          grid-template-columns: 1fr;
          align-items: center;
          justify-content: center;
          /* flex-direction: column; */
          position: relative;
          z-index: 2;
          transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }
                .entersite_IconWrapper .icon span {
                  border: solid #1f1f1f;
                  border-width:  0.07em;
                  display: flex;
                  height: 45px;
                  width: 45px;
                  background: #fff;
                  border-radius: 50%;
                  position: relative;
                  z-index: 2;
                  margin: auto;
                  text-align: center;
                }
                        .entersite_IconWrapper .icon span i {
                          flex: 1;
                          flex-direction: column;
                          align-items: center;
                          justify-content: center;
                          margin: auto;
                          font-size: 1.5rem;
                        }
        .entersite_IconWrapper .icon p {
          font-family: "Herbert-regular";
          font-size: 1.4rem;
          font-weight: 600px;
          text-align: center;
          margin: 1em 0 0 0;
          padding: 0em;
          text-decoration: none;
        }