:root {
  --background-color: #f5e5b7;
  --header-height: 40px;
  --bottom-height: 140px;
  --width-popup-right: 200px;
  --height-mc: 280px;
}

html,
body {
  background-image: url("../access/img/v2.24.png");
  background-size: 50%;
  background-position: center 60px;
  background-repeat: no-repeat;
  background-color: #f5e5b7;
}
main {
  height: calc(100vh - var(--header-height) - var(--bottom-height));
  width: 100vw;
}

img {
  width: 100%;
  height: 100%;
}

.container-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 50px;
}

.logo-web {
  position: absolute;
  left: 20px;
  top: 62%;
  transform: translateY(-50%);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999;
}

.logo-web img {
  height: 110px;
  width: auto;
  object-fit: contain;

  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.collapse.navbar-collapse {
  justify-content: flex-end;
}

.icon-trans {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  cursor: pointer;
}

.icon-trans img {
  width: 20px;
  height: 12px;
  margin-right: 10px;
}

.multi-languague {
  cursor: pointer;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
  color: red;
}

.navbar-light .navbar-nav .nav-link {
  color: black;
}

.room {
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: none;
}
.room.show {
  display: block;
}
.room .roombox {
  width: 100%;
  height: 100%;
}

.webgl {
  width: 100%;
  height: 100%;
}

#video {
  height: 230px;
  bottom: var(--bottom-height);
  right: 50%;
  position: absolute;
  transform: translateX(50%);
}

#video-mc {
  height: var(--height-mc);
  bottom: var(--bottom-height);
  z-index: 1;
}

#video.play {
  display: block;
}

#canvas2 {
  position: fixed;
  bottom: 0;
  right: 0;
}

.room iframe {
  width: 100%;
  height: 100%;
}

.room .room-item {
  width: 100%;
  height: 100%;
  display: none;
}

.room-item.show {
  display: block;
}

.room-item.hidden {
  display: none;
}

.room-item iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.about {
  display: none;
  width: 100%;
  height: 100%;
}

.about.show {
  display: block;
}

#menuLeft {
  position: fixed;
  left: 0;
  bottom: 0;
  min-width: 150px;
  background-color: var(--background-color);
  transition: 0.15s ease all;
  transform: translateX(-100%);
  height: calc(100% - var(--header-height) + 10px);
  opacity: 0.8;
}

#menuLeft.show {
  transform: translateX(0);
}

.menuMain {
  margin-top: 100px;
  padding: 0;
  padding-right: 20px;
  box-sizing: border-box;
}

.menuMain-item {
  list-style: none;
  background-color: #0198db;
  color: white;
  padding: 10px;
  cursor: pointer;
  margin: 10px 0;
  border-radius: 0 50px 50px 0;
}

.buttonShowMenu {
  width: 32px;
  height: 100px;
  border-radius: 0 4px 4px 0;
  background-color: var(--background-color);
  color: white;
  position: absolute;
  right: 0;
  top: 42%;
  transform: translate(100%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.5;
}

#popup {
  position: fixed;
  display: none;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#popup.show {
  display: flex;
  background-color: rgba(3, 52, 143, 0.5);
}

#popup .popupmain {
  width: 96%;
  height: 90%;
  position: relative;
}

#popup .popupmain .contentPopup {
  box-shadow: 0px 0px 2px gray;
  border-radius: 4px;
  overflow: hidden;
  max-height: 100%;
}

#popup .popupmain .contentPopup {
  width: 100%;
  height: 100%;
  padding: 40px 200px;
  color: white;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: var(--background-color);
}

.content-popup-bottom {
  height: 200px;
  overflow: hidden;
}

#popup .popupmain .contentPopup .descContentPopup {
  font-size: 12px;
}

#popup .popupmain .contentPopup .module3dLoad {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

#popup .popupmain .contentPopup .module3dLoad p {
  color: white;
  font-size: 20px;
  font-weight: bold;
  color: #0198db;
}

#popup .popupmain .buttonClose {
  border: none;
  outline: none;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 4px;
  padding: 5px 10px;
  color: white;
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 9;
  background-image: url("../access/img/btnClose.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.moduleThumb {
  width: 100%;
  min-height: 400px;
}

.module3dLoad-title {
  margin-bottom: 0;
}

.menuitem-box {
  display: none;
}

