
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to bottom, #1a0a2e 0%, #0d0630 50%, #000000 100%);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}


.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  animation: twinkle var(--duration, 5s) infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}


.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatNebula 25s infinite alternate ease-in-out;
}

.nebula-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #8A2BE2, transparent);
  top: 20%;
  left: 10%;
  animation-duration: 30s;
}

.nebula-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #BA55D3, transparent);
  bottom: 10%;
  right: 15%;
  animation-duration: 35s;
}

.nebula-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #DA70D6, transparent);
  top: 40%;
  right: 25%;
  animation-duration: 25s;
}

@keyframes floatNebula {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, 30px) scale(1.2);
  }
}


.container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}


.image-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.5s ease;
  opacity: 0; 
}


.image-container::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 64, 251, 0.4) 0%, transparent 70%);
  z-index: -1;
  animation: glowPulse 3s ease-in-out infinite alternate;
}

#centerImage {
  max-width: 150px;
  max-height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(224, 64, 251, 0.5);
  box-shadow: 0 0 20px rgba(224, 64, 251, 0.7),
              0 0 40px rgba(186, 85, 211, 0.5),
              0 0 60px rgba(138, 43, 226, 0.3);
  object-fit: cover;
  animation: rotateImage 20s linear infinite;
}


@keyframes rotateImage {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


@keyframes glowPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.3;
  }
}


.image-grid-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 10px;
  width: 320px;
  height: 320px;
  z-index: 30;
  perspective: 1000px;
}

.grid-image {
  width: 100%;
  height: 100%;
  object-fit: fill; 
  border-radius: 5px;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  background-color: #f0f0f0; 
}

.grid-image:hover {
  transform: scale(1.05) translateZ(20px);
}


.random-images-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  overflow: hidden;
}

.random-image {
  position: absolute;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: opacity 0.8s ease, transform 1s ease;
  transform-style: preserve-3d;
  animation: float 6s ease-in-out infinite;
  margin: 15px; 
  
  display: inline-block;
  vertical-align: top;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}


.heart-container {
  position: relative;
  width: 300px;
  height: 300px;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}


.heart {
  position: absolute;
  width: 60px;
  height: 60px;
  font-size: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8),
               0 0 25px rgba(255, 215, 0, 0.6),
               0 0 35px rgba(255, 165, 0, 0.4);
  animation: float 3s infinite ease-in-out;
  top: 50%;
  left: 50%;
  margin-top: -30px;
  margin-left: -30px;
  transition: transform 0.5s ease, text-shadow 0.3s ease;
  color: gold;
  line-height: 1;
}


.heart:hover {
  transform: scale(1.2);
  text-shadow: 0 0 20px rgba(255, 215, 0, 1),
               0 0 35px rgba(255, 215, 0, 0.8),
               0 0 50px rgba(255, 165, 0, 0.6);
}

.heart-10:hover {
  transform: scale(1.2);
  text-shadow: 0 0 30px rgba(255, 105, 180, 1),
               0 0 50px rgba(218, 112, 214, 0.8),
               0 0 70px rgba(138, 43, 226, 0.6); 
}


.heart-1 { 
  animation-delay: 0s; 
  transform: translate(0, 0);
}

.heart-2 { 
  animation-delay: 0.2s; 
  transform: translate(80px, -40px);
}

.heart-3 { 
  animation-delay: 0.4s; 
  transform: translate(-80px, -40px);
}

.heart-4 { 
  animation-delay: 0.6s; 
  transform: translate(80px, 40px);
}

.heart-5 { 
  animation-delay: 0.8s; 
  transform: translate(-80px, 40px);
}

.heart-6 { 
  animation-delay: 1.0s; 
  transform: translate(0, 80px);
}

.heart-7 { 
  animation-delay: 1.2s; 
  transform: translate(100px, 0);
}

.heart-8 { 
  animation-delay: 1.4s; 
  transform: translate(-100px, 0);
}

.heart-9 { 
  animation-delay: 1.6s; 
  transform: translate(60px, -80px);
}

.heart-10 { 
  animation-delay: 1.8s; 
  transform: translate(-60px, -80px);
  font-size: 80px; 
  color: #ff69b4; 
  text-shadow: 0 0 25px rgba(255, 105, 180, 0.9),
               0 0 45px rgba(218, 112, 214, 0.7),
               0 0 65px rgba(138, 43, 226, 0.5); 
}


@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


@keyframes float {
  0%, 100% {
    transform: rotate(-45deg) translate(0, 0) scale(1);
  }
  50% {
    transform: rotate(-45deg) translate(0, -10px) scale(1.1);
  }
}



@keyframes pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}


.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

#play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#play-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

#play-btn.playing {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  animation: pulseMusic 1.5s infinite, rotateButton 3s linear infinite;
}

@keyframes rotateButton {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseMusic {
  0% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
}


@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }
  
  .heart-container {
    width: 250px;
    height: 250px;
  }
  
  .heart {
    width: 45px;
    height: 45px;
    margin-top: -22.5px;
    margin-left: -22.5px;
  }

  .heart::before,
  .heart::after {
    width: 45px;
    height: 45px;
  }

  .heart::before {
    top: -22.5px;
  }

  .heart::after {
    left: 22.5px;
  }
  
  
  
  .nebula-1 {
    width: 200px;
    height: 200px;
  }
  
  .nebula-2 {
    width: 250px;
    height: 250px;
  }
  
  .nebula-3 {
    width: 180px;
    height: 180px;
  }
}


.full-image-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  z-index: 40;
  padding: 30px;
}


