/* General Styles - Định dạng chung cho toàn bộ trang */
body {
  font-family: sans-serif;
  margin: 0;
  background-image: url('images/BG1.png'); /* Đường dẫn đến hình nền */
  background-size: cover; /* Điều chỉnh kích thước hình ảnh để bao phủ toàn bộ phần */
  background-position: center; /* Căn giữa hình ảnh */
  background-repeat: no-repeat; /* Không lặp lại hình ảnh */
  background-attachment: fixed;
}

.container {
  max-width: 960px; /* Giới hạn chiều rộng tối đa của nội dung chính */
  margin: 0 auto; /* Căn giữa nội dung */
  padding: 20px; /* Thêm padding xung quanh nội dung */
}

h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: bolder;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  font-size: 30px;
  background-size: cover;
  background-position: center;
  padding: 30px;
  border: 2px solid #fff;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.3s ease; /* Hiệu ứng chuyển tiếp mượt mà */
  color: #fff;
  max-width: fit-content;
  margin: 0 auto;
  
}


h5:hover {
  transform: scale(1.05); /* Phóng to một chút khi di chuột qua */
}


h1, h2 {
  text-align: center; /* Căn giữa tiêu đề */
  color: #fff; /* Đặt màu chữ tiêu đề là trắng */
}

/* Banner Styles - Định dạng phần banner */
.banner {
 
  color: white;
  text-align: center;
}

.banner img {
  max-width: 100%; /* Hình ảnh không vượt quá chiều rộng container */
  height: auto; /* Tự động điều chỉnh chiều cao để giữ tỉ lệ */
}

/* Rules Section Styles - Định dạng phần thể lệ */
.rules {
  padding: 10px 0;
  color: #fff;
}

.rule-images {
  display: flex; /* Sử dụng flexbox để sắp xếp hình ảnh */
  justify-content: space-around; /* Chia đều khoảng cách giữa các hình ảnh */
  flex-wrap: wrap; /* Cho phép hình ảnh xuống dòng khi không đủ chỗ */
}

.rule-images img {
  max-width: 400px; /* Giới hạn chiều rộng tối đa của hình ảnh */
  height: auto; /* Tự động điều chỉnh chiều cao để giữ tỉ lệ */
  margin-bottom: 20px; /* Thêm khoảng cách giữa các hình ảnh */
}

/* Winners Section Styles - Định dạng phần người chiến thắng */
.winners {
  padding: 20px 0;
  color: #fff; 
  
}

.winner-carousel {
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center; /* Căn giữa carousel trên màn hình lớn */
}

.carousel-main {
  width: 60%; /* Chiều rộng của phần hiển thị slide chính */
  margin-right: 20px; /* Khoảng cách giữa phần chính và phần thumbnails */
}

/* Winners Section */
.winner-carousel-inner {
  display: flex; /* Sắp xếp các slide thành hàng ngang */
  width: 100%; /* Chiều rộng bằng 100% để chứa tất cả các slide */
  scroll-snap-type: x mandatory; /* Bắt buộc slide phải dừng lại ở vị trí cố định khi cuộn */
  scroll-behavior: smooth; /* Tạo hiệu ứng cuộn mượt mà */
  transition: transform 0.5s ease-in-out; /* Thêm hiệu ứng chuyển slide mượt mà */
  height: 700px; /* Chiều cao cố định của carousel */
  overflow: hidden;
}

.winner-carousel-item {
  flex: 0 0 100%; /* Mỗi slide chiếm 100% chiều rộng */
  scroll-snap-align: start; /* Căn chỉnh slide về đầu khi cuộn */
  text-align: center; /* Căn giữa nội dung trong slide */
  padding: 20px; /* Thêm padding cho slide */
  border-radius: 10px; /* Bo tròn góc */
  box-shadow: 0 4px 8px rgba(242, 238, 238, 0.1); /* Bóng đổ */
  height: 100%; /* Đảm bảo slide luôn có chiều cao bằng carousel-inner */
  display: flex;
  flex-direction: column; /* Sắp xếp nội dung trong slide theo chiều dọc */
  justify-content: center; /* Căn giữa nội dung theo chiều dọc */
  align-items: center; /* Căn giữa nội dung theo chiều ngang */
}

.winner-carousel-item h3 {
  font-family: 'Montserrat', sans-serif;
  color: #f00;
}

.winner-carousel-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Giữ tỷ lệ hình ảnh và đảm bảo nó vừa vặn trong slide */
  display: block;
  margin: 0 auto;
}

/* Carousel Controls Styles */
.carousel-controls {
  /* position: absolute; */ /* Loại bỏ position: absolute */
  /* top: 50%; */
  /* width: 100%; */
  /* transform: translateY(-50%); */
  display: flex;
  justify-content: space-between;
  margin-top: 10px; /* Thêm margin-top để tạo khoảng cách với slide */

}

