/* CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9; /* Light mode background */
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition for night mode */
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #4A90E2;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

#results {
    background-color: #fff; /* Light mode card color */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 400px; /* Fixed width for the result box */
    transition: transform 0.3s, background-color 0.3s, color 0.3s; /* Transition for night mode */
}

#results:hover {
    transform: scale(1.02); /* Slight zoom effect on hover */
}

p {
    font-size: 1.2rem;
    margin: 10px 0;
    color: #555; /* Slightly darker gray for text */
}

.value {
    font-weight: bold;
    color: #4A90E2; /* Color for speed values */
}

#usageChart {
    width: 100%; /* Make the canvas responsive */
    height: 200px; /* Set the desired height */
    max-width: 400px; /* Limit max width */
    margin-top: 20px;
}

canvas {
    display: block;
    margin: 0 auto;
}

/* Night mode styles */
body.night-mode {
    background-color: #333;
    color: #fff;
}

body.night-mode #results {
    background-color: #444; /* Darker card color */
}

body.night-mode p {
    color: #ddd; /* Light gray for text in night mode */
}

/* Toggle button styles */
#toggleNightMode {
    margin-top: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #4A90E2;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#toggleNightMode:hover {
    background-color: #357ABD;
}
