@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700&family=Montserrat:wght@500;700&display=swap');

body{
    background-color: hsl(30, 38%, 92%);
}

h1{
    font-family: 'Fraunces';
}

.category{
    font-size: 13px;
    letter-spacing: 4px;
}

h1:nth-child(4){
    color: hsl(158, 36%, 37%);
}

p{
    color:hsl(228, 12%, 48%);
    font-family: 'Montserrat';
}

button{
    color: hsl(0, 0%, 100%);
    background-color: hsl(158, 36%, 37%);
    padding: 15px 70px;
    width: 100%;
    border-radius: 8px;
    border: none;
    font-family: 'Montserrat';
    margin-top: 30px;
}

button:hover{
    cursor: pointer;
    background-color: hsl(158, 36%, 25%);
}
button:active{
    background-color: hsl(158, 36%, 25%);
}

.container{
    background-color: hsl(0, 0%, 100%);
    height: 450px;
    display: grid;
    grid-template-columns: 300px 300px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
}

.content{
    padding: 20px;
}

.content > h1:nth-child(4){
    display: inline;
    margin-right: 10px;
}

.content > p:nth-child(5){
    text-decoration: line-through;
    display: inline;
}

.image > .img1{
    width: 300px;
    height: 450px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
 @media screen and (min-width: 400px){
    .image > .img2{
        display: none;
    }
 }

 /* responsive */
 @media screen and (max-width: 400px){
    .image > .img1{
        display: none;
    }
    .image > .img2{
        width: 350px;
        aspect-ratio: 557/390;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }
    .container{
        width: 350px;
        height: 600px;
        grid-template-rows: 200px 300px;
        grid-template-columns: none;
    }
    .content > button{
        width: 100%;
        height: 50px;
        margin-top: 10px;
    }
    .category{
        margin-top: 50px;
        margin-bottom: -10px;
    }
 }