/* Splash modal covers everything */
#splash-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 9999;
}

/* When active, fade in */
#splash-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Splash box */
#splash {
    background: #f7f9fb;
    padding: 2rem;
    max-width: 600px;
    border-radius: 6px;
    border-left: 4px solid #1a4d7a;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    text-align: center;
	overflow-y: auto;
	max-height: 90vh; /* prevents overflow on all devices */
}
/* Mobile adjustments */
@media (max-width: 600px) {
	#splash {
		width: 90vw;
		max-height: 85vh;
		padding: 1rem;
	}

	.timeband h1 {
		font-size: 1.4rem;
	}

	.timeband p {
		font-size: 0.95rem;
		line-height: 1.4;
	}

	#accept-btn {
		width: 100%;
		padding: 0.9rem;
		font-size: 1rem;
	}
}

/* Very small screens (older phones) */
@media (max-width: 400px) {
	#splash {
		width: 95vw;
		max-height: 80vh;
	}

	.timeband p {
		font-size: 0.9rem;
	}
}


/* Hide app content until accepted */
#app-content {
    opacity: 0;
    transition: opacity 0.6s ease;
}

#app-content.visible {
    opacity: 1;
}

/* Button styling */
#accept-btn {
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: #1a4d7a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#accept-btn:hover {
    background: #163f63;
}