* {
    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;
}

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;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    text-align: center;
}

.page-header h1, .page-header h2, .page-header h3 {
    padding-bottom: 1rem;
}

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

.simulator-blurb {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
}

.simulator-blurb p {
    padding: 0.25rem;
}

.simulator-blurb h3 {
    padding-top: 1rem;
}

.simulator-section-wrapper {
    width: 80%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.simulator-page-link {
    margin-bottom: 2rem;
    width: 25rem;
    padding: 1rem;
    margin: 1rem;
    display: flex;
    justify-content: center;
}

.page-link-wrapper {
    display: flex;
    max-width: 20rem;
    height: auto;
    width: 100%
}

.page-item {
    width: 100%;
    font-size: 1.5rem;
    text-align: center;
    border: slateblue 5px solid;
    padding: 3rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
}

.simulator-specs-container {
    padding: 1rem;
    width: 25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.simulator-specs-list {
    padding: 1rem;
    width: 80%;
}

.simulator-specs-list li {
    padding: 0.5rem;
}

.planned-features-container {
    padding: 1rem 1rem 0 1rem;
    max-width: 25rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.planned-features-list {
    padding: 1rem;
    width: 80%;
}

.planned-features-list li {
    padding: 0.5rem;
}

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;
}

/* 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;
}

/* ---- item-tag-styles (moved from inline <style>) ---- */
.item-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.75rem 0; }
.item-tags span { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; font-family: 'Lato', sans-serif; line-height: 1.3; }
.item-tags span:nth-child(1) { background: #ede9fe; color: #5b21b6; }
.item-tags span:nth-child(2) { background: #dbeafe; color: #1e40af; }

/* Uniform card layout: same height, title slot, label slots, and Click to View position */
.section-item, .page-item { box-sizing: border-box; justify-content: flex-start !important; padding: 2rem 1.25rem !important; min-height: 15rem; font-size: 1rem; }
.section-item > :is(h2,h3,h4), .page-item > :is(h2,h3,h4) { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.35; }
.item-tags { flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch; width: 100%; max-width: 12rem; gap: 0.5rem !important; margin: 0 0 1.25rem !important; }
.item-tags span { display: block; box-sizing: border-box; height: 1.9rem; line-height: 1.9rem !important; padding: 0 0.5rem !important; text-align: center; white-space: nowrap; }
.section-item > p, .page-item > p { margin: auto 0 0 !important; padding: 0 !important; font-size: 1rem !important; line-height: 1.4; }
.section-item > p::after, .page-item > p::after { content: ""; }
  .page-item { height: 15.75rem; min-height: 0; }
.page-link-wrapper { height: auto !important; align-self: flex-start; }
  /* Order: title, Click to View, labels */
.section-item > p, .page-item > p { order: 2; margin: 0 0 1rem !important; }
.item-tags { order: 3; margin: 0 !important; }
