html {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFEFD6;
  color: #333;
  overflow-x: hidden;
  max-width: 100vw;
}

@font-face {
  font-family: 'My Font';
  src: url('../lib/font/1FTV-HF-Gesco.ttf') format('truetype');
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: "My Font", serif;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

.top-province {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.top-province img {
  position: absolute;
  top: -30rem;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
}

.province-container {
  position: relative;
  width: 80%;
  /* tương đương 700px */
  height: 100%;
  z-index: 2;
  margin: 100px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  left: -6rem;
}

.title {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 0.625rem;
  /* 10px */
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}

.title .ha {
  font-family: 'Brush Script MT', cursive;
  color: #c62828;
  font-size: 9rem;
  /* 76px */
  font-style: normal;
  vertical-align: middle;
  margin-right: 0.625rem;
}

.title .noi {
  color: #c62828;
  font-family: 'Brush Script MT', cursive;
  font-size: 6rem;
  /* 58px */
  font-style: normal;
  vertical-align: middle;
  margin-left: 0.313rem;
  /* 5px */
  display: flex;
  flex-direction: column;
}

.vietnam {
  display: block;
  color: #d62828;
  letter-spacing: 0.063rem;
  /* 1px */
  font-size: 3rem;
  /* 20px */
  font-weight: bold;
  margin-top: 0.313rem;
  /* 5px */
  font-family: 'My Font', cursive;
}

.description {
  font-size: 1.3rem;
  /* 15px */
  line-height: 1.6;
  color: #7a3e2d;
  font-style: italic;
  position: relative;
  margin: 1rem 0;
  padding-left: 1.563rem;
  /* 25px */
  text-align: justify;
  width: 50%;
}
.description i {
  font-size: 2rem;
}

.landmark {
  width: 100%;
  max-width: 23.75rem;
  /* 380px */
  margin-top: 1.875rem;
  /* 30px */
}

.bottom-text-pro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 80%;
  width: 100%;
}

.bottom-text-pro p {
  font-style: italic;
  color: #b02e0c;
  font-size: 1rem;
}

.img-bottom-pro {
  width: 100%;
  height: 50px;
  transform: rotate(180deg);
}

.quote-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.25rem;
  /* 4px */
  height: 100%;
  background-color: #d62828;
  border-radius: 0.125rem;
  /* 2px */
}

.desc-text {
  font-size: 1rem;
  font-family: "My Font", cursive;
  color: #7a3e2d;
  font-style: italic;
  display: block;
  text-align: justify;
  line-height: 1.6;
}

.bottom-slogan {
  position: absolute;
  bottom: 3rem;
  text-align: center;
  font-style: italic;
  color: #b02e0c;
  font-size: 1rem;
  font-family: 'My Font', cursive;
  z-index: 2;
  top: 62rem;
}

/* P2 */
.angi-page {
  margin-top: 50rem;
}

.timeline-container {
  max-width: 62.5rem;
  /* 1000px */
  margin: auto;
  padding: 2.5rem 1.25rem;
  /* 40px 20px */
  position: relative;
}

h1 {
  font-size: 2.5rem;
  /* 40px */
  font-weight: 700;
  font-family: 'My Font', serif;
  color: #C70E1C;
}

h1 span {
  color: #0A4D3C;
  font-size: 3.125rem;
  /* 50px */
  font-weight: bold;
}

.title2 {
  position: relative;
  width: fit-content;
  line-height: 1;
}

.h24 {
  font-size: 3rem;
  /* 48px */
  font-weight: 900;
  color: #0A4D3C;
  display: block;
}

.den {
  position: absolute;
  left: 2.5rem;
  /* 40px */
  top: 6vh;
  /* 45px tương đối với chiều cao */
  font-size: 3.75rem;
  /* 60px */
  font-weight: bold;
  color: #C70E1C;
}

.hanoi {
  font-size: 3rem;
  /* 48px */
  font-weight: 900;
  color: #0A4D3C;
  display: block;
  margin-left: 3.75rem;
  /* 60px */
  margin-top: 6.25vh;
  /* 50px */
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.h24 {
  animation: slideInFromLeft 1s ease-out forwards;
}

.den {
  animation: slideInFromLeft 1.2s ease-out forwards;
}

.hanoi {
  animation: slideInFromRight 1.4s ease-out forwards;
}

.timeline {
  position: relative;
  padding: 2.5rem 0;
  /* 40px */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.75rem;
  height: 100%;
  background: #fdb913;
  z-index: 0;
  border-radius: 0.3125rem;
}

.timeline-top-circle {
  width: 3.75rem;
  /* 60px */
  height: 5rem;
  /* 80px */
  background-color: #fdb913;
  border-radius: 50%;
  position: absolute;
  top: -1.875rem;
  /* -30px */
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.dish-box {
  font-family: 'My Font', serif;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 45%;
  margin: 2.5rem 0;
  position: relative;
}

.dish-box {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.dish-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.dish-box.left {
  margin-left: 15rem;
  margin-right: auto;
  text-align: left;
}

.dish-box.right {
  margin-right: 13.5rem;
  margin-left: auto;
  text-align: right;
}

.dish-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-right: 1.25rem;
}

.dish-box.right .dish-header {
  align-items: flex-end;
}

.dish-title {
  flex: 1;
  width: 15rem;
  /* 186px */
  background-color: #0A4D3C;
  color: #FFEFD6;
  font-size: 1.75rem;
  /* 28px */
  font-weight: bold;
  padding: 0.625rem 1.25rem;
  display: inline-block;
  margin-bottom: 0.625rem;
  border-radius: 0.3125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.dish-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.625rem;
}

.dish-image img {
  width: 12.5rem;
  /* 200px */
  height: 9.375rem;
  /* 150px */
  object-fit: contain;
  border-radius: 0.625rem;
}

.dish-box.left .dish-info {
  margin-top: 0.3125rem;
  margin-left: -3rem;
}

.dish-box.right .dish-info {
  margin-top: 0.3125rem;
  margin-right: -2rem;
}

.dish-time {
  white-space: nowrap;
  background-color: #0A4D3C;
  color: #FFEFD6;
  display: inline-block;
  padding: 0.3125rem 0.625rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 0.3125rem;
}

.dish-box.left .dish-info p {
  text-align: left;
}

.dish-box.right .dish-info p {
  text-align: right;
}

.dish-box.right .dish-title-time {
  flex-direction: row-reverse;
}

.dish-title-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
}

hr {
  border: none;
  /* Xóa đường viền mặc định */
  height: 2px;
  /* Độ dày đường kẻ */
  background-color: #C70E1C;
  /* Màu đỏ */
  width: 50%;
  /* Chiều dài 50% */
  margin: 0 auto;
  /* Căn giữa theo chiều ngang */
}

.dish-title:hover,
.dish-time:hover,
.dish-image img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  position: relative;
}