.menuitem-box.active {
  display: block;
}

#menuFooter {
  width: 100%;
  height: var(--bottom-height);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: none;
}
#menuFooter.show {
  display: block;
}

#menuFooter .menu-Main {
  margin: 0;
  padding: 10px;

  list-style: none;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 100%;
  gap: 10px;

  background-image: url("../access/img/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#menuFooter .menu-Main .menu-item {
  width: calc(100% / 6);
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

#menuFooter .menu-Main .menu-item .nav-link {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: 0.35s ease all;
}

#menuFooter .menu-Main .menu-item .name-room {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  font-size: 12px;
  text-align: center;
  color: white;
  font-weight: bold;
  margin: 0;
  top: 0;
  justify-content: center;
  align-items: center;
  background-color: rgba(17, 150, 222, 0.3);
  opacity: 0;
}

#menuFooter .menu-Main .menu-item .name-room p {
  margin: 0;
}

#menuFooter .menu-Main .menu-item:hover .nav-link {
  transform: scale(1.2);
}

#menuFooter .menu-Main .menu-item .name-room {
  opacity: 3;
}

#menuFooter .menu-Main .menu-item:nth-child(1) .nav-link {
  background-image: url("../access/img/clip_ky_niem_50_nam.jpg");
}

#menuFooter .menu-Main .menu-item:nth-child(2) .nav-link {
  background-image: url("../access/img/toanhatoaan.png");
}

#menuFooter .menu-Main .menu-item:nth-child(3) .nav-link {
  background-image: url("../access/img/thamquantoanha.jpg");
}

#menuFooter .menu-Main .menu-item:nth-child(5) .nav-link {
  background-image: url("../access/img/phong_xu_an_b1.jpg");
}

#menuFooter .menu-Main .menu-item:nth-child(4) .nav-link {
  background-image: url("../access/img/phong_xu_an_a1.jpg");
}

#menuFooter .menu-Main .menu-item:nth-child(6) .nav-link {
  background-image: url("../access/img/phong_xu_an_a2.jpg");
}

#menuFooter .menu-Main .menu-item:nth-child(7) .nav-link {
  background-image: url("../access/img/phong_xu_an_b2.jpg");
}
#menuFooter .menu-Main .menu-item:nth-child(8) .nav-link {
  background-image: url("../access/img/phong_tho_bac_ho.jpg");
}
#menuFooter .menu-Main .menu-item:nth-child(9) .nav-link {
  background-image: url("../access/img/phong_truyen_thong_so.jpg");
}
#header {
  background-image: url("../access/img/background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  border-bottom: 2px solid rgba(0, 0, 0, 0.08);

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

  height: 50px;
  position: relative;
  z-index: 10;
}

.header-main {
  position: relative;

  display: flex;
  align-items: center;

  width: 100%;
  height: 50px;

  padding-right: 20px;
}

.header-main h1 {
  position: absolute;

  left: 52%;
  transform: translateX(-50%);

  margin: 0;

  font-size: 26px;
  font-weight: 800;

  color: #7a4e00;

  white-space: nowrap;
  letter-spacing: 1px;
}

.header-mute {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0;
  gap: 10px;
}

.header-mute img {
  width: 20px;
  height: 14px;
}

.header-mute .translation {
  display: flex;
}

.header-about {
  cursor: pointer;
}

.header-about p {
  margin: 0;
  padding: 0;
  text-wrap: nowrap;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  width: calc(var(--width-popup-right) - 20px);
  text-align: center;
}
.footer-about {
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 999999;
  transform: translateY(-150%);
}
.footer-about p {
  margin: 0;
  padding: 0;
  text-wrap: nowrap;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  width: calc(var(--width-popup-right) - 20px);
  text-align: center;
  color: white;
}
.volume-icon {
  color: white;
}

.volume-icon.mute {
  color: red;
}

#about-us {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 999999;
}

#about-us.show {
  display: flex;
}

.about-us-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.about-us_main {
  position: relative;

  width: 90%;
  max-width: 800px;

  z-index: 10;

  animation: popupFade 0.3s ease;
}

