/* Global */ :root { --yellow: #ffc600; --black: #272727; --white: #f8f8f8; } html { /* border-box box model allows us to add padding and border to our elements without increasing their size */ box-sizing: border-box; color: var(--black); } * { box-sizing: inherit; } body { letter-spacing: -1px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 15px; line-height: 1.5; margin: 0; padding: 0; } /* Header */ #header>.container { width: 80%; margin: auto; overflow: hidden; } header { background: var(--yellow); padding-top: 20px; padding-bottom: 10px; } header a { color: var(--black); text-decoration: none; font-size: 16px; } header ul { margin: 0; padding: 0; } header li { display: inline; padding: 0 20px; } header #branding { float: left; } header #branding h1 { font-size: 45px; margin: 0; } header nav { float: right; margin-top: 10px; } header a:hover { border-style: solid; padding: 5px; background: var(--white); } /* Cart Styling Begins Here */ #food-cart { background-image: url('../img/checkout.jpg'); background-repeat: no-repeat; background-size: 100%; } #food-cart > .container { width: 80%; margin: auto; overflow: hidden; height: 500px; } .badge { background-color: #6394F8; border-radius: 10px; color: var(--white); display: inline-block; font-size: 12px; line-height: 1; padding: 3px 7px; text-align: center; vertical-align: middle; white-space: nowrap; } .food-cart { margin: 20px 0; float: right; background: aliceblue; width: 320px; position: relative; border-radius: 3px; padding: 20px; } .food-cart .food-cart-header { border-bottom: 1px solid #E8E8E8; padding-bottom: 15px; } .food-cart .food-cart-header .food-cart-total { float: right; } .food-cart .food-cart-items { padding-top: 20px; } .food-cart .food-cart-items li { margin-bottom: 18px; } .food-cart .food-cart-items img { float: left; margin-right: 12px; } .food-cart .food-cart-items .item-name { display: block; padding-top: 10px; font-size: 16px; } .food-cart .food-cart-items .item-price { color: #6394F8; margin-right: 8px; } .food-cart .food-cart-items .item-quantity { color: #ABB0BE; } .food-cart:after { bottom: 100%; border: solid transparent; content: " "; height: 0; width: 0; position: absolute; pointer-events: none; border-bottom-color: white; border-width: 8px; margin-left: -8px; } .food-cart-items li { list-style-type: none; } .cart-icon { color: #515783; font-size: 24px; margin-right: 7px; float: left; } .button { background: var(--yellow); color: var(--black); text-align: center; padding: 12px; text-decoration: none; display: block; border-radius: 3px; font-size: 16px; margin: 25px 0 15px 0; } .button:hover { background: var(--black); color: var(--yellow); } .clearfix:after { content: ""; display: table; clear: both; } /* FOOTER */ footer { background-color: var(--yellow); color: var(--black); } #footer>.container { margin-left: 100px; padding: 40px; display: grid; grid-template-columns: 145px 250px 250px 200px; justify-content: center; padding-top: 30px; } .copyright { font-size: 17px; font-weight: bold; }