
/*Rules for general body elements*/
aside{
    border: thin solid black;
    width:40%
}
body{
    font-family: 'Fira Sans', sans-serif;  
    margin:0px;
    min-width:350px;
    width: 100%;

}
h2{   
    margin:0px;
    padding: 1.5em;
    text-align: center; 
}
h3{
    text-align: center;
}
section{
    width:100%;
    margin: 0px auto;
}
/*styles the paragraphs that are on all pages except the form*/
section p {
    padding: 1% 3%;
    text-indent: 2em;
}
section.wrapper{
    background-color: rgba(255,255,255,0.9);	
}

/*---------------------------Rules for header section------------------------*/
header{
    margin: 0% auto;
    text-align: center;
    width:80%;
}
.logoImg{
    max-width: 100%;
    width: 60%;
}
/* -------------------------Rules for navigation bar-------------------------*/
nav{
    display:none;
    margin-top: -5.6px;
    margin-left:auto;
    margin-right: auto;  
    top: 0;
    width:80%;
    z-index:10
}
nav li {
    display: inline-block;
    margin-bottom: -5.5px;
}    
nav li a {
    color: #385145;
    text-align: center;
    padding: 30px 30px;
}
/* Add an active class to highlight the current page */
.activePage {
    background-color:#cfddd566;
}
.topnav {
    background-color: #96ae97;
    margin: 0px;
    overflow: hidden;
    padding: 0px;
    text-align: center;
}
/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    display: block;
    text-align: center;
    padding: 14px 16px;
    font-size: 17px;
}
.topnav a:link{
    text-decoration: none;
}
.topnav a:visited {
    text-decoration: none;
}
.topnav a:hover {
    text-decoration: underline;
}
/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
    display: none;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
    .topnav a:not(:first-child) {
        display: none;}
    .topnav a {
        display: none;
    }
    .topnav a.icon {
        float: right;
        font-size: 40px;
        display: block;
        margin-right: 1%;
        color:#385145;
    }
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;}
    .topnav.responsive a.icon {
        position: absolute;
        right: 0;
        top: 0;
    }
    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }
}
/*-----------------------Rules specifically for index.php-------------------*/
.flexcontainer{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0% auto 0% auto;
    padding-top: 5%;

}
.flexitem{
    margin:1%;
    width:220px;
    height:200px;
}
/*---------------Rules for products page-------------*/
.product{
    background-color: rgba(252, 248, 236, 0.6);
}
.product h3{
    padding-left: 45%;
    padding-top:5%;
    text-align: left;
}
.product p{
    height: 15em;
    margin-bottom: 5%;
    padding-bottom: 5em

}
.product img{
    float:left;
    padding-bottom: 4%;
    padding-right: 4%;
    width:30%;
}
/*--------------Rules for where to find us page--------*/
.grid{
    /*align-items: center;
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;   */
    column-count: 3;
    width:80%
}
.grid a{
    margin:0%;
}
.grid img{
    margin:0%;
    width:90%;
    padding:2%;
}
iframe{
    width:100%;
}
.markets{
    background-color: rgba(252, 248, 236, 0.7);
    border:1px solid #e8edfb;
    margin-bottom: 5%;
}
.petfood{
    background-color: rgba(252, 248, 236, 0.7);
    border:1px solid #e8edfb;
    margin-bottom: 5%;
}
.petfood img{
    padding-left: 35%;
    width: 30%;
}
.restaurants{
    background-color: rgba(252, 248, 236, 0.7);
    border:1px solid #e8edfb;
    margin-bottom: 5%;
}
.westford{
    background-color: rgba(252, 248, 236, 0.7);
    border:1px solid #e8edfb;
    margin-bottom: 5%;
}
/*---------------------Rules for form------------*/
/*========Rules for Form=============*/
.buttons {                    
    text-align: center;
    padding: 20px;
}
.button{
    color:black;
    font-weight: bold;
    width: 80%;
    padding: 7px;
    text-align: center;
    background-color:#96ae97;
}
.button:hover{
    color:white;   
}
.contact input{
    float:right;
}
.contact label{
    padding-right:1.5em;
}
#errors ol{
    color: #ad4343;
    margin:1% auto;
}
fieldset{
    border: thin solid black;
    margin-bottom: 0.5em;
}
.flexcontainer2{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 0% auto 0% auto;
}
.flexitemAside{
    margin:0%;
    order:2;
}
.flexitemForm{
    margin:0%;
    order:1;
}   
form p{
    text-indent: 0em;
}
legend{
    font-weight: bold;
}
.mistake {
    background-color: #ad4343;
    color:white;
}
section feildset p{
    text-indent: 0em;
}
section aside p {
    text-indent:0em;
}
.submitSuccess{
    text-align: center;
    text-indent: 0em;
    margin: 0% 50% 0% 1%;
}
textarea{
    width:100%; 
    height:5em;
}
.toEmail{
    text-align: center;
    text-indent: 0em;
    margin-left: 4%;
}
/*----------------Rules for cooking tips page----------------*/
#cookingtips h3{
    padding-bottom: 3%; 
}
.instructions{
    padding: 1% 8% 3% 8%;
}
.instructions li{
    padding-bottom: 1em;
}
/*---------------------Rules for footer--------------------*/
footer{
    border-top: 1px solid #969897;
    display:flex;
    flex-direction:row;  
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 5%;
}
footer p {
    font-size: 10pt;
    text-align: left;
    text-indent:0em;
}
/*----------Rules for usability page-----------*/

.AdamsAfter, .AdamsBefore{
    width:60%;
}