body {
    display: flex;
    flex-direction: column;
    font-family: "Roboto", sans-serif;
    color: #000000;
    margin: 0;
    padding: 0;
    min-height:100%;
    background:linear-gradient(0deg, rgba(35, 35, 35, 0.85), rgba(35, 35, 35, 0.85)), url(images/attempt4.png);
    background-size: contain;
    background-position: center top;
}

/* nav bar */
.navigation { 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(35, 35, 35, 0.2));
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    opacity: 1;
    text-decoration: none;
    font-weight: bold;
    margin: 1em 7rem;
    color:rgb(248, 249, 250);
    opacity: 1;
    font-size: 1.25rem;
    border-radius: 6px;
    padding: 1rem;
}

nav ul li a:hover {
    background-color:rgba(0, 0, 0, 0.1);
}

/* hero */

.home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding-bottom: 50px;
    padding-right: 25px;
    padding-top: 50px;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #F8F9FA;
    gap: 25px;
}

.hero img{
    width: 100%;
}

.hero h1 {
    font-size: 50px;
    margin: 0;
    padding: 0;
}

/* form */
form {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border: black;
    border-radius: 3px;
    background: #F8F9FA;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    padding-top: 20px;
    padding-bottom: 20px;
    height: 100%;

}

form h1{
    font-size: 20px;
    padding: 0;
    margin: 0;
}

form h2{
    font-size: 15px;
    padding: 0;
    margin: 0;
    padding-bottom: 10px;
}

#contactForm .contact-field {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin: 5px;
    padding: 5px;
}

#contactForm .contact-field input, textarea {
    max-width: 500px;
    width: 250px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#contactForm button {
    text-align: center;
    padding: 10px 20px;
    background: #007BFF;
    color: #F8F9FA;
    border: none;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 3px;
    cursor: pointer;
}

#contactForm button:hover {
    background: #0056b3;
}

#submitButton:disabled {
    background-color: #ccc; /* Light grey */
    cursor: not-allowed; /* Show not-allowed cursor */
    opacity: 0.6; /* Slightly faded */
}


#successMessage {
    color: green;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 200px;
}

.services {
    display: flex;
    flex-direction: column;
    background-color: #F8F9FA;
    padding: 50px;
}

.services h1 {
    margin: 0;
    text-align: center;
    justify-content: start;
    align-items: start;
    font-size: 32px;
}

.service {
    background: #F8F9FA;
    padding: 20px;
    flex: 1 1 calc(25% - 20px);
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#services h2 {
    text-align: center;
    margin-bottom: 20px;
}

.services-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.aboutus {
    display: flex;
    flex-direction: column;
    background-color: #28769d;
    padding: 50px 100px;
    align-items: center;
    font-size: 22px;
}

.section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    flex: 1 1 calc(25% - 20px);
    gap: 20px;
}

.gallery img {
    width: 200%;
    height: auto;
    border-radius: 3px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    object-fit: fill;
}

.about {
    background-color: #F8F9FA;
    padding: 40px;
    border-radius: 3px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.about h2 {
    margin-top: 0;
}

/* Modal Background */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal Content */
.modal-content {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    overflow: auto;
}

/* Close Button */
.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8F9FA;
    font-size: 12px;
}

footer h2 {
    border: 1mm solid rgba(35, 35, 35, 0.85);
    padding: 10px;
    margin: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

#contact p {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding-bottom: 10px;
    justify-content: center;
    background: #F8F9FA;
}

.pac-container {
    z-index: 10000 !important;
    position: absolute !important;
  }
  

@media (max-width: 900px) {
    
    body {
        background-size: 375%;
        background-repeat: no-repeat;
    }
    
    nav {
        display: none;
    }

    .home {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    .form {
        padding: 30px;
    }

    .service {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 1 auto;
        text-align: center;
    }

    .gallery img {
        flex: none;

    }

    .section-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 90%;
    }

    .about {
        width: 175%;
        font-size: 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    footer h2 {
        font-size: 12px;
    }

}