:root {
    /* Primary */

--dark-cyan: hsl(158, 36%, 37%);
--very-dark-cyan: hsl(156, 42%, 18%);
--cream: hsl(30, 38%, 92%);

/* Neutral */

--very-dark-blue: hsl(212, 21%, 14%);
--dark-grayish-blue: hsl(228, 12%, 48%);
--white: hsl(0, 0%, 100%);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body, .main-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.title, .description, .old-price, .button, .attribution {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.perfume-name, .price {
    font-family: 'Fraunces', serif;
}

html {
    font-size: 62.5%;
    width: 100vw;
    height: 100vh;
}

body {
    background-color: var(--cream);
    width: 100%;
    height: 80%;
}

main {
    width: 90%;
    height: 90%;
    background-color: var(--white);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.image-box {
    width: 100%;
    height: 37%;
    border-radius: 1rem 1rem 0 0;
    background-image: url("./images/image-product-mobile.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.main-box {
    width: 100%;
    height: 63%;
}

.text-box {
    width: 87%;
    height: 90%;
}

.title {
    font-size: 1.3rem;
    color: var(--dark-grayish-blue);
    margin-bottom: 1rem;
}

.perfume-name {
    font-size: 3rem;
    color: var(--very-dark-blue);
    margin-bottom: 2rem;
    line-height: 3.2rem;
}

.description {
    font-size: 1.4rem;
    color: var(--dark-grayish-blue);
    margin-bottom: 2rem;
    line-height: 2.5rem;
}

.price-box {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.price {
    font-size: 3rem;
    color: var(--dark-cyan);
    margin-right: 2rem;
}

.old-price {
    font-size: 1.4rem;
    color: var(--dark-grayish-blue);
    text-decoration:line-through;
}

.button {
    width: 100%;
    height: 15%;
    border-radius: 1rem;
    border: none;
    color: var(--white);
    background-color: var(--dark-cyan);
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.button:hover {
    background-color: var(--very-dark-cyan);
}

.button img {
    margin-right: 1rem;
}

.attribution {
    font-size: 1.1rem; 
    text-align: center;
    display: flex;
    flex-direction: column;
}

.attribution a { 
    color: hsl(228, 45%, 44%); 
}

@media only screen and (max-width: 320px) {
    .button {
        height: 10%;
    }
}

@media only screen and (min-width: 425px) {
    main {
        height: 82%;
    }
}

@media only screen and (min-width: 768px) {
    main {
        display: flex;
        max-width: calc(768px*0.9);
        max-height: calc(680px*0.65);
    }

    .image-box {
        height: 100%;
        background-image: url('./images/image-product-desktop.jpg');
        border-radius: 1rem 0 0 1rem;
    }

    .main-box {
        height: 100%;
    }

    .text-box {
        width: 75%;
        height: 90%;
    }

    .title {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .perfume-name {
        width: 85%;
    }

    .description {
        width: 90%;
    }

    .button {
        height: 12%;
    }
}