@import './common.css';

/* Styling for the overlay */
#cesiumOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  pointer-events: none;
}
#cesiumContainer {
  width: 100%;
  height: 100%;
}
.closeButton {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
}

.overlay{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: overlay_fadein 0.05s;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000000;
}

.overlay.overlay_closing{
  animation: overlay_fadeout 0.1s;
  background-color: rgba(0, 0, 0, 0);
}

.overlay .overlay_content{
  background-color: var(--background2-color);
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  min-width: 250px;
  min-height: 100px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 10px 0px #000;
  border-radius: 2px;
  animation: overlay_content_fadein 0.1s;
  opacity: 1;
  padding: 10px;
  text-align: left|justify;
}

.overlay.overlay_closing .overlay_content{
  animation: overlay_content_fadeout 0.1s;
  opacity: 0;
  box-shadow: none;
}

@keyframes overlay_fadein {
  0%{
    background-color: rgba(0, 0, 0, 0);
  }

  100%{
    background-color: rgba(0, 0, 0, 0.7);
  }
}

@keyframes overlay_content_fadein {
  0%{
    top: 45%;
    opacity: 0;
  }

  100%{
    top: 50%;
    opacity: 1;
  }
}

@keyframes overlay_fadeout {
  0%{
    background-color: rgba(0, 0, 0, 0.7);
  }

  100%{
    background-color: rgba(0, 0, 0, 0);
  }
}

@keyframes overlay_content_fadeout {
  0%{
    top: 50%;
    opacity: 1;
  }

  100%{
    top: 45%;
    opacity: 0;
  }
}