/* HEADER STYLES */
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display&display=swap');
@import url('https://fonts.googleapis.com/css?family=Dancing+Script&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lora&display=swap');
#header {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid #abadaf;
  background: white;
  display: flex;
  padding: 0px 20% 0 20%;
  justify-content: space-between;
  align-items: flex-end;
  box-sizing: border-box;
  font-size: 20px;
  position: fixed;
  z-index: 100;
  font-family: 'Montserrat', sans-serif;
}

#header #logo {
  font-family: 'Dancing Script', cursive;
  font-size: 37px;
  margin: auto 0;
  cursor: pointer;
}

#bubbles {
  width: 60%
}

#footer {
  width: 100%;
  height: 80px;
  border-bottom: 1px solid grey;
  background: #f2f2f2;
  display: flex;
  padding: 0px 20% 10px 20%;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

#footer a {
  padding: 0px 10px;
}

.footer-link {
  padding: 0 .25rem;
  color: black;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
  color: black;
}

#spacer {
  width: 100%;
  height: 80px;
}

#submenu {
  display: none;
}

#navbar {
  width: 45%;
  display: flex;
  padding: 0 20px;
  justify-content: space-around;
  height: 100%;
}

#navbar a {
  text-decoration: none;
  color: black;
}

#navbar a:visited {
  text-decoration: none;
  color: black;
}

#navbar .navbar-tab {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#navbar .navbar-tab:hover {
  border-bottom: 2px solid #abadaf;
}

#hamburger {
  width: 20px;
  height: 14px;
  padding-right: 10px;
  position: relative;
  display: none;
  align-items: center;
  cursor: pointer;
}

.open #bar-one {
  transition: transform 400ms, top 400ms;
  transform: rotate(45deg);
  top: 50%;
}

.open #bar-two {
  opacity: 0;
}

.open #bar-three {
  transition: transform 400ms, top 400ms;
  transform: rotate(-45deg);
  top: 50%;
}

#bar-one, #bar-three {
  transition: transform 400ms, top 400ms;
}

#bar-two {
  top: 50%;
  transition: opacity 400ms;
}

#hamburger div {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #555555;
  position: absolute;
}

#bar-one {
  top: 0px;
}

#bar-three {
  top: 100%;
}

#overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: white;
  opacity: .9;
  display: none;
  z-index: -2;
}

#overlay.open {
  display: block;
  z-index: 2;
}

#submenu {
  height: calc(100vh - 80px);
  width: 200px;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  right: -200px;
  top: 80px;
  transition: left 400ms;
  background: white;
  text-align: center;
  z-index: 3;
  font-size: 18px;
}

#submenu.open {
  right: 0;
  transition: right 400ms;
}

#submenu div {
  padding: 5px 0px;
  border-bottom: 2px solid #ddd;
  width: 100%;
  cursor: pointer;
}

/* END HEADER STYLES*/

/* FARMERS MARKET STYLES */

#farmers-market {
  position: relative;
  display: flex;
}

#farmers-market #top-logo {
  width: 400px;
  position: absolute;
  top: 30%;
  left: 10%;
}

#farmers-market #triangle {
  position: absolute;
  top: 0;
  right: 40%;
  border-top: 300px solid transparent;
  border-bottom: 300px solid transparent;
  border-right: 100px solid white;
}

#farmers-market-info {
  background: white;
  z-index: 3;
  height: 600px;
  width: 490px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  bottom: 40px;
  margin-right: 20px;
}

#farmers-market-info h2, #farmers-market-info h3, #farmers-market-info p {
  font-family: 'Lora';
  margin: 10px 0px;
}

#farmers-market-info p {
  font-size: 18px;
}

/* END FARMERS MARKET STYLES */

/* CONTACT US STYLES */

#contact-us {
  width: 80%;
  margin: auto;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #f0f0f0;
}

#contact-us-wrapper:before {
  display: block;
  background: #464e54;
  z-index: -3;
  content: "";
  height: 80px;
  width: 100%;
  margin-top: -80px;
  pointer-events: none;
}

#contact-us-wrapper {
  background: #42a0d9;
}

