.main-container { display: flex; width: 100%; height: 100vh; } #aside { display: flex; flex-direction: column; background-color: #eb0000; padding: 10px; width: 15%; position: fixed; } #aside a { text-decoration: none; color: white; margin: 10px 0; transition: all 0.5s; } #main { display: flex; flex-direction: column; width: 85%; margin-left: 20%; } #main h2 { margin-left: 20px; } .cards { display: flex; flex-wrap: wrap; justify-content: flex-start; width: 100%; padding: 20px; text-align: center; } .cards a { text-decoration: none; color: #000; margin: 15px; border-radius: 10px; width: 25%; transition: all 0.5s; box-shadow: 0 0 2px rgb(8, 8, 8); } .cards a:hover { transform: scale(1.05); } .card img { max-width: 80%; margin: 10px 0; } .card { display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: 100%; padding: 15px; } button { box-sizing: border-box; background-color: transparent; border: 2px solid #e74c3c; border-radius: 0.6em; color: #e74c3c; cursor: pointer; line-height: 1; margin: 10px; padding: 0.5em; text-decoration: none; text-align: center; text-transform: uppercase; transition: box-shadow 0.3s ease-in-out, color 0.3s ease-in-out; } button:hover { color: #fff; outline: 0; box-shadow: 0 0 40px 40px #e74c3c inset; } input { width: 40px; height: 35px; text-align: center; border: 2px solid #e74c3c; border-radius: 0.6em; }