* { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; box-sizing: border-box;}
body { font-family: Arial, sans-serif; background-color: #ffffff; margin: 0; padding: 0; overscroll-behavior: none; overflow-x: hidden; }
a {	color: #00384e; }
.header { box-sizing: border-box; width: 100vw; background-color: #c6fefb; }
@media screen and (min-width: 768px) {
	img.logo { margin: 0; margin-left: 0; }
}
@supports (padding: max(0px)) {
  /*.header { padding-top: max(30px, env(safe-area-inset-top)); }*/
  .footer { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}
/*768*/
@media (max-width: 768px) {
	.main { max-width: 100vw; flex-direction: column; font-size: 18px; line-height: 1.4;}
	img.logo { height: 95px; width: 350px; display: block; margin: 0 auto; }
	.container { padding: 15px; }
	.game-header h1 { font-size: 2rem; }
	.destinations-grid { grid-template-columns: 1fr; }
	.game-status { grid-template-columns: 1fr; }
	.destination-details { grid-template-columns: 1fr; }
	.leaderboard-entry { grid-template-columns: 30px 1fr 60px; gap: 10px; font-size: 0.9rem; } 
	.time, .cities { display: none; }
	.stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
	.actions { flex-direction: column; }
	.btn { width: 80%; }
}
.ribbon { max-width: 100vw; background-color: #44addb; padding: 5px; text-align: center; }
.main { background-color: #fff; }
.footer { max-width: 100vw; padding: 10px; font-size: .8rem; text-align: center; border-top: 2px solid #42d7f5; }

.row-container { padding: 20px 20px 0 20px; max-width: 1200px; margin: 0 auto; }
.row-item { padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 21%); }
.grid-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 0 20px 20px 20px; max-width: 1200px; margin: 0 auto; }
.grid-item { padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 21%); }
h2 { padding: 0px; margin: 0 0 20px 0; border-bottom: 2px solid; border-color: #78af30; }

.error { color: #f44336; background-color: #ffebee; padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.success { color: #4CAF50; background-color: #e8f5e8; padding: 10px; border-radius: 4px; margin-bottom: 15px; }
.info { background-color: #e3f2fd; color: #1976d2; padding: 15px; border-radius: 4px; margin-bottom: 20px; font-size: 14px; }
.links { width: 300px; center; margin-top: 20px; }
.links a { color: #4CAF50; text-decoration: none; margin: 5px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input, select { padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
select:not(.adminoptions) { width:220px; }
button { padding: 12px; background-color: #44addb; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; min-height: 44px; min-width: 44px; touch-action: manipulation; }
button:hover { background-color: #45a049; }
ol { margin: 0 0 20px 20px; }

/* Game Specific */
.alert { padding: 15px 20px; border-radius: 8px; font-weight: 500; }
.alert-success { background: #d1fae5; border: 1px solid #86efac; color: #059669; }
.alert-error { background: #fee2e2; border: 1px solid #fca5a5; color: #dc2626; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #d97706; }
.alert-info { background: #dbeafe; color: #1d4ed8; border-left: 1px solid #3b82f6; }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 1px solid #ef4444; }
.screen { display: none; }
.screen.active { display: block; }
.setup-card { background: white; border-radius: 15px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,21%); margin-bottom: 30px; text-align: center; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn { background: #007cba; color: white; /*padding: 10px 20px; */border: none; border-radius: 5px; cursor: pointer; margin: 5px; }
.btn:hover { background: #005a87; }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #a71e2a; }
.btn-primary { background: #44addb; color: white; }
.btn-primary:hover:not(:disabled) { background-color: #45a049; }
.btn-secondary { background-color: #6c757d; color: white; }
.btn-secondary:hover { background-color: #545b62; }
.btn-warning { background: #f59e0b; color: white; }
.btn-success { background: #10b981; color: white; }
.status-badge { padding: 4px 8px; border-radius: 3px; font-size: 12px;font-weight: bold; }
.status-active { background: #28a745; color: white; }
.status-penalty { background: #ffc107; color: black; }
.status-completed { background: #007bff; color: white; }
.status-failed { background: #dc3545; color: white; }
.status-sent { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-answered { background: #dbeafe; color: #1d4ed8; }


/* Leaderboard */
.leaderboard-section { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,21%); }
.leaderboard-section h3 { color: #4a5568; margin-bottom: 20px; text-align: center; font-size: 1.5rem; }
.leaderboard-entry { display: grid; grid-template-columns: 40px 1fr 120px 100px 80px; gap: 15px; padding: 15px; background: #f8fafc; border-radius: 8px; margin-bottom: 10px; align-items: center; }
.leaderboard-entry:nth-child(1) { background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); }
.leaderboard-entry:nth-child(2) { background: linear-gradient(135deg, #c0c0c0 0%, #e5e5e5 100%); }
.leaderboard-entry:nth-child(3) { background: linear-gradient(135deg, #cd7f32 0%, #daa520 100%); }
.rank { font-weight: bold; font-size: 1.2rem; text-align: center; }
.name { font-weight: 600; }
.time, .money, .cities { font-size: 0.9rem; color: #666; }
.no-scores { text-align: center; color: #999; font-style: italic; }
th.lboard { text-align:center; font-size: small; }
td.lboard { text-align:center; }
.tab { overflow: hidden; }
.tab button { background-color: #44sddb; float: left; border: none; outline: none; cursor: pointer; padding: 14px 16px; transition: 0.3s; border-radius: 10px 10px 0px 0px !important;}
.tab button:hover { background-color: #45a049; }
.tab button.active { background-color: #78af30; }
.tabcontent { display: none; padding: 6px 12px; border: 1px solid #78af30; border-radius: 0px 5px 5px 5px; }

/* Game Status Bar */
.game-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.status-item { background: white; padding: 20px; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,21%); text-align: center; }
.status-label { display: block; font-size: 0.9rem; color: #666; margin-bottom: 5px; }
.status-item span:last-child { font-size: 1.5rem; font-weight: bold; color: #4a5568; }

/* Travel Options */
.travel-section { background: white; border-radius: 15px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,21%); margin-bottom: 20px; }
.travel-section h3 { color: #4a5568; margin-bottom: 20px; text-align: center; }
.destinations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.transport-group { border: 2px solid #e2e8f0; border-radius: 10px; padding: 20px; transition: border-color 0.3s ease; }
.transport-group:hover { border-color: #667eea; }
.transport-type { background-color: #82ba61; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; padding: 10px; border-radius: 5px; text-align: center; }
.destination-option { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 15px; margin-bottom: 10px; cursor: pointer; transition: all 0.3s ease; }
.destination-option:hover { background: #e2e8f0; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,21%); }
.destination-option.selected { background: #667eea; color: white; border-color: #5a67d8; }
.destination-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 5px; }
.destination-details { font-size: 0.9rem; color: #666; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.destination-option.selected .destination-details { color: rgba(255,255,255,0.9); }

/* Waiting Screen */
.waiting-section, .trivia-section, .penalty-section, .completion-section, .game-over-section { background: white; border-radius: 15px; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,21%); text-align: center; margin-bottom: 20px; }
.waiting-card h3, .row-item h3, .penalty-card h3, .completion-card h3, .game-over-card h3 { color: #4a5568; margin-top: 5px; margin-bottom: 10px; font-size: 1.8rem; }
.loading-spinner { width: 50px; height: 50px; border: 5px solid #e2e8f0; border-top: 5px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.spinner { display: none; width: 20px; height: 20px; border: 2px solid #f3f3f3; border-top: 2px solid #4CAF50; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.arrival-time { color: #666; font-size: 1.1rem; margin-top: 15px; }

/* Trivia Section */
.trivia-question { font-size: 1.3rem; color: #4a5568; margin-top: 20px; margin-bottom: 10px; line-height: 1.6; }
.trivia-options { display: grid; gap: 15px; margin-bottom: 30px; text-align: left; }
.trivia-option { background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 8px; padding: 15px 20px; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; }
.trivia-option:hover { background: #e2e8f0; border-color: #cbd5e0; }
.trivia-option.selected { background: #667eea; color: white; border-color: #5a67d8; }
.trivia-option input[type=“radio”] { margin-right: 10px; }

/* Penalty Section */
.penalty-card { background: linear-gradient(135deg, #feb2b2 0%, #fecaca 100%); padding-bottom: 10px; border-radius: 8px; border: 1px solid #ff3333;}
.penalty-countdown { font-size: 2rem; font-weight: bold; color: #dc2626; margin-top: 20px; }

/* Completion Section */
.completion-card { background: linear-gradient(135deg, #86efac 0%, #bbf7d0 100%); }
.final-stats { background: white; border-radius: 10px; padding: 20px; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.stat-item { text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: bold; color: #059669; display: block; }
.stat-label { font-size: 0.9rem; color: #666; }
.stat-card { background: white; padding: 20px; border-radius: 10px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,21%); border: 2px solid #e0e0e0; }
.stat-number { font-size: 2em; font-weight: bold; color: #007cba; }
.stat-number.warning { color: #f59e0b; }
.stat-number.danger { color: #ef4444; }
.stat-number.success { color: #10b981; }
.stat-number.info { color: #3b82f6; }

/* Game Over Section */
.game-over-card { background: linear-gradient(135deg, #fca5a5 0%, #f87171 100%); }

/* Animations */ 
@keyframes fadeIn { 
	from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); }
} 
.screen.active { animation: fadeIn 0.5s ease-out; }
.destination-option { animation: fadeIn 0.5s ease-out; }
.destination-option:nth-child(1) { animation-delay: 0.1s; }
.destination-option:nth-child(2) { animation-delay: 0.2s; }
.destination-option:nth-child(3) { animation-delay: 0.3s; }

/* Utility Classes */
.text-center { text-align: center; } 
.text-success { color: #059669; } 
.text-error { color: #dc2626; } 
.text-warning { color: #d97706; } 
.mt-20 { margin-top: 20px; } 
.mb-20 { margin-bottom: 20px; } 
.hidden { display: none !important; } 

/* Loading states */
.loading { opacity: 0.6; pointer-events: none; }
.pulse { animation: pulse 2s infinite; } 
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* game page css */ 
.error-log { background: #1f2937; color: #f9fafb; padding: 15px; border-radius: 5px; font-family: 'Courier New', monospace; font-size: 12px; max-height: 200px; overflow-y: auto; }
.refresh-info { text-align: center; color: #6b7280; font-size: 12px; margin-top: 20px; }
.refresh-notice { background: #e3f2fd; border: 1px solid #2196f3; border-radius: 8px; padding: 15px; margin: 20px 0; text-align: center; color: #1976d2; }
.form-inline { display: inline-block; margin: 5px; }
.countdown-display { font-size: 1.5rem; font-weight: bold; color: #dc2626; text-align: center; padding: 20px; background: #fee2e2; border-radius: 8px; margin: 20px 0; }
.auto-refresh { margin: 20px 0; text-align: center; }
.meta-refresh { font-style: italic; color: #666; font-size: 0.9rem; }

.subnav { margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.subnav button { background: #666; color: white; border: none; padding: 10px 20px; cursor: pointer; border-radius: 5px; }
.subnav button.active, .subnav button:hover { background: #007cba; }
.section {display: none;}
.section.active { display: block; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 20px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 30px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #ddd; }
th { background: #f8f9fa; font-weight: bold; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }
.input-group { display: flex; gap: 10px; align-items: center; margin: 10px 0; }
.input-group input { padding: 8px 12px; border: 1px solid #d1d5db; border-radius: 5px; flex: 1; }

/* payment modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; display: none; }
.modal { position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%); background: white; border-radius: 8px; padding: 30px; width: 400px; max-width: 90%; box-shadow: 0 4px 20px rgba(0, 0, 0, 21%); z-index: 1001; }
.modal-header { border-bottom: 1px solid #eee; padding-bottom: 15px; }
.modal-title { color: #333; font-size: 24px; font-weight: bold; margin: 0; }
.payment-amount { color: #4CAF50; font-size: 28px; font-weight: bold; margin: 10px 0; }
.modal-body { margin-bottom: 25px; }
.form-label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.stripe-element { padding: 12px; border: 2px solid #e6e6e6; border-radius: 4px; background: white; transition: border-color 0.3s; }
.stripe-element:focus { border-color: #4CAF50; outline: none; }
.stripe-element.StripeElement--invalid { border-color: #e74c3c; }    
.error-message { color: #e74c3c; font-size: 14px; margin-top: 5px; display: none; }
.modal-footer { border-top: 1px solid #eee; padding-top: 10px; }
.success-message { text-align: center; color: #4CAF50; display: none; }
.success-icon { font-size: 48px; margin-bottom: 15px; }
.close-btn { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.close-btn:hover { color: #333; }

/* Hamburger CSS */
.menuItem { display: block; margin: 2rem 4rem; font-size: 1.8rem; color: #00384e; text-decoration: none; }
.menuItem:hover {text-decoration: underline;}
.menuSubItem { display: block; margin: 2rem 4rem; font-size: 1.2rem; color: #00384e; text-decoration: none; }
.menuSubItem:hover {text-decoration: underline;}
.hamburger { position: fixed; z-index: 100; top: 1rem; right: 1rem; padding: 4px; border: #44addb solid 1px; background: #c6fefb; color: #44addb; cursor: pointer;}
.hamburger:hover { background-color: #c6fefb; border: #6bc3df 2px solid; }
.closeIcon { display: none; }
.menu { position: fixed; transform: translateY(-100%); transition: transform 0.2s; top: 0; left: 0; right: 0; bottom: 0; z-index: 99; background: #42d7f5; color: white; list-style: none; padding-top: 4rem; }
.showMenu { transform: translateY(0); }