/* Importing Google font - Poppins */ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap"); * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Poppins", sans-serif; } body { height: 100vh; width: 100%; background-image: url("images/hero-bg.jpg"); background-position: center; background-size: cover; } .sidebar { position: fixed; top: 0; left: 0; width: 100px; height: 100%; display: flex; align-items: center; flex-direction: column; background: black; /* Change background color to semi-transparent black */ z-index: 101; /* Ensure the sidebar appears in front of other elements */ transition: width 0.3s ease; } .sidebar:hover { width: 260px; } .sidebar .logo { color: #fff; /* Change logo color to white */ display: flex; align-items: center; padding: 25px 10px 15px; } .logo img { width: 43px; border-radius: 50%; } .logo h2 { font-size: 2rem; font-weight: 600; margin-left: 15px; display: none; } .sidebar:hover .logo h2 { display: block; } .sidebar .links { list-style: none; margin-top: 20px; overflow-y: auto; scrollbar-width: none; height: calc(100% - 140px); } .sidebar .links::-webkit-scrollbar { display: none; } .links li { display: flex; border-radius: 4px; align-items: center; } .links li:hover { cursor: pointer; background: purple; } .links h4 { color: #fff; /* Change heading color to white */ font-size: 20px; display: none; margin-bottom: 10px; } .sidebar:hover .links h4 { display: block; } .links hr { margin: 10px 8px; border: 1px solid #fff; /* Change HR color to white */ } .sidebar:hover .links hr { border-color: transparent; } .links li span i{ font-size: 30px; padding: 12px 10px; color: #fff; /* Change icon color to white */ } .links li span img{ position: center; border-radius: 50%; width: 40px; } .links li a { padding: 10px; color: #fff; /* Change link color to white */ display: none; font-size: 15px; white-space: nowrap; text-decoration: none; } .sidebar:hover .links li a { display: block; }