body {
    margin: 0;
    font-family: Arial, sans-serif;
}

header {
    margin: 0; /* Ensure no extra margins affect height */
}

.top-nav {
    background-color: #000;
    height: 40px; /* Fixed height for navigation bar */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top-nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.top-nav ul li {
    margin: 0 15px;
}

.top-nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 40px; /* Vertically center text */
}

.top-nav ul li a:hover {
    color: #FFD580;
}

/* Responsive adjustments for top-nav */
@media (max-width: 600px) {
    .top-nav ul {
        flex-wrap: wrap;
    }

    .top-nav ul li {
        margin: 5px 10px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    /* Tiling background image */
    background-image: url('camo.png');
    background-repeat: repeat;
    background-size: 400px 400px;
    background-color: #f0f0f0; /* Fallback color */
    
    /* Original header layout */
    height: 400px !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important; /* Ensure vertical stacking */
    justify-content: flex-start !important; /* Menu bar at top */
    align-items: center !important;
    position: relative;
}

header::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: black;
}

.header-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
}

.logo {
    width: 300px !important; /* Restore original logo size */
    height: auto !important;
    margin-bottom: 20px;
}

.title {
    font-size: 1em;
    color: white;
    text-shadow: 2px 2px 4px #000000;
    font-family: 'Arial', sans-serif;
}

.image-bar {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.image-bar img {
    width: 100% !important;
    height: 200px !important; /* Restore original image bar height */
    display: block;
    margin: 0 auto;
    object-fit: cover !important;
}

.service-img {
    max-width: 100% !important;
    height: auto !important;
    margin: 10px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.product-img {
    width: 150px !important; /* Restore original product image size */
    height: auto !important;
    border: 2px solid #FFD580;
    border-radius: 5px;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

#intro h2 {
    font-size: 2em;
    color: #FFD580;
    margin-bottom: 10px;
}

#intro p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
}

#featured-products h2 {
    font-size: 1.8em;
    color: #FFD580;
    margin-bottom: 15px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.product-table tr {
    border-bottom: 1px solid #333;
}

.product-table td {
    padding: 15px;
    vertical-align: top;
}

.product-table h3 {
    font-size: 1.3em;
    color: #FFD580;
    margin: 0 0 10px 0;
}

.product-table p {
    font-size: 1em;
    line-height: 1.5;
    color: #ddd;
}

.edit-note {
    font-size: 0.9em;
    color: #aaa;
    margin-top: 10px;
    font-style: italic;
}

.social-links {
    width: 100%;
    background-color: #4b5320; /* Army green background */
    padding: 10px 0;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.1em;
    text-decoration: none;
    margin: 0 20px;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.social-links .social-icon {
    height: 20px !important; /* Specific to social icons only */
    width: auto !important;
    margin-right: 8px;
}

.social-links a:hover {
    color: #FFD580;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .logo {
        width: 200px !important;
    }

    .title {
        font-size: 1.2em;
    }

    .image-bar {
        height: 200px;
    }

    .image-bar img {
        height: 150px !important;
    }

    .service-img {
        max-width: 100% !important;
        height: auto !important;
    }

    #intro h2 {
        font-size: 1.5em;
    }

    #intro p {
        font-size: 1em;
    }

    #featured-products h2 {
        font-size: 1.5em;
    }

    .product-table td {
        display: block;
        width: 100%;
        text-align: center;
    }

    .product-img {
        margin: 0 auto 10px;
    }

    .social-links a {
        display: block;
        margin: 10px 0;
        text-align: center;
    }

    .social-links .social-icon {
        margin-right: 0;
        margin-bottom: 5px;
    }
}