/* Lora serif – font chữ nghiêm túc, sang */
@font-face {
  font-family: "Lora";
  src: url("fonts/Lora-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

/* Ergisa – font nét thanh, elegant */
@font-face {
  font-family: "Ergisa";
  src: url("fonts/Ergisa-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* High Spirited – font ký tên, rất hợp tên cô dâu chú rể */
@font-face {
  font-family: "HighSpirited";
  src: url("fonts/HighSpirited.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

/* UVN Hoa Tay – font viết tay tiếng Việt chuẩn */
@font-face {
  font-family: "Hoatay";
  src: url("fonts/UVN-HoaTay.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}
h1,
.invite-title {
  font-family: "Great Vibes", cursive;
}

/* Nội dung thiệp */
body {
  font-family: "Great Vibes", "Alex Brush", cursive;
  color: rgb(146, 131, 98);
}

/* Chữ bình thường / button */
button,
.thu,
input,
select {
  font-family: "Roboto", sans-serif;
}
#intro {
  display: flex;
  flex-direction: column; /* xếp dọc */
  height: 800px; /* chiếm toàn màn hình */
  max-width: 400px;
  margin: 0 auto;
  width: 400px;
  position: relative;
}

#intro .head,
#intro .bottom {
  flex: 1; /* mỗi phần chiếm 50% */
  display: flex; /* nếu muốn căn giữa nội dung */
  align-items: center; /* căn dọc giữa */
  justify-content: center; /* căn ngang giữa */
}

#intro .head {
  /* background-color: #f2c1c1; */ /* bỏ màu cũ */
  flex-direction: column;
  font-family: "Ergisa", cursive;
  font-size: 39px;
  line-height: 1.1;
  text-align: center;
  background: url("../img/nen1.jpg") center/cover no-repeat;
}

#intro .bottom {
  /* background-color: #c1d6f2; */ /* bỏ màu cũ */
  background: url("../img/nen2.jpg") center/cover no-repeat;
  flex-direction: column;
  font-family: "Lora", cursive;
  font-size: 22px;
  line-height: 1.3;
  color: rgb(146, 131, 98);
  letter-spacing: 1px;
  text-align: center;
  background: url("../img/nen1.jpg") center/cover no-repeat;
}
#intro .thu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: url(../img/thu.png) center / cover no-repeat;
  display: block;
  cursor: pointer;
  z-index: 1;
}
#intro .thu::after {
  content: "";
  position: absolute;
  bottom: 72px;
  left: 152px;
  width: 80px;
  height: 80px;
  background: url(../img/chitay.png) center / cover no-repeat;
  pointer-events: none;
  z-index: 2;

  /* Animate phóng to thu nhỏ */
  animation: zoom 1s ease-in-out infinite alternate;
}

@keyframes zoom {
  0% {
    transform: scale(1); /* kích thước bình thường */
  }
  50% {
    transform: scale(1.2); /* to hơn 20% */
  }
  100% {
    transform: scale(1); /* trở về bình thường */
  }
}

/* Logo viết tắt trong phong bì */
#intro .thu .tat {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  font-family: "Ergisa", cursive;
  font-size: 3.2rem;
  color: rgb(195, 184, 162);
  text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
}
@keyframes flip {
  0% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
#intro .thu .tat p {
  margin: 0;
  padding: 0;
  animation: flip 2s linear infinite;
  transform-style: preserve-3d;
}
#intro .thu .tat p:first-child {
  position: relative;
  left: 10px;
  bottom: -59px;
  font-size: 70px;
  margin: 0;
}

/* P thứ hai — L */
#intro .thu .tat p:last-child {
  position: relative;
  left: -5px;
  top: -30px;
  font-size: 77px;
  margin: 0;
}
#guest-name {
  font-family: "HighSpirited", cursive;
  font-size: 39px;
  line-height: 1.6;
  color: rgb(146, 131, 98);
  display: inline-block;
  padding-bottom: 5px;
  border-bottom: 2px solid rgba(146, 131, 98, 0.5);
}

#wedding {
  display: flex;
  flex-direction: column; /* xếp dọc */
  height: 800px; /* chiếm toàn màn hình */
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
#wedding .one {
  background-image: url("../img/1.jpg"); /* đường dẫn ảnh */
  background-size: cover; /* ảnh phủ đầy */
  background-position: center; /* căn giữa ảnh */
  background-repeat: no-repeat; /* không lặp ảnh */
  height: 700px; /* chiều cao */
  width: 100%; /* full chiều ngang */
}
