/* Basic Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-right: 5%;
    font-size: 24px;
}

.btn:hover {
    background-color: #367c39;
}

/* Header */
header {
    background-color: #f8f8f8;
    padding: 20px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 24px;
    padding: 12px 15px;
    display: block;
    text-align: center;
}

/* Mobile Navigation - Vertical Centered Stack */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav li {
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }

    nav a {
        font-size: 20px;
        padding: 15px 20px;
        width: 100%;
        border: 2px solid #ddd;
        border-radius: 5px;
    }
}

/* Hero Section */
#hero {
    background-image: url('images/hero/First Sunrise supercolor 6x9 LR.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    justify-content: center;
    padding-bottom: 75px;
}

.hero-content {
    padding: 20px;
    border-radius: 10px;
    max-width: 1200px;
    width: 100vw;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

.hero-content p {
    font-size: 1.5em;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    color: white;
}

/* About Section */
#about {
    padding: 0;
    text-align: center;
}

#about h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

#about p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

#about ul {
    list-style: disc;
    text-align: left;
    display: inline-block;
    margin-top: 20px;
}

#about li {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Bestsellers Section */
#bestsellers {
    padding-top: 25px;
    text-align: center;
}

.bestsellers-heading {
    text-transform: uppercase;
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
}

.bestsellers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.bestseller-item {
    position: relative;
    overflow: hidden;
}

.bestseller-item img {
    width: 100%;
    display: block;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 15%;
}

.overlay h3 {
    font-size: 20px;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
}

.social {
    margin-top: 10px;
}

.social a {
    color: white;
    margin: 0 10px;
    font-size: 24px;
    text-decoration: none;
}

/* Gallery Grid Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-grid img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 490px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content-container {
    margin: 2% auto;
    display: flex;
    max-width: 95%;
    max-height: 95%;
    align-items: center;
    justify-content: center;
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {
        transform: scale(0)
    }

    to {
        transform: scale(1)
    }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .bestsellers-grid {
        grid-template-columns: 1fr;
    }
}

/* Contact Page Styles */
#contact-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contact-page h2.page-heading {
    margin-bottom: 20px;
    text-align: center;
}

.contact-details,
.contact-form-placeholder {
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

/* Pricing Table Styles */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-table th,
.pricing-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
}

.pricing-table th {
    background-color: #f8f8f8;
}

/* Order Page Styles */
.order-process ol {
    padding-left: 25px;
    max-width: 800px;
    margin: 0 auto;
}

.order-process li {
    margin-bottom: 15px;
}

/* Image Sections */
.subtext {
    font-size: 1.4em;
    margin-top: 10px;
    margin-bottom: 30px;
    text-align: center;
}

/* Universal Centering */
h2.page-heading {
    text-align: center;
    width: 100%;
}

/* Header Styles */
.header-content {
    display: flex;          /* Use Flexbox for layout */
    align-items: center;    /* Vertically center items */
    justify-content: space-between; /* Space logo and nav apart */
    width: 100%;
}

.logo img {
    max-height: 100px;  /* Adjust as needed for your logo's size */
    width: auto;        /* Maintain aspect ratio */
    display: block;   /* Remove any extra space below the image*/
}
/* Style for the navigation in the header*/
nav {
    margin-left: auto; /* Push the navigation to the right if needed */
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column; /* Stack logo and nav vertically */
        align-items: center;   /* Center items horizontally */
    }

    .logo {
        margin-bottom: 10px; /* Add space between logo and nav */
    }
     nav {
        margin-left: 0; /* Push the navigation to the right if needed */
    }
}

/* signs.html specific styles - can be moved to style.css */
.signs-container {
    display: flex;
    flex-wrap: wrap; /* Allow images to wrap on smaller screens */
    justify-content: space-around; /* Space images evenly */
    align-items: flex-start; /* Align images to the start of the container */
    width: 100%;
    max-width: 100%; /* Ensure container does not exceed viewport width */
    margin: 0; /* Remove default body margins */
}

.sign-image {
    width: 48%; /* Slightly less than 50% to allow for spacing */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    margin-bottom: 10px; /* Add some space between images if they wrap */
}

@media (max-width: 768px) {
    .signs-container {
        flex-direction: column; /* Stack images vertically on smaller screens */
        align-items: center; /* Center images horizontally */
    }
    .sign-image {
        width: 95%; /* Make images take up almost full width on smaller screens */
    }
}