body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #007bff;
    color: white;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    margin: 0;
    font-size: 2.5em;
}

/* New CSS style for the last updated line */
#last-updated {
    font-style: italic;
    font-size: 0.9em;
    margin: 5px 0 15px 0; /* Add some margin below it */
}

main {
    width: 90%;
    max-width: 1000px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#stock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#stock-table th, #stock-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#stock-table thead th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: bold;
    text-transform: uppercase;
}

#stock-table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Style for the percentage change to be green */
.gain {
    color: #28a745; /* Green for gain */
    font-weight: bold;
}

footer {
    margin-top: 30px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
}

footer p {
    margin: 5px 0;
}