/*#region Variables*/ :root { --black: black; --trancelucent: rgba(0, 0, 0, 0.5); --white: white; --blue: #007ea7; --navy-blue: #003459; --ice_blue: #c2eafc; --spacing-small: 4px; --spacing-big: 16px; } /*#endregion*/ /*#region Base Styling*/ html, body { margin: 0; padding: 0; } body { font-family: Arial, sans-serif; background-color: var(--ice_blue); color: var(--black); } button { background-color: var(--blue); color: var(--white); padding: var(--spacing-small); border: none; cursor: pointer; } button:hover { background-color: var(--navy-blue); } /*#endregion*/ header { position: sticky; background-color: var(--navy-blue); box-shadow: 0 var(--spacing-small) var(--spacing-small) var(--trancelucent); color: var(--white); height: 64px; display: flex; justify-content: center; align-items: center; } header > h3 { margin: 0; margin-right: 70%; } header > img { position: fixed; padding-right: 89%; aspect-ratio: 1/1; object-fit: cover; width: 8%; height: 8%; } /* Add a black background color to the top navigation */ nav { background-color: #333; overflow: hidden; } /* Style the links inside the navigation bar */ nav a { float: left; color: #f2f2f2; text-align: center; padding: 14px 16px; text-decoration: none; font-size: 17px; } /* Change the color of links on hover */ nav a:hover { background-color: #ddd; color: black; } /* Add a color to the active/current link */ nav a.active { background-color: #04aa6d; color: white; } /*#region Entries*/ ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--spacing-big); } li { background-color: var(--white); margin: 0; padding: var(--spacing-big); display: flex; flex-direction: column; } li :nth-child(3) { flex-grow: 1; } li > figure { position: relative; padding: 0; margin: 0; } li > figure > img { aspect-ratio: 5/2; object-fit: cover; width: 100%; height: 100%; } li > figure::before { content: ""; position: absolute; width: 100%; height: 100%; box-shadow: inset 0 0 16px 2px var(--trancelucent); } /*#endregion*/ footer { background-color: var(--blue); outline: 5px solid var(--black); color: var(--white); height: 64px; width: 100%; display: flex; justify-content: center; align-items: center; } footer > p { margin: 0; height: min-content; }