:root {
    -webkit-text-size-adjust: none;
    --first-color: #263238;
    --second-color: #CFD8DC;
}
html {
    background-color: var(--first-color);
    font-size: 1rem;
    line-height: 1.4;
}
section {
    padding: 2rlh;
    margin-trim: block;
}
.button {
    border: none;
    color: var(--first-color);
    text-align: center;
    text-decoration:solid;
    display: inline-block;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 30px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: large;
    
  }
body {
    margin: 0;
    padding: 0px;
    border: 0px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* NEW: Flexbox settings for sticky footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.cover {
    background-color: var(--first-color);
    height: 30vh;
    padding: 48px;
}

main {
    display: block;
    flex: 1; /* This pushes the footer down */
}

article {
    font-size: 1.4rem;
    font-size-adjust: 0.47;
    display: list-item;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: var(--first-color);
} 

iframe {
    aspect-ratio: 16 / 9;
}

img {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    padding: auto;
}
.image-row {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
}

/* Update footer to remove conflicting positioning */
/* 1. Essential Flexbox Setup for Sticky Footer (Keep or Add this) */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; /* Pushes footer to the bottom */
}

/* 2. New Footer Styles */
.site-footer {
    background-color: var(--first-color); /* Matches Header */
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* Space between links and copyright */
    
    /* Spacing & Borders */
    padding: 1.5rem 1rem calc(1rem + env(safe-area-inset-bottom));
    width: 100%;
    box-sizing: border-box;
}

/* Navigation Links (Like the header, but smaller) */
.footer-nav {
    display: flex;
    gap: 2rem; /* Space between the two links */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    text-decoration: none;
    color: var(--second-color);
    font-size: 0.9rem; /* Smaller than header text */
    font-weight: 500;
    transition: color 0.2s ease;
    opacity: 0.9;
}

.footer-nav a:hover {
    color: var(--second-color); /* Highlight color on hover */
    text-decoration: none;
    opacity: 1;
}

/* Copyright Text (Smallest) */
.footer-legal {
    font-size: 0.75rem;
    color: var(--second-color);
    text-align: center;
    opacity: 0.7;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
}
h1, p {
    margin-block: 1rlh;
}
.card h2,
.card p {
    margin-block: 1rlh;
}
.card {
    padding: 2rlh;
    margin-trim: block;
}
h2, p {
    margin: 1rlh 0;
    text-align: center;
}
code {
    font-family: 'Courier New', monospace;
}
.center {
    display: block;
    margin-top: 5rex;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

nav ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    gap: 0 1rem;
    padding: auto;
}

.footer-legal-copyright {
    position: static;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    bottom: auto;
}

.footer-style {
    background-color: var(--first-color);
}

.sticky-header {
    background-color: var(--first-color);
    color: #ffffff;
    position: sticky; /* Apply the sticky positioning */
    top: 0; /* Stick the element to the top of the viewport */
    z-index: 100; /* Ensure the navbar is above other content */
}
.sticky-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}
.sticky-header ul {
    list-style: none;
    margin: auto;
    padding: 0;
    display: flex;
}
.sticky-header li {
    margin-right: 20px;
}
.sticky-header a {
    text-decoration: none;
    color: #ffffff;
}
.sticky-header a:hover {
    color: var(--second-color);
}
nav label.button {
    cursor: pointer;
    display: none;
}
nav label.cancel {
    position: absolute;
    top: 20px;
    right: 20px;
}
#check {
    display: none;
}

@media (max-width: 734px) {
  .sticky-header ul {
    display: block;
    position: fixed;
    top: 0;
    left: 100%;
    padding-top: 20px;
    width: 100%;
    height: 100%;
    background: var(--first-color);
    transition: all 0.2s ease;
  }
  .sticky-header li {
    display: block;
    margin-top: 30px;
    text-align: center;
    z-index: 100;
  }
  .sticky-header nav label.cancel {
    display: block;
    position: absolute;
    top: 20px;
    margin-right: 20px;
  }
  nav label.bars {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }
  #check:checked ~ label.bars {
    display: none;
  }
  #check:checked ~ ul label.cancel {
    display: block;
  }
  #check:checked ~ ul {
    left: 0%;
    left: 0.8rem;
  }
}