/* =================================================================
   FULL SCREEN OVERLAY ANIMATION ($100,000 ULTRA MODERN STYLE)
   ================================================================= */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  animation: fadeOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.overlay-left {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: #ffffff;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  animation: moveLeft 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.overlay-left img {
  width: 60%;
  transform: translateX(50%);
  transition: transform 0.6s ease;
}

.overlay-right {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #ffffff;
  animation: moveRight 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.overlay-right img {
  width: 60%;
  transform: translateX(-50%);
  transition: transform 0.6s ease;
}

@keyframes moveLeft {
  to {
    transform: translateX(-100%);
  }
}

@keyframes moveRight {
  to {
    transform: translateX(100%);
  }
}
