:root { --primary: #a78bfa; --primary-light: #c4b5fd; --primary-dark: #8b5cf6; --accent: #e9d5ff; --text: #4c1d95; --text-light: #f5f3ff; } body { font-family: 'El Messiri', sans-serif; background-color: #f5f5f5; margin: 0; padding: 0; width: 100%; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; } .container { width: 100%; max-width: 375px; margin: 0 auto; padding: 0 15px; box-sizing: border-box; } .glassmorphism { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid rgba(255, 255, 255, 0.3); } .ball { position: absolute; width: 50px; height: 50px; object-fit: contain; border-radius: 50%; transition: all 0.5s ease; transform: scale(0); opacity: 0; touch-action: manipulation; } .ball.visible { opacity: 1; transform: scale(1); } .ball.selected { transform: scale(1.5); box-shadow: 0 0 20px rgba(139, 92, 246, 0.9); z-index: 10; filter: brightness(1.2); } #interactive-box { position: relative; width: 100%; aspect-ratio: 16/9; background-color: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); -webkit-tap-highlight-color: transparent; margin-top: 20px; /* Lowered the interactive box */ } .top-border { height: 40px; background: linear-gradient(90deg, #8b5cf6, #a78bfa); display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: white; } .period-container { display: flex; align-items: center; gap: 6px; } .timer-container { display: flex; gap: 4px; align-items: center; background: rgba(0, 0, 0, 0.2); padding: 4px 8px; border-radius: 20px; } .timer-digit { width: 22px; height: 22px; background: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: bold; color: var(--text); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .timer-colon { color: white; font-weight: bold; margin: 0 2px; } .image-container { position: relative; width: 100%; height: calc(100% - 40px); background: linear-gradient(135deg, #f5f3ff, #e9d5ff); overflow: hidden; -webkit-tap-highlight-color: transparent; } #select-btn { transition: all 0.3s ease; background: linear-gradient(135deg, #8b5cf6, #a78bfa); border: none; font-weight: bold; letter-spacing: 0.5px; text-transform: uppercase; box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3); -webkit-tap-highlight-color: transparent; } #select-btn:hover { transform: scale(1.05); box-shadow: 0 6px 12px rgba(139, 92, 246, 0.4); } #select-btn:active { transform: scale(0.95); /* Enhanced tap effect */ box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2); } .lottie-container { width: 100%; display: flex; justify-content: center; margin-top: -150px; position: relative; z-index: 1; } .floating-coin { position: absolute; animation: float 4s ease-in-out infinite; } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }