html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5; /* Swapped with footer's background color */
}

/* Timer container styling */
#timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

/* Timer circle styling */
#timer-circle {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#timer-display {
    font-size: 3em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Progress ring styling */
.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
}

.progress-ring__background {
    fill: transparent;
    stroke: #e6e6e6;
    stroke-width: 10px;
}

.progress-ring__progress {
    fill: transparent;
    stroke: #4caf50;
    stroke-width: 10px;
    stroke-dasharray: 565.48; /* 2 * PI * 90 */
    stroke-dashoffset: 565.48;
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.3s;
}

/* Controls styling */
#controls {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 16px;
    font-size: 1em;
    cursor: pointer;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Footer styling */
#page-footer {
    background-color: #f0f0f0; /* Swapped with body's background color */
    text-align: center;
    padding: 6px; /* Reduced padding to make footer smaller */
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

#page-footer p {
    margin: 0.3em;
    font-size: 0.8em; /* Smaller font size */
    color: #777; /* More gray font color */
}

#page-footer a {
    color: #777;
    text-decoration: none;
}

#page-footer a:hover {
    text-decoration: underline;
}