@font-face {
    font-family: montserrat;
    src: url(/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf);
}

@font-face {
    font-family: fraunces;
    src: url(/assets/fonts/Fraunces/Fraunces-VariableFont_SOFT\,WONK\,opsz\,wght.ttf);
}

html, body{
    width: 100%;
    height: 100%;
    margin: unset;
    background-color: hsla(25, 44%, 92%, 1);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: montserrat;
}

.main {
    display: flex;
    width: 45%;
    height: 60%;
}

.left-preview {
    width: 100%;
}

img {
    height: 100%;
    width: 100%;
    object-fit: fill;
    border-top-left-radius: 2%;
    border-bottom-left-radius: 2%;
}

.right-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    /* padding: 30px 30px; */
    background-color: hsl(0,0%,100%);

    border-top-right-radius: 2%;
    border-bottom-right-radius: 2%;
}

.perfume {
    color: hsla(233, 3%, 62%, 1);
}

.description {
    color: hsla(233, 3%, 62%, 1);
    font-size: 18px;
    line-height: 1.6
}

.right-preview > div {
    margin: 0 30px;
}

.right-preview > div:nth-child(1){
    margin-top: 30px;
}

.right-preview > button:last-child{
    margin: 0 30px;
    margin-bottom: 30px;
}

.essence {
    font-family: fraunces;
    font-weight: bolder;
    font-size: 40px;
}

.price {
    display: flex;
    align-items: center;
}

.price div:nth-child(1){
    color: hsla(157, 36%, 37%, 1);
    font-size: 45px;
    font-family: fraunces;
    font-weight: 700;
}

.price div:nth-child(2){
    margin-left: 30px;
    color: hsla(233, 3%, 62%, 1);
    font-size: 16px;
}

button{
    background-color: hsla(157, 36%, 37%, 1);
    border: unset;
    color: hsl(0,0%,100%);
    border-radius: 7px;
    height: 12.5%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

button div:nth-child(1){
    margin-right: 5px;
}

button div:nth-child(2){
    margin-left: 5px;
}

button:active {
    background-color: hsla(156,42%,18%, 1);
}

@media screen and (max-width: 375px){
    .main {
        width: unset;
        height: 100%;
        flex-direction: column;
        margin: 0 15px;
    }

    .left-preview {
        margin-top: 25px;
        height: 30%;
    }

    img {
        height: 100%;
        object-fit: cover;
        /* border-top-left-radius: unset; */
        border-top-right-radius: 2%;
        border-bottom-left-radius: unset;
    }

    .right-preview {
        border-top-right-radius: unset;
        /* border-bottom-right-radius: unset; */
        border-bottom-left-radius: 2%;
        margin-bottom: 25px;
        height: 100%;
    }

    .price > div:first-child{
        font-size: 30px;
    }

    .essence {
        font-size: 35px;
    }

    .description {
        font-size: 14px;
    }
}