*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background: #8c52ff;
    font-family: Arial, sans-serif;
    /* Added flexbox to center the container */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background-color: #fff;
    /* Made width responsive with a max-width */
    width: 90%;
    max-width: 500px; 
    /* Removed absolute positioning */
    padding: 20px; /* Adjusted padding for responsiveness */
    border-radius: 10px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.338);
}

.timer-display {
    width: 100%; /* Changed to 100% to fit container */
    background: #fff;
    font-family: 'Roboto Mono', monospace;
    color: #8c52ff;
    /* Responsive font size using clamp() */
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    padding: 20px 10px; /* Adjusted padding */
    display: flex;
    align-items: center;
    justify-content: center; /* Center the text */
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(65, 5, 145, 0.25);
}

.buttons {
    width: 100%;
    margin: 40px auto 0;
    display: flex;
    justify-content: center; /* Center buttons */
    gap: 15px; /* Add space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.buttons button {
    /* Flexible width for buttons */
    flex-grow: 1;
    min-width: 100px;
    height: 45px;
    background-color: #8c52ff;
    color: white;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.buttons button:nth-child(2) {
    background-color: #e35209;
}

.buttons button:nth-child(3) {
    background-color: #f7df1e;
    color: black;
}

.buttons button:hover {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}
