/* Стили начального экрана */
@import url('https://fonts.googleapis.com/css2?family=Mochiy+Pop+One&display=swap');

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden; /* Предотвращает горизонтальный скролл */
}

.initial-screen * {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Mochiy Pop One', sans-serif;
}

.initial-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #252839;
}

.initial-screen ul {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.initial-screen ul li {
  position: relative;
  list-style: none;
}

.initial-screen ul li a {
  font-size: 4em;
  text-decoration: none;
  letter-spacing: 2px;
  line-height: 1em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.initial-screen ul li a::before {
  content: attr(data-text);
  position: absolute;
  color: var(--clr);
  width: 0;
  overflow: hidden;
  transition: 1s;
  border-right: 8px solid var(--clr);
  -webkit-text-stroke: 1px var(--clr);
}

.initial-screen ul li a:hover::before {
  width: 100%;
  filter: drop-shadow(0 0 25px var(--clr));
}

/* Стили экрана с планом */
.plan-screen {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f5f5f5;
}

.container {
  position: relative;
}

.image-container {
  position: relative;
  width: 1400px;
  height: 800px;
}

.plan-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #f0f0f0;
}

.overlay-svg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

rect {
  cursor: pointer;
  transition: all 0.3s ease;
}

rect:hover {
  fill: #14ffb9;
  fill-opacity: 1;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 40px 20px 20px;
  border-radius: 5px;
  max-width: 80%;
  width: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 90vh;
  overflow-y: auto;
}

.modal img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.modal-text {
  margin-top: 15px;
  font-size: 18px;
  text-align: center;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  padding: 5px;
}

/* Стили для кнопки 3D View */
.view-3d-btn {
  position: absolute;
  top: 20px;
/*  right: 20px;*/
  padding: 10px 20px;
  background-color: #00ade1;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  z-index: 20;
  transition: background-color 0.3s;
}

.view-3d-btn:hover {
  background-color: #0088b3;
}

.initial-screen .view-3d-btn {
  display: none;
}