﻿/*CSS Reset Styles*/
body, img, video,header, footer, section, nav, main {
  margin: 0;
  padding: 0;
}

/* Global Styles */
h1{
    margin:auto auto auto 10px;

}
body {
    background-color: #fafaf5;
    color: #333333;
    font-family: 'Poppins', sans-serif;
}

p {
    margin: 10px 20px 10px 20px;
}

/*Mobile Viewport Styles*/

/*Style for Header*/
.mobile a {
    text-decoration: none;
}

header {
    text-align: center;
    background-color: #4CAF50; /* Green background for header */
}

#logo {
    width: 8em;
    height: auto;
}
/*style rules for nav*/
nav {
    background-color: #6dd271;
}

.mobile-nav a {
    color: #fff;
    text-align: center;
    display: block;
    font-size: 2em;
    text-decoration: none;
    padding: 3%;
}

    .mobile-nav a.nav-icon {
        display: block;
        position: absolute;
        left: 0;
        top: 0;
        color: #f6eee4;
        padding: 2%;
        font-size: 2.5em;
    }

.nav-icon div {
    height: 40px;
    width: 40px;
    color: #fff;
}


.desk-nav {
    display: none;
}

#nav-links {
    display: none;
}

/*style rules for main*/


#hero-image {
    background-image: url(../images/hero-image.jpg); /* adjust path if needed */
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 200px; /* adjust as needed for your design */
   
}



#vendor-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 5em;
    margin: auto auto 5em auto;
}

    #vendor-container img {
        width: 100%;
        height: auto;
    }

figure {
    width: 99%;
    margin: 2%;
}

    figure img {
        width: 96%;
        height: auto;
        display: block;
    }

dt {
    font-weight: bold;
    font-size: 1.25em;
    margin: 1em 0 0.5em 1em;
}
/*style for footer*/
footer {
    text-align: center;
}

    footer a {
        text-decoration: none;
    }

.contact-container {
    text-align: center;
    width: 150px;
    height: auto;
    display: inline-block;
    background-color: #4CAF50; /* Green background for footer */
    color: white;
    padding: 2%;
    margin: 0 auto;
    border-radius: 10px;
    font-size: 1em;
}

/*styles for form*/
/* === Form Area === */
form {
    width: 90%;
    margin: 0 auto;
}

/* === Fieldsets and Legends === */
fieldset {
    margin-bottom: 2%;
    padding: 1em;
    border: 1px solid #ccc;
}

legend {
    font-size: 1.25em;
    font-weight: bold;
}

/* === Labels === */
label {
    display: block;
    padding-top: 2%;
}

/* === Inputs and Textarea === */
input,
textarea {
    padding: 0.5em;
    font-size: 1em;
    box-sizing: border-box;
    margin-bottom: 2%;
}



/* === Submit Button === */
form #submit {
    display: block;
    margin: 0 auto;
    padding: 2%;
    background-color: #6dd271;
    font-size: 1.25em;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #fff;
}

#form {
    font-size: 1em;
}

/*Tablet Viewport Styles*/
@media screen and (min-width: 768px) {
   
    /*style for nav*/
    .desk-nav {
        display: block;
    }
    .mobile-nav {
        display: none;
    }


        nav ul {
            list-style: none;
            text-align: center;
            margin: 0;
        }

    nav li {
        display: inline-block;
        border-top: none;
        color: #fff;
        font-size: 1.25em;
        padding: .5em;
        font-family: Geneva, Arial, sans-serif;
        font-weight: bold;
    }

    nav li a {
        padding: .5em;
        display: block;
        color: #fff;
        text-decoration: none;
    }

    #icon {
        display: none;
    }
    /*style rules for main*/
    .hero {
        max-height: 400px;
        overflow: hidden;
    }

    #hero-image {
        background-image: url(../images/hero-image.jpg); /* adjust path if needed */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 300px; /* adjust as needed for your design */
    }
    .grid {
        display: grid;
        grid-template-columns: auto auto auto auto;
        grid-column-gap: 15px;
        grid-row-gap: 50px;
        margin:auto 10px auto auto;
    }
    figure {
        width: 100%;
        height: 50%;
       
    }
    figure img {
        width: 100%;
        height: auto;
        
    }


    #vendor-container {
        display: grid;
        row-gap: 20px;
        grid-template-columns: auto auto auto auto;
    }
    /*style rules for form*/
    #form {
        font-size: 1em;
    }
    #form-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2em;
    }

    #form-message label {
        display: block;
        margin-top: 0.5em;
    }

    #form-message p {
        font-weight: bold;
        margin-bottom: 0.5em;
    }

    /*style for footer*/
    .contact-container {
        width: 150px;
        height: auto;
        
    }

}



/* Desktop Viewport Styles */
@media screen and (min-width: 1024px) {
    #form{
        font-size: 1em;
    }

    #hero-image {
        background-image: url(../images/hero-image.jpg); /* adjust path if needed */
        background-size:  cover;
        background-position: center;
        background-repeat: no-repeat;
        width: 100%;
        height: 450px; /* adjust as needed for your design */
    }
    }


/*Larger Desktop Viewport Styles*/
@media screen and (min-width:1921px) {
    body {
        background: linear-gradient(to right, #f6eee4, #78593a);
    }

    #wrapper {
        width: 1920px;
        margin: 0 auto 0 auto;
    }

    main {
        background-color: #f6eee4;
    }

    .grid {
        grid-template-columns: auto auto auto auto;
    }

    aside {
        grid-column: 1 / span 4;
        font-size: 3em;
    }
}



