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

}
.card{
    width: 45%;
    background-color:hsl(0, 0%, 100%);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin-top: 5%;

}

 img{
    width: 50%;
    height:auto;
    border-radius: 10px;
    object-fit: cover;
}

.text{
    width: 40%;
    font-size: 20px;
    color: hsl(0, 0%, 20%);
    flex-direction: column;
    position: relative;
    display: flex;
    align-items: flex-start;
    
}
.head{
    font-family: "montserrat", sans-serif;
    font-size: 20px;
    font-weight: 500;
    color:hsl(228, 12%, 48%);
    font-variant: all-petite-caps;
    letter-spacing: 6px;
  
}
h1{
  width: 100%;
    text-align: left;
    font-family:"fraunces", sans-serif;
    font-weight: 700;
    color: hsl(212, 21%, 14%);
   font-size: 190%;
   margin:unset;
    
}

.rel{
    font-family: "montserrat", sans-serif;
    color:hsl(228, 12%, 48%);
    font-size: 14px;
    font-weight: 500  ;
    width: 80%;
    line-height:170%;
    line-break: auto;
    padding-bottom: 5%;
    
}

.price{
    font-family: "fraunces", sans-serif;
    font-weight: 700;
    color: hsl(158, 36%, 37%);
    font-size: 30px;
    margin: unset;
    
    
    
}
.dis{
    font-family: "montserrat", sans-serif;
    color: hsl(228, 12%, 48%);
    font-size: 14px;
    font-weight: 700;
    text-decoration: line-through;
    margin: unset;
     margin-left: 20px;
    
    
}
.number {
    display:inline;
     justify-content: space-between;
    align-items: center;
    display: flex ;
}
 
button {
  
    background-color: hsl(158, 36%, 37%);
    color: hsl(0, 0%, 100%);
    font-family: "montserrat", sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-top: 20px ;
    margin-bottom: 20px;
    width: 80%;
    
}
button:hover {
    background-color: hsl(158, 36%, 47%);
}

@media (max-width: 1440px){
  body{
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: auto; 
    padding: 20px;
   } 
  .card {
      width: 80%;
      flex-direction: column; 
      align-items: center; 
    }
  
    img {
      width: 100%; 
      margin-bottom: 20px; 
    }
  
    .text {
      width: 100%; 
      text-align: center;
      float: none;
    }
    h1{
      font-size: 150%; 
      text-align: left; 
    }
    .rel {
      width: 90%; 
      text-align: left; 
    }   
    .number {
      flex-direction: row; 
      align-items: left; 
      display: block;
      width: 100%;
    }
}

@media (max-width: 768px) { 
   body{
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    height: auto; 
    padding: 20px;
   } 
  .card {
      flex-direction: column; 
      align-items: center; 
    }
  
    img {
      width: 100%; 
      margin-bottom: 20px; 
    }
  
    .text {
      width: 100%; 
      text-align: center;
      float: none;
    }
    h1{
      font-size: 120%; 
      text-align: left; 
    }
    .rel {
      width: 90%; 
      text-align: left; 
    }   
    .number {
      flex-direction: row; 
      align-items: left; 
      display: inline-block;
      width: 100%;
      position: relative;

    }
  }