* {
  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;
  }
}
