html,
body {
  max-height:100vh;
  max-width: 100vw;
  width: 100%;
  background-color: #f0f0f0ef;
  margin: 0%;
  padding: 0%;
  overflow-x: hidden;


}


header {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  width: 100%;
  height: 10em;
  background-image: url(assets/cininoven.jpg);
  background-size: cover;
  box-shadow: 1em 1em 2em rgba(0, 0, 0, 0.288);
  text-align: center;
  z-index: 1000;
  /* high enough to stay on top */
  padding: 0%;

}

#mamaknowslogo {
  position: relative;
  max-width: 100%;
  width: 6em;
  height: 6em;
  top: 0%;
  left: 0%;
}

#nav-bar {
  position: relative;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.3em;
  padding: 0.1em;
  margin-top: 0.1em;
  margin-bottom: 1em;
}

.nav-link {
  padding: 0.3em;
  width: fit-content;
  height: fit-content;
  margin-left: 0.5em;
  margin-right: 0.5em;
  text-decoration: none;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  background-color: #EB8853;
  border: 0.1vw solid #eb6123;
  box-shadow: 0.2vw 0.2vw 1vw rgba(0, 0, 0, 0.1);
  border-radius: 1vw;
}

.cred-bar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  width: 100%;
  top: 8%;
  left: 30%;
}


.cred-bar button {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  background-color: #EB8853;
  border: 0.1vw solid #eb6123;
  box-shadow: 0.2vw 0.2vw 1vw rgba(0, 0, 0, 0.1);
  border-radius: 1vw;
  padding: 0.3em;
  width: fit-content;
  margin-left: 0.5em;
  margin-right: 0.5em;
}

.out-bar {
  display: none;
}

.out-bar button {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  background-color: #EB8853;
  border: 0.1vw solid #eb6123;
  box-shadow: 0.2vw 0.2vw 1vw rgba(0, 0, 0, 0.1);
  border-radius: 1vw;
  padding: 0.1em;
  width: fit-content;
  margin-left: 0.5em;
  margin-right: 0.5em;
}


main {

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 100%;
  width: 100%;
  background-image: url("assets/woodbg.png");
  background-size: cover;
  margin-top: 4em;
}



.item-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 75%;
  background-color: #422404;
  padding: 2em;
}

/* Login Form*/

#login-form {
  position: relative;
  max-width: 100%;
  width: 50%;
  margin-top: 10em;
  margin-bottom: 20rem;
}

input {
  margin: 0.5rem;
  padding: 0.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  color: #422404;
}



form {
  position: relative;
  border: 2px solid #eb6123;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  margin-bottom: 1rem;
  padding: 2em;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1em;
  color: #422404;
  text-align: center;
}



/* Signup form */






a:link {
  color: #422404;
}

a:hover {
  color: blue;
}

a:visited {
  color: #422404;
}



/* Profile Page */

#profile-header-img {
  max-width: 100vw;
  width: 100%;
  height: 20rem;
}

.profile-image {
  position: absolute;
  top: 30em;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 150px;
  border-radius: 90%;
}







/*After Header*/
.spacer {
  width: 100%;
  max-width: 100vw;
  height: 15em;
}

.mainImage {
  max-width: 100vw;
  width: 100%;
  height: 100%;
  margin-top: 5em;
  border-top: #eb6123 0.2rem solid;
  border-bottom: #eb6123 0.2rem solid;

}

#welcomeSection {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  width: 70%;
  height: fit-content;
  box-shadow: 0 0.1em 1em rgba(0, 0, 0, 0.15);
  background-color: #EB8853;
  padding: 5vw;
  margin-top: 15%;
  margin-bottom: 10%;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;

}


.welcome-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1vw;
  background-color: antiquewhite;
  border: 0.2rem solid #422404;
  border-radius: 1rem;
  padding-top: 5vw;
  padding-bottom: 1em;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  width: 100%;
  height: 2.5em;
  overflow: hidden;
  color: #422404;
}

h1,
h2,
h3 {
  font-size: 0.5em;
  color: #422404;
  display: inline;
}

#welcomeH {
  margin-left: 2rem;
  font-family: 'Courier New', Courier, monospace;
}

#welcomeSection img {
  max-width: 100%;
  width: 25vw;
  margin-top: 5vw;
}

.welcomeMessage {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.5em;
  font-weight: bolder;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  width: 50%;
  color: #422404;
}

#about-image {
  border-radius: 10%;
  max-width: 100%;
  width: 25em;
  height: auto;
}