.dish-image img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0rem 0rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  position: relative;
}

.dish-title,
.dish-time,
.dish-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* P3 */
.content-container {
  margin-top: 5rem;
}

.top-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 30px;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

select {
  padding: 10px 15px;
  font-size: 16px;
  background-color: #FCB92C;
  border: 2px solid #0A4D3C;
  color: #0A4D3C;
  border-radius: 10px;
  font-weight: bold;
}

.main-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.dish-grid {
  display: grid;
  grid-template-columns: repeat(5, 220px);
  gap: 40px;
}

.dish-card {
  background-color: #FFEFD6;
  border: 3px solid #0A4D3C;
  border-radius: 10px;
  text-align: center;
  width: 200px;
  height: 230px;
  padding: 0;
  text-decoration: none;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
}

.dish-card img {
  width: 200px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 0px;
  transition: all 0.3s ease-in-out;
}

.dish-name {
  font-weight: bold;
  color: #C70E1C;
  margin: 0px 0;
  font-size: 20px;
}

.dish-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0A4D3C;
  color: #FFEFD6;
  font-size: 14px;
  border-radius: 8px;
  padding: 4px 8px;
}

.dish-tag.street {
  background-color: #0A4D3C;
  color: #FFEFD6;
}

.tag-icon {
  width: 25px;
  height: 25px;
  background-image: url('../IMG/Bac/HaNoi/6.PNG');
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
}

.dish-name.street .tag-icon {
  background-image: url('../IMG/Bac/HaNoi/5.PNG');
}

.map img {
  width: 230px;
  height: auto;
}

.dish-card img:hover {
  transform: translateY(-5px) scale(1.05);
  z-index: 10;
  position: relative;
}

.map img:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0rem 0rem rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
  position: relative;
}

.dish-card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  background-color: #FFEFD6;
  /* sáng nhẹ lên */
}

.filter-container select:hover {
  background-color: #f0f0f0;
  /* sáng nhẹ nền khi hover */
}

@media (max-width: 768px) {
  .top-province img {
    top: 6rem;
  }

  .province-container {
    width: 100%;
    left: 1rem;
    margin-top: 6rem;
  }

  .title {
    align-items: flex-start;
  }

  .title .ha {
    font-size: 4rem;
  }

  .title .noi {
    font-size: 3rem;
  }

  .vietnam {
    font-size: 1.3rem;
    margin-top: 0.2rem;
  }

  .description {
    width: 80%;
    font-size: 0.5rem;
    padding-left: 1rem;
  }
  .description i {
    font-size: 0.8rem;
  }

  .bottom-slogan {
    bottom: 2rem;
    top: 34.5rem;
  }

  .angi-page {
    margin-top: 1rem;
  }

  .h24 {
    font-size: 2rem;
  }

  .den {
    left: 2rem;
    /* 40px */
    top: 4vh;
    /* 45px tương đối với chiều cao */
    font-size: 2.25rem;
  }

  .hanoi {
    font-size: 2rem;
    margin-left: 3rem;
    /* 60px */
    margin-top: 4.5vh;
    /* 50px */
  }

  .dish-box {
    width: 90%;
  }

  .timeline::before {
    width: 1rem;
  }

  .timeline-top-circle {
    width: 2.5rem;
    height: 4rem;
  }

  .dish-box {
    margin: 0rem 0;
  }

  .dish-title {
    width: 10rem;
    font-size: 1rem;
  }

  .dish-image {
    margin-top: 0.1rem;
  }

  .dish-image img {
    width: 10rem;
    height: 10rem;
  }

  .dish-time {
    font-size: 0.9rem;
  }

  .dish-box.left {
    margin-left: 1.4rem;
  }

  .dish-box.right {
    margin-right: 0.2rem;
  }

  .dish-box.left .dish-info {
    margin-top: 1rem;
    margin-left: -3.5rem;
  }

  .dish-box.right .dish-info {
    margin-top: 1rem;
    margin-right: -2rem;
  }

  .top-container {
    flex-direction: row;
  }

  .filter-container {
    flex-direction: column;
  }

  .map img {
    width: 200px;
  }

  .dish-grid {
    grid-template-columns: repeat(2, 200px);
    gap: 10px;
  }

  select {
    font-size: 14px;
    padding: 8px 12px;
  }

  .dish-name {
    font-size: 16px;
  }

  .dish-tag {
    font-size: 12px;
    padding: 3px 6px;
  }

  .tag-icon {
    width: 20px;
    height: 20px;
  }
}
