@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    font-family: "Fraunces", serif
}

body{
    background-color: #F3EAE3;
}

.outer-div {
    max-width: 650px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    margin-top: 100px;
    position: relative;
    background-color: white;
    border-radius: 8px;
}

.img-div {
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
}

.img-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.con-div {
    width: 45%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 15px;
    display: flex;
    flex-direction: column;
    right: -8px;
    padding: 0 10px;
}

.con-div .top-para{
    text-transform: uppercase;
    letter-spacing: 3px;
    color: grey;
    font-family: "Montserrat", sans-serif;
}

.con-div h1 {
    font-size: 30px;
    margin: 0 0 0 2px;
    width: 70%;
}

.con-div .para-con{
    line-height: 23px;
    color: grey;
    font-family: "Montserrat", sans-serif;
    width: 90%;
}

.span-con{
    position: relative;
    top: 10px;
}

.span-con .span-1{
    color: #3D8168;
    font-size: 35px;
    font-weight: bolder;
}

.span-con .span-2{
    text-decoration: line-through;
    color: grey;
    position: absolute;
    top: 10px;
    right: 70px;
    font-family: "Montserrat", sans-serif;
}

.btn{
    position: relative;
    top: 50px;
    width: 85%;
    height: 40px;
    left: 20px;
    border-radius: 8px;
    background-color: #3D8168;
    color: white;
    font-family: "Montserrat", sans-serif;
    border: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 0px;
    margin: -10px 0 10px -20px;
    cursor: pointer;
}

/* Media Queries */

@media (max-width: 450px){
    body{
        background-color: #F3EAE3;
    }

    .outer-div{
        display: flex;
        flex-direction: column;
        max-width: 375px;
        height: 700px;
        position: relative;
        margin: 0 auto;
    }

    .img-div{
        width: 100%;
        height: 40%;
        position: absolute;
        left: 0;
        top: 0;
    }

    .img-div img{
        position: absolute;
        top: 0;
        border-radius: 8px 8px 0 0;
    }

    .con-div{
        position: absolute;
        left: 10px;
        top: 300px;
        height: 60%;
        width: 100%;
        padding: 0 5px 0 5px;
    }

    .con-div .h1-con{
        width: 80%;
    }

    .con-div .para-con{
        width: 88%;
    }

    .span-con{
        width: 80%;
    }

    .btn{
        width: 90%;
        height: 50px;
    }
}