@keyframes popupFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.about-us_main .contentPopup {
  background: white;

  border-radius: 28px;

  padding: 40px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.about-us_main .group {
  margin-bottom: 24px;

  text-align: center;

  font-size: 32px;
  font-weight: 700;

  color: #7a4e00;
}

.about-content {
  max-height: 60vh;
  overflow-y: auto;

  padding-right: 6px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.8;

  color: #333;

  margin-bottom: 18px;

  text-align: justify;
}

.about-us_main .buttonClose {
  position: absolute;

  top: -16px;
  right: -16px;

  width: 52px;
  height: 52px;

  border-radius: 50%;
  border: none;

  background: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 34px;
  font-weight: 700;

  color: #111;

  padding: 0;
  margin: 0;

  line-height: 1;

  cursor: pointer;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

  transition: all 0.25s ease;
}

.about-us_main .buttonClose:hover {
  transform: rotate(90deg) scale(1.05);
  color: #0198db;
}

@media screen and (max-width: 844px) {
  :root {
    --bottom-height: 80px;
  }

  #menuLeft {
    display: none;
  }

  .menuMain-item {
    margin: 4px;
    padding: 6px;
  }

  .moduleThumb {
    min-height: 200px;
    width: 100% !important;
  }

  .content-popup-bottom {
    height: 150px;
  }

  #popup .popupmain .contentPopup {
    padding: 40px 100px 10px 100px;
  }
}

@media screen and (max-width: 844px) {
  #header {
    height: 50px;
  }

  .header-main {
    height: 50px;
  }

  .header-main h1 {
    position: absolute;

    left: 56%;

    top: 50%;

    transform: translate(-50%, -50%);

    max-width: calc(100% - 170px);

    margin: 0;

    font-size: 10px;
    font-weight: bold;

    line-height: 1.2;

    text-align: center;

    white-space: normal;

    word-break: break-word;
  }

  .header-menu-wrapper {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);
  }
}

@media screen and (max-width: 480px) {
  .logo-web {
    width: 130px;
  }

  .logo-web img {
    width: 90px;
  }

  #popup .popupmain .contentPopup {
    padding: 40px 10px 10px 10px;
  }
}

.back-button {
  position: fixed;
  bottom: 28%;
  left: 12px;
  z-index: 9999;
  padding: 8px 16px;
  background-color: transparent;
  opacity: 1;
  color: rgb(244, 242, 242);
  border: none;
  border-radius: 10%;
  gap: 8px;
  font-size: 20px;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}
.back-button:focus {
  outline: none;
  box-shadow: none;
}
.back-button:hover {
  color: #f5e5b7;
  border-color: #f5e5b7;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}
.back-to-first {
  width: 100%;
  margin: 5px 0;
  font-weight: bold;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.youtube-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;

  justify-content: center;
  align-items: center;

  background: rgba(0, 0, 0, 0.85);
}

.youtube-popup-content {
  position: relative;

  width: min(95vw, 1000px);
  aspect-ratio: 16 / 9;

  background: #000;
  border-radius: 12px;
  overflow: visible;
}

.youtube-popup-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.popup-close {
  position: absolute;
  top: 5px !important;
  right: 5px !important;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.8);
  color: #fff;

  border-radius: 50%;
  cursor: pointer;

  font-size: 18px;
  line-height: 1;

  transition: 0.25s;
  z-index: 10;
}

.popup-close:hover {
  background: #0198db;
}

#btn-delay {
  display: none;
}

.audio-popup {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition:
    visibility 0.2s,
    opacity 0.2s ease;
}

.audio-popup.active {
  visibility: visible;
  opacity: 1;
}

.audio-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

.audio-popup-container {
  position: relative;
  z-index: 10;
  width: 90%;
  max-width: 420px;
  padding: 20px;
  animation: audioPopupFadeIn 0.3s cubic-bezier(0.21, 1.11, 0.35, 1.05);
}

@keyframes audioPopupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.audio-popup-card {
  background: linear-gradient(145deg, #fffdf5 0%, #f5e5b7 100%);

  border-radius: 42px;
  padding: 36px 28px 42px;
  text-align: center;
  box-shadow:
    0 25px 45px -12px rgba(122, 78, 0, 0.25),
    0 0 0 1px rgba(122, 78, 0, 0.12);
  backdrop-filter: blur(2px);
}

.audio-popup-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d8b96f, #b8860b);
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -5px rgba(184, 134, 11, 0.4);
}

