.img-thumbnail { height: 80px; margin-left: 20px; } .pageContainer { min-height: 100vh; } main { margin-top: 20px; flex: 1; display: flex; flex-direction: column; align-items: center; } .itemContainer { display: flex; justify-content: space-between; align-items: center; } .trashImgContainer { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .link { color: black; display: flex; text-decoration: none; display: flex; justify-content: center; align-items: center; } .btnsPriceContainer { display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .productRow { width: 800px; } .quantityInput { height: 40px; width: 40px; text-align: center; } .marginBtn { margin-right: 20px; } .lastRow { border-top: 1px solid black; margin-top: 20px; display: flex; flex-direction: column; } .totalPriceContainer { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; } .checkoutBtnContainer { display: flex; justify-content: right; } @media only screen and (max-width: 801px) { .productRow { width: 100vw; } } @media only screen and (max-width: 554px) { .productRow { width: 100vw; } .itemContainer { flex-direction: column; } .trashImgContainer { width: 100%; flex-direction: row-reverse; justify-content: space-between; } .trashIconContainer { display: flex; justify-content: right; } .btnsPriceContainer { width: 100%; justify-content: space-between; } .checkoutBtnContainer button { width: 100%; } }