* {
  font-family: "Kanit", serif;
}

body {
  background: #f8f9fa;
  /* สีพื้นหลังแบบอ่อน */
}

.banner-container {
  text-align: center;
  margin-top: 50px;
}

.banner {
  width: 100%;
  height: auto;
  /* Maintain aspect ratio */
  max-width: 800px;
  /* Keep max width for larger screens */
  border-radius: 15px;
  /* มุมโค้งมน */
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
  /* เงาด้านล่าง */
  transition: transform 0.3s ease;
  /* แอนิเมชันการขยับ */
}

.banner:hover {
  transform: scale(1.05);
  /* ขยายขึ้นเมื่อเอาเม้าส์ไปชี้ */
}

.banner-description {
  font-size: 1.5rem;
  color: #343a40;
  /* สีเทาเข้ม */
  margin-top: 20px;
  font-weight: bold;
  animation: fadeIn 1.5s ease;
  /* แอนิเมชันการแสดงผล */
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* style.css */
* {
  font-family: "Kanit", sans-serif;
}

#lotteryImage {
  max-width: 100%; /* ทำให้รูปภาพมีความกว้างสูงสุด 100% ของพื้นที่พ่อแม่ */
  height: auto; /* ปรับความสูงอัตโนมัติตามความกว้างของรูปภาพ */
  display: block;
  margin: 0 auto; /* ทำให้รูปภาพอยู่กึ่งกลาง */
}

/* Navbar บน */
.custom-navbar {
  background: linear-gradient(to right, #02265c, #680034); /* ฟ้าไปชมพู */
}

.gradient-button {
  background: linear-gradient(45deg, #02265c, #680034); /* Gradient colors */
  color: white; /* Text color */
  border: none; /* Remove default border */
  border-radius: 5px; /* Rounded corners */
  padding: 10px 20px; /* Padding */
  font-size: 1.2rem; /* Font size */
  transition: background 0.3s ease; /* Smooth transition for hover effect */
}

.gradient-button:hover {
  background: linear-gradient(
    45deg,
    #2e66b9,
    #a3316a
  ); /* Reverse gradient on hover */
  color: white;
}

/* Side Nav ข้าง */

.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {
    padding-top: 15px;
  }
  .sidenav a {
    font-size: 18px;
  }
}