.audio-popup-icon i {
  font-size: 42px;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.audio-popup-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #7a4e00, #b8860b);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.audio-popup-desc {
  font-size: 15px;
  color: #5a6874;
  margin-bottom: 32px;
  font-weight: 500;
}

.audio-popup-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.audio-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 8px;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.audio-btn i {
  font-size: 18px;
}

.audio-btn-yes {
  background: linear-gradient(105deg, #d8b96f, #b8860b);
  color: white;
  box-shadow: 0 6px 14px rgba(184, 134, 11, 0.35);
}

.audio-btn-yes:hover {
  transform: translateY(-2px);
  background: linear-gradient(105deg, #e6c97f, #c9991a);
  box-shadow: 0 12px 20px -8px rgba(1, 152, 219, 0.5);
}

.audio-btn-no {
  background: #fff8e4;
  color: #7a4e00;
  border: 1px solid #e6d3a3;
}

.audio-btn-no:hover {
  background: #e6ecf3;
  transform: translateY(-2px);
}

.audio-btn:active {
  transform: translateY(1px);
}

@media screen and (max-width: 768px) {
  main {
    height: calc(100vh - var(--header-height) - var(--bottom-height));
  }

  .room iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #menuFooter {
    height: var(--bottom-height);
  }

  #menuFooter .menu-Main {
    gap: 4px;
    padding: 4px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  #menuFooter .menu-Main::-webkit-scrollbar {
    display: none;
  }

  #menuFooter .menu-Main .menu-item {
    min-width: 74px;
    width: 74px;

    flex-shrink: 0;

    border-radius: 6px;

    overflow: hidden;
  }

  #menuFooter .menu-Main .menu-item .name-room {
    opacity: 1;

    background: rgba(0, 0, 0, 0.45);

    padding: 4px;
  }

  #menuFooter .menu-Main .menu-item .name-room p {
    font-size: 9px;
    line-height: 1.2;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;

    overflow: hidden;
  }

  .about-us_main {
    width: 94%;
  }

  .about-us_main .contentPopup {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .about-us_main .group {
    font-size: 24px;
  }

  .about-content p {
    font-size: 14px;
    line-height: 1.6;
  }

  .about-us_main .buttonClose {
    width: 42px;
    height: 42px;

    font-size: 26px;
  }

  .audio-popup-card {
    padding: 28px 20px 32px;
    border-radius: 28px;
  }

  .audio-popup-title {
    font-size: 24px;
  }

  .audio-popup-desc {
    font-size: 14px;
  }

  .audio-btn {
    font-size: 15px;
    padding: 12px 8px;
  }
}

.header-menu-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-actions {
  position: absolute;

  top: 50px;
  right: -15px;

  width: 220px;

  display: flex;
  flex-direction: column;

  gap: 10px;

  padding: 12px;

  border-radius: 18px;

  background: rgba(1, 152, 219, 0.18);

  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);

  opacity: 0;
  visibility: hidden;

  transform: translateY(-10px);

  transition: all 0.25s ease;

  z-index: 9999;
}

.header-actions.show {
  opacity: 1;
  visibility: visible;

  transform: translateY(0);
}

.header-actions button,
.header-actions .header-about {
  width: 100%;

  min-height: 42px;

  border-radius: 12px;

  display: flex;
  align-items: center;

  padding: 0 14px;

  transition: 0.2s ease;
}

.header-actions button:hover,
.header-actions .header-about:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  background: transparent;
  border: none;

  color: white;

  font-size: 15px;
  font-weight: 600;

  justify-content: flex-start;

  gap: 10px;
}

.header-actions .header-about p {
  margin: 0;

  width: 100%;

  color: white;

  font-size: 15px;
  font-weight: 600;

  text-align: left;
}

.header-actions .header-mute {
  justify-content: flex-start;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 8px;

  cursor: pointer;
}

.sound-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;

  transition: 0.25s ease;
}
.sound-icon i {
  color: #7a4e00;
  font-size: 20px;
}

.sound-text {
  color: #7a4e00;
  font-size: 15px;
  font-weight: 600;
}

.header-mute:hover .sound-icon {
  background: rgba(255, 255, 255, 0.18);

  transform: scale(1.05);
}

.volume-icon.mute i {
  color: #ff4d4f;
}

