body {
  font-family: 'Poppins';  
  margin: 0;
  min-height: 265vh;
  display: flex;
  flex-direction: column;
}

h2 { 
  color: rgb(0, 0, 0);
  text-align: center;
  margin-top: 50px;
}

/* .hero img {   
  width: 100%; 
} */

nav {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  width: 100%;
  height: 50%;
  background-image: url('../images/heroimage1.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;    
}

.logo {
  background-image: url(../logos/ekastudio-finallogo.svg);
  width: 50px;
  background-repeat: no-repeat;
  padding-left: 50px;
}

.header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  margin-left: 1rem;
  margin-top: 1rem;
  margin-right: 1rem;
  flex: calc(100% / 3);
}

.ul {
  align-self: center;
}

/* hero image */

.heroimage1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 50px;
}

.menu {
  display: flex;
}

li {
  /* spacing links */
  /* 0 margin on top and bottom, 15px left and right */
  margin: 0 0 0 25px;
  /* remove bullets */
  list-style-type: none;
}

.menu li a {
  color: black;
  font-size: 1.15rem;
  /* remove underline */
  text-decoration: none;
}

.menu li a:hover {
  color: gray;
  /* remove repeating images on smaller images */
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

/* Product details */

/* sunshine maxi dress section */

.maxidress {
  width: 50%;
  height: 50%;
  display: flex;
  justify-content: center;
  margin: 0 30%;
}

.maxidressImg {
  display: flex;
  background-image: url(../images/dress1.jpg);
  background-size: cover;
  background-position: center;
  /* add width and height via flexbox */
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text { 
  display: flex;
  flex-grow: 1;
  flex-shrink: 1;
  flex-direction: column;
  justify-content: center;
}

.addtocart {
  background-color: #875C45; /* Green */
  border: 2px solid rgb(0, 0, 0);
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  border-radius: 7px;
}

.description {
  font-size: 20px;
}

h1 {
  color: rgb(0, 0, 0);
  font-family: 'Poppins', sans-serif;
}

ul {
  display: flex;
  margin: 0 0 0 30px;
}

/* Similar Items */

.gallery {
  width: 100%;
  height: 50%;  
}

.row {
  display: flex;
  width: 100%;
  height: 400px;
  margin-top: 1rem;
  justify-content: center;
}

.thumbnail {
  width: 100%;
  height: 100%;
  padding: 10px;
  width: 22%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  /* background sizing */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#img8 {
  background-image: url(../images/dress2.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: black;
  margin-right: 1rem;
}

#img9 {
  background-image: url(../images/dress3.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: black;
  margin-right: 1rem;
}

#img10 {
  background-image: url(../images/dress4.jpg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  color: black;
  margin-right: 1rem;
}

/* footer */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

footer {
  background-color: #875C45;
  margin-top: 1rem;
}

.footerContainer {
  width: 100%;
  padding: 70px 30px 20px;
}

.socialIcons {
  display: flex;
  justify-content: center;
}

.socialIcons a {
  text-decoration: none;
  padding: 10px;
  background-color: white;
  margin: 10px;
  border-radius: 50%;
}

.socialIcons a i {
  font-size: 2em;
  color: #875C45;
  opacity: 0.9;
}

/* Hover effect on social media icon */
.socialIcons a:hover {
  background-color: #111;
  transition: 0.5s;
}

.socialIcons a:hover i {
  color: white;
  transition: 0.5s;
}

.footerNav {
  margin: 30px 0;
}

.footerNav ul {
  display: flex;
  justify-content: center;
  list-style-type: none;
}

.footerNav ul li a {
  color: white;
  margin: 20px;
  text-decoration: none;
  font-size: 1.3em;
  opacity: 0.7;
  transition: 0.5s;
}

.footerNav ul li a:hover {
  opacity: 1;
}

.footerBottom {
  background-color: #000;
  padding: 20px;
  text-align: center;
}

.footerBottom p {
  color: white;
}

.designer {
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 400;
  margin: 0px 5px;
}

@media (max-width: 700px) {
  .footerNav ul {
    flex-direction: column;
  }
  .footerNav ul li {
    width: 100%;
    text-align: center;
    margin: 10px;
  }
  .socialIcons a {
    padding: 8px;
    margin: 4px;
  }
}

/* MEDIA QUERIES */

/* TABLET */

@media only screen and (max-width: 768px) {
  nav {
    flex-direction: row;
    height: auto;
  }
  
  .menu {
    flex-direction: column;
  }
  
  .maxidress {
    width: 80%;
    margin: 0 10%;
  }
  
  .row {
    flex-direction: column;
    height: auto;
  }
  
  .thumbnail {
    width: 90%;
    margin: 1rem 0;
  }
}

/* MOBILE */

@media only screen and (max-width: 576px) {
  nav {
    flex-direction: column;
    height: auto;
  }

  .menu {
    flex-direction: column;
  }

  .maxidress {
    width: 100%;
    margin: 0;
  }

  .row {
    flex-direction: column;
    height: auto;
  }

  .thumbnail {
    width: 100%;
    margin: 1rem 0;
  }

  .footerContainer {
    padding: 30px 10px;
  }
}
