body {
  background-image: url(img/bg.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

#navbar {
  background: rgba(255, 255, 255, 0.425);
  backdrop-filter: blur(20px);
  position: fixed;
  width: 100%;
  display: block;
  transition: top 0.3s;
  z-index: 99999;
  display: flex;
  max-width: 700px;
}

#navbar a {
  float: left;
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
}

#navbar a:hover {
  background-color: #ddd;
  color: black;
}

#stars {
  display: block;
  position: relative;
  width: 100%;
  height: 16rem;
  height: 100vh;
}

.btn:link,
.btn:visited {
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 40px;
  display: inline-block;
  border-radius: 100px;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.btn::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}

.btn-white::after {
  background-color: rgba(255, 255, 255, 0.5215686275);
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}

.btn-animated {
  animation: moveInBottom 5s ease-out;
  animation-fill-mode: backwards;
}

@keyframes moveInBottom {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

.image-container {
  width: 100%; /* ปรับขนาดตามต้องการ */
  height: 100%; /* ปรับขนาดตามต้องการ */
  overflow: hidden; /* ป้องกันไม่ให้ภาพที่เบลอหลุดออกมานอกขอบ */
  position: relative;
}

.contact {
  width: 100px;
  margin-top: 200px;
  margin-bottom: 10px;
  display: block;
  text-align: start;
  color: #5a4e83;
  text-decoration: none;
}
.contact:hover {
  color: #13229f;
}

@media (max-width: 1024px) {
  /* Hide on screens 1024px and below (tablets and phones) */
  .contact {
      display: none;
  }
}


.blur-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ปรับภาพให้เต็มพื้นที่โดยไม่เสียอัตราส่วน */
  /* filter: blur(8px); */ /* ปรับค่าความเบลอได้ตามต้องการ เช่น 5px, 10px เป็นต้น */
}