* {
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: 'American Typewriter', serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensures full height of the screen */
}

main {
    background-color: rgba(255, 255, 255, 0.50);
    flex: 1;
    /* Allows main to take remaining space */
}

header {
    max-height: 160px;
}

header img {
    padding-left: 20px;
    height: 100%;
    width: auto;
    max-width: 50%;
    max-height: 160px;
    display: block;
}

.gradient-background {
    /* background-image: linear-gradient(to top, #d5e3f4, #121932); */
    /* You can adjust the direction and color stops as needed */
    /* Example: background-image: linear-gradient(45deg, #ff0000, #00ff00, #0000ff); for a diagonal gradient */
    background-image: linear-gradient(to bottom, #0e3baa 0%, #a4ecf3b6 55%, #f5f3d388 60%, #f8f6da 65%, #5d6485bc 70%, #12194ece 95%, #ffffff 100%);
    height: auto;
    width: 100%;
}

nav {
    background-color: #333;
}

nav ul {
    list-style-type: none;

}

nav ul li {
    display: inline-flex;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: #555;
}

h1 {
    color: rgb(8, 15, 51);
    font-size: 3rem;
    height: auto;
    line-height: 1;
    /* Reduces space inside h1 */
    padding-top: 60px;
}

h2 {
    color: rgb(22, 96, 26);
    font-size: 2rem;
    height: auto;
    display: block;
    margin-top: 10px;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
    height: 100px;
    padding-top: 20px;
    margin-top: 50px;
}

/* CONTACT INFO */
#contactInfo {
    height: auto;
    color: rgb(255, 255, 255);
    background-color: #457bb9;
    background-blend-mode: overlay;
    padding: 30px;
    position: relative;
}

#phoneNumber {
    font-size: 2rem;
    padding: 20px;
}

#contactInfo p {
    font-size: 1.5rem;
    float: none;
}

/* GOOGLE REVIEW BUTTON */
.review-btn {
    background-color: #4CAF50;
    color: white;
    padding: 15px 32px;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    transition: background-color 0.3 ease;
}

.review-btn:hover {
    background-color: #45a049;
}

.first_block {
    background-image: url('/images/white_kitchen.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-color: rgba(255, 255, 255, 0.50);
    width: 100%;
    height: 600px;
    position: relative;

}

/* IMAGE GALLERY */
.gallery {
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 10px;
    background-color: rgb(255, 255, 255);
}

.gallery::-webkit-scrollbar {
    display: none;
    /* Hides scrollbar for a cleaner look */
}

.image-container {
    flex: 0 0 auto;
    /* Prevents shrinking */
    width: 90vw;
    /* 90% of the viewport width */
    max-width: 400px;
    /* Prevents oversized images */
    height: auto;
    max-height: 100%;
    margin: 10px;
    position: relative;
    display: inline-block;
    border: 1px solid black;
}

footer {
    padding: 20px;
    background-color: #333;
    color: white;
    margin-top: auto;
    /* Pushes the footer to the bottom */
}

.menu-toggle {
    display: none;
    /* Initially hidden */
}

.left-align {
    text-align: left;
}

#about-the-owner {
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#about-the-owner-intro p,
#about-the-owner p {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 800px;
    text-align: left;
}


.about-the-owner-background {
    background-image: url('/images/river.jpg');
    background-blend-mode: overlay;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

#services_page {
    margin-top: 50px;
    text-align: left;
}

#services_page h1 {
    font-size: 2rem;
    color: #0e3baa;
    margin-bottom: 1.5rem;
}

#services_list {
    color: rgb(8, 15, 51);
    font-size: 1.5rem;
    margin-top: 50px;
    margin-left: 10rem;
    list-style-type: none;
    padding: 0;
    margin: 0 auto;
    max-width: 500px;
}

#services_list ul {
    text-align: left;
    list-style-position: inside;
    /* Optional: Ensures the bullets are aligned with the text */
    padding-left: 0;
    /* Optional: Removes any extra padding if needed */
}

#services_list li {
  font-size: 1.2rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ccc;
  text-align: left;
  background-color: #ffffffd1;
}

/* MEDIA BREAKPOINTS <600px, 601px, 768px, 992px, 1200px */
@media only screen and (max-width: 768px) {
    nav ul {
        display: none;
        /* Hide the menu on mobile */
    }

    h1 {
        font-size: 2rem;
        padding-top: 20px;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.2rem;
        margin-top: -5px;

    }

    h4 {
        font-size: 1.2rem;
        padding-top: 10px;
    }

    p {
        font-size: 1rem;
    }


    #contactInfo {
        padding: 15px;
    }

    #contactInfo h3 {
        font-size: 1.3rem;
        display: flex;
        flex-direction: column;
        /* Stack elements vertically */
        align-items: center;
        /* Center align */
    }

    #phoneNumber {
        font-size: 1.5rem;
    }

    .image-container {
        width: 95vw;
        /* Use almost full width */
        max-width: 500px;
        /* Slightly larger images */
    }

    .menu-toggle {
        display: block;
        /* Show the toggle button */
        background-color: #333;
        color: white;
        padding: 10px;
        border: none;
        cursor: pointer;
    }

    .menu.open {
        display: block;
        /* Show menu when open */
    }

    #services_page {
  padding: 1.5rem 1rem;
}

#services_page h1 {
  font-size: 1.6rem;
}

#services_list li {
  font-size: 1rem;
  padding: 0.6rem;
}

}

@media only screen and (max-width: 992px) {
    body {
        width: 100%;
    }

    header img {
        max-width: 85%;
        height: auto;
        padding-left: 10px;
    }

    nav ul li {
        display: block;
        /* Stack items vertically */
    }

    nav ul li a {
        padding: 15px;
        /* More touch-friendly */
    }

    main {
        width: 100%;
    }

    .first_block {
        height: 300px;
    }

    h1 {
        font-size: 2.5rem;
    }

    #phoneNumber {
        display: block;
    }

    #contactInfo p {
        font-size: 1rem;
        display: block;
    }

    .gallery {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        justify-content: flex-start;
        /* Prevents center alignment issue */
        white-space: nowrap;
        gap: 10px;
        padding: 10px;
    }

    .image-container {
        width: auto;
        max-width: 30%;
        height: auto;
        max-height: 30%;
        margin: 10px;
        position: relative;
        display: inline-block;
        border: 1px solid black;
    }

    #contactInfo h3,
    #contactInfo p {
        display: block;
        /* Ensures stacking */
        margin: 10px;
        /* Adds some space between elements */
    }

    #contactInfo h3 a {
        display: inline-block;
        /* Ensures the phone number stays aligned */

    }

    .overlay_text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media only screen and (max-width: 600px) {

    header img {
        max-width: 75%;
    }

    .image-container {
        max-width: 45%;
        margin: 5px;
    }

    .first_block {
        height: auto;
        /* Adjust to content */
    }

}