:root {
  --mobile-sections-width: 80vw;
}

span {
  border-style: none;
  text-decoration: underline;
}

#content {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: 753px 466.78px 580px 420px 400px auto;
  color: white;
}

.section div h2 {
  margin-top: 40px;
}

.button-link {
  height: 46px;
  background-color: white;
  color: rgb(236, 27, 46);
  border-style: none;
  border-radius: 5px;
  font-size: 20px;
  /* text-decoration: underline; */
  /* padding: 20px; */
}

.button-link:hover {
  cursor: pointer;
}

.section {
  background-position: center;
  width: 100%;
}

/* h1 span {
  color: white;
}

h1 span.first-third {
  color: rgb(0, 140, 69);
}

h1 span.second-third {
  color: rgb(244, 249, 255);
}

h1 span.third-third {
  color: rgba(236, 27, 46, 1);
}

h1:hover span.first-third {
  text-shadow: 2px 0 0 white, 0 -2px 0 white, 0 2px 0 white, -2px 0 0 white;
}

h1:hover span.second-third {
  text-shadow: 3px 0 0 #395b89, 0 -3px 0 #395b89, 0 3px 0 #395b89, -3px 0 0 #395b89;
}

h1:hover span.third-third {
  text-shadow: 2px 0 0 white, 0 -2px 0 white, 0 2px 0 white, -2px 0 0 white;
} */

#section-1 {
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/website-homepage-ss.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  width: 100%;
}

#header-container {
  position: absolute;
  /* display: flex;
  justify-content: center; */
  width: 100%;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#landing-header {
  opacity: 1;
  /* -webkit-transition: opacity 2s ease-in;
  -moz-transition: opacity 2s ease-in;
  -ms-transition: opacity 2s ease-in;
  -o-transition: opacity 2s ease-in;
  transition: opacity 2s ease-in; */

  font-family: 'MarketFresh', cursive;
  text-decoration: underline;
  font-size: 93px;
  color: white;
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 0;

  line-height: 1.1;
}

.landing-header {
  color: white;
}

#landing-header:hover {
  color: rgb(236, 27, 46);
}

.show-header {
  opacity: .5;
}

/* #content span:hover {
  text-shadow: 2px 0 0 #395b89, 0 -2px 0 #395b89, 0 2px 0 #395b89, -2px 0 0 #395b89;
} */

.second-third {
  text-shadow: 1.5px 0 0 #395b89, 0 -1.5px 0 #395b89, 0 1.5px 0 #395b89, -1.5px 0 0 #395b89;
  /* border-bottom: #FFFFFF;
  text-decoration-color: white;
  border-style: solid; */
}

#section-1 button {
  display: block;
  /* position: absolute; */
  font-family: 'Quicksand', sans-serif;
  font-size: 20px;
  font-weight: 500;
  width: 100%;
  margin: 0 auto;
  margin-top: 1rem;
  /* padding: 0; */
  /* top: 55%;
  left: 50%;
  transform: translate(-50%, -50%); */
  background-color: #395b89;
  color: white;
  width: 204px;
  height: 50px;
  border-color: white;
  border-radius: 3px;
}

/* #content span:hover {
  color: rgb(236, 27, 46);
  cursor: pointer;
} */

#section-1 button:hover {
  /* border-color: rgb(236, 27, 46); */
  cursor: pointer;
}

.content-container {
  width: 1080px;
}

#section-2 {
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/green-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

#section-2-content-container {
  display: grid;
  grid-template-columns: 380px 700px;
  margin: 0 auto;
}

#section-2 h2 {
  font-size: 42px;
}

#section-2 p {
  font-size: 21.3px;
}

#section-2 img {
  /* height: 470px; */
  width: 700.19px;
}

#section-3 {
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/WhatsAvailable-cranberries.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

#section-3-content-container {
  margin: 0 auto;
  margin-top: 160px;
}

#section-3-content-container h2 {
  text-align: center;
  font-size: 60px;
  margin-bottom: 20px;
}

#section-3-text-container {
  display: flex;
  column-gap: 30px;
}

#section-3-text-container p {
  font-size: 21.4px;
  max-width: 710px;
}

#section-3-text-container button {
  margin-top: 35px;
  width: 139px;
  height: 46px;
}

.section-3-button-container {
  display:flex;
  justify-content:right;
}

#section-4 {
  width: 100%;
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/red-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

#section-4-content-container {
  display: grid;
  grid-template-columns: 630px 450px;
  margin: 0 auto;
}

#section-4-content-container img {
  object-fit: cover;
  width: 100%;
  height: 420px;
}

#section-4-text-container {
  margin-left: 40px;
}

/* wrapping things in a tags made my life tricky for this can be cleaner warning for when this is an admin tool */
#section-4-text-container h1 {
  text-decoration: none !important;
  /* font-size: ; */
}

