
    *{
        font-size: 16px;
    }

    body{
        background-color:  hsl(30, 38%, 92%);
        font-size: 1rem;
        display: grid; /**establishes a grid layout**/
        height: 100vh;
        place-items: center;/** places the container in the center of the page**/
        margin: 0;
    }

    main{
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        background-color: white;
        box-sizing: border-box;
        width: 90%;
        height: 85vh;
        border-radius: 10px;
        overflow: hidden;
    }

    

    img{
        object-fit: cover;/** the image fills the container**/
        height: 50%;
        filter: brightness(90%);
    }

    section{
        height: 60%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: 0.5em 1.5em 0.5em 1.5em;
    }

    .header{
        font-family: "Montserrat";
        font-size: 1rem;
        margin: 0.8em 0;
        text-transform: uppercase;
        letter-spacing: 5px;
    }

    h1{
        font-family: 'Fraunces', serif;
        font-style: normal;
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        color: hsl(212, 21%, 14%); /**black**/
    }

    p{
        font-family: Montserrat;
        font-size: 0.9em;
        font-weight: 500;
        line-height: 1.4em;
        margin-top: 0;
        margin-bottom: 0;
        /**margin-top: 1.4em;**/
        padding: 0;
        color: hsl(228, 12%, 48%); /**grey**/
    }

    .price{
        display:  flex;
        flex-direction: row;
        align-items: center;
        padding-top: 0.1em;
        margin: 0;
    }

    #sale-price{
        color:hsl(158, 36%, 37%); /**light green**/
        font-size: 2.5em;
        font-weight: 500;
        font-family: Fraunces, serif;
        margin: 0 0.8em 0 0 ;
        padding: 0;
        text-align: left;
    }

    #orig-price{
        text-decoration: line-through;
        font-size: 0.75em;
        /**the default font weight of this color is 500**/
    }


    .button{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background-color:hsl(158, 36%, 37%); /**the default font weight is 700**/
        margin-bottom: 12.8px;
        padding: 0;
        border-radius: 8px;
        height: 40px;
    }

    .purchase{
        color: white;
        font-size: 0.7em;
        font-weight: 700;
    }

    .cart{
        width: 0.8em;
        margin-right: 0.8em;
        object-fit: contain;
        scale: 1.2;
    }




@media screen and (min-width: 1200px) {
    
body{
        background-color:  hsl(30, 38%, 92%);
        font-size: 1rem;
        display: grid; /**establishes a grid layout**/
        height: 100vh;
        place-items: center;/** places the container in the center of the page**/
        margin: 0;
    }

    main{
        display: flex;
        flex-direction: row;
        box-sizing: border-box;
        background-color: white;
        box-sizing: border-box;
        width: 600px;
        height: 450px;
        border-radius: 10px;
        overflow: hidden;
    }

    img{
        object-fit: cover;/** the image fills the container**/
        width: 50%;
        height: auto;
        filter: brightness(90%);
    }

    section{
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin: 0.5em 1.5em 0.5em 1.5em;
    }

}

