/* Global Styles */
body {
  font-family: monospace, 'VT323', Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #000000;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Main container for the desk */
.desk-container {
  position: relative;
  width: 48vw;
  height: 48vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Desk wrapper for scaling */
.desk-wrapper {
  position: relative;
  width: 85%;
  max-width: 85vw;
  max-height: 85vh;
  overflow: hidden;
}

/* Desk background */
.desk-wrapper img[src="images/desk.png"] {
  width: 100%;
  height: auto;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.6) contrast(1.2) sepia(0.2);
}

/* Scan line effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3), /* Increased opacity */
    rgba(0, 0, 0, 0.3) 1px, /* Increased opacity */
    transparent 1px,
    transparent 1.5px /* Decreased spacing */
  );
  pointer-events: none;
  z-index: 20;
  animation: scanLines 2s linear infinite;
}

@keyframes scanLines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100vh;
  }
}

/* Items overlay */
.desk-items {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Desk items styling */
.desk-items img {
  position: absolute;
  max-width: 8%;
  height: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  pointer-events: auto;
  filter: brightness(0.9) saturate(0.9) drop-shadow(0 0 .1px rgb(173, 161, 161)); /* Add white outline */
}

/* Individual item positioning */
.desk-items img[src="images/Eli clark.png"] {
  top: 52%;
  left: 88%;
  z-index: 2;
}

.desk-items img[src="images/star pins.png"] {
  top: 66%;
  left: 58%;
  z-index: 7;
  max-width: 20%;
}

.desk-items img[src="images/Miku1.png"] {
  top: 40%;
  left: 33%;
  z-index: 6;
  max-width: 25%;
}

.desk-items img[src="images/Layer 1.png"] {
  top: 57%;
  left: 1%;
  z-index: 8;
  max-width: 20%;
}

.desk-items img[src="images/yellow roses.png"] {
  top: 23%;
  left: 10%;
  z-index:7;
  max-width: 28%;
}

.desk-items img[src="images/eeveee.png"] {
  top: 24%;
  left: 70%;
  z-index: 9;
  max-width: 12%;
}

.desk-items img[src="images/Pompompurin.png"] {
  bottom: 85%;
  left: 43%;
  z-index: 10;
  max-width: 11%;
}

.desk-items img[src="images/Snail.png"] {
  bottom: 92%;
  left: 10%;
  z-index: 10;
  max-width: 7%;
}

/* Hover Effects */
.desk-items img:hover {
  transform: rotate(3deg);
  filter: brightness(1.2) saturate(1.2);
}

/* Sparkle Style (Smaller Version) */
.sparkle {
  position: absolute;
  width: 5px; /* Reduced size */
  height: 5px; /* Reduced size */
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0));
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  animation: sparkleFade 1s ease-out forwards, sparkleMove 1s ease-out forwards;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.7), 0 0 10px rgba(255, 192, 203, 0.5); /* Reduced glow size */
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes sparkleMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5px, -5px) scale(0.5); /* Adjusted for smaller sparkles */
  }
}

.hover-name {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.2s ease;
}
