* {
  box-sizing: border-box;
}

body {
  margin: 0;
  height: 100vh;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: linear-gradient(135deg, #06152f, #1765b5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.box {
  width: 85%;
  max-width: 400px;
  padding: 35px 25px;
  border-radius: 25px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.ball {
  font-size: 60px;
}

input {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  text-align: center;
  margin: 15px 0;
}

button {
  padding: 15px 25px;
  border: none;
  border-radius: 15px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
}

.hidden {
  display: none;
}

#photos img {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 110px;
  height: 140px;
  object-fit: cover;
  border: 4px solid white;
  border-radius: 15px;
  animation: boom 1.5s forwards;
  z-index: 10;
}

@keyframes boom {
  from {
    transform: translate(-50%, -50%) scale(0.1);
  }

  to {
    transform:
      translate(
        calc(-50% + var(--x)),
        calc(-50% + var(--y))
      )
      scale(var(--s))
      rotate(var(--r));
  }
}

#final {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#final h1 {
  font-size: 45px;
}