/**************
|  style.css  |
**************/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

html,
body {
  font-family: "Roboto", sans-serif;
  background-color: #eee;
  box-sizing: border-box;
  font-style: normal;
  min-height: 100vh;
  overflow-x: auto;
  font-weight: 400;
  color: #111;
  width: 100%;
  padding: 0;
  margin: 0;
}

.header {
  background-image: url(images/cabbages.png);
  border-top: 1px solid #111;
  background-position: bottom;
  background-size: cover;
  padding-top: 10px;
  height: 300px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header h1 {
  text-shadow: 3px 3px 7px #111;
  letter-spacing: 2.5px;
  text-align: center;
  color: yellow;
  font-size: 50px;
  margin: auto;
}

.nav {
  background-color: rgb(114, 144, 181);
  text-shadow: 2px 2px 5px #111;
  border-bottom: 1px solid #111;
  border-top: 1px solid #111;
  padding: 0 5% 0 0;
  height: 50px;
  width: 95%;
  left: 0;
  display: flex;
  align-items: center;
}

.nav ul {
  display: flex;
  padding: 0;
  margin: 0;
  gap: 20px;
  margin-left: 45px;
  align-items: center;
  list-style-type: none;
  justify-content: flex-start;
}

.nav ul li a {
  text-shadow: 2px 2px 5px #111;
  letter-spacing: 2.5px;
  text-decoration: none;
  font-weight: 700;
  color: yellow;
  font-size: 22px;
  padding: 12px;
}

.nav ul li a:hover {
  color: rgb(207, 121, 180);
}

.nav ul li a:active {
  text-shadow: 2px 2px 5px transparent;
  color: yellow;
}

.main {
  width: 100%;
  display: flex;
  flex-direction: row;
  padding-bottom: 50px;
  align-items: flex-start;
  justify-content: space-between;
}

.article {
  padding: 0 55px;
  padding-top: 5vh;
  max-width: 65%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.section {
  display: flex;
  min-height: auto;
  flex-direction: column;
  padding: 0 10px;
}

.section h2 {
  font-size: 30px;
  margin: 10px 0;
}

.section p {
  font-size: 22px;
  color: #111;
}

.section a {
  text-decoration: none;
  color: mediumblue;
}

.section a:hover {
  color: crimson;
}

.veggie-row {
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  margin-bottom: 20px;
  justify-content: space-between;
}

.veggie {
  max-width: 18%;
}

.aside {
  width: 420px;
  margin: 7vh auto;
}

table {
  box-shadow: 3px 3px 7px #111;
  border-collapse: collapse;
  background-color: #fff;
  text-align: center;
  margin: auto;
}

tr,
th,
td {
  border: solid 1px #111;
  padding: 10px 20px;
  text-align: left;
  font-size: 18px;
}

th {
  background-color: lemonchiffon;
  letter-spacing: 1px;
  text-align: center;
  font-size: 18px;
}

td a {
  text-decoration: none;
  color: mediumblue;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}

td a:hover {
  color: crimson;
}

td img {
  padding: 5px;
  margin: 0;
  width: 100px;
}

.veggie {
  max-width: 18%;
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border: none;
  padding: 0;
}

.narrow {
  width: 50px;
}

.footer {
  background-color: rgb(114, 144, 181);
  text-shadow: 2px 2px 5px #111;
  border-bottom: 1px solid #111;
  border-top: 1px solid #111;
  height: 70px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.footer h3 {
  text-shadow: 2px 2px 5px #111;
  letter-spacing: 2.5px;
  margin-left: 45px;
  font-weight: 700;
  text-align: left;
  color: yellow;
  font-size: 22px;
  width: 350px;
  padding: 0;
}

@media (max-width: 1600px) { 
  .article {
    max-width: 55%;
  }
}

@media (max-width: 1250px) { 
  .main {
    flex-direction: column;
  }
  .article {
    max-width: 95%;
  }
}

@media (max-width: 425px) {
  tr, th, td, td a {
    font-size: 15px;
  }
  td img {
    width: 80px;
  }
}

@media (max-width: 375px) {
  .nav ul {
    margin-left: 30px;
  }
  .aside {
    width: 100%;
  } 
  tr, th, td, td a {
    font-size: 15px;
  }
  td img {
    width: 80px;
  }
  .footer h3 {
    font-size: 17px;
    margin-left: 50px;
  }
}

@media (max-width: 320px) {
  .nav ul {
    margin-left: 3px;
  }
  .aside {
    width: 100%;
  } 
  tr, th, td {
    padding: 5px 10px;
  }
  .footer h3 {
    font-size: 17px;
    margin-left: 20px;
  }
}