*, ::before, ::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #FFFFFF;
  font-family: monospace;
}

/*header styling starts here*/
#header {
  width: 100%;
  display: flex;
  align-items: center;
  height: 75px;
  background-color: #Ffd74f;
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
}
#header #web-logo {
  display: flex;
}
#header-img {
  padding-left: 20px;
  width: 60px;
}
#header h1 {
  margin-right: auto;
  font-size: 35px;
  color: #Ffd74f;
  background-color: white;
}
#nav-bar {
  width: 500px;
}
#nav-bar ul{
  display: flex;
  list-style-type: none;
  justify-content: space-evenly;
}
#nav-bar a {
  text-decoration: none;
  color: white; /*change later and add hover config*/
  font-size: 18px;
}
#nav-bar a:hover {
  background-color: white;
  color: #Ffd74f;
}
@media only screen and (max-width: 553px){
  #header-img {
    padding-left: 10px;
    width: 38px;
  }
  #header h1 {
    font-size: 24px;
  }

}

/*introduction page styling starts here*/
#introduction {
  width: 100%;
  height: 600px;
  background-image: url(
    https://publicinterestnetwork.org/wp-content/uploads/2023/10/49112557093_6aa70772d4_o-1-2000x1333.jpg
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom; 
  position: relative;
}
#introduction h2 {
  font-size: 80px;
}
#introduction p{
  padding-top: 12px;
}
#intro-info {
  position: absolute;
  color: white;
  bottom: 30%; 
  left: 50px;
}

/*products styling on smaller screen starts here*/
@media only screen and (max-width: 799px) {
  #products {
    display: grid;
    grid-template-rows: repeat(3, 350);
    width: 320px;
    gap: 20px;
    margin: auto;
    padding: 100px 0;
  }

  /*harvest video styling starts here*/
  #harvest {
    width: 100%; /*this can be revised from being stretched*/
    height: 600px; /*this number was randomly guessed, thus to be adjusted*/
    background-color: #Ffd74f;
    margin: 0;
    display: grid;
    grid-template-rows: 1fr 1fr; /*maybe flex would've been better*/
  }
  #video {
    width: 100%;
    height: 100%;
    grid-row: 2/3;
  }
  #harvest p {
    grid-row: 1/2;
    margin: 32px;
    text-align: left;
    color: white;
    font-family: monospace;
    font-size: 18px;
  }
  span {
    font-size: 60px;
    font-weight: bold;
  }
}

/*products styling on smaller screen starts here*/
@media only screen and (min-width: 800px) {
  #products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 100px 30px;
  }

  /*harvest video styling starts here*/
  #harvest {
    width: 100%; /*this can be revised from being stretched*/
    height: 380px; /*this number was randomly guessed, thus to be adjusted*/
    background-color: #Ffd74f;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr; /*maybe flex would've been better*/
  }
  #video {
    width: 100%;
    height: 100%;
    grid-column: 2/3;
  }
  #harvest p {
    grid-column: 1/2;
    margin: 32px;
    text-align: left;
    color: white;
    font-family: monospace;
    font-size: 18px;
  }
  span {
    font-size: 60px;
    font-weight: bold;
  }
}

.product {
  text-align: center;
  padding: 30px;
  background-color: white;
  color: #Ffd74f;
  border: 5px solid #Ffd74f;
  border-radius: 16px;
  font-family: monospace;
  font-weight: bold;
}
.icon {
  width: 100px;
}
.product p{
  font-size: 20px;
  padding: 16px;
}
.product h3 {
  font-size: 22px;
  padding-bottom: 16px;
}
[type="button"] {
  color: white;
  background-color: #Ffd74f;
  border: 3px solid #Ffd74f;
  border-radius: 3px;
  width: 90px;
  height: 40px;
  font-size: 18px;
  font-family: monospace;
  font-weight: bold;
}
#product-cherry:hover{
  background-color: #Ffd74f;
  color: white;
}
#product-cherry:hover [type="button"] {
   background-color: white;
   color: #Ffd74f;
   border: 3px solid white;
}
#product-cherry > [type="button"]:hover{
   font-size: 22px;
   font-weight: bolder;
}
#product-chestnut:hover{
  background-color: #Ffd74f;
  color: white;
}
#product-chestnut:hover [type="button"] {
   background-color: white;
   color: #Ffd74f;
   border: 3px solid white;
}
#product-chestnut > [type="button"]:hover{
   font-size: 22px;
   font-weight: bolder;
}
#product-black:hover{
  background-color: #Ffd74f;
  color: white;
}
#product-black:hover [type="button"] {
   background-color: white;
   color: #Ffd74f;
   border: 3px solid white;
}
#product-black > [type="button"]:hover{
   font-size: 22px;
   font-weight: bolder;
}


/*sign-up styling starts here*/
#sign-up {
  width: 100%;
  height: 150px;
  text-align: center;
  margin-top: 50px;
  overflow: hidden;
}
#form {
  width: 460px;
  height: 60px;
  display: flex;
  border: 4px solid #Ffd74f;
  border-radius: 30px;
  justify-content: flex-end;
  margin: auto;
}
#email {
  margin-right: auto;
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  padding: 19px;
  width: 351px;
  border: none;
  font-size: 20px;
}
#submit {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  border: none;
  width: 100px;
  background-color: #Ffd74f;
  color: white;
  font-size: 23px;
  font-weight: bold;
}
#sign-up p {
  font-size: 20px;
  color: #Ffd74f;
  font-weight: bold;
}
