.section--sparkles {
	position: relative;
	overflow-y: auto;
	overflow-x: hidden;
	min-height: 100vh;
	width: 100%;
  background-color: #070707;
}
@media only screen and (min-width: 1200px) {
	.section--sparkles {
		overflow: hidden;
	}
}
.sparkles {
  position: absolute;
  bottom: 0;
  height: 100vh;
  width: 100%;
  z-index: 0;
}
@media only screen and (min-width: 700px) {
  .sparkles {
    height: 100vh;
  }
}

.sparkle {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: block;
  height: 65px;
  width: 65px;
  /* background-image: url(star.png); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  animation-name: sparkle;
  animation-duration: 9s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: forwards;
  opacity: 0;
  z-index: 1;
}

.sparkle--small {
  height: 30px;
  width: 30px;
}

.sparkle--left {
  animation-name: sparkleLeft;
}

@keyframes sparkle {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  3% {
    transform: scale(1) rotate(15deg);
    opacity: 1;
  }
  6% {
    transform: scale(1) rotate(15deg);
    opacity: 1;
  }
  9% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
}
@keyframes sparkleLeft {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  3% {
    transform: scale(1) rotate(-15deg);
    opacity: 1;
  }
  6% {
    transform: scale(1) rotate(-15deg);
    opacity: 1;
  }
  9% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0) rotate(0deg);
    opacity: 1;
  }
}
/*
* Unrelated... but pretty like.
*/
body {
  margin: 0;
}

.bg-pt {
	background: url(/celebrate/images/bg_pt.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
	height: 100%;
	display: table;
	width: 100%;
  background-color: #070707;
}

.content-wrapper {
	display: table-cell;
	vertical-align: middle;
  text-align: center;
  z-index: 99;
  padding: 20px;
}

.main-image {
  margin-top: 30px;
  margin-bottom: 0px;
}

/* === Mobile: รูปอยู่กลาง ปุ่มชิดด้านล่าง === */
@media only screen and (max-width: 655px) {
  .section--sparkles {
    overflow: hidden;
  }
  .bg-pt {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }
  .content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .main-image {
    margin-top: 0;
    margin-bottom: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .button-container {
    margin-top: auto;
    padding-bottom: 20px;
  }
}

.img {
  max-width: 100%;
  height: auto;
  width: 680px;
}


.title-text {
  color: #ffffff;
  font-size: 32px;
  font-weight: 400;
  margin: 0 0 15px 0;
  font-family: 'Sarabun', 'Tahoma', sans-serif;
}

.subtitle-text {
  color: #ffffff;
  font-size: 20px;
  font-weight: 300;
  margin: 0 0 20px 0;
  font-family: 'Sarabun', 'Tahoma', sans-serif;
}

.divider {
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, #ffffff, transparent);
  margin: 20px auto;
}

.blessing-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 300;
  margin: 20px 0 10px 0;
  font-family: 'Sarabun', 'Tahoma', sans-serif;
}

.team-text {
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  margin: 0 0 30px 0;
  font-family: 'Sarabun', 'Tahoma', sans-serif;
}

@media only screen and (max-width:1450px) {
  .img {
    max-width: 100%;
    height: auto;
  }
}

@media only screen and (max-width: 655px) {
  .img {
    width: 100%;
    height: auto;
  }
  
  .title-text {
    font-size: 24px;
  }
  
  .subtitle-text {
    font-size: 16px;
  }
  
  .blessing-text {
    font-size: 16px;
  }
  
  .team-text {
    font-size: 14px;
  }
  
  .divider {
    width: 150px;
  }
}



/* ปุ่มทั้งสอง */
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;
  /* gap: 24px; */
  margin-top: 20px;
  padding-bottom: 30px;
}

.btn-link {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.btn-link:hover {
  transform: scale(1.05);
  /* opacity: 0.9; */
}

.btn-img {
  max-width: 100%;
  height: auto;
  display: block;
  width: 300px;
}

@media only screen and (max-width: 1480px) {
.img {
    width: 580px;
}
}

@media only screen and (max-width: 655px) {
  /* .button-container {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
  } */
    .btn-img {
        width: 270px;
        text-align: center;
        justify-content: center;
        display: flex;
        margin: auto;
    }
}

@media only screen and (max-width: 460px) {
    .btn-img {
        width: 260px;

    }
}
@media only screen and (max-width:375px) {
    .btn-img {
        width: 90%;

    }
}