body { color: white; font-family: 'Space Grotesk' sans-serif; background: #FED109; background: linear-gradient(to right bottom, #089FB7, #66C92D); height: 100%; margin: 0 0 0 0; background-repeat: no-repeat; background-attachment: fixed; } /* Logo and Date and Icons */ .logo { float:left; width:242px; height:100px; margin: 0 0 10px 5px; padding: 0 0 0 0; justify-content: space-around; } .date { font-size: 17px; float: right; margin: 10px 50px 0 12px; padding: 30px 10px 0 12px; vertical-align: auto; font-family: 'Space Grotesk'; } .icon { height: 30px; width: 30px; vertical-align: middle; padding-bottom: 5px; } /* Card Rows and Float */ .row { margin: 0 0 0 0; float: center; } .row::after { content: ""; display: table; clear: both; } .column { float: left; justify-content: center; width: 22.5%; padding: 0 20px 20px 20px; } .card { box-shadow: .2px .2px .2px .2px rgb(7, 7, 7); transition: 0.3s; padding: 14px 14px; background-color: #667E8A; text-align: center; color: #E5E9EB; margin-top: 10%; margin-left: 7.5%; margin-right: 7.5%; border-radius: 2px; border-width: 2px; border-style: solid; border-color: #E5E9EB; position: relative; font-family: 'Space Grotesk'; max-width: 100%; } .card:hover { box-shadow: 2px 2px 2px 2px #978c89; } a { color: #F8F9FA; text-decoration: none; transition: .3s; font-size: 15px; display: block; padding-bottom: 5px; } a:hover { font-size: 17px; color:#00283C; text-shadow: .5px .5px .5px .5px rgba(0,0,0,0.2); } .card_header { font-size: 22px; font-weight: bold; vertical-align: middle; float: left; margin-bottom: 20px; } .title { margin-top: 15%; margin-left: 7%; height: 50px; position: relative; z-index: 1; color: #F8F9FA; font-size: 30px; padding: 8px 8px; font-weight: bold; } .title::before { content : ""; position: absolute; left : 10px; bottom : 10px; height : 1px; width : 23%; border-bottom:1px solid white; } *, *::after, *::before { margin: 0; padding: 0; box-sizing: inherit; } /* Picture Styling and Layout*/ .grid { display: grid; grid-template-rows: repeat(2, 180px); grid-template-columns: repeat(8, 1fr); grid-row-start: auto; grid-column-start: auto; grid-gap: 0px; background-position: center; align-items: stretch; } .item:nth-child(1) { grid-row: 1; grid-column: 1 / span 2; } .item:nth-child(2) { grid-row: 1; grid-column: 3 / span 1; } .item:nth-child(3) { grid-row: 1 / span 2; grid-column: 4 / span 2; } .item:nth-child(5) { grid-row: 1; grid-column: 6 / span 3; } .item:nth-child(6) { grid-row: 2; grid-column: 1 / span 3; } .item:nth-child(7) { grid-row: 2; grid-column: 6 / span 2; } .item:hover { transition: 0.8s; filter: none; -webkit-filter: grayscale(0); } .item { background-position: center; filter: gray; -webkit-filter: grayscale(1); display: flex; } .grid > .item { background-position: center; background-repeat: no-repeat; background-size: cover; object-fit: fill; max-height: 100%; }