@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    margin: 0;
    font-family: 'Kumbh Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
     width: auto;
    background-color: hsl(30, 38%, 92%);
}
.content{
    height: 450px;
    border-radius: 10px;
    background-color: hsl(0, 0%, 100%);
    display: flex;
    justify-self: center;
}
.image{
    width: 100%;
    height: 100%;
}
.image1{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    max-width: 100%;
    height: 100%;
}
.image2{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    max-width: 100%;
    height: 100%;
    display: none;
}
.image-text{
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
h3{
    margin: 0;
    padding: 0;
    color: hsl(228, 12%, 48%);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 5px;
}
h2{
    width: 300px;
    font-family: "Fraunces", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    color: hsl(212, 21%, 14%);
    margin: 10px 0;
}
p{
    font-size: 14px;
    color: hsl(228, 12%, 48%); 
    width: 300px;
    margin: 10px 0;
}
.amount{
    display: flex;
    align-items: center;
    gap: 20px;
}
.amount h3{
    font-family: "Fraunces", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
    color: hsl(158, 42%, 18%);
}
.amount h4{
    text-decoration: line-through;
    font-family: "Fraunces", sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    color: hsl(228, 12%, 48%);

}
button{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border-radius: 5px;
    border: none;
    background-color: hsl(158, 36%, 37%);
    cursor: pointer;
    margin-top: 10px;
}
button h3{
    color: hsl(0, 0%, 100%);
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 14px;
    letter-spacing: 2px;
}
button:hover{
    background-color: hsl(158, 36%, 25%);
    transition: 0.3s;
}
/* Phones */
@media screen and (max-width: 600px) {
    body {
        padding: 20px;
    }

    .content {
        flex-direction: column;
        height: auto;
    }

    .image1 {
        width: 100%;
        height: 30vh; /* takes 30% of screen height */
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        display: none;
    }
    .image2{
        width: 100%;
        height: 30vh; /* takes 30% of screen height */
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        display: block;
    }

    .image-text {
        padding: 20px;
    }

    h2 {
        font-size: 28px;
    }

    .amount h4 {
        font-size: 28px;
    }
}