/* Common Styles for Padiham Wood Yard Website */

#header h1 {
    text-align: center; /* Centers the h1 content */
}

#header img {
    display: block; /* Makes the img a block-level element */
    margin: 0 auto; /* Centers the image within the h1 */
}



body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('http://www.padihamtimberyard.co.uk/Background.png');
    color: #106235; /* Dark Green */
    margin: 0;
    padding: 0;
    text-align: center;
}

#container {
    width: 80%;
    margin: 0 auto;
    background-color: #FFFFFF;
    border: 1px solid #000000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
    padding-left: 20px; /* Added left padding */
    padding-right: 20px; /* Added right padding */
}

h1, h2 {
    font-family: 'Georgia', serif;
    color: #007BFF;
}

.h2-alt {
    font-family: 'Georgia', serif;
    color: #007BFF;
    text-align: center;
}

h3 {
    font-family: 'Georgia', serif;
    color: #3E2723;
    text-align: center; /* Center align H3 text */
}

.p-style1 {
    /* styles for first type of paragraph */
    font-size: 16px;
    color: #3E2723;
    text-align: left;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #3E2723;
    text-align: center;
}

nav {
    background-color: #FFFBE9; /* Beige */
    border-radius: 5px; /* Rounded corners */
    padding: 10px;
    text-align: center;
    display: flex; /* Use flexbox for better alignment and spacing */
    justify-content: center; /* Center the navigation items */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
}

nav a {
    color: #985D2B; /* Brown */
    text-decoration: none;
    padding: 8px 16px; /* Spacing around menu items */
    border-radius: 3px; /* Rounded corners for links */
    transition: background-color 0.3s, color 0.3s, font-weight 0.3s; /* Smooth transitions for color and font weight */
    font-weight: 400; /* Normal font weight */
}

nav a:hover,
nav a:focus { /* Hover and focus states for interactivity and accessibility */
    background-color: #CAD4B1; /* Mustard */
    color: #FFF; /* White */
    font-weight: 600; /* Slightly bolder text on hover */
}

nav a.active { /* Active state for current page indication */
    background-color: #985D2B; /* Brown */
    color: #FFF; /* White */
    font-weight: 600; /* Bolder text for active link */
}


img.main-image {
    border: 3px solid #3E2723; /* Keeps the solid border */
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2); /* Keeps the shadow for depth */
    margin: 10px auto; /* Changes to 'auto' for horizontal margin to center the image */
    display: block; /* Ensures the image is treated as a block-level element */
    max-width: 100%; /* Ensures the image is responsive and fits its container */
    height: auto; /* Maintains the aspect ratio of the image */
}


#footer {
    background-color: #CCD599; /* Mustard */
    color: #FFF; /* White */
    padding: 20px; /* Increased padding for better spacing */
    text-align: center;
    display: flex; /* Using flexbox */
    flex-direction: column; /* Stack the items vertically */
    align-items: center; /* Center-align items for a neat look */
    justify-content: center; /* Center content vertically */
    border-top: 3px solid #FFFBE9; /* Light beige border at the top for visual separation */
    font-size: 0.95rem; /* Slightly smaller font size for a cleaner look */
    line-height: 1.5; /* Better line spacing */
}

#footer a {
    color: #FFF; /* Links are white to stand out against the mustard background */
    text-decoration: none;
    padding: 5px;
    transition: color 0.3s; /* Smooth transition for color */
}

#footer a:hover {
    color: #985D2B; /* Brown color for hover state */
    text-decoration: underline; /* Underline on hover for clear interactivity */
}

/* If you have social media icons */
#footer .social-icons a {
    display: inline-block;
    margin: 0 5px; /* Space out the icons */
}

#footer .social-icons a:hover {
    transform: scale(1.1); /* Slightly enlarge icons on hover */
}

/* If you have a disclaimer or secondary text */
#footer .disclaimer {
    margin-top: 15px; /* Space between main content and disclaimer */
    font-size: 0.8rem; /* Smaller font size for less important text */
    opacity: 0.8; /* Slightly transparent for a less prominent look */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #footer {
        padding: 15px; /* Adjust padding on smaller screens */
        flex-direction: column;
    }
}

