/* 1. MAIN OVERLAY (Full Screen) */
#onboarding-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #f8f9fa; /* Light grey background */
    z-index: 10000;
    display: none; /* Hidden by default to prevent flicker */
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s;
}

/* 2. STEP HANDLING */
.step {
    position: absolute;
    inset: 0;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

/* Only the active step shows as a flex container */
.step.active { 
    display: flex; 
    animation: slideUp 0.4s ease-out forwards; 
}

/* 3. THE CARD DESIGN */
.onboarding-card {
    background: white;
    width: 90%;
    max-width: 400px;
    height: 80vh;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* 4. MEDIA SECTION (500x730 Images) */
.card-media {
    flex: 1.6; /* Takes more vertical space */
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Perfectly fits your portrait images */
}

/* 5. TEXT & BUTTONS SECTION */
.card-body2 {
    flex: 1;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.card-body2 h2 { 
    color: #333; 
    font-size: 1.8rem; 
    margin-bottom: 10px; 
    font-weight: 700;
}

.card-body2 p { 
    color: #666; 
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 25px; 
}

/* 6. BUTTONS & DOTS */
#onboarding-overlay button {
    background: #0056b3;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#onboarding-overlay button:active {
    transform: scale(0.96);
}

.onboarding-dots { 
    margin-bottom: 20px; 
    display: flex;
    justify-content: center;
    gap: 6px;
}

.dot { 
    display: inline-block; 
    width: 8px; 
    height: 8px; 
    background: #ddd; 
    border-radius: 50%; 
    transition: all 0.3s ease;
}

.dot.active { 
    background: #0056b3; 
    width: 22px; 
    border-radius: 10px; 
}

/* 7. ANIMATIONS & TRANSITIONS */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-out { 
    opacity: 0 !important; 
    visibility: hidden !important; 
}

/* Extra utility to force show via Head Script */
.force-show {
    display: flex !important;
}
#hometrack {
    /* clamp(MIN, PREFERRED, MAX) */
    font-size: clamp(0.7rem, 1.5vw + 0.4rem, 1rem);
	font-weight:bold;
}