html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 18px;
    font-weight: 300; 
    color: #121E2C;
}
.main-content {
    flex: 1; /* Allows main content to grow and push footer to the bottom */
}
.topnav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    justify-content: center;
    gap: 15px;
}
.topnav a {
    color: inherit;
    text-decoration: none;
    position: relative;
}
.topnav a::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d8d8d8;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: background-color 0.3s ease;
}
.topnav a.active::after {
    background-color: #121E2C;
}
.topnav a:hover::after {
    background-color: #3a4f63;
}
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3vh; 
}
.logo {
    max-width: 210px;
    height: auto;
}
.now-page-container {
    max-width: 420px;
    margin: 2rem auto;
    padding: 1rem;
}
.now-item {
    margin-bottom: 1.6rem;
    padding: 1rem;
}
.now-date {
    font-size: 12px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #808080;
    margin: 0;
}
.now-update {
    margin: 0.6rem 0 0 0;
}
.container {
    margin: 5px;
}
h1 {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 30px;
    margin: 0;
    font-weight: 300; 
}
main {
    flex: 1; 
    padding: 5px;
    text-align: center;
    width: 100%; 
}
section {
    margin: 0; 
    padding: 0; 
}
footer {
    font-size: 14px;
    padding: 20px;
    text-align: center;
    flex-shrink: 0;
    margin: 0; /* No margin to ensure footer is flush with bottom */
}
a {
    color: inherit;
    text-decoration: none;
    position: relative;
}
a::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #d8d8d8;
    position: absolute;
    left: 0;
    bottom: -3px;
    transition: background-color 0.3s ease;
}
a:hover::after {
    background-color: #3a4f63;
}
p {
    line-height: 1.3;
    text-align: center;
}
