/* Citation: everything was learned from lab unless there is separate citation */

body {
  margin: 1.25rem;
  background-color: #f7fbf5;
  font-family: 'Nunito Sans', sans-serif;
}

img:hover, img:focus { /*Citation: from lab*/
  border: 0.2rem solid #e3d1d1;
}

img { /*Citation: from lab*/
  max-width: 100%; 
  border: 0.2rem solid rgb(99, 80, 80);
  height: auto;
  border-radius: 1rem;
}

.homepage-img {
  margin: auto;
}

#homepage-img-text {
  color: white;
  position: absolute;
  top: 20%;
  left: 10%;
}

#about-img-text {
  color: white;
  position: absolute;
  top: 40%;
  font-size: 2.2rem;
  max-width: 70%;
  padding: 0 10%;
}

#about-img-text-name{
  color: white;
  position: absolute;
  top: 20%;
  font-size: 2.2rem;
  max-width: 70%;
  padding: 0 10%;
}

#about-text {
  margin: 1rem 25% 5rem 25%;
  padding: auto;
  font-size: 1.1rem;
  line-height: 2rem;
  font-family: 'Nunito Sans', sans-serif;
}

@media (min-width: 600px) and (max-width: 900px) {
  #about-text {margin: 1rem 15% 5rem 15%}
  #about-img-text {font-size: 2rem}
}

@media (min-width: 360px) and (max-width: 600px) {
  #about-text {margin: 1rem 10% 5rem 10%}
}

.homepage-button {
  position: absolute;
  top: 75%;
  left: 10%;
}

.text { /*Citation: https://learn.shayhowe.com/html-css/building-forms/*/
  border: 1px solid #393333;
   box-shadow: inset 0 1px 1px lightgrey;
  color: lightgrey;
  padding: 8px;
  margin-top: 4px;
  width: 30%;
}

.element {
  margin: 3rem 0;
  padding: 1rem;
  border-top-width: 0.1rem;
  border-top-style: solid;
  border-top-color: black;
  border-bottom-width: 0.1rem;
  border-bottom-style: solid;
  border-bottom-color: black;
  
}

.main-heading {
  font-weight: bold;
  font-size: 36px;
  color: #393433;
  font-family: 'DM Serif Display', serif;
}

h1 {
  font-weight: bold;
  font-size: 60px;
  color: #393433;
  font-family: 'DM Serif Display', serif;
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: #393333;
}

h3 {
  font-size: 24px;
}

h4 {
  margin-bottom: 0.25rem;
  font-size: 20px;
}

.content {
  padding-bottom: 20px;
  padding-top: 30px;
}

p {
  margin-top: 0;
  font-family: 'Nunito Sans', sans-serif;
}

/*anchored in text links*/
a {
  color: #FFc1ad; 
  text-decoration: none;
  padding-right: 0.5em;
}

a:hover,
a:focus {
  color: #ff8888; 
  text-decoration: underline;
}

a:visited {
  color: #8F3B56;
}

code {
  background-color: #EEE;
  padding: 0.5rem;
  display: block;
}

input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 0.1rem;
  border-style: none;
  margin-bottom: 0.75rem;
}

input[type=submit] { /* Citation: https://html.form.guide/web-form-widget/css3-button-hover-effects/ */
  background-color: #393433;
  width: 100%;
  color: #ffffff;
  padding: 1em 2.5em;
  border: none;
}

input[type=submit]:hover {
  background-color: #ffffff;
  width: 100%;
  color: #393433;
  border: 0.1rem solid #393333;
}

a.button-nav {
  display: inline-block;
  padding: 0.6em 2.4em; 
  background-color: #e2ecdf;
  color: #393433;
  border-radius: 0.25em;
  text-decoration: none;
  -webkit-transition: background-color 0.5s ease-out;
  transition: background-color 0.5s ease-out;
  font-size: 16px;
}

a.button-nav:hover, a.button-nav:focus {
  background-color: #c9e4bf;
}

.counter-button:hover {
  border: 0.1rem solid #393333;
}

.payment-form-box {
  display: flex;
  flex-wrap: wrap;
}

/* forms */

form {
  min-width: 200px;
  max-width: 500px;
  margin: 1rem auto;
  padding: 2rem;
  background-color: #e2ecdf;
  border-radius: 1rem;
}

form label {
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  font-size: 1rem;
}

form input[type=text], input[type=email], textarea{
  width: 100%;
  box-sizing: border-box; /* border width added inside parent container*/
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin: 0.5rem auto;
  resize: vertical;
}

