@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
.modal1 {
  z-index: 0;
  display: none; 
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.custom-navbar {
  z-index: 1000;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 600px;
  border-radius: 30px;
  padding: 10px 20px;
  border: 1px solid #333;
}
.nav-item {
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.nav-item a {
  font-size: 20px;
  margin-bottom: 5px;
}
#nav-items {
  display: none;
  gap: 10px;
  margin-left: 10px;
}
#nav-items.show {
  display: flex;
}


.modal {
  z-index: 1000;
  display: none; 
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4); 
}

.modal-content {
  z-index: 1000;
  top: 50px;
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 60%;
  max-height: 80%;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.modal-content2 {
  z-index: 1000;
  top: 50px;
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 60%;
  max-height: 80%;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: auto;
}

.hotspot-btn {
  z-index: 1000;
  width: 30px;
  height: 30px;
  background-color: rgba(214, 237, 214, 0.7);
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: absolute; /* Sẽ được định vị chính xác bằng Pannellum */
}

.hotspot-btn:hover {
  background-color: rgb(222, 235, 222);
}
.close-btn {
  z-index: 1000;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 20px;
  color: #333;
}

.inforclose-btn2{
  z-index: 1000;
  position: absolute;
  top: -2px;
  right: 5px;
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.inforclose-btn2:hover,
.inforclose-btn2:focus {
  color: red;
  text-decoration: none;
}


.inforclose-btn3{
  z-index: 1000;
  position: absolute;
  top: -2px;
  right: 5px;
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.inforclose-btn3:hover,
.inforclose-btn3:focus {
  color: red;
  text-decoration: none;
}

.inforclose-btn1{
  z-index: 1000;
  position: absolute;
  top: 10px;
  right: 10px;
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.inforclose-btn1:hover,
.inforclose-btn1:focus {
  color: red;
  text-decoration: none;
}


.contact-section{
  width: 100vw;
  height: 100vh;
  position: relative;
}
.contact-section span{
  position: absolute;
  cursor: pointer;
}
.contact-section span:nth-child(1){
  top: 20%;
  left: 15% ;
}



.language-items {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
  background-color: white;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center; /* Căn giữa nội dung trong khối */
  display: flex;
  flex-direction: column;
  gap: 15px; /* Khoảng cách giữa các nút */
  width: 90%; /* Đảm bảo modal hiển thị đẹp trên thiết bị nhỏ */
  max-width: 400px; /* Giới hạn chiều rộng */
}

.language-item button {
  background-color: red; 
  color: white; /* Màu chữ */
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 50%; /* Đặt chiều rộng nút bằng 80% modal */
  text-align: center;
}

.language-item button:hover {
  background-color: #C8102E; /* Tông màu đậm hơn khi hover */
  transform: scale(1.05); /* Phóng to nhẹ khi hover */
}

.language-item button:active {
  background-color: #C8102E; /* Màu nền khi nhấn */
  transform: scale(1); /* Không phóng to khi nhấn */
}


.image-gallery {
  z-index: 1000;
  display: flex;
  width: auto;
  height: auto;
  max-width: 900px;
  margin: 50px auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
  margin-bottom: 20px;
}

/* Phần hình lớn */
.main-image {
  z-index: 1000;
  flex: 3 1 0%;
  padding: 5%;
  border-radius: 10px;
  height: 464px;
  overflow-y: scroll;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.main-image img {
  z-index: 1000;
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-image p {
  z-index: 1000;
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  color: #555;
  text-align: center;
}

.thumbnail-list {
  z-index: 1000;
  background-color:  rgba(0, 0, 0, 0.1);
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 100px;
  max-height: 400px; 
}

.thumbnail-list img {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  
}
.thumbnail-list img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Tùy chỉnh thanh cuộn */
.thumbnail-list::-webkit-scrollbar {
  width: 6px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.thumbnail-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.container {
  text-align:left;
  margin: 10px;
}
.caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}
.container img {
  max-width: 60%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}
.lightbox {
display: none; /* Ẩn lightbox mặc định */
position: fixed;
z-index: 9999;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.8); /* Làm mờ nền */
justify-content: center;
align-items: center;
}

/* Lightbox Image */
.lightbox img {
max-width: 90%;
max-height: 90%;
border: 2px solid white;
border-radius: 10px;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
animation: fadeIn 0.3s ease-in-out;
}

/* Animation cho lightbox */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.image-container:hover img {
transform: scale(1.05); /* Phóng to ảnh */
cursor: pointer;
}
.image-container img {
display: block;
width: 100%;
height: auto;
transition: transform 0.3s ease-in-out; /* Hiệu ứng phóng to khi hover */
}

.header {
  background-color: #C8102E; /* Màu đỏ */
  color: #ffffff; /* Màu trắng */
  display: flex;
  align-items: center;
  padding: 10px 15px 15px 5px; 
  justify-content: space-evenly;
        }

.logo {
            width: 80px;
            margin-right: 20px;
        }

.header-text h2 {
            margin: 3px;
            font-size: 20px;
            align-items: center;
      
        }

.header-text p {
            margin: 5px 0 0 0;
            font-size: 15px;
        }
        .footer {
          background-color: #C8102E; /* Màu đỏ */
          color: #ffffff; /* Màu trắng */
          display: grid;
          grid-template-columns: 30% 30% 40%;
          flex-wrap: wrap;
          justify-content: space-between;
          align-items: center;
          padding: 20px 40px;
          font-size: 15px;
          margin-top: 50px; /* Giãn cách với phần nội dung trên */
      }
      
      .footer-logo {
          width: 150px;
          margin-bottom: 20px;
      }
      
      .footer_nav {
          display: flex;
          flex-direction: column;
          gap: 5px;
      }
      
      .footer_nav a {
          color: #ffffff; /* Màu chữ của liên kết */
          text-decoration: none;
          font-weight: bold;
          transition: color 0.3s, text-decoration 0.3s; /* Hiệu ứng khi hover */
      }
      
      .footer_nav a:hover {
          color: #ffcc00; /* Màu chữ khi hover */
          text-decoration: underline;
      }
      
      .footer p {
          margin: 5px 0;
          font-size: 15px;
          text-align: right;
          flex-basis: 100%; /* Đảm bảo text không bị chèn vào phần khác */
          line-height: 1.5; /* Tăng khoảng cách dòng cho dễ đọc */
          margin-top: 10px; /* Giãn cách với phần trên */
      }
/* ----------------------------------CHATBOT----------------------------------------------------------- */

.chatbot-toggler {
  position: fixed;
  bottom: 30px;
  left: 35px;
  outline: none;
  border: none;
  height: 50px;
  width: 50px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #b41d24;
  z-index: 1000;
}
body.show-chatbot .chatbot-toggler {
  transform: rotate(90deg);
  z-index: 1000;
}
.chatbot-toggler span {
  color: #fff;
  position: absolute;
  z-index: 1000;
}
.chatbot-toggler span:last-child,
body.show-chatbot .chatbot-toggler span:first-child  {
  opacity: 0;
  z-index: 1000;
}
body.show-chatbot .chatbot-toggler span:last-child {
  opacity: 1;
  z-index: 1000;
}
.chatbot {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.5);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0,0,0,0.1),
              0 32px 64px -48px rgba(0,0,0,0.5);
  transition: all 0.1s ease;
}
body.show-chatbot .chatbot {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.chatbot header {
  padding: 16px 0;
  position: relative;
  text-align: center;
  color: #fff;
  background: #C8102E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.chatbot header span {
  position: absolute;
  right: 15px;
  top: 50%;
  display: none;
  cursor: pointer;
  transform: translateY(-50%);
}
header h2 {
  font-size: 1.4rem;
}
.chatbot .chatbox {
  overflow-y: auto;
  height: 510px;
  padding: 30px 20px 100px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
  width: 6px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 25px;
}
.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 25px;
}
.chatbox .chat {
  display: flex;
  list-style: none;
}
.chatbox .outgoing {
  margin: 20px 0;
  justify-content: flex-end;
}
.chatbox .incoming span {
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: default;
  text-align: center;
  line-height: 32px;
  align-self: flex-end;
  background: #C8102E;
  border-radius: 4px;
  margin: 0 10px 7px 0;
}
.chatbox .chat p {
  white-space: pre-wrap;
  padding: 12px 16px;
  border-radius: 10px 10px 0 10px;
  max-width: 75%;
  color: #fff;
  font-size: 0.95rem;
  background: #C8102E;
}
.chatbox .incoming p {
  border-radius: 10px 10px 10px 0;
}
.chatbox .chat p.error {
  color: #721c24;
  background: #f8d7da;
}
.chatbox .incoming p {
  color: #000;
  background: #f2f2f2;
}
.chatbot .chat-input {
  display: flex;
  gap: 5px;
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 3px 20px;
  border-top: 1px solid #ddd;
}
.chat-input textarea {
  height: 55px;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  max-height: 180px;
  padding: 15px 15px 15px 0;
  font-size: 0.95rem;
}
.chat-input span {
  align-self: flex-end;
  color: #C8102E;
  cursor: pointer;
  height: 75px;
  display: flex;
  align-items: center;
  margin-right: 5px;
  font-size: 1.35rem;
}
.chat-input textarea:valid ~ span {
  visibility: visible;
}

@media (max-width: 490px) {
  .chatbot-toggler {
    right: 20px;
    bottom: 20px;
  }
  .chatbot {
    right: 0;
    bottom: 0;
    height: 100%;
    border-radius: 0;
    width: 100%;
  }
  .chatbot .chatbox {
    height: 90%;
    padding: 25px 15px 100px;
  }
  .chatbot .chat-input {
    padding: 5px 15px;
  }
  .chatbot header span {
    display: block;
  }
}
