/* The boxes will be all inside the parent container */
html {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
}

/* All elements will inherit that root level sizing (html) */
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  background-color: hsl(30, 38%, 92%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

img {
  max-width: 100%;
  max-height: 100%;
  border: solid red 0px;
  overflow: hidden;
  display: inline;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

#card {
  border-radius: 10px;
  width: 85%;
  padding: 0px;
  background-color: white;
  margin-right: 0;
}

h1 {
  font-family: 'Fraunces';
  margin-left: 10px;
  margin-top: 5px;
}

#product {
  letter-spacing: 5px;
  font-size: 14px;
  text-align: left;
  margin-left: 10px;
  margin-bottom: 0px;
}

#description {
  margin-bottom: 10px;
  margin-left: 10px;
  margin-top: 5px;
}

#description, #product {
  opacity: 0.6;
}

#discounted-price, #original-price {
  display: inline-block;
}

#discounted-price {
  font-family: 'Fraunces';
  color: hsl(158, 36%, 37%);
  font-size: 30px;
  font-weight: 700;
  margin-top: 0.8rem;
  margin-left: 1rem;
  
}

#original-price {
  font-size: 0.8rem;
  opacity: 0.7;
  text-decoration: line-through;
  position: relative;
  top: -5px;
  margin-left: 15px;
}

button {
  float: top;
  color: white;
  font-weight: 700;
  background-color: hsl(158, 36%, 37%);
  width: 90%;
  height: 40px;
  border: none;
  border-radius: 5px;
  margin-bottom: 20px;
  margin-left: 10px;
}

button:hover {
  background-color: #346e58;
  cursor: pointer
}

.button-icon {
  position: relative;
  top: 1px;
}

/* “If [device width] is greater than or equal to 375px, then do {…}” */
@media (min-width: 375px) {
  #card {
    width:600px;
    height:220px;
    padding:5px;
    background-color: hsl(30, 38%, 92%);
  }
  
  #product, h1, #description {
    margin: 20px;
  }
  
  img {
    border-top-right-radius: 0px;
    border-bottom-left-radius: 10px;
    height: 400px;
  }
  
  .image-portion {
    position: relative;
    top: 70px;
    padding-top: 70px;
    margin: 0;
    width:300px;
    height: 490px;
  }
  
  
  .content-portion {
    width:300px;
    height:400px;
    margin-top:-350px;
    margin-left: 285px;
    padding: 2px;
    padding-left: 20px;
    background-color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}
