/* General styling for the entire page */
body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f8ff;
    margin: 0;
    padding: 0;
}

h3 {
    style: italic

}

/* Container for the timer and tasks */
.container {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100em; /* For larger screens */
    width: 100%;
    box-sizing: border-box;
}

/* Headings */
h1 {
    font-size: 2em;
    color: #333;
}

h3 {
    font-style: italic;
    font-size: 1.2em;
}

/* Timer display */
.timer {
    font-size: 2.5em;
    margin: 20px 0;
}

/* Input and button styling */
input[type="text"], input[type="number"] {
    padding: 10px;
    font-size: 1em;
    margin: 10px;
    width: 80%; /* General width for larger screens */
    max-width: 250px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    margin: 10px 5px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto; /* No specific width on desktop */
    max-width: 150px;
}

button:hover {
    background-color: #218838;
}

/* Task table styling */
#task-results {
    margin-top: 30px;
    text-align: center;
}

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

#task-table th, #task-table td {
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 0.9em;
}

#task-table th {
    background-color: #f8f8f8;
}

#task-body tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        max-width: 90%; /* Allow full width for smaller screens */
    }

    h1 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1em;
    }

    .timer {
        font-size: 2em;
    }

    button {
        font-size: 0.9em;
        width: 100%; /* Full width buttons on small screens */
    }

    input[type="text"], input[type="number"] {
        width: 100%; /* Full width input fields on mobile */
    }
}