#business-card {
  display: flex;
  padding: 8px;
  position: relative;
  right: 50px;
}

#make-a-purchase {
  font-family: 'Montserrat';
}

#make-a-purchase h2 {
  font-family: 'Dancing Script';
}

.purchase-social-media {
  color: white;
  text-decoration: underline;
}

.purchase-social-media:hover {
  color: #551a8b;
}

/* END CONTACT US STYLES */

/* PHOTO GALLERY STYLES */

#photo-gallery {
  width: 95%;
  margin: 50px auto;
}

#photo-gallery-wrapper:before {
  display: block;
  background: white;
  content: "";
  height: 80px;
  margin-top: -80px;
  width: 100%;
  pointer-events: none;
}

#photo-gallery-wrapper {
  background: #464e54;
  z-index: 4;
  display: block;
}

#big-photo {
  height: 600px;
  margin: 0 auto 10px auto;
  display: flex;
}

#big-photo img {
  max-height: 100%;
  max-width: 100%;
  margin: auto 0;
}

#big-photo-wrapper {
  color: white;
  font-size: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
}

#small-photos {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: auto;
}

#photo-selection-bar {
  width: 50%;
  margin: auto;
  display: flex;
  justify-content: space-around;
  margin: auto;
}

#photo-selection-bar div {
  height: 5px;
  width: 5px;
  border-radius: 100%;
  background: #959a9e;
  cursor: pointer;
}

#photo-selection-bar div.selected {
  background: #eaeaea;
}

#next-photo-button, #prev-photo-button {
  height: 50px;
  width: 50px;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #596065;
  cursor: pointer;
}

#next-photo-button:hover, #prev-photo-button:hover {
  background: #62686d;
}

#small-photos img {
  opacity: .7;
  cursor: pointer;
}

#small-photos img.selected {
  opacity: 1;
}

/* END PHOTO GALLERY STYLES */

body {
  margin: 0px;
}

body.noscroll {
  overflow: hidden;
}

#content {
  width: 45%;
  margin: auto;
  position: relative;
  z-index: 1;
}

/* tablet styles */
@media only screen and (max-width: 1200px) {
  #header #logo {
    font-size: 30px;
  }

  #header .navbar-tab {
    font-size: 18px;
  }
}

@media only screen and (max-width: 1100px) {
  #header {
    align-items: center;
  }

  #content {
    width: 80%;
  }

  #navbar {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #farmers-market #top-logo {
    margin: 0 auto;
  }

  #contact-us {
    flex-direction: column;
    align-items: center;
  }

  #make-a-purchase h2 {
    text-align: center;
  }

  #business-card {
    margin: 30px auto;
    right: 0;
  }

  #farmers-market-info {
    box-sizing: border-box;
    width: 100%;
    padding: 0 20px;
  }

  #farmers-market-info p {
    font-size: 15px;
  }

  #footer {
    flex-direction: column;
    padding: 0px;
    justify-content: space-around;
  }
}

@media only screen and (max-width: 900px) {
  #farmers-market {
    flex-direction: column;
  }

  #farmers-market #top-logo {
    top: 10%;
    left: 28%;
    
  } 

  #farmers-market #triangle {
    display: none;
  }

  #bubbles {
    width: 100%;
  }
}

@media only screen and (max-width: 800px) {
  #farmers-market #top-logo {
    top: 10%;
    left: 25%;
  }
}

/* mobile styles */
@media only screen and (max-width: 600px) {
  #content {
    width: 90%;
  }

  #header #logo {
    font-size: 26px;
  }

  #big-photo {
    width: 100%;
  }

  #farmers-market {
    flex-direction: column;
  }

  #farmers-market img {
    width: 100%;
  }

  #contact-us {
    flex-direction: column;
  }

  #farmers-market #top-logo {
    width: 90%;
    margin: 0 auto;
    left: 5%;
  }

  #business-card img {
   width: 90%;
   margin: 0 auto;
   left: 5%;
  }
}

@media only screen and (max-width: 600px) {
  #header #logo {
    font-size: 20px;
  }
}