body {
    background-color: #f3f3f3;
    font-family: "Playfair Display";
}
main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
header {
    margin: auto;
    width: 50px;
}
img {
    width: 100%;
    border-radius: 150px;
}
.perfume {
    text-align: center;
    background-color: #ffffff;
    border-radius: 100px;
}
.cart {
    left: 0;
    bottom: 0;
    position: fixed;
    width: 75px;
}
.add-to-cart {
    width: 50px;
    margin: 0 auto;
}
.cart-pefume {
    display: flex;
    align-items: center;
    justify-items: center;
    background-color: #ffffff;
    border-radius: 35px;
}
.buy-button {
    white-space: nowrap;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    border: none;
    width: auto;
    min-height: 30px;
    height: auto;
    border-radius: 20px;
}
.cart-perfume-details {
    flex: 1;
    text-align: center;
}
.perfume-picture img {
    border-radius: 50px;
}
.perfume-picture {
    width: 100%;
}
.perfume-details {
    width: 50%;
    text-align: center;
}
.back-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
}
.requested-number {
    width: 50px;
}
.delte-from-cart {
    transform: scale(0.5);
    border-radius: 0;
}
#checkout {
    border-radius: 20px;
    text-align: center;
    background-color: #000000;
    color: #ffffff;
    border: none;
    display: block;
    position: fixed;
    width: auto;
    min-width: 7%;
    bottom: 1%;
    line-height: 250%;
}
.back-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
}
@media (min-width: 997px) {
    .perfume-picture img {
        width: 80%;
    }
}
@media (min-width: 768px) {
    .perfume-details {
        flex: 1;
    }
    .perfume-picture {
        flex: 1;
    }

}
@media (max-width: 1023px) {
    .cart-pefume, .perfume {
        width: 320px;
    }
}
@media (min-width: 1024px) {
    .perfume {
        max-width: 25%;
    }
    .cart-pefume {
        width: 30%;
    }
}
@media (min-width: 2560px) {
    .requested-number {
        line-height: 0.8vw;
        width: 90%
    }
    button {
        font-size: 0.7vw;
        height: 75px;
    }
    .perfume-details button {
        font-size: 1.5vw;
        height: 75px;
    }
    h2 {
        font-size: 3vw;
    }
    h3 {
        font-size: 1.5vw;
    }
    .perfume-details b {
        font-size: 1.5vw;
    }
    .add-to-cart {
        width: 7%;
    }
    p {
        font-size: 1.5vw;
    }
    .back-button {
        width: 3%;
    }
    .cart {
        width: 5%;
    }
    input[type = "number"] {
        size: 100;
    }
    .cart-perfume-details p, .cart-perfume-details b{
        font-size: 0.8vw;
    }
    header {
        width: 3%;
    }
    #checkout {
        height: auto;
        line-height: 150%;
    }
}
@media (hover: none) and (pointer: coarse), (hover: none) and (pointer: fine) {
    #checkout, .delte-from-cart, .back-button, .cart, .buy-button, .add-to-cart {
        opacity: 0.7;
    }
    #checkout:active, .back-button:active, .cart:active, .buy-button:active, .add-to-cart:active {
        opacity: 1;
    }  
}
@media (hover: hover) and (pointer: fine), (hover: hover) and (pointer: coarse){
    #checkout:hover, .delte-from-cart:hover, .back-button:hover, .cart:hover, .buy-button:hover, .add-to-cart:hover {
        opacity: 0.4;
    }
    #checkout:active, .back-button:active, .cart:active, .buy-button:active, .add-to-cart:active {
        opacity: 1;
    }
}