/* Reset mặc định */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Slider */
.slider {
  position: relative;
  max-width: 1000px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
}

.slides img {
  width: 100%;
  display: none;
}

.slides img.active {
  display: block;
}

.slider button.prev,
.slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(34, 34, 34, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  user-select: none;
}

.slider button.prev {
  left: 10px;
}

.slider button.next {
  right: 10px;
}
/* Header */
header {
  background-color: #222; /* Nền tối cho header */
  color: #fff; /* Chữ màu trắng */
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Thêm đổ bóng nhẹ */
}

/* Container cho nội dung header */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex; /* Sử dụng Flexbox để sắp xếp các phần tử theo chiều ngang */
  justify-content: space-between; /* Căn đều các phần tử bên trong container */
  align-items: center; /* Căn giữa các phần tử theo chiều dọc */
}

/* Tiêu đề (Logo hoặc tên website) */
header h1 {
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase; /* Chữ in hoa để tạo sự mạnh mẽ */
  margin-right: 40px; /* Tạo khoảng cách giữa logo và menu */
}

/* Menu điều hướng */
nav ul {
  list-style: none;
  display: flex;
  gap: 20px; /* Khoảng cách giữa các mục menu */
}

nav ul li a {
  color: #fff; /* Chữ trắng */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease; /* Hiệu ứng mượt mà */
}

/* Khi hover vào các mục menu, bỏ gạch chân và thay đổi màu */
nav ul li a:hover {
  color: #ff0000; /* Màu xanh lá khi hover */
  transform: translateY(-2px); /* Hiệu ứng nâng lên khi hover */
}

/* Phần đăng nhập đóng khung và di chuyển sang bên phải */
.login-container {
  background-color: #111; /* Nền màu đen để tạo sự tương phản */
  padding: 10px 20px;
  border-radius: 8px; /* Bo góc cho phần đăng nhập */
  font-weight: bold;
  margin-left: auto; /* Di chuyển sang bên phải */
  text-align: center; /* Căn giữa chữ trong phần đăng nhập */
}

.login-container a {
  color: #fff; /* Màu chữ trắng */
  text-decoration: none;
  font-size: 1.1em;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease; /* Hiệu ứng mượt mà */
}

/* Hiệu ứng hover cho phần đăng nhập */
.login-container a:hover {
  color: #ff0000; /* Màu xanh lá khi hover */
  transform: translateY(-2px); /* Hiệu ứng nâng lên khi hover */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .login-container {
    margin-top: 10px;
  }
}

/* Phim nổi bật */
#featured-movies {
  padding: 40px 0;
  background-color: #fff;
}

#featured-movies h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
}

.movie-grid {
  display: flex; /* Sử dụng flexbox để hiển thị các thẻ phim theo hàng ngang */
  justify-content: space-between; /* Căn đều các thẻ phim */
  gap: 20px; /* Khoảng cách giữa các thẻ phim */
  flex-wrap: wrap; /* Cho phép thẻ phim xuống dòng nếu không đủ chỗ */
}

.movie-card {
  width: 23%; /* Đặt chiều rộng cho mỗi thẻ phim (đảm bảo chúng hiển thị ngang) */
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.movie-card:hover {
  transform: translateY(-5px); /* Hiệu ứng hover cho thẻ phim */
}

.movie-card img {
  width: 100%;
  height: 300px; /* Đặt chiều cao cố định cho hình ảnh */
  object-fit: cover; /* Cắt ảnh sao cho đồng đều */
  border-radius: 8px;
}

.movie-card h3 {
  margin-top: 15px;
  font-size: 1.4em;
}

.movie-card p {
  margin-top: 10px;
  font-size: 1em;
}

.movie-card .ticket-buttons {
  display: flex; /* Sử dụng flexbox */
  justify-content: center; /* Căn giữa các nút */
  gap: 10px; /* Khoảng cách giữa các nút */
}
.movie-card .ticket-buttons {
  display: flex; /* Sử dụng flexbox */
  justify-content: space-between; /* Đảm bảo các nút cách đều nhau */
  gap: 10px; /* Khoảng cách giữa các nút */
  margin-top: 15px; /* Khoảng cách trên nút */
}

/* Nút Vé */
/* Container chứa các nút Vé */
.movie-card .ticket-buttons {
  display: flex; /* Sử dụng Flexbox để hiển thị các nút ngang */
  justify-content: space-between; /* Đảm bảo các nút cách đều nhau */
  gap: 10px; /* Khoảng cách giữa các nút */
  margin-top: 15px; /* Khoảng cách trên nút */
  width: 100%; /* Đảm bảo các nút chiếm chiều rộng */
}

/* Nút Vé */
.movie-card .buy-ticket {
  background-color: red;
  color: white;
  padding: 10px 20px; /* Tăng kích thước nút một chút */
  margin-top: 15px;
  border: none;
  cursor: pointer;
  font-size: 1em; /* Giảm kích thước chữ cho phù hợp */
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease; /* Hiệu ứng mượt mà khi hover */
  width: 100%; /* Đảm bảo các nút chiếm 48% chiều rộng của thẻ để chúng hiển thị ngang */
  text-align: center; /* Căn giữa chữ */
}

/* Hiệu ứng khi hover */
.movie-card .buy-ticket:hover {
  background-color: #ff4d4d;
  transform: translateY(-2px); /* Hiệu ứng nâng lên khi hover */
}
/* Sự kiện */
#events {
  padding: 60px 0;
  background: linear-gradient(1deg, #ffffff, #060606);
  color: white;
  text-align: center;
}
#events h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.event-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.event-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 30px;
  width: 300px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.event-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
}
.event-card h3 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #fff;
}
.event-card p {
  font-size: 1.1em;
  line-height: 1.6;
}
/* Footer */
#footer {
  background: linear-gradient(
    135deg,
    #000000,
    #fdfdfd
  ); /* Nền gradient đẹp mắt */
  color: #fff;
  padding: 60px 0;
  font-family: "Arial", sans-serif;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
/* Footer-top */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-contact-info h3,
.footer-customer-service h3 {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #fff; /* Màu trắng cho tiêu đề */
}
.footer-contact-info p,
.footer-customer-service li {
  font-size: 1em;
  line-height: 1.8;
  margin-bottom: 10px;
}
/* Liên kết mạng xã hội */
.social-links {
  margin-top: 20px;
}
.social-links a {
  font-size: 1.6em;
  color: #fff;
  margin-right: 15px;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-links a:hover {
  color: #fff;
  transform: scale(1.2); /* Hiệu ứng hover tăng kích thước */
}
/* Liên hệ */
.footer-contact-info i {
  color: #fff;
  margin-right: 10px;
}
/* Dịch vụ khách hàng */
.footer-customer-service {
  flex: 1;
  min-width: 250px;
}
.footer-customer-service .service-links {
  list-style: none;
  padding-left: 0;
  font-size: 1em;
}
.footer-customer-service .service-links li {
  margin-bottom: 10px;
}
.footer-customer-service .service-links li a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}
.footer-customer-service .service-links li a:hover {
  color: #f8f9fa; /* Màu trắng khi hover */
}
/* Responsive Design */
@media screen and (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .footer-contact-info,
  .footer-customer-service {
    text-align: center;
    min-width: 100%;
  }
}
