* {
  margin    : 0px;
  padding   : 0px;
  box-sizing: border-box;
}

body,
html {
  height         : 100%;
  margin         : 0;
  font-family    : 'Charm', sans-serif;
  color          : #fff;
  background     : #000;
  align-items    : center;
  justify-content: center;
  text-align     : center;
  position       : relative;
}


@media (min-width: 1024px) {
  body::before {
    content : '';
    position: absolute;
    top     : 150px;
    left    : 500px;
    width   : 50%;
    height  : 50%;
    background-image:
      radial-gradient(2px 2px at 10% 20%, #ffffffcc, transparent),
      radial-gradient(1px 1px at 30% 80%, #ffffff88, transparent),
      radial-gradient(2px 2px at 70% 50%, #ffffffaa, transparent),
      radial-gradient(1px 1px at 90% 10%, #ffffff66, transparent),
      radial-gradient(1.5px 1.5px at 50% 90%, #ffffff77, transparent),
      radial-gradient(1px 1px at 80% 70%, #ffffff55, transparent),
      radial-gradient(2px 2px at 40% 40%, #ffffffbb, transparent);
    background-repeat: repeat;
    background-size  : 300px 300px;
    opacity          : 0.5;
    z-index          : 1;
    pointer-events   : none;
    animation        : moveStars 50s ease-in-out infinite alternate;
    filter           : brightness(1.3);
    align-items      : center;
    justify-content  : center;
    text-align       : center;
  }

  @keyframes moveStars {
    0% {
      transform: translate(0, 0) rotate(0deg);
    }

    25% {
      transform: translate(-30px, 20px) rotate(10deg);
    }

    50% {
      transform: translate(40px, -25px) rotate(20deg);
    }

    75% {
      transform: translate(-20px, 30px) rotate(15deg);
    }

    100% {
      transform: translate(15px, -15px) rotate(30deg);
    }
  }
}

.limiter {
  width : 100%;
  margin: 0 auto;
}

.container-image100 {
  width          : 100%;
  min-height     : 100vh;
  display        : -webkit-box;
  display        : -webkit-flex;
  display        : -moz-box;
  display        : -ms-flexbox;
  display        : flex;
  flex-wrap      : wrap;
  justify-content: center;
  align-items    : center;
  padding        : 15px;
  background     : #000;
}

/*.image100-pic {
  width          : 100%;
  max-width      : 400px;
  aspect-ratio   : 1 / 1;
  border         : 5px solid #fff;
  border-radius  : 50%;
  overflow       : hidden;
  display        : flex;
  justify-content: center;
  align-items    : center;
  margin         : 0 auto;
  transition     : border-color 0.3s ease, box-shadow 0.3s ease;
}

.image100-pic img {
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  filter    : grayscale(100%);
  transition: filter 0.3s ease;
}

.image100-pic img:hover {
  filter: grayscale(0%);
}
*/

.image100-pic {
  width          : 100%;
  max-width      : 400px;
  aspect-ratio   : 1 / 1;
  border-radius  : 50%;
  overflow       : hidden;
  margin         : 0 auto;
  display        : flex;
  justify-content: center;
  align-items    : center;

  /* border gradient */
  border: 5px solid transparent;
  background: linear-gradient(45deg, #ffd700, #ffa500) padding-box, #fff border-box;

  /* slide-up effect */
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-in-out, box-shadow 0.3s ease, transform 0.3s ease;
}

.image100-pic.active {
  opacity: 1;
  transform: translateY(0);
}

.image100-pic img {
  width     : 100%;
  height    : 100%;
  object-fit: cover;
  filter    : grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.image100-pic:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.image100-pic:hover {
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 5px 15px rgba(0,0,0,0.3);
  cursor: pointer;
}

h1 {
  font-size  : 2rem;
  line-height: 1.5;
  margin     : 0;
  color      : #f0f0f0;
  animation  : gradientShift 3s ease-in-out infinite;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

h2 {
  font-weight: 400;
  margin     : 10px 0 20px;
  line-height: 1.6;
  font-size  : 1.3rem;
  color      : #f0f0f0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  animation  : fadeInUp 1.5s ease-out 0.5s both;
}

p {
  font-size    : 1.1rem;
  color        : #ddd;
  margin-bottom: 40px;
  text-shadow  : 1px 1px 2px rgba(0, 0, 0, 0.8);
  animation    : fadeInUp 1.5s ease-out 1s both;
}

button.enter {
  background   : linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  border       : 2px solid #ffd700;
  color        : #fff;
  padding      : 12px 30px;
  font-size    : 1rem;
  border-radius: 50px;
  cursor       : pointer;
  transition   : all 0.4s ease;
  position     : relative;
  overflow     : hidden;
  font-family  : 'Charm', sans-serif;
  font-weight  : 500;
  text-shadow  : 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation    : fadeInUp 1.5s ease-out 1.5s both;
}

button.enter::before {
  content   : '';
  position  : absolute;
  top       : 0;
  left      : -100%;
  width     : 100%;
  height    : 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.4), transparent);
  transition: left 0.5s ease;
}

button.enter:hover::before {
  left: 100%;
}

button.enter:hover {
  background  : linear-gradient(45deg, #ffd700, #ffed4e);
  color       : #000;
  border-color: #ffed4e;
  transform   : translateY(-2px);
  box-shadow  :
    0 5px 15px rgba(255, 215, 0, 0.4),
    0 0 20px rgba(255, 215, 0, 0.3);
}

/* เอฟเฟกต์ตอนเข้า */
.animate-content {
  opacity   : 0;
  transform : translateY(40px);
  /* เริ่มจากเลื่อนลง */
  transition: all 1.2s ease-in-out;
}

/* เมื่อโหลดเสร็จจะค่อยๆ ขึ้นและจางเข้ามา */
.animate-content.active {
  opacity  : 1;
  transform: translateY(0);
}

/* เอฟเฟกต์ตอนออก */
body.fade-out {
  opacity   : 0;
  transition: opacity 1s ease-in-out;
}

/* เพิ่มเอฟเฟกต์นุ่มนวลทั้งหน้า */
body.page-animate {
  transition: opacity 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .image100-pic {
    max-width: 250px;
  }
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  button.enter {
    padding  : 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 667px) {
  .image100-pic {
    max-width: 250px;
  }
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  p {
    font-size: 1rem;
  }

  button.enter {
    padding  : 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .image100-pic {
    max-width: 150px;
  }
  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1rem;
  }
}

@media (max-width: 430px) {
  .image100-pic {
    max-width: 250px;
  }
}