//.articles { // display: flex; // flex-wrap: wrap; // justify-content: center; // //max-width: 1200px; // //margin: 20px auto; // width: 100%; // //} // mat-tab-group{ // width:120%; //} .article { width: 250px; margin: 10px; height: auto; overflow: hidden; border-radius: 5px; background-color: #202020; box-shadow: 4px 3px 8px 0px rgb(200 152 44 / 22%); transition-duration: 0.3s; cursor: pointer; &:hover { box-shadow: 4px 3px 11px 6px rgba(64, 215, 22, 0.46); transform: translateY(-3px); } &-title { padding: .5em; display: flex; flex-direction: column; justify-content: flex-end; font-size: 2em; } &-photo > * { width: 100%; } &-details { height: 25%; width: 100%; color: white; } } .article-title { text-align: center; } .new-article { //float: right; } .landing-title { margin: 1em auto; color: white; position: absolute; top: 200px; left: 45%; } h1 { text-align: center; } .articles-main { //margin: 25% auto; //background-color: #3e4555; //display: flex; flex-wrap: wrap; justify-content: center; max-width: 1200px; margin: 20px auto; margin-top: 5%; } .articles { display: flex; justify-content: center; align-content: center; flex-wrap: wrap; } .article { &-details { padding: 1em; } &-description { margin: .6em 0; } }