*{margin:0;padding:0;} body{ height: 100vh; width: 100vw; display: flex; } .cardContainer{ display: flex; justify-content: space-around; flex-wrap: wrap; height: 100%; width: 100%; box-sizing: border-box; padding: 25px; overflow-y: auto; } .card{ position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; background: white; width: 300px; height: 300px; cursor: pointer; margin: 10px; padding: 25px; text-decoration: none; color: black; } .card:hover{ box-shadow: 0 0 3px black; } .card h2{ text-align: center; } .card img{ margin-top: 10px; width: 90%; max-height: 150px; max-width: 150px; } .card p{ text-align: justify; } .card > *{ margin: 10px 0; } .card.backCard{ justify-content: center; } #menu{ display: flex; flex-direction: column; align-items: center; background: #152730; width: 100px; height: 100vh; } #menu > button{ display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100px; width: 100px; color: #5FECE0; cursor: pointer; background: none; border: none; } #menu .active{ background: rgb(196, 198, 192); cursor: default; color: #152730; } #main{ flex-direction: column; align-items: center; justify-content: space-around; background: rgb(196, 198, 192); height: 100vh; width: 100%; } #gallery{ display: flex; flex-direction: column; align-items: center; height: 100vh; overflow-y: auto; } #galleryTags{ display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; width: 80vw; } .tag{ display: flex; justify-content: center; align-items: center; background: #152730; color: #5FECE0; font-size: 20px; min-width: 75px; border-radius: 20px; height: 30px; border: none; padding: 0 25px; margin: 10px; cursor: pointer; } .tag:hover{ box-shadow: 0 0 5px black; } #galleryContainer{ display: flex; }