﻿html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 1. ADD BASE MARGIN TO PREVENT OVERLAP (Matching Desktop Footer Height) */
    /* The footer has 8px top/bottom padding + 2px top border = ~18px height */
    margin-bottom: 20px;
}

.body-content {
    flex: 1;
}

/* ===== FOOTER STYLE (FIXED) ===== */
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #222;
    color: #ccc;
    text-align: center;
    /* Default size for Desktop/Laptop */
    font-size: 14px;
    padding: 8px 0;
    border-top: 2px solid #444;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

    /* Paragraph styles for all devices */
    .footer p {
        margin: 0;
        letter-spacing: 0.3px;
        font-weight: bold;
        line-height: 1.2;
    }

/* --- Mobile Responsiveness (Screen width <= 600px) --- */
@media only screen and (max-width: 600px) {
    /* 2. ADJUST MARGIN FOR MOBILE (Matching Mobile Footer Height) */
    /* Mobile footer has 4px top/bottom padding + 2px top border = ~10px height */
    body {
        margin-bottom: 15px; /* Adjust this to match the new, smaller footer height */
    }

    .footer {
        font-size: 9px;
        padding: 4px 0;
    }
}