@media (max-width: 768px) {
  .youtube-popup-content {
    width: 95vw;
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .popup-close {
    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    font-size: 24px;
  }
}

.artifact-dropdown {
  position: relative;
  margin: 0;
  display: flex;
  align-items: center;
}
.artifact-btn {
  border: none;
  background: rgba(122, 78, 0, 0.08);
  color: #7a4e00;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.artifact-menu {
  display: none;

  position: fixed;

  top: 50px;
  right: 0px;

  width: 250px;

  max-height: 540px;
  overflow-y: auto;
  background: rgba(1, 152, 219, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);

  border-radius: 10px;

  z-index: 99999;
}

.artifact-menu.show {
  display: block;
}

.artifact-count {
  min-width: 22px;
  height: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 6px;

  border-radius: 999px;

  background: #7a4e00;
  color: #fff;

  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.artifact-item {
  display: block;
  padding: 12px 16px;
  color: #fff !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.artifact-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.artifact-dropdown {
  position: relative;
  margin-right: 10px;
}
.header-menu-wrapper {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.artifact-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(122, 78, 0, 0.08);
  color: #7a4e00;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ================= Popup giới thiệu hiện vật ================= */

.artifact-intro {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999999;
  padding: 20px;
}

.artifact-intro.show {
  display: flex;
}

.artifact-intro-box {
  width: min(900px, 115vw);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
}

.artifact-intro-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.artifact-intro-buttons {
  display: flex;
}

.artifact-intro-buttons button {
  flex: 1;
  border: none;
  height: 60px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

#artifactBack {
  background: #f3f3f3;
  color: #333;
}

#artifactContinue {
  background: #b8860b;
  color: #fff;
}

#artifactContinue:hover {
  background: #9c6f05;
}

@media screen and (max-width: 768px) {
  .artifact-btn {
    padding: 6px 8px;
    min-width: 36px;
  }

  .artifact-btn span {
    display: none;
  }

  .artifact-btn i {
    margin: 0;
    font-size: 18px;
  }
  .artifact-dropdown {
    position: relative;
  }

  .artifact-menu {
    position: absolute;

    top: 53px;
    right: -90px;
    left: auto;

    width: 240px;
    height: 490px;

    max-width: none;
  }
}

@media (max-width: 768px) {
  .artifact-intro-box {
    width: 95vw;
    max-width: 420px;
    border-radius: 18px;
  }

  .artifact-intro-box img {
    width: 100%;
    display: block;
  }

  .artifact-intro-buttons {
    display: flex;
    flex-direction: row; /* <-- nằm ngang */
  }

  .artifact-intro-buttons button {
    flex: 1;
    height: 40px;
    font-size: 15px;
    font-weight: 700;
  }
}

.artifact-popup-content {
  width: 92%;
  height: 90vh;

  position: relative;
  overflow: hidden;

  border-radius: 18px;

  background: #111;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.08);

  animation: popupScale 0.25s ease;
}

.artifact-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 9999;

  justify-content: center;
  align-items: center;

  animation: fadeIn 0.25s ease;
}

.artifact-popup.show {
  display: flex;
}

.video-popup-content {
  width: min(95vw, 1400px);
  height: 90vh;

  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.video-popup-content .artifact-viewer {
  width: 100%;
  height: 100%;
}

.video-popup-content #videoFrame {
  width: 100%;
  height: 100%;
  border: 0;
}

#artifactFrame {
  width: 100%;
  height: 100%;
  border: none;
}

#closeArtifact {
  position: absolute;
  top: 8px;
  right: 16px;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.65);
  color: #fff;

  font-size: 24px;
  cursor: pointer;

  z-index: 100;

  transition: 0.2s;
}

#closeVideo {
  position: absolute;
  top: 15px;
  right: 15px;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: #ffffff;
  color: #111;

  font-size: 30px;
  font-weight: bold;

  cursor: pointer;
  z-index: 9999;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);

  transition: 0.25s;
}

#closeVideo:hover {
  background: #e53935;
  color: #fff;
  transform: scale(1.08) rotate(90deg);
}

#closeArtifact:hover {
  background: #e53935;
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Video popup responsive ===== */
@media (max-width: 768px) {
  .video-popup-content {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .video-popup-content .artifact-viewer {
    width: 100%;
    height: 100%;
  }

  #videoFrame {
    width: 100%;
    height: 100%;
    border: none;
  }

  #closeVideo {
    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    font-size: 28px;

    background: rgba(255, 255, 255, 0.95);
    color: #222;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 99999;
  }

  #closeVideo:hover {
    background: #e53935;
    color: #fff;
  }
}

