body {
  margin: 0;
  padding: 0;
  font-family: "Press Start 2P", cursive;
  line-height: 2rem;
  background-color: #363636;
  color: #e0e0e0;
}

header {
  display: flex;
  /* margin: 20px; */
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #000;
}
header h1 {
  font-size: 2vw;
  text-shadow: 3px 2px 3px rgba(0, 0, 0, 0.44);
  /* 2px -2px 0 #333, 
    -2px 2px 0 #333,
    2px 2px 0 #333, 
    4px 4px 0 #666;  */
}
header .logo {
  width: 5vw;
  height: 5vw;
  border: 0.1vw solid #000;
  overflow: hidden;
  margin-left: 2vw;
}
header img {
  object-position: -0.5vw -0.7vw;
  max-width: 200%;
  min-width: 200%;
}
.banner {
  width: 100%;
  height: 40vw;
  background-image: url(./pic/banner5.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.title-banner {
  justify-items: center;
}
.banner h1 {
  max-width: 70%;
  text-align: center;
  font-family: "Press Start 2P", cursive;
  color: #fa1b1b;
  /* font-size: 5rem; */
  font-size: 5vw;
  justify-content: center;
  align-items: center;
  line-height: 6vw;
}
.intro p {
  text-align: start;
  margin: 5% 5% 5% 10%;
}
main {
  font-family: "Press Start 2P", cursive;
  background-color: #6aa51c;
  border-color: black;
  border-width: 0.5rem;
  border-style: solid;
  border-radius: 30px;
  padding: 20px;
  margin: 20px auto;
  max-width: 80%;
  /* width: 90%; */
  box-sizing: border-box;
  overflow: hidden;
}
.title {
  display: inline-block;
  font-size: 2rem;
  max-width: 100%;
  padding: 0.5rem;
  background-color: #72471e;
  border-radius: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}
.box {
  max-width: 100%;
  padding: 0;
  margin-top: 20px;
}
.en {
  display: flex;
  align-items: flex-start;
  border-radius: 30px;
  padding: 20px;
  flex: 1;
  min-width: 350px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  justify-content: space-between;
}
.en ul {
  font-size: 0.9rem;
}
.img {
  overflow: hidden;
  max-width: 30%;
  height: auto;
  width: 250px;
  height: 350px;
}
main img {
  width: 100%;
  height: 100%;
  display: block;
  align-items: center;
  object-fit: cover;
  object-position: center;
  clip-path: inset(0 25px 0);
}

.in4 {
  /* max-width: 300px; */
  justify-content: right;
  width: 70%;
  height: auto;
}
.in4 h3 {
  color: rgb(239, 213, 21);
}
.buttom {
  margin-top: 3rem;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}
.btNext,
.btBack {
  width: 20%;
  display: flex;
  justify-content: center;
  background-color: #fbff0058;
  border: 100px;
  padding: 10px;
  text-decoration: none;
  border-radius: 50px;
  color: black;
}
.btBack:hover,
.btNext:hover {
  font-size: 1.8rem;
  color: red;
  background-color: #fbff00c4;
  width: 30%;
}
hr {
  border: none;
  width: 100%;
  height: 3px;
  background-color: #000000c7;
}
footer {
  margin: 120px 50px 50px 70px;
  padding: 10px;
}
footer a {
  font-weight: bold;
}
footer strong {
  line-height: 30px;
}
footer span {
  font-size: larger;
  color: red;
}
/*next.index*/
body {
  counter-reset: topic-counter;
}

.topic > strong::before {
  counter-increment: topic-counter;
  content: counter(topic-counter) ". ";
}
.topic > strong::after {
  content: ": ";
}
.topic {
  font-size: 1.5vw;
  color: #000;
}
main:has(.topic) .title {
  color: #ff9900;
  border-left: 5px solid #ff9900;
  padding-left: 15px;
  background-color: #333;
}

.title-banner h1 {
  font-family: "Press Start 2P", cursive;
  color: #ff0000;
  text-shadow: -2px -2px 0 #333, 2px -2px 0 #333, -2px 2px 0 #333,
    2px 2px 0 #333, 4px 4px 0 #666;
  font-size: 4vw;
  letter-spacing: 2px;
  text-align: center;
  padding: 20px 0;
}
a:hover {
  cursor: cell;
  color: #fa1b1b;
  text-decoration: none;
  font-size: 1.1rem;
}
/* Transition*/

content h2 {
  width: 100%;
  font-size: 3rem;
  text-align: center;
  text-shadow: 0.4rem 1px #666;
}
content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px;
  /* margin-top: ; */
  row-gap: 20px;
  column-gap: 20px;
}
.boxCard {
  margin: 10px;
  width: 200px;
  height: 300px;
  display: flex;
  /* background-color: #6aa51c; */
  border-radius: 5vw;
  justify-content: center;
  align-items: center;
  /* perspective: 1000px;
  position: relative; */
}

/* Các thuộc tính cơ bản của boxCard (như trong ảnh của bạn) */
.boxCard {
  width: 200px; /* Hoặc kích thước bạn muốn */
  height: 300px; /* Hoặc kích thước bạn muốn */
  margin: 10px;

  /* background-color: #6aa51c;
  border-radius: 5vw; /* Hoặc đơn vị phù hợp */
  /* display: flex; /* Nếu bạn muốn căn giữa nội dung bên trong boxCard */
  /* justify-content: center; */
  /* align-items: center; */

  /* Quan trọng cho hiệu ứng 3D */
  perspective: 1000px; /* Tạo không gian 3D cho hiệu ứng lật */
  position: relative; /* Đảm bảo .card-inner có thể định vị tuyệt đối */
}

.boxCard img {
  max-width: 90%; /* Đảm bảo ảnh không vượt quá kích thước của box */
  display: block; /* Loại bỏ khoảng trắng dưới ảnh */
  margin: 0 auto; /* Căn giữa ảnh */
}

/* Container chứa cả mặt trước và mặt sau, sẽ được lật */
.card-inner {
  border-radius: 50px;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s; /* Thời gian và tốc độ lật */
  transform-style: preserve-3d; /* Giữ các phần tử con trong không gian 3D */
}

/* Mặt trước và mặt sau của box */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Ẩn mặt sau khi không lật */
  backface-visibility: hidden; /* Ẩn mặt sau khi không lật */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: inherit; /* Kế thừa border-radius từ .boxCard */
  box-sizing: border-box; /* Đảm bảo padding không làm tràn kích thước */
  padding: 10px; /* Padding cho nội dung */
}

.card-front {
  background-color: #6aa51c; /* Hoặc màu nền riêng cho mặt trước */
  color: white; /* Màu chữ nếu có */
}

.card-back {
  background-color: #6aa51c; /* Màu nền cho mặt sau */
  color: white; /* Màu chữ cho mặt sau */
  transform: rotateY(180deg); /* Ban đầu xoay 180 độ để ẩn nó */
}

/* Hiệu ứng khi hover vào .boxCard */
.boxCard:hover .card-inner {
  transform: rotateY(180deg);
  /* color: #6aa51c; */
}

/* Tùy chỉnh cho nội dung mặt sau */
.card-back h3 {
  margin-bottom: 10px;
}
.card-back p {
  font-size: 0.9em;
  line-height: 1.5;
}
