/* General body styling */
body {
    /* Use Flexbox to control the layout */
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    min-height: 100vh; /* Make the body at least the full height of the viewport */
    margin: 0;
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #f4f4f4;
}

/* Main content area */
main {
    /* This is the key part: it makes the main content grow to fill all available
       space, which pushes the footer to the bottom. */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    padding: 20px;
}

/* Footer styling */
footer {
    padding: 20px;
    background-color: #e0e0e0;
}

/* Style for the "Connect with Strava" button for better presentation */
#strava-connect img {
    max-width: 250px; /* Adjust size as needed */
    height: auto;
}

#ride-data table {
    border-collapse: collapse; /* Collapse borders for a solid look */
    width: 100%; 
  }
  
  #ride-data td, #ride-data th {
    border: 1px solid black; /* Add borders to cells */
    padding: 8px; /* Add some padding for better readability */
    text-align: left; 
  }