#aboutMessage {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  font-weight: bolder;
  margin-bottom: 1em;
  margin-top: 1rem;
  width: 100%;
  color: #422404;
}

#aboutHead {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1em;
  font-weight: bolder;
  margin-top: 0.5rem;
  margin-bottom: 0.3rem;

}


/* After Welcome Section */



#certBox {
  position: relative;
  left: 0vw;
  max-width: 100vw;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  padding: 5px;
  margin: 10px;

}



.cert {
  position: relative;
  width: 40%;
  height: 20%;
  border: 0.2rem solid #eb6123;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 2rem;
  margin-bottom: 2rem;



}

#goodsDisplay {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 125px;
  margin-top: 115px;

}


/*Contact Form*/



#contactForm {
  position: relative;
  margin-top: 20%;
  margin-bottom: 5em;
  max-width: 50%;
  width: fit-content;
  height: auto;
  font-size: 0.1em;
  padding: 2rem;
  color: #422404;
  font-size: 0.1em;
}

#contact-form p {
  color: #422404;
  margin-top: 5em;

}

fieldset {
  border: none;
  margin-top: 1em;
}

form button {
  width: 6rem;
  height: 25px;
  font-family: 'Courier New', Courier, monospace;
  text-align: center;
  padding: 0.1em;
  margin-top: 50px;
  background-color: #eb6123;
  color: #ffffff;
  border: 2px solid #EB8853;
}

#form-logo {
  width: 50%;
  margin-top: 1em
}


#formHeading {
  text-align: center;
}


/*Partners Section*/
#partnerHeading {
  margin-top: 7em;
  margin-bottom: 1rem;
  max-width: 100%;
  width: 15em;

}

#partnerSection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100vw;
  width: 75%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: #EB8853;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  margin-top: 2rem;
}

#displayPastries {
  max-width: 100%;
  width: 18em;
  height: 100%;
  box-shadow: 0 4px 12px rgba(215, 105, 171, 0.702);
  border-radius: 10px;
  margin-top: 1em;
  margin-bottom: 30px;
}

#partnerSection p {
  font-size: 1em;
  width: 70%;
  font-family: 'Courier New', Courier, monospace;
}




#partnerHead {
  max-width: 100%;
  width: 1000px;
  margin-top: 175px;
  margin-bottom: 175px;
}

.grid2 {
  display: grid;
  grid-template-columns: 45% 45%;
  padding: 0.1em;
  max-width: 100vw;
  width: 100%;
  height: 10em;
  justify-content: space-evenly;
  align-items: center;
  background-color: seashell;
  overflow: hidden;
  gap: 2em;
  margin-top: 5em;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



.partnerTile {
  text-align: center;
  margin-top: 0.1%;
  padding: 0.5em;
  box-shadow: 0.02em 0.02em 0.05em rgba(0, 0, 0, 0.1);
  height: 5em;
  border-radius: 10px;
  margin-bottom: 1%;
}

.partnerTile p {
  font-size: 0.8%;

}

#chubbycheeksLogo {
  width: 6em;
  box-shadow: 0 4px 12px rgba(255, 254, 255, 0.468);

}

#tacnamercLogo {
  width: 6em;
  box-shadow: 0 4px 12px rgba(255, 254, 255, 0.468);

}


p {
  color:black;
}

#partner-form {
  max-width: 100vw;
  width: 50%;
  height: auto;
}




/* Grid */

.grid {
  display: grid;
  grid-template-columns: 30% 30%;
  max-width: 100vw;
  width: 100%;
  max-width: 100vh;
  height: 100%;
  justify-content: space-evenly;
  background-image: url("assets/woodbg.png");
  background-size:cover;
  overflow: hidden;
  gap: 1em;
  row-gap: 1em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin-top: 15%;
  margin-bottom: 25%;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 2em;
  padding-bottom: 2em;
  padding-left: 1em;
  padding-right: 1em;
  text-align: center;
  box-shadow: 0.02em 0.02em 0.05em rgba(0, 0, 0, 0.1);
  height: 100%;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.tile img {
  max-width: 100%;
  width: 10em;
  height: 8em;
  margin: 0.5em auto;
  border-radius: 10px;
  border: #EB8853 0.2em solid;
}

.tile label {
  font-size: 0.5em;
  font-weight: bold;
  display: block;
  margin-top: 0.1em;
  max-width: 100%;
  width: 50%;
  text-align: center;
  padding: 0.2em;
  font-family: Verdana, Tahoma, sans-serif;
  border-radius: 10%;
  background-color: #EB8853;
  overflow-x: hidden;
}

/* Baked item information    */
.item-main {
  margin-top: 35%;
  text-align: center;
}

.item-main h1 {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1em;
  color: #ffffff;
  margin-bottom: 1em;
}

.item-main img {
  max-width: 100%;
  width: 20em;
  height: 15em;
  border-radius: 10px;
  border: #EB8853 0.2em solid;
  margin-bottom: 1em;
}


.item-main p {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.5em;
  color: #ffffff;
  max-width: 100%;
  text-align: center;
  margin-bottom: 1em;
}






/* Item Page */



footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-height: 100%;
  height: fit-content;
  background-color: bisque;
  max-width: 100vw;
  width: 100%;
  text-align: center;
  padding: 2em
}

