@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap'); :root { --bg-primary: #0b0816; --bg-secondary: #130f26; --glass-bg: rgba(255, 255, 255, 0.04); --glass-border: rgba(255, 255, 255, 0.08); --glass-highlight: rgba(255, 255, 255, 0.15); --text-primary: #ffffff; --text-secondary: #a09cb0; /* Kahoot Theme Colors with a Neon Twist */ --color-red: #ff3366; --color-blue: #0088ff; --color-yellow: #ffaa00; --color-green: #00cc66; --color-purple: #8a2be2; /* Shadow glows */ --glow-red: 0 8px 24px rgba(255, 51, 102, 0.4); --glow-blue: 0 8px 24px rgba(0, 136, 255, 0.4); --glow-yellow: 0 8px 24px rgba(255, 170, 0, 0.4); --glow-green: 0 8px 24px rgba(0, 204, 102, 0.4); --glow-purple: 0 8px 24px rgba(138, 43, 226, 0.4); --font-main: 'Outfit', sans-serif; --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: var(--font-main); background-color: var(--bg-primary); background-image: radial-gradient(at 10% 20%, rgba(138, 43, 226, 0.15) 0px, transparent 50%), radial-gradient(at 90% 80%, rgba(0, 136, 255, 0.1) 0px, transparent 50%); color: var(--text-primary); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; } /* Glassmorphism Card Utility */ .glass-card { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-md); padding: 2rem; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37); } /* Buttons */ button { font-family: var(--font-main); font-weight: 600; border: none; cursor: pointer; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); outline: none; } .btn-primary { display: inline-block; text-decoration: none; background: linear-gradient(135deg, var(--color-purple), #a855f7); color: #fff; padding: 0.8rem 1.8rem; border-radius: var(--radius-sm); font-size: 1rem; box-shadow: var(--glow-purple); text-align: center; } .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 12px 28px rgba(138, 43, 226, 0.6); } .btn-primary:active { transform: translateY(0); } .btn-outline { display: inline-block; text-decoration: none; background: transparent; border: 1px solid var(--glass-border); color: var(--text-primary); padding: 0.8rem 1.8rem; border-radius: var(--radius-sm); font-size: 1rem; text-align: center; } .btn-outline:hover { background: var(--glass-highlight); border-color: rgba(255, 255, 255, 0.3); } /* Input Fields */ input[type="text"], input[type="password"], input[type="number"], select, textarea { width: 100%; padding: 0.8rem 1.2rem; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); color: white; font-family: var(--font-main); font-size: 1rem; transition: all 0.3s ease; } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 10px rgba(0, 136, 255, 0.2); background: rgba(255, 255, 255, 0.08); } /* Header & Layout Container */ header { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--glass-border); background: rgba(11, 8, 22, 0.7); backdrop-filter: blur(10px); z-index: 10; } .logo { font-size: 1.8rem; font-weight: 800; background: linear-gradient(to right, #0088ff, #ff3366, #ffaa00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: flex; align-items: center; gap: 0.5rem; } .logo-dot { width: 10px; height: 10px; background-color: var(--color-green); border-radius: 50%; display: inline-block; animation: pulse 1.5s infinite; } @keyframes pulse { 0% { transform: scale(0.9); opacity: 0.6; } 50% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(0.9); opacity: 0.6; } } .main-container { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: 2rem; display: flex; flex-direction: column; } /* Landing Page Grid */ .landing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; align-items: center; } @media (max-width: 768px) { .landing-grid { grid-template-columns: 1fr; gap: 2rem; } .main-container { padding: 1.2rem; } .landing-left h1 { font-size: 2.2rem; margin-bottom: 1rem; line-height: 1.3; } .landing-left p { font-size: 1.05rem; margin-bottom: 1.5rem; } .landing-buttons-container { flex-direction: column !important; gap: 0.8rem !important; } .landing-buttons-container button, .landing-buttons-container a { width: 100% !important; } .action-card { padding: 1.5rem; } } .landing-left h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; background: linear-gradient(135deg, #ffffff 40%, var(--color-purple) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .landing-left p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2rem; line-height: 1.6; } .game-options-panel { display: flex; flex-direction: column; gap: 1.5rem; } .action-card { padding: 2rem; text-align: center; transition: all 0.3s ease; cursor: pointer; } .action-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.07); } #host-card:hover { box-shadow: 0 12px 40px rgba(138, 43, 226, 0.3); border-color: rgba(138, 43, 226, 0.5); } #join-card:hover { box-shadow: 0 12px 40px rgba(0, 136, 255, 0.3); border-color: rgba(0, 136, 255, 0.5); } .action-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; } .action-card p { color: var(--text-secondary); font-size: 0.95rem; } /* Modal and Overlays */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: center; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } .modal-overlay.active { opacity: 1; pointer-events: auto; } .modal-content { width: 90%; max-width: 600px; max-height: 85vh; overflow-y: auto; position: relative; transform: scale(0.9); transition: transform 0.3s ease; } .modal-overlay.active .modal-content { transform: scale(1); } .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 1rem; } .close-btn { font-size: 1.5rem; background: transparent; color: var(--text-secondary); } .close-btn:hover { color: white; } /* Quiz List Styling */ .quiz-list { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; } .quiz-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); border-radius: var(--radius-sm); padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s ease; } .quiz-item:hover { background: rgba(255, 255, 255, 0.08); } .quiz-info h4 { font-size: 1.1rem; margin-bottom: 0.25rem; } .quiz-info p { color: var(--text-secondary); font-size: 0.85rem; } .quiz-actions { display: flex; gap: 0.5rem; } /* Creator Form Styles */ .question-builder-container { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 1.5rem; } .q-edit-card { border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.02); padding: 1.5rem; border-radius: var(--radius-sm); position: relative; } .q-number-badge { position: absolute; top: -12px; left: 15px; background: var(--color-purple); padding: 2px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; } .creator-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; } .option-input-group { display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.03); padding: 0.5rem; border-radius: var(--radius-sm); border: 1px solid transparent; } .option-input-group.correct { border-color: var(--color-green); background: rgba(0, 204, 102, 0.08); } .option-input-group.option-red { border-left: 4px solid var(--color-red); } .option-input-group.option-blue { border-left: 4px solid var(--color-blue); } .option-input-group.option-yellow { border-left: 4px solid var(--color-yellow); } .option-input-group.option-green { border-left: 4px solid var(--color-green); } .radio-correct { width: 20px; height: 20px; accent-color: var(--color-green); cursor: pointer; } /* Host View Screen Styling */ .host-layout { display: flex; flex-direction: column; min-height: 100vh; justify-content: space-between; background-color: #07050f; background-image: radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.28) 0%, transparent 45%), radial-gradient(circle at 90% 80%, rgba(0, 136, 255, 0.22) 0%, transparent 45%), radial-gradient(circle at 50% 80%, rgba(255, 51, 102, 0.18) 0%, transparent 40%), radial-gradient(circle at 80% 20%, rgba(255, 170, 0, 0.14) 0%, transparent 40%); background-size: 200% 200%; animation: host-bg-drift 20s ease infinite; } @keyframes host-bg-drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } .host-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 3rem; background: rgba(0, 0, 0, 0.5); border-bottom: 1px solid var(--glass-border); } .pin-display { background: white; color: black; padding: 0.6rem 2.8rem; font-size: 2.8rem; font-weight: 800; border-radius: var(--radius-sm); letter-spacing: 4px; box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), 0 10px 30px rgba(0,0,0,0.45); animation: pinPulse 2s ease-in-out infinite alternate; } @keyframes pinPulse { 0% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), 0 10px 30px rgba(0,0,0,0.45); } 100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(255, 255, 255, 0.65), 0 10px 35px rgba(0,0,0,0.55); } } .lobby-container { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 2rem; gap: 2rem; } .lobby-title { font-size: 2rem; font-weight: 600; text-align: center; } .player-grid { position: relative; width: 100%; max-width: 900px; height: 380px; background: rgba(11, 8, 22, 0.45); border: 2px dashed rgba(138, 43, 226, 0.4); border-radius: var(--radius-md); margin-top: 1rem; overflow: hidden; box-shadow: inset 0 4px 25px rgba(0,0,0,0.65), 0 0 25px rgba(138, 43, 226, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); } .player-card-bounce { position: absolute; width: 190px; height: 60px; background: #ffffff; border-radius: var(--radius-sm); display: flex; align-items: center; overflow: hidden; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); user-select: none; box-sizing: border-box; animation: cardPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; } @keyframes cardPopIn { from { transform: scale(0) rotate(-10deg); opacity: 0; } to { transform: scale(1) rotate(0deg); opacity: 1; } } .avatar-holder { width: 55px; height: 100%; background: rgba(0, 0, 0, 0.08); display: flex; align-items: center; justify-content: center; font-size: 1.85rem; border-right: 1px solid rgba(0, 0, 0, 0.08); flex-shrink: 0; } .name-holder { flex: 1; padding: 0 0.8rem; color: #111111; font-size: 1rem; font-weight: 800; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-main); } @keyframes popIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } } /* Question Show Tampilan Host */ .question-container { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; padding: 1.5rem; justify-content: space-between; } .question-text-box { width: 100%; text-align: center; padding: 1.5rem; font-size: 2.2rem; font-weight: 800; background: rgba(255, 255, 255, 0.03); border-bottom: 2px solid var(--glass-border); margin-bottom: 1.5rem; } .question-middle-section { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; margin-bottom: 2rem; min-height: 220px; } .timer-circle { width: 170px; height: 170px; border-radius: 50%; border: 12px solid var(--color-purple); display: flex; justify-content: center; align-items: center; font-size: 4.2rem; font-weight: 800; box-shadow: 0 0 35px rgba(138, 43, 226, 0.6), inset 0 0 20px rgba(138, 43, 226, 0.3); background: rgba(0,0,0,0.3); position: relative; transition: all 0.3s ease; } .timer-circle.warning { border-color: var(--color-red); box-shadow: 0 0 45px rgba(255, 51, 102, 0.8), inset 0 0 25px rgba(255, 51, 102, 0.4); animation: tick-tock 0.5s infinite alternate; } @keyframes tick-tock { from { transform: scale(1); } to { transform: scale(1.08); } } .question-media-placeholder { position: absolute; right: 8%; width: 200px; height: 120px; background: rgba(138, 43, 226, 0.05); border: 2px dashed rgba(138, 43, 226, 0.35); border-radius: var(--radius-md); display: flex; justify-content: center; align-items: center; overflow: hidden; box-shadow: 0 0 15px rgba(138, 43, 226, 0.1); box-sizing: border-box; } .inner-question-mark { font-size: 3.8rem; font-weight: 800; color: #ffaa00; text-shadow: 0 0 15px rgba(255, 170, 0, 0.65); z-index: 5; animation: question-bob 3s ease-in-out infinite; } .pulse-ring-wave { position: absolute; width: 80px; height: 80px; border: 2px solid rgba(255, 170, 0, 0.35); border-radius: 50%; opacity: 0; z-index: 1; } .pulse-ring-wave.wave-1 { animation: pulse-ring 2.4s cubic-bezier(0.215, 0.610, 0.355, 1) infinite; } .pulse-ring-wave.wave-2 { animation: pulse-ring 2.4s cubic-bezier(0.215, 0.610, 0.355, 1) 0.8s infinite; } .pulse-ring-wave.wave-3 { animation: pulse-ring 2.4s cubic-bezier(0.215, 0.610, 0.355, 1) 1.6s infinite; } @keyframes pulse-ring { 0% { transform: scale(0.4); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } } @keyframes question-bob { 0% { transform: translateY(0) scale(1) rotate(0deg); } 50% { transform: translateY(-6px) scale(1.08) rotate(3deg); } 100% { transform: translateY(0) scale(1) rotate(0deg); } } .answers-count-badge { position: absolute; left: 8%; background: var(--color-blue); color: white; padding: 1.5rem; border-radius: 50%; width: 120px; height: 120px; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: var(--glow-blue); } .answers-count-badge span:first-child { font-size: 2.2rem; font-weight: 800; } .answers-count-badge span:last-child { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; } .options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; margin-top: auto; } @media (max-width: 768px) { .options-grid { grid-template-columns: 1fr; } } .option-box { padding: 1.8rem 2rem; border-radius: var(--radius-sm); font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; text-align: center; gap: 1.5rem; color: white; transition: all 0.3s ease; position: relative; overflow: hidden; } .option-box::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.08); opacity: 0; transition: opacity 0.2s ease; } .option-box:hover::before { opacity: 1; } .option-box.red { background-color: var(--color-red); box-shadow: var(--glow-red); } .option-box.blue { background-color: var(--color-blue); box-shadow: var(--glow-blue); } .option-box.yellow { background-color: var(--color-yellow); box-shadow: var(--glow-yellow); } .option-box.green { background-color: var(--color-green); box-shadow: var(--glow-green); } .option-shape { width: 32px; height: 32px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; } /* Shapes code */ .shape-triangle { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 28px solid white; } .shape-diamond { width: 22px; height: 22px; background: white; transform: rotate(45deg); } .shape-circle { width: 26px; height: 26px; background: white; border-radius: 50%; } .shape-square { width: 24px; height: 24px; background: white; } /* Stats view (Show answers chart) */ .results-container { display: flex; flex-direction: column; align-items: center; width: 100%; flex: 1; padding: 2rem; gap: 2rem; } .chart-wrapper { display: flex; justify-content: center; align-items: flex-end; height: 280px; gap: 2.5rem; width: 100%; max-width: 600px; margin: 2rem 0; border-bottom: 2px solid var(--glass-border); padding-bottom: 0.5rem; } .chart-bar-container { display: flex; flex-direction: column; align-items: center; flex: 1; height: 100%; justify-content: flex-end; gap: 0.5rem; } .chart-bar { width: 85px; border-radius: 12px 12px 0 0; transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards; height: 0; position: relative; display: flex; justify-content: center; } .chart-bar.red { background-color: var(--color-red); box-shadow: var(--glow-red); } .chart-bar.blue { background-color: var(--color-blue); box-shadow: var(--glow-blue); } .chart-bar.yellow { background-color: var(--color-yellow); box-shadow: var(--glow-yellow); } .chart-bar.green { background-color: var(--color-green); box-shadow: var(--glow-green); } .bar-value { position: absolute; top: -35px; font-size: 1.4rem; font-weight: 800; text-shadow: 0 2px 4px rgba(0,0,0,0.5); } .chart-icon { display: flex; justify-content: center; align-items: center; padding-top: 8px; } .is-correct-indicator { font-size: 1.15rem; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); font-weight: 800; text-shadow: none; box-sizing: border-box; } .is-correct-indicator.correct-badge { background: #00cc66; color: #ffffff; box-shadow: 0 0 15px rgba(0, 204, 102, 0.5); border: 1px solid rgba(255,255,255,0.2); } .is-correct-indicator.incorrect-badge { background: #ff3366; color: #ffffff; box-shadow: 0 0 10px rgba(255, 51, 102, 0.3); border: 1px solid rgba(255,255,255,0.1); } /* Leaderboard Page */ .leaderboard-container { width: 100%; max-width: 700px; margin: 0 auto; padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; } .results-container { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; width: 100%; padding: 1.5rem; } .leaderboard-title { text-align: center; font-size: 2.8rem; font-weight: 800; margin-bottom: 2rem; background: linear-gradient(120deg, #ff3366, #0088ff, #ffaa00, #00cc66, #8a2be2); background-size: 400% 400%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rainbow-text 8s ease infinite; text-shadow: 0 4px 20px rgba(138, 43, 226, 0.25); } @keyframes rainbow-text { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } @keyframes leaderboard-slide-in { 0% { opacity: 0; transform: translateY(30px) scale(0.95); } 100% { opacity: 1; transform: translateY(0) scale(1); } } .leaderboard-list { display: flex; flex-direction: column; gap: 0.9rem; width: 100%; max-width: 600px; } .leaderboard-row { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 2rem; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-md); box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); } .leaderboard-row:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px) scale(1.01); } .leaderboard-left { display: flex; align-items: center; gap: 1.2rem; } .rank-badge { width: 38px; height: 38px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 800; font-size: 1.05rem; background: var(--glass-highlight); box-shadow: inset 0 2px 4px rgba(255,255,255,0.2); } .rank-badge.rank-1 { background-color: var(--color-yellow); color: black; box-shadow: 0 0 15px rgba(255, 170, 0, 0.6); } .rank-badge.rank-2 { background-color: #e5e7eb; color: black; box-shadow: 0 0 10px rgba(229, 231, 235, 0.4); } .rank-badge.rank-3 { background-color: #ff7f50; color: white; box-shadow: 0 0 10px rgba(255, 127, 80, 0.4); } .player-name-lbl { font-size: 1.2rem; font-weight: 600; } .player-score-lbl { font-size: 1.3rem; font-weight: 800; color: var(--color-blue); } /* Podium Page */ .podium-container { display: flex; justify-content: center; align-items: flex-end; height: 440px; gap: 8px; width: 100%; max-width: 620px; margin: 1.5rem auto; position: relative; padding-bottom: 12px; } .podium-container::after { content: ''; position: absolute; bottom: 0; left: 2%; width: 96%; height: 8px; background: linear-gradient(90deg, #94a3b8 10%, #facc15 50%, #ca8a04 90%); border-radius: 4px; filter: blur(1px); box-shadow: 0 5px 20px rgba(250, 204, 21, 0.4); z-index: 5; } .podium-column { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; transition: opacity 0.5s ease-in-out; } .podium-avatar-top { font-size: 5.2rem; line-height: 1; margin-bottom: -10px; z-index: 10; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.35)); animation: float-avatar 3s ease-in-out infinite alternate; } @keyframes float-avatar { 0% { transform: translateY(0); } 100% { transform: translateY(-10px); } } .podium-stand { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; border-radius: 16px 16px 0 0; padding: 3.5rem 0.5rem 1.2rem 0.5rem; position: relative; border: none; box-sizing: border-box; gap: 0.5rem; overflow: hidden; } .podium-stand::after { content: ''; position: absolute; top: 0; left: -150%; width: 80%; height: 100%; background: linear-gradient( to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100% ); transform: skewX(-25deg); animation: shine-sweep 6s infinite ease-in-out; z-index: 5; pointer-events: none; } @keyframes shine-sweep { 0% { left: -150%; } 35% { left: 150%; } 100% { left: 150%; } } .podium-stand.first { height: 240px; z-index: 3; background: linear-gradient(180deg, #ffffff 60%, #fef08a 100%); border: 2px solid #eab308; border-bottom: none; box-shadow: 0 15px 40px rgba(250, 204, 21, 0.3), 0 5px 15px rgba(0,0,0,0.25); } .podium-stand.second { height: 180px; z-index: 2; background: linear-gradient(180deg, #ffffff 60%, #cbd5e1 100%); border: 2px solid #94a3b8; border-bottom: none; box-shadow: 0 15px 35px rgba(203, 213, 225, 0.25), 0 5px 15px rgba(0,0,0,0.25); } .podium-stand.third { height: 130px; z-index: 1; background: linear-gradient(180deg, #ffffff 60%, #ffedd5 100%); border: 2px solid #ca8a04; border-bottom: none; box-shadow: 0 15px 30px rgba(194, 65, 12, 0.2), 0 5px 15px rgba(0,0,0,0.25); } .podium-badge-rank { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 44px; height: 50px; color: #ffffff; font-size: 1.45rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding-bottom: 5px; clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%); z-index: 12; box-sizing: border-box; } .podium-badge-rank.rank-1 { background: linear-gradient(180deg, #fcd34d 0%, #d97706 100%); font-size: 1.7rem; width: 50px; height: 56px; top: 8px; filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.45)); } .podium-badge-rank.rank-2 { background: linear-gradient(180deg, #e2e8f0 0%, #64748b 100%); } .podium-badge-rank.rank-3 { background: linear-gradient(180deg, #ffedd5 0%, #c2410c 100%); } .podium-name { font-weight: 800; text-align: center; color: #1e1b4b; word-break: break-word; white-space: normal; width: 100%; margin-top: 0.3rem; margin-bottom: 0.1rem; text-shadow: none; } #podium-name-1 { font-size: 1.6rem; color: #1e1b4b; animation: winner-pulse-name 1.5s ease-in-out infinite alternate; } #podium-name-2 { font-size: 1.35rem; color: #334155; } #podium-name-3 { font-size: 1.2rem; color: #475569; } @keyframes winner-pulse-name { 0% { transform: scale(1); } 100% { transform: scale(1.06); } } .podium-score { font-size: 0.95rem; font-weight: 800; padding: 0.3rem 0.9rem; border-radius: 20px; text-shadow: none; margin-top: auto; box-shadow: inset 0 2px 4px rgba(0,0,0,0.06); } #podium-score-1 { background: #fef9c3; color: #a16207; font-size: 1.05rem; } #podium-score-2 { background: #f1f5f9; color: #475569; } #podium-score-3 { background: #ffedd5; color: #9a3412; } .player-body { height: 100vh; height: -webkit-fill-available; display: flex; flex-direction: column; overflow: hidden; } /* Player Controller Screen Styling */ .player-view-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; width: 100%; } .player-join-card { width: 100%; max-width: 400px; text-align: center; display: flex; flex-direction: column; gap: 1.5rem; } .pin-input { text-align: center; font-size: 1.8rem; font-weight: 800; letter-spacing: 4px; } .nickname-input { text-align: center; font-size: 1.3rem; font-weight: 600; } /* Player buttons for answering */ .player-buttons-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: 100%; max-width: 600px; flex: 1; margin: 1rem 0; } .player-btn { border-radius: var(--radius-md); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.8rem; padding: 1.5rem; position: relative; transition: transform 0.1s ease, filter 0.2s ease; } .player-btn:active { transform: scale(0.95); } .player-btn.btn-red { background-color: var(--color-red); box-shadow: var(--glow-red); } .player-btn.btn-blue { background-color: var(--color-blue); box-shadow: var(--glow-blue); } .player-btn.btn-yellow { background-color: var(--color-yellow); box-shadow: var(--glow-yellow); } .player-btn.btn-green { background-color: var(--color-green); box-shadow: var(--glow-green); } .player-btn.disabled { filter: grayscale(0.7) opacity(0.5); pointer-events: none; } /* Player Feedback Screen */ .feedback-screen { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; flex: 1; width: 100%; animation: fadeIn 0.4s ease forwards; } .feedback-screen.correct-bg { background-color: rgba(0, 204, 102, 0.15); } .feedback-screen.incorrect-bg { background-color: rgba(255, 51, 102, 0.15); } .feedback-icon { font-size: 6rem; margin-bottom: 1.5rem; animation: bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite alternate; } @keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-15px); } } .feedback-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; } .feedback-points { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; } .feedback-streak { font-size: 1.1rem; font-weight: 600; color: var(--color-yellow); background: rgba(255, 170, 0, 0.1); padding: 0.3rem 1rem; border-radius: 20px; display: inline-block; margin-top: 1rem; } .feedback-standing { font-size: 1.1rem; color: var(--text-secondary); margin-top: 1.5rem; } /* Confetti styling for podium */ .confetti-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 99; } /* Utility classes */ .hidden { display: none !important; } .text-center { text-align: center; } .mt-2 { margin-top: 2rem; } .mb-2 { margin-bottom: 2rem; } /* Transitions */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fade-in { animation: fadeIn 0.4s ease forwards; } /* Mobile Optimizations (e.g., iPhone SE) */ @media (max-width: 480px) { header { padding: 1rem 1.2rem; } .logo { font-size: 1.4rem; } .player-view-container { padding: 1rem; flex: 1; min-height: 0; overflow: hidden; overscroll-behavior: none; width: 100%; display: flex; flex-direction: column; justify-content: center; } .player-join-card { padding: 1.5rem; gap: 1rem; } .player-join-card h2 { font-size: 1.5rem; } .pin-input { font-size: 1.5rem; } .nickname-input { font-size: 1.1rem; } .player-buttons-grid { gap: 0.6rem; margin: 0.5rem 0; grid-template-rows: 1fr 1fr; height: 100%; } .player-btn { flex-direction: row !important; gap: 0.6rem; padding: 0.8rem; border-radius: var(--radius-sm); touch-action: manipulation; } .player-btn span { font-size: 2.2rem !important; /* Force override inline styles */ } .player-btn [class^="shape-"] { transform: scale(0.7) !important; /* Scale shapes down */ } .shape-diamond { transform: scale(0.7) rotate(45deg) !important; /* Retain diamond rotation */ } .feedback-icon { font-size: 4rem; margin-bottom: 1rem; } .feedback-title { font-size: 1.8rem; } .feedback-points { font-size: 1.2rem; } .feedback-standing { font-size: 0.95rem; margin-top: 1rem; } #feedback-content { padding: 1.5rem; } #screen-lobby-wait { padding: 1.5rem; } #screen-lobby-wait div:first-child { font-size: 3rem !important; } #screen-lobby-wait h2 { font-size: 1.4rem; } #screen-submitted { padding: 1.5rem; } #screen-submitted div:first-child { font-size: 3rem !important; } } /* Ambient Glowing Background Orbs */ .ambient-orb { position: absolute; width: 300px; height: 300px; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.12; pointer-events: none; } .orb-purple { background: var(--color-purple); top: 15%; left: 10%; animation: float-purple 20s infinite alternate ease-in-out; } .orb-blue { background: var(--color-blue); bottom: 15%; right: 10%; animation: float-blue 20s infinite alternate ease-in-out; } @keyframes float-purple { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(80px, 40px) scale(1.15); } 100% { transform: translate(-40px, 80px) scale(0.9); } } @keyframes float-blue { 0% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-60px, -80px) scale(0.85); } 100% { transform: translate(40px, -40px) scale(1.15); } } /* Features Grid */ .features-section { margin-top: 6rem; text-align: center; } .section-title { font-size: 2rem; font-weight: 800; margin-bottom: 2.5rem; background: linear-gradient(135deg, #ffffff 40%, var(--color-blue) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .feature-card { padding: 2.2rem 2rem; text-align: left; transition: all 0.3s ease; } .feature-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.03); } .feature-icon { font-size: 2.5rem; margin-bottom: 1.2rem; } .feature-card h4 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.6rem; } .feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; } @media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; gap: 1.2rem; } .features-section { margin-top: 4rem; } } /* Kahoot-like Landing Page */ .kahoot-bg { background: radial-gradient(circle, #864cbf 0%, #46178f 100%) !important; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; overflow: hidden; padding: 1rem; } .kahoot-logo { font-family: var(--font-main); font-weight: 900; font-style: italic; font-size: 3.8rem; color: #ffffff; margin-bottom: 1.5rem; text-align: center; text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); letter-spacing: -2px; } .kahoot-card { background: #ffffff; border-radius: 4px; padding: 1.5rem; width: 100%; max-width: 320px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); display: flex; flex-direction: column; align-items: center; } .kahoot-input { width: 100%; border: 1px solid #d3d3d3; border-radius: 4px; padding: 0.85rem; font-size: 1.05rem; text-align: center; font-weight: 700; color: #333333; margin-bottom: 0.8rem; outline: none; font-family: var(--font-main); transition: border-color 0.2s; box-shadow: none; } .kahoot-input:focus { border-color: #46178f; } .kahoot-btn { width: 100%; background-color: #333333; color: #ffffff; border: none; border-radius: 4px; padding: 0.85rem; font-size: 1.05rem; font-weight: 800; cursor: pointer; font-family: var(--font-main); transition: background-color 0.2s; } .kahoot-btn:hover { background-color: #1a1a1a; } /* Player Lobby Ball Colors with 3D Radial Gradients */ .ball-0 { background: radial-gradient(circle at 30% 30%, #ff7b9f 0%, #ff3366 70%, #b3002d 100%); } .ball-1 { background: radial-gradient(circle at 30% 30%, #7fbeff 0%, #0088ff 70%, #00509e 100%); } .ball-2 { background: radial-gradient(circle at 30% 30%, #ffd37f 0%, #ffaa00 70%, #b37400 100%); } .ball-3 { background: radial-gradient(circle at 30% 30%, #7fffbf 0%, #00cc66 70%, #008f47 100%); } .ball-4 { background: radial-gradient(circle at 30% 30%, #d5a6ff 0%, #8a2be2 70%, #570fa3 100%); } .ball-5 { background: radial-gradient(circle at 30% 30%, #ffaa7f 0%, #ff5500 70%, #b33b00 100%); } /* Leaderboard Row Gold/Silver/Bronze Highlights */ .leaderboard-row.rank-row-1 { background: linear-gradient(90deg, rgba(255, 170, 0, 0.08) 0%, rgba(255, 170, 0, 0.02) 100%) !important; border-color: rgba(255, 170, 0, 0.35) !important; box-shadow: 0 4px 15px rgba(255, 170, 0, 0.08); } .leaderboard-row.rank-row-2 { background: linear-gradient(90deg, rgba(209, 213, 219, 0.06) 0%, rgba(209, 213, 219, 0.01) 100%) !important; border-color: rgba(209, 213, 219, 0.25) !important; } .leaderboard-row.rank-row-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.06) 0%, rgba(205, 127, 50, 0.01) 100%) !important; border-color: rgba(205, 127, 50, 0.25) !important; } .player-score-lbl.score-1 { color: var(--color-yellow) !important; text-shadow: 0 0 10px rgba(255, 170, 0, 0.2); } .player-score-lbl.score-2 { color: #e5e7eb !important; } .player-score-lbl.score-3 { color: #cd7f32 !important; } /* Chart Column Letter Badges */ .chart-label-badge { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800; color: #ffffff; box-shadow: 0 4px 8px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.15); } .chart-label-badge.red-badge { background-color: var(--color-red); box-shadow: 0 0 10px rgba(255, 51, 102, 0.4); } .chart-label-badge.blue-badge { background-color: var(--color-blue); box-shadow: 0 0 10px rgba(0, 136, 255, 0.4); } .chart-label-badge.yellow-badge { background-color: var(--color-yellow); color: #000000; box-shadow: 0 0 10px rgba(255, 170, 0, 0.4); } .chart-label-badge.green-badge { background-color: var(--color-green); box-shadow: 0 0 10px rgba(0, 204, 102, 0.4); }