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

body {
  font-family: "Georgia", serif;
  background-color: #1a1a1a;
  color: #f0e6d2;
  overflow: hidden;
}

.room-container {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.room {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.room.active {
  display: block;
}

.room img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.room:nth-child(1) img {
  object-position: center 40%;
}

.room:nth-child(3) img {
  object-position: center 15%;
}

.hotspot {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(255, 215, 0, 0.3);
  border: 3px solid #ffd700;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  z-index: 5;
}

.hotspot:hover {
  background: rgba(255, 215, 0, 0.6);
  transform: scale(1.2);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(255, 215, 0, 0);
  }
}

.hotspot-1 {
  top: 40%;
  left: 40%;
}
.hotspot-2 {
  top: 28%;
  right: 30%;
}
.hotspot-3 {
  top: 45%;
  left: 19%;
}
.hotspot-4 {
  top: 25%;
  right: 29%;
}
.hotspot-5 {
  top: 50%;
  left: 40%;
}
.hotspot-6 {
  top: 25%;
  right: 20%;
}

.hotspot-label {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(0 0 0 / 78%);
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: "Georgia", serif;
  font-size: 17px;
  font-weight: bold;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  animation: fadeInUp 0.6s ease-out 1s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hotspot-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.85);
}

.hotspot:hover .hotspot-label {
  background: rgba(0, 0, 0, 0.95);
  color: #ffed4e;
  transform: translateX(-50%) translateY(-5px);
  transition: all 0.3s ease;
}

.nav-buttons {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  z-index: 20;
  pointer-events: none;
}

.nav-buttons button {
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #9c9c9c 0%, #adadad 50%, #fbfbfb 100%);
  border: 3px solid #8b7355;
  cursor: pointer;
  border-radius: 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  padding: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.nav-buttons button img {
  width: 100%;
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav-buttons button:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #ffed4e 50%, #f4d03f 100%);
  border-color: #ffd700;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
}

/* ========== SISTEM NOU CU PAGINI MULTIPLE ========== */
.doc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
}

.doc-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Container pentru scroll între pagini */
.doc-pages-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

/* Ascunde scrollbar dar păstrează funcționalitatea */
.doc-pages-container::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* Fiecare pagină ocupă tot ecranul */
.doc-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  position: relative;
  padding: 40px;
}

/* Foaia de hârtie pentru fiecare pagină */
.doc-paper {
  width: 1200px;
  max-width: 90%;
  height: 88vh;
  background-image: url("images/imagedoc2.jpg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  padding: 80px 60px 40px 60px;
  position: relative;
}

/* Conținutul fiecărei pagini - FĂRĂ SCROLL */
.doc-content {
  flex: 1;
  font-size: 18px;
  line-height: 1.9;
  color: #2d1f10;
  font-family: "Georgia", serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.doc-content h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #3d2817;
  font-size: 26px;
  font-weight: bold;
}

.doc-content p {
  margin-bottom: 18px;
}

.doc-content img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Buton Close - poziționat fix în colțul din dreapta sus */
.close-btn-fixed {
  position: fixed;
  top: 30px;
  right: 30px;
  padding: 14px 30px;
  background: #8b7355;
  border: 2px solid #ffd700;
  color: #f0e6d2;
  font-size: 18px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "Georgia", serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.close-btn-fixed:hover {
  background: #6d5940;
  border-color: #ffed4e;
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.4);
}

.page-indicator {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #ffd700;
  padding: 10px 20px;
  border-radius: 20px;
  font-family: "Georgia", serif;
  font-size: 16px;
  z-index: 200;
  border: 2px solid #8b7355;
}

/* Săgeți pentru navigare între pagini */
.page-nav-arrows {
  position: fixed;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  z-index: 150;
  pointer-events: none;
}

.page-nav-arrows button {
  width: 60px;
  height: 60px;
  background: rgba(139, 115, 85, 0.8);
  border: 2px solid #ffd700;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: all 0.3s ease;
  font-size: 24px;
  color: #ffd700;
}

.page-nav-arrows button:hover {
  background: rgba(139, 115, 85, 1);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-nav-arrows button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.room:first-child.active ~ .nav-buttons {
  justify-content: flex-end;
}

.room:last-child.active ~ .nav-buttons {
  justify-content: flex-start;
}

.exit-house-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  padding: 15px 35px;
  background: linear-gradient(135deg, #8b7355 0%, #a1886b 50%, #8b7355 100%);
  border: 3px solid #ffd700;
  color: #ffd700;
  font-family: "Georgia", serif;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.exit-house-btn:hover {
  background: linear-gradient(135deg, #a1886b 0%, #b59a7a 50%, #a1886b 100%);
  border-color: #ffed4e;
  color: #ffed4e;
  transform: scale(1.05);
  box-shadow: 0 7px 25px rgba(255, 215, 0, 0.4);
}

.exit-house-btn:active {
  transform: scale(0.95);
}

@keyframes exitPulse {
  0%,
  100% {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 5px 25px rgba(255, 215, 0, 0.6);
  }
}

.exit-house-btn {
  animation: exitPulse 3s infinite;
}
