body {
    margin: 0;
    padding: 0;
    height: 100vh;
    /* Added to enable scrolling */
}

.bottom-icons {
    position: fixed;
    bottom: 10px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;          /* ← vertical centering */
    padding: 12px 20px;          /* ↑ top/bottom padding increased */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    box-sizing: border-box;
}

/* Force white icons (optional but recommended) */
.bottom-icons * {
    color: white !important;
    fill: white !important;
}

.icon img {
    width: 90px;
    /* Default size */
    height: 90px;
    /* Default size */
    background-color: #fff;
    /* Add background color to icons */
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.bottom-icons p {
   color: #FF4500;
	font-weight:700;


}
.up-arrow {
    display: flex;
    flex-direction: column;
    align-items: center; /* This is key for horizontal centering of children */
    text-align: center; /* Fallback for text, though align-items handles it for flex children */
    text-decoration: none; /* Remove underline from link */
    color: black; /* Default text color */
}

.up-arrow img {
    /* Default size and styling for the arrow image */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.up-arrow p {
    font-size: 0.8em;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Media query to adjust icon size on smaller screens */
@media (max-width: 600px) {
    .icon img {
        width: 50px;
        /* Adjust size for smaller screens */
        height: 50px;
        /* Adjust size for smaller screens */
    }
}

/* Media query for screens between 600px and 768px (your problem area) */
@media (min-width: 601px) and (max-width: 768px) {
    .bottom-icons {
        justify-content: space-around;
        /* Distribute space evenly around items */
        padding: 0 15px;
        /* Slightly adjust padding for this range */
    }

    .icon img {
        width: 55px;
        /* Slightly reduce size if needed for 3 icons to fit */
        height: 55px;
    }

    /* Position Icon 1 (Left) */
    .icon1-container {
        position: absolute;
        bottom: 0;
        /* Or 10px, matching wrapper's bottom if you want padding */
        left: -20rem;
        /* Adjust this value to desired left position */
        /* Optionally set a width if needed to control text wrapping */
        width: 80px;
        /* Example width */
    }

    /* Position Icon 2 (Right) */
    .icon2-container {
        position: absolute;
        bottom: 0;
        left: 5rem;
        /* Adjust this value to desired right position */
        width: 80px;
        /* Example width */
    }

}

/* NEW MEDIA QUERY: For screens from 482px to 600px */
@media (min-width: 481px) and (max-width: 600px) {
    .bottom-nav-wrapper {
        height: 70px;
        /* Slightly smaller height for a narrower screen */
        padding: 0;
    }

    /* Position Icon 1 (Left) - Adjust these values carefully! */
    .icon1-container {
        position: absolute;
        bottom: 0;
        left: -10rem;
        /* Closer to the edge */
        width: 70px;
        /* Slightly smaller width for the container */
    }

    /* Position Icon 2 (Right) - Adjust these values carefully! */
    .icon2-container {
        position: absolute;
        bottom: 0;
        left: 8rem;
        /* Closer to the edge */
        width: 70px;
        /* Slightly smaller width for the container */
    }

    /* Adjust image size for this range */
    .icon img {
        width: 45px;
        /* Even smaller icons */
        height: 45px;
    }

    .icon p {
        font-size: 0.75em;
        /* Smaller text */
    }
    
     /* Ensure the .up-arrow container's internal content is centered */
    .up-arrow {
        width: 70px; /* Example: Match smaller icon container width */
        /* Confirm its position for this range */
        position: absolute; /* If it's positioned like icon1/icon2/icon3 */
        bottom: 0;
        left: 50%; /* Example: For a centered arrow */
        transform: translateX(-50%); /* For true centering */
    }

    .up-arrow img {
        width: 45px; /* Adjust size for this range */
        height: 45px;
    }
    .up-arrow p {
        font-size: 0.75em;
    }
.up-arrow {
        /* If .up-arrow is part of a flex container here, reset its position */
        position: static;
        width: auto;
        left: auto; right: auto; transform: none; bottom: auto;
        /* Ensure its flex properties are compatible with the parent .bottom-nav-wrapper's flex */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .up-arrow img {
        width: 40px;
        height: 40px;
    }
    .up-arrow p {
        font-size: 0.7em;
    }
}

/* Media query to show icons only on mobile devices */
@media (min-width: 768px) {
    .bottom-icons {
        display: none;
    }
}