#snackbar { visibility: hidden; min-width: 250px; background-color: rgb(231, 81, 81); color: #fff; text-align: center; border-radius: 2px; padding: 16px; position: fixed; z-index: 1; top: 30px; right:30px; } #snackbar.show { visibility: visible; -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s; animation: fadein 0.5s, fadeout 0.5s 2.5s; } @-webkit-keyframes fadein { from {opacity: 0;} to { opacity: 1;} } @keyframes fadein { from { opacity: 0;} to { opacity: 1;} } @-webkit-keyframes fadeout { from {opacity: 1;} to {opacity: 0;} } @keyframes fadeout { from {opacity: 1;} to {opacity: 0;} } .middle { margin: 0 auto; width: 50%; justify-content: center; justify-items: center; align-content: center; align-items: center; } #signout { position: absolute; top: 25px; right: 25px; } #cart { position: absolute; top: 25px; right: 105px; } .singleProduct { width: 250px; border: solid 1px #333; padding: 20px; border-radius: 5px; margin: 10px; display: inline-block; } .productImage { width: 210px; height: 210px; background-repeat: no-repeat; background-size: cover; background-position: center; } .productTitle { display: inline-block; width: 250px; white-space: nowrap; overflow: hidden !important; text-overflow: ellipsis; margin-bottom: -10px; } .productDetail { display: grid; grid-template-columns: 50% auto; padding: 50px 0px; } .picture { width: 100%; background-repeat: no-repeat; background-size: contain; background-position: center; }