body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    color: #333;
    padding-top: 120px; /* Adjust based on header height */
    padding-bottom: 120px; /* Adjust based on footer height */
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 80px;
    position: relative; /* For positioning the dropdown */
}

header {
    background-color: #333;
    color: #fff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

header h1 {
    margin: 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: absolute;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

header li {
    margin-left: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%; /* Position below the nav bar */
        left: 0;
        background-color: #333;
        width: 100%;
        padding: 0;
        margin: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* Add a shadow for depth */
    }

    .nav-links.active {
        display: block;
    }

    header ul.nav-links {
        flex-direction: column;
        width: 100%;
    }

    header li {
        display: block;
        margin: 0;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid #555;
    }

    header li:last-child {
        border-bottom: none;
    }

    header li a {
        display: block;
        padding: 1rem;
    }
}
.nav-links{
    padding-right: 20px
}
.hero {
    background-color: #eee;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: #fc4c02;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.leaderboard {
    padding: 4rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
}

th {
    background-color: #f4f4f4;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 1000; /* Ensure footer is above other content */
}

.recent-activities-grid {
    display: flex; /* Use flexbox for single column */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 20px;
    min-width: 100%;
    max-width: 600px;
 
}

.personal-best {
    border: 2px solid #fceb02;
}

.activity-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-width: 600px; /* Limit card width for better readability on desktop */
    width: 90%; /* Ensure it takes full width up to max-width */
}

.activity-card strong {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #fc4c02;
}

.activity-card p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #555;
}

/* Responsive table styles */
@media (max-width: 480px) {
    th, td {
        padding: 6px;
        font-size: 0.9em;
    }

    /* Make summary column take more space if needed */
    td:last-child {
        word-break: break-word;
    }
}

.week-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week-nav-button {
    background-color: #fc4c02;
    color: #fff;
    border: none;
    padding: 5px 10px; /* smaller padding */
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em; /* bigger font for arrows */
}

.week-nav-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.week-navigation h3 {
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
    color: #fff;
}
