.overlay-dialog {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s;
}
.overlay-dialog .hidden {
  animation: fadeOut 0.3s forwards;
}

.dialog {
  background: rgb(203, 199, 178);
  width: 90%;
  height: 90%;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  justify-content: center;
  position: relative;
  animation: zoomIn 0.5s;
}
.dialog .hidden {
  animation: zoomOut 0.3s forwards;
}
@keyframes fadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.5);
  }
}

@keyframes fadeOut {
  from {
    background: rgba(0, 0, 0, 0.5);
  }
  to {
    background: rgba(0, 0, 0, 0);
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}

.svg-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.svg-overlay {
  /* transform: rotate(90deg); */
  width: 100%;
  height: 90%;
  max-width: 100%;
  max-height: 90%;
}

.svg-portrait {
  transform: rotate(0deg);
}

.svg-landscape {
  transform: rotate(90deg);
}

.svg-portrait,
.svg-landscape {
  width: 100%;
  height: 100%;
}

#closeDialogBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 20;
}

.single-room {
  transition: fill 0.25s ease-in-out, opacity 0.25s ease-in-out;
}

.single-room:hover {
  fill: black;
  opacity: 0.2;
}

.dark-area {
  fill: rgba(32, 32, 32, 0.717);
}

.dialog-content {
  width: 100%;
  height: 100%;
  align-items: stretch;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

/* Media Query für mobile Geräte */
@media (max-width: 768px) {
  .dialog-content {
    flex-direction: column; /* Ändert die Richtung zu Spalte für kleinere Bildschirme */
  }
}

.dialog-overlay-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "left1 main-section main-section main-section right-section"
    "left2 main-section main-section main-section right-section"
    "left3 main-section main-section main-section right-section"
    "left4 main-section main-section main-section right-section"
    "left5 main-section main-section main-section right-section"
    "left6 main-section main-section main-section right-section";
}

.left1 {
  grid-area: left1;
}

.left2 {
  grid-area: left2;
}

.left3 {
  grid-area: left3;
}

.left4 {
  grid-area: left4;
}

.left5 {
  grid-area: left5;
}

.left6 {
  grid-area: left6;
}

.right-section {
  grid-area: right-section;
}

.main-section {
  grid-area: main-section;
}
