html { padding: 0; } body { box-sizing: border-box; font-family: 'Trebuchet MS'; overflow-x: hidden; width: 100%; margin: 0; } header { position: sticky; width: 100%; top: 0; left: 0; z-index: 2; margin: 0; } .navbar { display: flex; align-items: center; justify-content: space-between; padding: 0 5% 0; border-bottom: 3px solid black; border-top: 3px solid black; background-color: white; } .menu { display: flex; justify-content: space-between; align-items: center; } .logo img { height: 100px; } form { padding: 10px; } #cart-count img { height: 40px; border-radius: 50%; padding: 10px; } #cart-count img:hover { background-color: lightgray; } li { text-decoration: none; list-style-type: none; color: black; font-size: 25px; padding: 0 5% 5% 5%; } a { cursor: pointer; text-decoration: none; list-style-type: none; color: black; font-size: 25px; padding: 0 5% 0; } a:hover { opacity: 50%; } input { padding: 5px; margin: 5px 0 5px 0; } button { padding: 15px 35px; margin-top: 20px; background-color: lightgray; text-transform: uppercase; font-family: 'Trebuchet MS'; font-size: 25px; border-radius: 25px; border: 0; text-align: center; } button:hover { cursor: pointer; opacity: 75%; } .log-btn { color: black; text-align: center; border-radius: 5px; } #reg-btn { padding: 15px 35px; margin-top: 20px; background-color: lightgray; text-transform: uppercase; font-family: 'Trebuchet MS'; font-size: 25px; border-radius: 25px; border: 0; } #reg-btn:hover { opacity: 75%; } #mainContainer { display: flex; width: 100%; } #aside { display: flex; padding: 10px; } #cat { display: flex; flex-direction: column; align-items: flex-start; width: 25%; min-width: 200px; border-style: groove; border-color: #ced4da17; padding: 10px; border-radius: 10px; } #cat>a { display: block; } #cat-name { margin: 0; } #main { display: flex; flex-wrap: wrap; width: 70%; padding: 20px; } h1 { width: 100%; } h5 { font-size: 1.25rem; min-height: 50px; } #sub-card { height: auto; width: 100%; border-style: groove; border-color: #ced4da17; padding: 20px 10px 20px 10px; border-radius: 10px; margin: 5px; } .subcategories { background-color: lightgray; border-radius: 25px; margin-right: 10px; } .subcategories:hover { opacity: 75%; } #cat a { position: relative; display: block; margin: -0.5rem -1rem; padding: 1rem 1rem; } #cat a:hover { background-color: lightgray; border-radius: 25px; } #card { display: flex; flex-direction: column; height: auto; width: 30%; border-style: groove; border-color: #ced4da17; padding: 10px; border-radius: 10px; margin: 5px; } #card img { display: block; margin-left: auto; margin-right: auto; width: 50%; } .card-img { display: block; height: 100%; } .price { color: green; } #desc-card { display: flex; flex-direction: row; flex-wrap: wrap; align-content: center; align-items: center; } #back { display: block; padding: 15px 0 15px 0; width: 100px; padding-right: 100%; } #back button { width: 100%; font-family: 'Trebuchet MS'; letter-spacing: 1px; padding: 15px 35px; background-color: lightgray; text-transform: uppercase; font-size: 25px; border-radius: 25px; border: 0; } #back button:hover { opacity: 75%; } .buy-btn { width: 100%; font-family: 'Trebuchet MS'; letter-spacing: 1px; padding: 15px 35px; margin-top: 20px; background-color: lightgray; text-transform: uppercase; font-size: 25px; border-radius: 25px; border: 0; } .buy-btn:hover { opacity: 75%; } .inputCount { width: 35px; text-align: center; padding: 10px; margin: 0 10px; } .order-card { display: block; border-style: groove; border-color: #ced4da17; padding: 10px; border-radius: 10px; margin: 5px; width: 30%; } #total { display : flex; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; } #cart-alert{ display: flex; width: 100%; justify-content: center; } #main #desc-card{ display: flex; }