.carousel-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

/* Carousel Indicators Styles */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.carousel-indicators button {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  cursor: pointer;
}

.carousel-indicators button.active {
  background-color: #0fea50;
}

/* Carousel Thumbnails Styles */
.carousel-thumbnails {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.carousel-thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  margin: 0 5px;
  cursor: pointer;
  border: 2px solid transparent;
  margin-bottom: 10px;
}

.carousel-thumbnails img.active {
  border-color: #007bff;
}

/* Locations Section */
.locations {
  padding: 10px 0;
  color: #fff;
  display: flex;
  align-items: center; 
  margin-top: 10px;

/*  grid-template-columns: 1fr 1fr; 
  align-items: center;  */
 
}
.locations h2{
  padding: 20px 0;
  color: #fff;
  font-size: xx-large;

}


.filter {
  /*border: 10px solid #ccc; /* Viền khung */
  border-radius: 8px; /* Bo tròn góc */
  padding: 12px; /* Khoảng cách bên trong khung */
  margin-bottom: 20px; /* Khoảng cách giữa các khung */
  color: #ffffff;
  display: flexbox;
  place-items: center;
  background-color: #088959c0;
  border-radius: 8px;
  box-shadow: 1px 5px 20px rgba(242, 255, 0, 0.929);
  flex:1;
  margin: auto;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  max-width: 42%;
}

.filter label {
  display: block; /* Đảm bảo label chiếm toàn bộ chiều rộng */
  margin-bottom: 10px; /* Khoảng cách giữa label và select */
  font-family:Georgia, 'Times New Roman', Times, serif;
  font-weight: bold;
  font-size: 25px;
  margin-top: 8px;
}

.filter select {
  width: 100%; /* Chiếm toàn bộ chiều rộng của container */
  padding: 8px;
  background-color:#055538de;
  color: #fff;
  font-size: 20px;
}

/* select 
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size:xx-large;
} */

select {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  font-size: xx-large;
  width: 100%; /* Chiếm toàn bộ chiều rộng của container cha */
}


#storeList {
  padding: 15px;
  display: grid; /* Sử dụng grid layout để sắp xếp các card */
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Tạo các cột tự động điều chỉnh theo kích thước màn hình */
  gap: 25px; /* Khoảng cách giữa các card */
  
}
.store-card {
  background-color: #088959c0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 3px 5px rgba(242, 255, 0, 0.929);
  text-align: center; /* Căn giữa nội dung trong card */
  box-sizing: border-box;
  
}

.store-card h3{
  margin-top: 0;
  
}



.store-card a {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 20px;
}

#storeList li {
  background-color: #ffffff;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  color: #000000;
}

#storeList h3 {
  margin-top: 0;
  color: #ffffff;
  font-size: 30px;
}

#storeList h2 {
  margin-top: 0;
  color: #ffffff;
  font-size: smaller;
  font-weight:normal;
  font-size: 20px;
}

#storeList table {
  width: 100%;
  border-collapse: collapse;
}

#storeList th,
#storeList td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

#storeList th {
  background-color: #ffffff;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .winner-carousel {
    flex-direction: column;
    align-items: center;
  }

  .carousel-main,
  .carousel-thumbnails {
    width: 100%;
    margin: 0;
  }

  .carousel-thumbnails {
    flex-direction: row;
    overflow-x: auto;
    justify-content: center;
  }

  .carousel-thumbnails img {
    margin: 10px;
  }
}

footer {
 
  color: #fff; /* Màu chữ trắng */
  padding: 5px 0; /* Khoảng cách trên dưới */
}

.footer-content {
  display: flex; /* Sử dụng flexbox để sắp xếp logo và thông tin */
  align-items: center; /* Căn giữa theo chiều dọc */
  justify-content:center; /* Chia đều khoảng cách giữa logo và thông tin */
}

.footer-logo {
  max-width: 250px; /* Điều chỉnh kích thước logo nếu cần */
  height: auto;
  padding: 20px;
}

.footer-info p {
  margin: 5px 0; /* Khoảng cách giữa các dòng */
  justify-content: center;
  align-items: center;
}

/* Responsive footer for smaller screens */
@media (max-width: 768px) {
  .footer-content {
    display: flex;
    align-items: center;
    justify-content: center; /* Căn giữa các phần tử trong footer-content */
    flex-direction: column; /* Sắp xếp logo và thông tin thành cột */
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px; /* Thêm khoảng cách giữa logo và thông tin trên màn hình nhỏ */
    padding: 10px;
  }
}