/* General Reset */
.content {
    clear: both; /* This could be redundant unless you have floating elements */
}

/* Top Section Styling */
.top {
    background: url("http://www.smagicmakers.com/images/PNGs/Logos/smagic main logo.png") top center no-repeat,
                url("http://www.smagicmakers.com/images/PNGs/satellite2.png") bottom right no-repeat;
    background-color: #000;
    background-size: auto, contain;
    width: 100%;
    min-height: 100vh; /* Ensure it spans the entire viewport height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Allows .hd to be positioned */
}

/* Navigation Menu Styling */
.hd {
    position: fixed; /* Stick to the bottom of the viewport */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: rgba(0, 0, 0, 0.8); /* Add a background for visibility */
    width: 100%; /* Span the full width */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5); /* Optional shadow for separation */
}

/* Individual Navigation Items */
.hd li {
    flex: 1 1 300px;
    max-width: 192px;
}

.hd li a {
    display: block;
    background: url("../images/JPGs/Btns/buttonbox - normal-01.jpg") no-repeat center/cover; /* Fix missing quotation mark */
    text-align: center;
    line-height: 1.2;
    font-family: "Didact Gothic", "Century Gothic", Verdana, sans-serif, Arial;
    font-size: clamp(1em, 1.2vw, 1.2em);
    font-weight: bold;
    color: black;
    text-decoration: none;
    padding: 20px;
    border-radius: 5px;
    width: 100%;
    height: auto;
    cursor: grab;
    transition: background-image 0.3s, transform 0.2s;
}

.hd li a:hover {
    background-image: url("../images/JPGs/Btns/buttonbox - hover-01.jpg"); /* Fix missing quotation mark */
    transform: scale(1.05);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .top {
        background-size: cover, contain; /* Adjust for smaller screens */
        min-height: 100vh;
    }

    .hd {
        gap: 15px;
        padding: 8px 0;
    }

    .hd li a {
        font-size: clamp(0.9em, 1.5vw, 1em);
        line-height: 1.1;
    }
}

@media (max-width: 480px) {
    .hd {
        flex-direction: column;
        gap: 10px;
    }

    .hd li {
        max-width: 100%;
    }

    .hd li a {
        font-size: clamp(0.8em, 2vw, 0.9em);
        padding: 15px;
    }
}