.artifact-viewer {
  display: flex;
  height: 100%;
}

#artifactFrame {
  width: 70%;
  border: none;
}
#videoFrame {
  width: 70%;
  border: none;
}

.artifact-info {
  width: 32%;

  background-image: url("../access/img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding: 30px;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.artifact-info-inner {
  position: relative;
  z-index: 2;

  width: 95%;
  min-height: 100%;

  padding: 50px;

  border: 3px solid #c40000;

  background: rgba(255, 255, 255, 0.75);

  backdrop-filter: blur(2px);
}
.artifact-info-inner h2 {
  color: #c40000;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  word-break: break-word;
}

.artifact-info-inner p {
  color: #c40000;
  font-size: 18px;
  line-height: 1.8;
}

.artifact-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
}

@media screen and (max-width: 844px) {
  .header-main h1 {
    display: none;
  }
}
@media (max-width: 768px) {
  #header {
    height: 70px;
  }

  .container-header,
  .header-main {
    height: 55px;
  }

  .logo-web {
    left: 10px;
  }

  .logo-web img {
    height: 150px;
    width: auto;
  }
}

@media (max-width: 768px) {
  .artifact-viewer {
    flex-direction: column;
  }

  #artifactFrame {
    width: 100%;
    height: 55%;
  }

  #videoFrame {
    width: 100%;
    height: 55%;
  }

  .artifact-info {
    width: 100%;
    height: 45%;
    padding: 15px;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .artifact-info-inner {
    width: 100%;
    min-height: 100%;
    padding: 20px;
    border-width: 2px;
  }

  .artifact-info-inner h2 {
    font-size: 15px;
    line-height: 1.3;
  }

  .artifact-info-inner p {
    font-size: 12px;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .artifact-popup-content {
    width: 95%;
    height: 90vh;
  }
}

.artifact-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.artifact-nav button {
  pointer-events: auto;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

@media (max-width: 768px) {
  .artifact-nav {
    top: 150px;
    transform: translateY(-50%);
  }
  #closeArtifact {
    top: 8px;
    right: 8px;

    width: 38px;
    height: 38px;

    font-size: 20px;
  }
  .header-actions {
    top: 60px;
    right: -25px;

    width: 180px;

    padding: 8px;

    gap: 6px;

    border-radius: 12px;
  }

  .header-actions button,
  .header-actions .header-about {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 8px;
  }

  .header-actions,
  .header-actions .header-about p,
  .sound-text {
    font-size: 13px;
  }

  .sound-icon {
    width: 28px;
    height: 28px;
  }

  .sound-icon i {
    font-size: 14px;
  }
}

.video-dropdown {
  position: absolute;
  left: 110px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.video-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(122, 78, 0, 0.08);
  color: #7a4e00;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
}

.video-menu {
  display: none;

  position: fixed;

  top: 45px;
  left: -110px;

  width: 250px;
  max-height: 538px;
  overflow-y: auto;

  background: rgba(1, 152, 219, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);

  z-index: 99999;
}

.video-menu.show {
  display: block;
}

.video-menu.show {
  display: block;
}

.video-item {
  display: block;

  padding: 12px 16px;

  color: #fff !important;

  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);

  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.video-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

.video-count {
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #7a4e00;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.video-menu {
  direction: rtl;
  overflow-y: auto;
}

.video-menu .video-item {
  direction: ltr;
  text-align: left;
}

@media (max-width: 768px) {
  .video-dropdown {
    position: absolute;
    left: 130px; /* ngay sau logo */
    top: 50%;
    transform: translateY(-50%);
  }

  .video-btn {
    margin-left: 10px;
    min-width: 36px;
    border-radius: 6px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .video-btn > span:first-of-type {
    display: none;
  }

  .video-count {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    display: none !important;
  }

  .video-btn i {
    margin: 0;
    font-size: 18px;
  }

  .video-menu {
    position: absolute;
    top: 53px;
    left: 0;
    width: 240px;
    max-height: 490px;
  }
  body {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #f5e5b7;
  }
}
