@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Roboto+Mono:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Montserrat:wght@200;400;500;600&display=swap');
body{
    background-color: rgb(248, 236, 222);
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

.container{
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 10px;
    background-color: white;
    height: 375px;
    width: 500px;
    transform: translate(-50%, -50%);    
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0px;
}

.container .img{
    border-radius: 10px 0 0 10px;
    background-image: url(desktop.jpg);
    background-repeat:no-repeat;
    background-size: 100% 100%;
    height: 375px;
}

.contant{
    padding: 20px;
    height: 100%;
}

.contant .head{
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 5px;
    margin: 0;
    color:rgb(117, 112, 112);
    padding:0;
    
}

.contant .title{
    font-family: 'Fraunces', serif;
    padding: 0;
    font-weight: 700;
    font-size: 25px;
    margin-top: 10px;
    line-height: 30px;
    margin-bottom: 10px;
}

.contant .desc{
    font-family: 'Montserrat', sans-serif;
    color:dimgray;
    margin-top: 5px;
    margin-bottom: 0;
    margin-top: 0;
    font-size: 16px;
    line-height: 17px;
}

.contant .price{
    display: flex;
    margin-top: 0;
    align-items: center;
    text-align: center;
}

.contant .price .main{
    color: rgb(4, 59, 4);
    font-family: 'Fraunces', serif;
    font-weight: 700;
}

.contant .price .sec {
    margin-left: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: darkgray;
    text-decoration: line-through;
    
}

.contant .button:hover{
    background-color:rgb(25, 80, 25);
  }

.contant:hover .desc{
    font-size: 15px;
}

.contant .button{
    justify-content: center;
    align-items: center;
    display: flex;
    border-radius: 5px;
    text-align: center;
    border:none;
    background-color:rgb(4, 59, 4);
    width: 100%;
    height: 40px;
}

.contant .button .add{
    margin-left: 10px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: white;
} 

@media only screen and (max-width: 510px) {
    .container{
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 10px;
        background-color: white;
        height: 550px;
        width: 320px;
        transform: translate(-50%, -50%);    
        display: flex;
        flex-direction: column;
    }
    .container .img{
        border-radius: 10px 10px 0 0 ;
        background-image: url(mobile.jpg);
        background-repeat:no-repeat;
        height: 100%;
        width: auto;
    }
    .contant{
        padding: 20px;
        margin-bottom: 0;
    }
    
  }