body{ box-sizing: border-box; margin: 0; } header{ position: sticky; top: 0; left: 0; width: 100%; z-index: 1; } #mainContainer { display: flex; position: relative; } #aside { min-width: 15%; height: 100vh; position: sticky; top: 0; left: 0; background-color: rgb(252, 252, 252); overflow-y: auto; &::-webkit-scrollbar { width: 0 !important } } a{ display: block; padding: 5px 10px ; text-decoration: none; color: black; &:hover{ background-color: rgb(184, 184, 184); } } #main{ padding: 20px; overflow-y: auto; a{ display: block; margin: 0 auto; height: 35px; width: 300px; border-radius: 3px; background-color: rgb(236, 236, 235); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); } } nav{ padding: 10px 30px; height: 50px; background-color: rgb(236, 236, 235); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); display: flex; justify-content: space-between; align-items: center; #signin, #register, #logout{ display: inline; padding: 10px; border-radius: 3px; width: 150px; height: 30px; background-color: rgb(245, 245, 245); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); text-decoration: none; color: black; } #logout{ width: 70px; height: 25px; padding: 0; } } #user{ display: inline; margin-right: 15px; } #cart-btn, #dashboard-btn{ display: inline; // padding: 10px; border-radius: 3px; width: 80px; height: 30px; background-color: rgb(245, 245, 245); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); text-decoration: none; color: black; margin-right: 20px; } #userlogout-wrap{ display: none; } .overlay{ position: fixed; height: 100%; width: 100%; top: 0; padding: 40px; z-index: 200; display: none; background-color: rgba(0, 0, 0, .55); } #signup-form, #login-form{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; width: 350px; height: 250px; padding: 25px 15px; margin: 0 auto; background-color: rgb(255, 255, 255); box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4); border-radius: 5px; } #signup, #signup-password, #login, #login-password{ display: block; margin: 0 auto; border: none; width: 85%; height: 30px; font-size: 16px; box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4); border-radius: 4px; margin-bottom: 0px; padding: 5px 10px; } .form-btn{ border: none; width: 120px; height: 30px; display: block; margin: 15px auto; box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4); background-color:aliceblue; color:rgb(134, 134, 134); } .form-error{ width: 100%; margin-top: 30px; color: rgb(207, 109, 109); text-align: center; } .close{ position: absolute; font-size: 35px; color:rgb(202, 202, 202); top: -5px; right: -25px; cursor: pointer; } .category-name{ // background-color: darkgray; font-size: 30px; padding: 5px; border-radius: 3px; background-color: rgb(236, 236, 235); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); } .btn-buy{ display: block; margin: 0 auto; height: 35px; width: 100px; border-radius: 3px; background-color: rgb(236, 236, 235); box-shadow: 0px 0.5px 6px 1px rgba(0, 0, 0, .4); } #btn-buy{ display: none; } #cart-wrap, #dashboard-wrap{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; width: 70%; min-height: 250px; max-height: 300px; padding: 25px 15px; margin: 0 auto; background-color: rgb(255, 255, 255); box-shadow: 1px 1.5px 4.8px 0.3px rgba(0, 0, 0, 0.4); border-radius: 5px; div{ max-height: 300px; overflow-y: auto; &::-webkit-scrollbar { width: 0} } } #cart, #dashboard{ list-style-type: none; padding: 0; li{ display: flex; justify-content: space-between; align-items: center; img{ height: 60px; width: 60px; } input{ height: 20px; width: 40px; } } } #dashboard{ display: flex; flex-direction: column-reverse; li{ display: block; } }