* {
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

body, p, li {
  font-family: 'Lato', sans-serif;
}

code, pre {
  font-family: 'Fira Code', monospace;
}

html {
    box-sizing: border-box;
    font-size: 16px;
    background: linear-gradient(135deg, #ffffff, #c3c3f3, #0046f6);
    background-size: 400% 400%;
}

header {
    top: 20px;
    background-color: #15256d;
    display: flex;
    justify-content: center;
    border-bottom: silver 5px solid;
}

.nav-bar {
    height: 3rem;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 1rem;
}

.nav-bar ul {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-bar li {
    display: inline-flex;
    flex-direction: column;
    padding: 0rem 1rem;
    color: white;
}

.nav-bar a {
    color: white;
    text-decoration: none;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.page-header {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 1rem;
    text-align: center;
}

.page-header h1, .page-header p {
    padding: 1rem;
    max-width: 60%;
}

.project-page-link h3 {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}


.user-interfaces-cells-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    margin: 1rem;
}

.user-interface-cell {
 display: flex;
 flex-direction: column;
 border: 1px solid #ccc; /* Optional: Add a border for visual separation */
 border-radius: 25px;
}

.cell-image {
 width: 100%; /* Make the container take full width of the cell */
 height: 200px; /* Set a fixed height for all image containers */
 overflow: hidden; /* Clip any part of the image that overflows the container */
 border-radius: 25px 25px 0 0;
}

.cell-image img {
 width: 100%;
 height: 100%;
 object-fit: cover; /* Scale and crop the image to fill the container */
}

.cell-description {
 padding: 15px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
}

.cell-description h3, .cell-description p {
 margin-top: 0;
 margin-bottom: 10px;
}

.footer {
    display: flex;
    justify-content: center;
    align-content: center;
    height: 4em;
    background-color: #15256d;
    position: relative;
    border-top: silver 5px solid;
}

.copyright {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.copyright p {
    color: silver;
    font-size: 1.25rem;
}

@media only screen and (max-width: 769px) {
    .page-header h1, .page-header p {
        width: 80%;
    }
}

/* Footer at the bottom: on a short page it sits at the foot of the window, on a long page after the content */
body {
  position: relative;
  box-sizing: border-box;
  min-height: 100vh;
  padding-bottom: calc(4em + 5px); /* room for the footer, which is 4em tall plus its 5px border */
}

footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