footer p {
  position: relative;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.1em;
  color: #422404;
  margin: 0.2em;
}

#footerContent {
  max-width: 20em;
}

/*
 * =========================================
 * @MEDIA QUERIES FOR SMALL SCREENS (MOBILE)
 * =========================================
 */

@media (max-width: 600px) {

  /* --- General Layout Adjustments --- */

  /* Make key content sections full-width for better reading on mobile */
  main {
    height: fit-content;
  }


  #login-form {
    position: relative;
    padding: 0.1em;
    margin-bottom: 1em;
    margin-top: 75%;
  }

  #contactForm{
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 10%;
    margin-top: 75%;
  }
  #partner-form {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    border-radius: 10%;
  }
  .spacer{
    margin-top: 38%;
  }

  /* Adjust the welcome section width */
  #welcomeSection {
    width: 90%;
    padding: 5vw 2vw;
    /* Reduce padding to save screen space */
    margin-top: 18%;
    /* Keep it below the fixed header */
    margin-bottom: 5%;
  }

  .welcomeMessage {
    width: 85%;
    /* Give more room for the message */
  }

  /* Reduce the size of the partner section */
  #partnerSection {
    width: 90%;
    margin-top: 1rem;
  }


  /* --- Header & Navigation Adjustments --- */

  header {
    height: auto;
    /* Allow height to adjust based on content */
    padding-bottom: 0.5em;
    /* Add some space at the bottom */
  }

  /* Stack navigation links vertically to save horizontal space */
  #nav-bar {
    flex-direction: column;
    gap: 0.5em;
    /* Increase space between stacked links */
    margin-top: 0.5em;
    margin-bottom: 0.5em;
  }

  .nav-link {
    font-size: 0.8em;
    /* Make the text slightly bigger for easier tapping */
    width: 80%;
    /* Make links wider for easier tapping */
    margin: 0.2em auto;
    /* Center links */
  }

  /* Center the credibility/login buttons and make them wider */
  .cred-bar {
    top: unset;
    left: unset;
    margin-top: 0.5em;
    width: 90%;
    justify-content: space-around;
  }

  .cred-bar button {
    font-size: 0.7em;
    /* Make text readable */
    width: 45%;
    /* Give buttons half the width */
  }

  /* Adjust logo size for smaller screens */
  #mamaknowslogo {
    width: 5em;
    height: 5em;
  }

  .spacer {
    height: 10em;
    /* May need to adjust based on new header height */
  }


  /* --- Grid Layout Adjustments --- */

  /* Change both the main item grid and partner grid to a single column */
  .grid {
    position: relative;
    grid-template-columns: 90%;
    /* Single, wider column */
    justify-content: center;
    gap: 1.5em;
    row-gap: 1.5em;
    width: 100%;
    margin-top: 12em;
    height: auto;
    /* Allow height to flow with content */
  }

  .grid2 {
    grid-template-columns: 90%;
    /* Single, wider column */
    justify-content: center;
    gap: 1.5em;
    row-gap: 1.5em;
    width: 100%;
    margin-top: 2em;
    height: auto;
    /* Allow height to flow with content */
  }

  .partnerTile {
    width: 90%;
    height: auto;
  }

  .tile label {
    width: 80%;
  }


  /* --- Item Page Adjustments --- */
  .item-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 75%;
  background-color: #422404;
  padding: 2em;
}

  .item-main h1 {
    font-size: 1.2em;
  }

  .item-main p {
    font-size: 0.7em;
    padding: 0 1em;
  }

  .item-main img {
    width: 90%;
    /* Make image use most of the screen */
    height: auto;
  }

  /* Adjust login/signup form input size */
  input {
    font-size: 0.8em;
  }
}