html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: #000;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #f5f5f5;
}

canvas#universe {
  background-color: transparent;
  display: block;
  position: fixed;
  margin: 0;
  padding: 0;
  border: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

main {
  position: relative;
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

h1,
h2 {
  text-align: center;
  color: #ffcc33;
}

.card {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid #444;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  margin-bottom: 1.5rem;
}

.upload-area {
  text-align: center;
}

.file-label {
  display: inline-block;
  background: #ffcc33;
  color: black;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-right: 1rem;
  transition: transform 0.2s;
}

.file-label:hover {
  transform: scale(1.05);
}

input[type="file"] {
  display: none;
}

button {
  background: #ffcc33;
  color: black;
  font-weight: bold;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: scale(1.05);
}

.preview {
  margin-top: 1rem;
}

.preview img {
  width: 250px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s;
}

.preview img:hover {
  transform: scale(1.05);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.gallery img.thumb {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery img.thumb:hover {
  animation: shake 0.5s infinite;
  transform: scale(1.05);
  transform-origin: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

@keyframes shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-2px, -2px) rotate(-5deg);
  }
  20% {
    transform: translate(2px, -2px) rotate(5deg);
  }
  30% {
    transform: translate(-2px, 2px) rotate(-5deg);
  }
  40% {
    transform: translate(2px, 2px) rotate(5deg);
  }
  50% {
    transform: translate(-2px, -2px) rotate(-5deg);
  }
  60% {
    transform: translate(2px, -2px) rotate(5deg);
  }
  70% {
    transform: translate(-2px, 2px) rotate(-5deg);
  }
  80% {
    transform: translate(2px, 2px) rotate(5deg);
  }
  90% {
    transform: translate(-1px, 1px) rotate(-2deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}


@keyframes flipY {
  0%   { transform: scaleX(1); }
  50%  { transform: scaleX(-1); }
  100% { transform: scaleX(1); }
}

.floating-dog {
  position: fixed;
  bottom: 20px;
  width: 120px;
  z-index: 2;
  animation: flipY 2s linear infinite;
}


.floating-dog.left {
  left: 20px;
}

.floating-dog.right {
  right: 20px;
}

#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}

.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0.9;
  animation: fall linear infinite;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); opacity:1; }
  100% { transform: translateY(300px) rotate(360deg); opacity:0; }
}