form textarea {
  height: 150px;
}

form input[type=submit] {
  display: block;
  margin: 1rem auto 0;
}

.column { /* Citation: grid display from https://stackoverflow.com/questions/71177735/splitting-form-into-two-columns */
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #e2ecdf;
  display: inline-block;
  font-size: 1rem;
  padding: 1rem 1rem;
}

.payment-label-box {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: 1fr 1fr;  
  padding: 0.75rem;
}

/*Product page Styles*/
.product-title{
  font-weight: 500;
  font-size: 1.5rem;
  padding-bottom: 1rem;
}

.product-price{
  font-weight: 50;
  font-size: 1rem;
}

.product{
  margin-top: 2rem;
}

.center-heading{
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
  font-size: 40px;
}

.footer {
  background-color: #E2ECDF;
  padding: 40px;
  text-align: center;
  border-radius: 1rem;
  font-weight: bold;
  margin-top: 40px;
}

.footer-nav{
  display: flex;
	flex-direction: column;
  font-size: 18px;
}

.footer-nav a {
  padding: 5px;
}
.footer .style-guide {
  font-size: 16px;
}
.footer .social-media img {
  width: 45px;
  height: 45px;
  border: 0px;
}

.contact p {
  margin: 5px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
}

@media (max-width: 1000px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .flex-child {
    flex-basis: 100%; 
    margin-bottom: 10px;
  }

  .footer-nav a {
    padding: 2px;
  }
}


.about-section{
  max-width: 50%;
  text-align: center;
  align-content: center;
}

.home-image{
  position: relative;
}

.home-image img{
  border: 0;
  width: 100%;
  align-content: center;
  position: relative;
  height: 100%;
}

/* 
------STYLE GUIDE------
*/

/* Colors */

.color-guide-box {
  flex-wrap: wrap;
  width: 100%;

}

  .container {
    margin: 1rem 1rem;
    width: 15rem;
  }

  .color-circle {
    width: 15rem;
    height: 15rem;
    border-radius: 3rem;
    margin: 0 10px;
  }

  .color-circle.c1 {
    background-color: #e2ecdf;
  }

  .color-circle.c2 {
    background-color: #393333;
  }

  .color-circle.c3 {
    background-color: #e3d1d1;
  }

  .color-circle.c4 {
    background-color: #C9E4BF;
  }

  .color-guide-box h4 {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
  }

  .color-guide-box p {
    font-size: 1rem;
    text-align: center;
  }

.cart-wrapper {
  border: 0;
  position: absolute;
  top: 25px;
  right: 100px;
}

.cart-wrapper:hover .cart-icon {
  border: 0;
  transform: scale(1.1);
  transition: transform 0.1s ease-in-out;
}

.cart-icon {
  border: 0;
  display: inline-block;
}

.cart-icon img {
  border: 0;
  border-radius: 0;
  width: 45px;
  height: 45px;
}

@media (max-width: 600px) {
  .cart-wrapper {
    position: absolute;
    top: 10px;
    right: 15px;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 20px;
    align-content: center;
    align-items: center;
    justify-content: center;
  }

  .cart-icon img {
    border: 0;
    border-radius: 0;
    width: 35px;
    height: 35px;
  }

  .home-image{
    position: relative;
  }

  #homepage-img-text {
    font-size: 1.5rem;
    top: 5%;
    left: 30%;
    text-align: center;
  }

  .homepage-button {
    position: absolute;
    top: 55%;
    left: 25%;
    scale: 0.6;
  }

  #about-img-text-name{
    font-size: 1.6rem;
    top: -5%;
    left: 25%;
  }


  #about-img-text {
    font-size: 1.3rem;
    left: 10%;
    text-align: center;
    top: 25%;
  }
}


.centered-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.add-to-cart-button {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #393433;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  border: 1px solid #ffffff;
}

.add-to-cart-button:hover {
  background-color: #ffffff;
  color: #393433;
  border: 1px solid #393333;
}

.review {
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 2rem;
  flex-wrap: wrap;
  margin: 2rem;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-title {
  font-size: 18px;
  color: #393433;
  margin: 0;
}

.review-rating {
  font-size: 16px;
  color: #ffd700;
}

.review-description {
  color: #666;
  margin-bottom: 10px;
}

.review-author {
  color: #666;
  font-style: italic;
  font-size: 14px;
  margin-bottom: 0;
}