#section-4-text-container a {
  text-decoration: none !important;
  /* font-size: ; */
}

#section-5-text-container h1 {
  text-decoration: none !important;
  /* font-size: ; */
}

#section-5-text-container a {
  text-decoration: none !important;
  /* font-size: ; */
}

#section-5 {
  width: 100%;
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/dark-green-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

#section-5-content-container {
  display: grid;
  grid-template-columns: 380px 700px;
  margin: 0 auto;
}

#section-6 {
  background-image: url("http://localhost:50264/Images/JerseyFresh/landing/blue-banner.jpg");
  background-repeat: no-repeat;
  background-size: cover;
}

#section-6-content-container {
  display: grid;
  margin: 0 auto;
  justify-content: center;
}

#section-6-flex-container {
  display: flex;
  justify-content: center;
  column-gap: 100px;
}

.section-6-image-link {
  width: 320px;
}

#section-6-image-link-container {
  display: grid;
  grid-template-columns: 320px 320px 320px;
  grid-template-rows: auto auto;
  column-gap: 60px;
  row-gap: 30px;
}

.section-6-image-link img {
  width: 320px;
  height: 213px;
}

.section-6-image-link p {
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

#section-6 h2 {
  font-size: 36px;
}

/* tablet, change content container widths and img widths to be based on view width*/
@media only screen and (max-width: 1210px) {

  #content {
      grid-template-rows: 753px auto auto auto auto auto;
  }

  .content-container {
      width: 80vw;
  }

  #section-2 img {
      width: 47vw;
  }

  #section-3-text-container button {
      margin-bottom: 30px;
  }

  #section-3-content-container {
    margin-top: 20px;
  }

  #section-4-content-container img {
      width: 47vw;
  }

  #section-4-content-container {
      grid-template-columns: auto 450px;
  }

  #section-5 img {
      width: 47vw;
  }

  .section-6-image-link img {
      width: 254.41px;
      height: 169.33px;
  }

  #section-6-image-link-container {
      display: grid;
      grid-template-columns: 254.41px 254.41px 254.41px;
      grid-template-rows: auto auto;
      column-gap: 40px;
  }

  .section-6-image-link {
    width: 254.41px;
  }
}

/* tablet, fix my absolutely positioned button*/
@media only screen and (max-width: 1006px) {
  #section-1 button {
      top: 63%;
  }
}

/* make all the sections single column*/
@media only screen and (max-width: 980px) {
  #section-2-content-container {
      grid-template-columns: auto;
      margin: 0 auto;
  }

  #section-2 img {
      /* height: 216.53px; */
      width: 100%;
      margin-bottom: 30px;
  }

  #section-2 button {
      margin-bottom: 16px;
  }

  #section-2 h2 {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  #section-3-content-container h2 {
      font-size: 50px;
      margin-top: 20px;
      margin-bottom: 20px;
  }

  #section-3-text-container {
    display: block;
  }

  .section-3-button-container {
    justify-content:left;
  }
  
  #section-3 button {
    margin-top: 0px;
    margin-bottom: 30px;
  }

  #section-4 {
      width: 100%;
  }

  #section-4-content-container {
      grid-template-columns: auto;
      margin: 0 auto;
  }

  #section-4-content-container img {
      width: 100%;
      margin-top: 30px;
  }

  #section-4-text-container {
      margin-left: 0px;
  }

  #section-4 button {
      margin-bottom: 30px;
  }

  #section-5 {
      width: 100%;
  }

  #section-5-content-container {
      grid-template-columns: auto;
  }

  #section-5 img {
      width: 100%;
      margin-top: 16px;
      margin-bottom: 30px;
  }

  #section-6-image-link-container {
      display: grid;
      grid-template-columns: auto;
      grid-template-rows: none;
      column-gap: 0px;
      margin: 0 auto;
  }

  #section-6-flex-container {
    display: block;
    margin: 0 auto;
  }

  #section-6-flex-container img {
    display: block;
    margin: 0 auto;
  }

  #section-6-image-link-container img {
      display: block;
      margin: 0 auto;
  }

  .section-6-image-link {
    width: 350px;
  }

  .section-6-image-link img {
      width: 314.39px;
      height: 209.27px;

  }

  .section-6-image-link p {
      max-width: 350px;
  }

  #section-6 h2 {
      font-size: 36px;
  }

  #section-6 p {
      text-align: center;
      margin-top: 8px;
  }
}

/* phone break, use more screen and make landing pic small*/
@media only screen and (max-width: 768px) {
  #content {
      display: grid;
      grid-template-columns: auto;
      grid-template-rows: 466.6px auto auto auto auto auto;
      color: white;
  }

  .content-container {
      width: 90vw;
  }

  #section-1 h1 {
      font-size: 44px;
      /* width: 380px; */
  }

  #section-1 button {
    font-size: 16px;
    height: 40px;
    width: 180px;
  }

}