.project { display: flex; position: relative; min-height: 150px; margin: 25px; padding: 20px; background: #575757; border: 5px solid #9c9c9c; border-radius: 50px; opacity: 0; float: left; clear: both; box-shadow: 10px 10px 5px rgba(0,0,0,0.5); animation: fadeIn 1s forwards; } .project img { display: block; float: left; max-height: 100%; width: auto; margin-top: auto; margin-bottom: auto; margin-right: 15px; } .project div { float: right; } .project p { font-size: 1vw; } .project a,h1 { color: #7db3ff; }