/* ==== GLOBAL CSS FOR ALL GAMES ==== */ /* ==== GLOBAL STYLES ==== */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', sans-serif; background: linear-gradient(to bottom, #e0f2fe, #ffffff, #e0f2fe); min-height: 100vh; } h1, h2, h3 { font-family: 'Staatliches', cursive; } .khmer-heading { font-family: 'Battambang', cursive; } /* ==== LAYOUT STYLES ==== */ .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .grid { display: grid; } /* ==== HEADER STYLES ==== */ header { position: fixed; top: 0; left: 0; width: 100%; z-index: 50; background: linear-gradient(to right, #0ea5e9, #0284c7, #0ea5e9); display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); } .header-title { color: white; font-size: 1.5rem; font-weight: 800; letter-spacing: 0.1em; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); } /* ==== WHITE LINE DECORATION ==== */ .white-line { position: absolute; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, transparent, white, transparent); z-index: 5; } .white-line-top { top: 0; } .white-line-bottom { bottom: 0; } /* ==== BANNER STYLES ==== */ .banner-container { position: relative; width: 100%; height: 300px; overflow: hidden; border-radius: 1rem; margin-bottom: 1.5rem; } .banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; } .banner-slide.active { opacity: 1; } .banner-slide img { width: 100%; height: 100%; object-fit: fill; object-position: center; } .banner-indicators { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; } .banner-indicator { width: 10px; height: 10px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.5); cursor: pointer; transition: background-color 0.3s; } .banner-indicator.active { background-color: white; } /* ==== CARD & FRAME STYLES ==== */ .frame { background-color: white; border-radius: 1rem; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); padding: 1.5rem; margin-bottom: 1.5rem; } .card { background-color: white; border-radius: 0.75rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 0.75rem; text-align: center; transition: all 0.3s ease; cursor: pointer; height: 130px; display: flex; flex-direction: column; justify-content: space-between; } .card:hover { transform: translateY(-0.25rem); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .card.selected { border: 2px solid #0ea5e9; } .card img { width: 50px; height: 50px; object-fit: contain; margin: 0 auto; } /* ==== PRICE COLOR ==== */ .card p.new-price { color: #0ea5e9 !important; font-weight: bold; font-size: 0.9rem; } /* ==== PRICING GRID STYLES ==== */ .pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.75rem; } /* ==== TICKET BANNER ==== */ .ticket-banner-container { position: relative; width: 100%; height: 0; } .ticket-banner { position: absolute; top: -12px; left: 30%; transform: translateX(-50%); background: linear-gradient(135deg, #0ea5e9, #0284c7); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.5rem; font-weight: bold; white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); z-index: 5; border: 1px solid rgba(255, 255, 255, 0.3); } /* ==== FORM STYLES ==== */ .input-row { display: flex; gap: 1rem; margin-bottom: 1rem; } .input-row input { flex: 1; width: 100%; padding: 0.75rem; border: 1px solid #d1d5db; border-radius: 0.5rem; margin-bottom: 1rem; } button { background-color: #0ea5e9; color: white; padding: 0.75rem 1.5rem; border-radius: 0.5rem; font-weight: 600; cursor: pointer; transition: background-color 0.3s; border: none; } button:hover { background-color: #0284c7; } #buyNowBtn { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; padding: 1rem; font-size: 1.25rem; border-radius: 0; z-index: 40; } /* ==== KHQR STYLES ==== */ .khqr-card { display: flex; align-items: center; justify-content: space-between; background-color: white; border-radius: 1rem; padding: 1rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; } .khqr-card:has(#khqrCheck:not(:checked)) { opacity: 0.7; background-color: #f9fafb; border: 1px dashed #d1d5db; } .khqr-frame { width: 280px; border-radius: 1.5rem; overflow: hidden; background-color: white; margin: 0 auto; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); } .khqr-header { background-color: #d91f26; position: relative; border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center; } .khqr-header-text { color: white; font-size: 1.25rem; font-weight: 800; font-family: 'Roboto', sans-serif; letter-spacing: 0.05em; } .khqr-header-corner { position: absolute; top: 0; right: 0; width: 3.5rem; height: 3.5rem; background-color: #d91f26; border-bottom-left-radius: 1.5rem; } .khqr-body { padding: 1.25rem; } .khqr-merchant { color: black; font-size: 0.75rem; font-weight: 400; margin-bottom: 0.25rem; } .khqr-amount-container { display: flex; align-items: baseline; gap: 0.25rem; margin-bottom: 1rem; } .khqr-amount { color: black; font-weight: 800; font-size: 1.5rem; line-height: 1; } .khqr-currency { color: black; font-size: 0.75rem; font-weight: 400; } .khqr-divider { border: 2px dashed #9ca3af; margin-bottom: 2.5rem; } .qr-container { display: flex; justify-content: center; margin: 1rem 0; } .qr-image img { width: 200px; height: 200px; max-width: 100%; } /* ==== MODAL STYLES ==== */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); overflow-y: auto; } .modal-content { background-color: white; margin: 5% auto; padding: 2rem; border-radius: 1rem; width: 90%; max-width: 500px; position: relative; max-height: 90vh; overflow-y: auto; } .close { color: #aaa; float: right; font-size: 28px; font-weight: bold; cursor: pointer; position: sticky; top: 0; z-index: 10; background: white; border-radius: 50%; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; } .close:hover { color: black; } .modal-buttons { display: flex; justify-content: space-between; margin-top: 1rem; } .bakong-btn { padding: 0.5rem 1rem; border-radius: 0.5rem; } .hidden-button { display: none !important; } /* ==== PERFECT INVOICE MODAL STYLES ==== */ /* ==== INVOICE MODAL - DESKTOP ==== */ @media (min-width: 1024px) { #invoiceModal .modal-content { margin: 2% auto; border-radius: 12px; width: 85%; max-width: 400px; padding: 24px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); background: white; border: 1px solid #e1e5e9; } .success-header { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 24px; padding: 0; } .success-icon-container { margin-bottom: 16px; } .success-icon { font-size: 3rem; color: #0ea5e9; animation: bounceIn 0.8s ease-out; } .success-text { text-align: center; } .payment-success-text { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; color: #0ea5e9; letter-spacing: 0.5px; } .transaction-text { font-size: 0.9rem; color: #6b7280; font-weight: 400; } .order-details { background: #f8fafc; border-radius: 8px; padding: 20px; margin-bottom: 20px; border: 1px solid #e5e7eb; } .order-header { display: flex; align-items: center; justify-content: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e5e7eb; } .order-header i { font-size: 1.1rem; margin-right: 8px; color: #0ea5e9; } .order-header span { font-size: 1rem; font-weight: 600; color: #374151; } .detail-grid { display: flex; flex-direction: column; gap: 12px; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; } .detail-item:not(:last-child) { border-bottom: 1px solid #f1f5f9; } .detail-label { color: #6b7280; font-weight: 500; font-size: 0.85rem; flex: 1; } .detail-value { color: #1f2937; font-weight: 600; font-size: 0.85rem; text-align: right; flex: 1; } .action-buttons { display: flex; flex-direction: column; gap: 12px; } .download-section { display: flex; align-items: center; justify-content: center; gap: 8px; color: #0ea5e9; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-radius: 6px; padding: 12px; border: 1px solid #e5e7eb; background: white; font-size: 0.9rem; } .download-section:hover { background: #f0f9ff; border-color: #0ea5e9; } .back-btn { background: #0ea5e9; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; font-size: 0.9rem; } .back-btn:hover { background: #0284c7; } } /* ==== INVOICE MODAL - TABLET ==== */ @media (min-width: 768px) and (max-width: 1023px) { #invoiceModal .modal-content { margin: 5% auto; border-radius: 12px; width: 90%; max-width: 380px; padding: 20px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); background: white; border: 1px solid #e1e5e9; } .success-header { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 20px; padding: 0; } .success-icon-container { margin-bottom: 14px; } .success-icon { font-size: 2.8rem; color: #0ea5e9; animation: bounceIn 0.8s ease-out; } .payment-success-text { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; color: #0ea5e9; } .transaction-text { font-size: 0.85rem; color: #6b7280; font-weight: 400; } .order-details { background: #f8fafc; border-radius: 8px; padding: 16px; margin-bottom: 16px; border: 1px solid #e5e7eb; } .order-header { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb; } .order-header i { font-size: 1rem; margin-right: 6px; color: #0ea5e9; } .order-header span { font-size: 0.95rem; font-weight: 600; color: #374151; } .detail-grid { display: flex; flex-direction: column; gap: 10px; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; } .detail-item:not(:last-child) { border-bottom: 1px solid #f1f5f9; } .detail-label { color: #6b7280; font-weight: 500; font-size: 0.8rem; flex: 1; } .detail-value { color: #1f2937; font-weight: 600; font-size: 0.8rem; text-align: right; flex: 1; } .action-buttons { display: flex; flex-direction: column; gap: 10px; } .download-section { display: flex; align-items: center; justify-content: center; gap: 6px; color: #0ea5e9; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-radius: 6px; padding: 10px; border: 1px solid #e5e7eb; background: white; font-size: 0.85rem; } .download-section:hover { background: #f0f9ff; border-color: #0ea5e9; } .back-btn { background: #0ea5e9; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px; font-size: 0.85rem; } .back-btn:hover { background: #0284c7; } } /* ==== INVOICE MODAL - MOBILE ==== */ @media (max-width: 767px) { #invoiceModal .modal-content { margin: 8% auto; border-radius: 12px; width: 92%; max-width: 320px; padding: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); background: white; border: 1px solid #e1e5e9; } .success-header { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 20px; padding: 0; } .success-icon-container { margin-bottom: 12px; } .success-icon { font-size: 2.5rem; color: #0ea5e9; animation: bounceIn 0.8s ease-out; } .payment-success-text { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; color: #0ea5e9; } .transaction-text { font-size: 0.8rem; color: #6b7280; font-weight: 400; } .order-details { background: #f8fafc; border-radius: 8px; padding: 14px; margin-bottom: 16px; border: 1px solid #e5e7eb; } .order-header { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; } .order-header i { font-size: 0.9rem; margin-right: 4px; color: #0ea5e9; } .order-header span { font-size: 0.9rem; font-weight: 600; color: #374151; } .detail-grid { display: flex; flex-direction: column; gap: 8px; } .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; } .detail-item:not(:last-child) { border-bottom: 1px solid #f1f5f9; } .detail-label { color: #6b7280; font-weight: 500; font-size: 0.75rem; flex: 1; } .detail-value { color: #1f2937; font-weight: 600; font-size: 0.75rem; text-align: right; flex: 1; } .action-buttons { display: flex; flex-direction: column; gap: 8px; } .download-section { display: flex; align-items: center; justify-content: center; gap: 4px; color: #0ea5e9; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border-radius: 6px; padding: 8px; border: 1px solid #e5e7eb; background: white; font-size: 0.8rem; } .download-section:hover { background: #f0f9ff; border-color: #0ea5e9; } .back-btn { background: #0ea5e9; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 8px; font-size: 0.8rem; } .back-btn:hover { background: #0284c7; } } /* ==== COUNTDOWN STYLES ==== */ .countdown { font-size: 1.2rem; font-weight: bold; text-align: center; margin: 1rem 0; padding: 0.5rem; border-radius: 0.5rem; background-color: #f8fafc; } .countdown.expiring { color: #ef4444; animation: pulse 1s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } /* ==== VISA OVERLAY STYLES ==== */ .visa-overlay { position: fixed; bottom: 100px; right: 30px; width: 70px; height: 70px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4); cursor: pointer; z-index: 40; transition: all 0.3s ease; border: 3px solid #0ea5e9; overflow: hidden; padding: 5px; animation: pulse 2s infinite; } .visa-overlay:hover { transform: scale(1.1); box-shadow: 0 12px 35px rgba(14, 165, 233, 0.6); animation: none; } .visa-overlay img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; } /* ==== FOOTER STYLES ==== */ .footer-with-angkor { background-image: url('https://ik.imagekit.io/mk8c3kthv/Game%20Store/o0KOt7O.png?updatedAt=1756142277703'); background-size: cover; background-position: center bottom; background-repeat: no-repeat; position: relative; } .footer-with-angkor::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(6, 84, 147, 0.85), rgba(6, 84, 147, 0.95)); z-index: 0; } .footer-content { position: relative; z-index: 1; } /* ==== UTILITY CLASSES ==== */ .ml-logo { height: 40px; margin-right: 10px; } .ml1-logo { height: 60px; margin-right: 15px; } .game-title { display: flex; align-items: center; margin-bottom: 1rem; } .banner-content { text-align: center; } .text-center { text-align: center; } .text-white { color: white; } .text-sky-900 { color: #0c4a6e; } .text-sky-800 { color: #075985; } .bg-sky-600 { background-color: #0284c7; } .bg-sky-700 { background-color: #0369a1; } .hover\:bg-sky-700:hover { background-color: #0369a1; } /* ==== ANIMATIONS ==== */ @keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Apply animations */ .success-header { animation: fadeIn 0.4s ease-out; } .order-details { animation: fadeIn 0.4s ease-out 0.1s both; } .action-buttons { animation: fadeIn 0.4s ease-out 0.2s both; } /* ==== LOADING STATES ==== */ body.loading { overflow: hidden; } body.modal-open { overflow: hidden; position: fixed; width: 100%; } /* ==== RESPONSIVE STYLES ==== */ @media (max-width: 640px) { .banner-container { height: 200px; } .pricing-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 0.5rem; } .card { height: 110px; padding: 0.5rem; } .card img { width: 40px; height: 40px; } .card h2 { font-size: 0.9rem; } .card p.new-price { font-size: 0.8rem; } .input-row { flex-direction: column; gap: 0.5rem; } .khqr-card { flex-direction: column; text-align: center; gap: 0.5rem; } .modal-content { padding: 1.5rem; margin: 15% auto; } .khqr-frame { width: 240px; } .qr-image img { width: 180px; height: 180px; } .ticket-banner { font-size: 0.4rem; padding: 1px 4px; top: -8px; left: 25%; } .ml1-logo { height: 50px; } .game-title { flex-direction: column; text-align: center; gap: 0.5rem; } .footer-with-angkor .grid { grid-template-columns: 1fr !important; text-align: center; } .modal-content { margin: 5% auto; padding: 1rem; width: 95%; max-height: 90vh; overflow-y: auto; } .khqr-frame { width: 200px !important; } .khqr-header { height: 2.5rem; } .khqr-header-text { font-size: 1rem; } .khqr-header-corner { width: 2.5rem; height: 2.5rem; } .khqr-body { padding: 0.75rem; } .khqr-amount { font-size: 1.25rem; } .qr-image img { width: 120px !important; height: 120px !important; } .khqr-divider { margin-bottom: 1.5rem; } .khqr-card { flex-direction: row !important; text-align: left; gap: 0.5rem; } .khqr-card .text-xs { font-size: 0.7rem !important; } .visa-overlay { width: 60px; height: 60px; bottom: 90px; right: 20px; z-index: 40; } .header-title { font-size: 1.25rem; } /* Extra small mobile */ @media (max-width: 360px) { .modal-content { margin: 3% auto; padding: 14px; width: 94%; max-width: 280px; } .success-icon { font-size: 2.2rem; } .payment-success-text { font-size: 1rem; } .transaction-text { font-size: 0.75rem; } } } @media (min-width: 1024px) { .banner-container { height: 350px; } .pricing-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; } .card { height: 150px; } .card img { width: 60px; height: 60px; } .khqr-card { padding: 1.5rem; } .modal-content { padding: 2.5rem; margin: 2% auto; max-height: 95vh; } }