:root { --primary-bg: #87CEEB; /* Sky blue base */ --gradient-top: #E0F7FA; --gradient-bottom: #81D4FA; --accent-gold: #FFD700; --text-dark: #1a1a1a; --text-light: #ffffff; --slot-bg: #ffffff; --glass-bg: rgba(255, 255, 255, 0.2); --glass-border: rgba(255, 255, 255, 0.5); --shadow-soft: 0 8px 32px 0 rgba(31, 38, 135, 0.15); } body { margin: 0; padding: 0; font-family: 'Inter', sans-serif; background: linear-gradient(135deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%); min-height: 100vh; color: var(--text-dark); overflow: hidden; /* Prevent scroll during animations if possible */ } .app-container { display: flex; flex-direction: column; align-items: center; height: 100vh; position: relative; } /* Header */ .main-header { text-align: center; margin-top: 4vh; margin-bottom: 2vh; z-index: 10; } .event-title { font-size: 4rem; font-weight: 900; color: var(--text-light); text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1); margin: 0; letter-spacing: -1px; } .company-name { font-size: 1.5rem; font-weight: 400; color: rgba(255, 255, 255, 0.9); margin: 0.5rem 0 0 0; letter-spacing: 1px; } /* Draw Area */ .draw-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; } .slot-machine { display: flex; gap: 20px; padding: 20px; background: var(--glass-bg); border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: var(--shadow-soft); backdrop-filter: blur(8px); margin-bottom: 40px; } .slot-box { width: 120px; height: 160px; background: var(--slot-bg); border-radius: 10px; border: 4px solid #fff; box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 10px 20px rgba(0, 0, 0, 0.1); overflow: hidden; position: relative; font-size: 8rem; font-weight: bold; color: var(--text-dark); display: flex; align-items: center; justify-content: center; } /* Digit Strip for Animation */ .digit-strip { display: flex; flex-direction: column; align-items: center; position: absolute; top: 0; left: 0; width: 100%; /* No transition by default to allow instant reset for infinite loop effect */ will-change: transform; } .digit-box { width: 100%; /* Height must be exactly match parent .slot-box height */ height: 160px; display: flex; justify-content: center; align-items: center; box-sizing: border-box; } /* Add a class when we want to animate smoothly */ .spinning { transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1); } .draw-button { padding: 15px 60px; font-size: 2rem; font-weight: bold; color: var(--text-dark); background: var(--accent-gold); border: none; border-radius: 50px; cursor: pointer; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); transition: transform 0.2s, box-shadow 0.2s; text-transform: uppercase; } .draw-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6); } .draw-button:active { transform: translateY(1px); } .draw-button:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; } /* History Panel */ .history-panel { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: 250px; max-height: 70vh; background: rgba(255, 255, 255, 0.8); border-radius: 15px; padding: 20px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; backdrop-filter: blur(10px); } .history-panel h3 { margin-top: 0; border-bottom: 2px solid #eee; padding-bottom: 10px; text-align: center; } #history-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; flex: 1; } #history-list li { padding: 10px; border-bottom: 1px solid #f0f0f0; text-align: center; font-size: 1.2rem; font-weight: bold; } #history-list li:first-child { background: rgba(255, 215, 0, 0.2); border-radius: 5px; } .history-controls { margin-top: 20px; text-align: center; border-top: 1px solid #eee; padding-top: 20px; } .control-group { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 0.9rem; color: #555; } #max-number-input { width: 60px; padding: 5px; border: 1px solid #ccc; border-radius: 4px; text-align: center; } .small-btn { background: transparent; border: 1px solid #999; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; color: #666; } .small-btn:hover { background: #eee; } @media (max-width: 768px) { .history-panel { display: none; /* Hide history on small screens or make it a drawer */ } }