@import 'https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/core@5/index.css';
@import 'https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/map-plugin@5/index.css';

.App {
  font-family: sans-serif;
  text-align: center;
  width: 100vw;
  height: 100vh;
}

body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  user-select: none;
  -webkit-user-select: none; 
  -moz-user-select: none;    
  -ms-user-select: none;     
}

.container {
  overflow-x: 'auto';
  overflow-y: 'hidden';
  white-space: 'nowrap';
  width: '100vw';
  height: '100vh';
  overflow-x: 'auto';
  overflow-y: 'hidden';
  white-space: 'nowrap';
  -webkit-overflow-scrolling: 'touch';
}

.square-container {
  width: 100vw;
  height: 100vh;
  margin: 0;
  position: relative;
  z-index: 10;
}

/* mobile style */
.house-bg-mobile {
  display: block;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: -1; /* sits behind everything else */
}

/* tablet style */

/* laptop style */
.house-bg {
  /* display: block; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: stretch;
  z-index: -1; /* sits behind everything else */
}

.square {
  position: absolute;
  background: rgba(0, 0, 0, 0.5);
  /* make content center */
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  height: 200px;           /* or any height you want */
  cursor: pointer;
}

.square:hover {
  background: rgba(82, 99, 255, 0.5)
}

.square span {
  color: white;
  font-size: 1.5vw;
  text-transform: uppercase;
  /* unselectable */
  user-select: none;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
}

/* custom marker */
.info-marker {
  width: 30px;
  height: 30px;
  background-color: #3498db;
  color: white;
  border-radius: 100%;
  display: flex;
  position: relative;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  z-index: 10;
  transition: transform 0.3s ease;
}
.info-marker-name {
  height: 90%;
  width: 92%;
  color: white;
  transition: opacity 0.3s ease 0.1s;
  z-index: 1;
}
.info-marker:hover {
  animation: ripple 1s ease-out;
}
.info-marker.hiding {
  animation: hide 200ms ease forwards;
}
.info-marker:hover + .info-marker {
  animation: show 300ms ease forwards;
}
@keyframes ripple {
  0% { box-shadow: 0 0 0 0 rgba(97, 170, 242, 0); }
  20% { box-shadow: 0 0 0 5px rgba(97, 170, 242, 1); }
  100% { box-shadow: 0 0 0 20px rgba(97, 170, 242, 0); }
}
@keyframes show {
  0% { transform: rotate(30deg); opacity: 0; }
  70% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); opacity: 1; }
}
@keyframes hide {
  0% { transform: rotate(0deg); opacity: 1; }
  100% { transform: rotate(30deg); opacity: 0; }
}
.room-marker {
  width: 60px;
  height: 60px;
  background-color: #3498db;
  border-radius: 100%;
  display: flex;
  position: relative;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  z-index: 10;
  transition: transform 0.3s ease;
  transform-origin: center center;
}
.room-marker-icon {
  height: 80%;
  width: 80%;
  color: white;
  transition: opacity 0.3s ease 0.1s;
  z-index: 1;
}
.room-marker-img {
  position: absolute;
  height: 92%;
  width: 92%;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index : 2;
  transform-origin: center center;
}
.room-marker-container {
  /* make content center */
  display: flex;
  flex-direction: column;
  gap: 3%;
  align-items: center;     /* vertical */
  height: 200px;           /* or any height you want */
  cursor: pointer;
}
.room-marker-name {
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.1s ease, growText 0.3s ease-out forwards;
  pointer-events: none;
  transform: translateY(37px)
}
.room-marker-container:hover .room-marker-name {
  opacity: 1; 
  transform: scale(1) translateY(37px);
}
.room-marker-container:hover .room-marker {
  transform: scale(2);
  background-color: white;
}
.room-marker-container:hover .room-marker .room-marker-icon {
  opacity: 0;
}
.room-marker-container:hover .room-marker .room-marker-img {
  opacity: 1;
  transform: scale(1);
}
@keyframes growText {
  from {
    font-size: 0px;
  }
  to {
    font-size: 10px;
  }
}


/* psv */
.psv-navbar {
  background-color: #fff !important;
  height: 60px;
}

.psv-button {
  filter: invert(1); /* Make icons dark for light background */
}

.psv-panel {

}

.psv-panel-resizer {
  display: none;
}

.psv-panel-close-button {
  color: white;
  z-index: 89;
}

.psv-panel-content {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */
}

.psv-notification {

}
