* {
    font-family: 'Montserrat', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #2f0042; /* Match the background color to the image */
    margin: 0;
}

.container {
    position: relative;
    background-color: #a600ff; /* Purple color */
    border-radius: 20px;
    padding: 40px; /* Adjust padding to match the image */
    text-align: center;
    color: white;
    width: 80%;
    max-width: 600px;
}

.status-circle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: grey; /* Default color */
    box-shadow: 0 0 10px  rgba(0, 0, 0, 0.5);
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.time-display {
    font-size: 3rem; /* Font size for time display */
    background-color: white; /* White background for the display */
    color: black; /* Black text color */
    padding: 20px; /* Padding inside the display box */
    border-radius: 10px; /* Rounded corners */
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
}

.time-display span {
    display: inline-block;
    width: 2ch; /* Fixed width for each time segment to prevent shifting */
    text-align: center;
}

.time-display .small {
    font-size: 1.5rem; /* Smaller font size for milliseconds */
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}

.buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    background-color: white;
    color: black;
    transition: background-color 0.3s, color 0.3s;
    font-weight: bold;
    letter-spacing: 5px;
}

.buttons button:hover {
    background-color: #ddd; /* Light grey on hover */
}

.laps {
    margin-top: 20px;
}

.laps h3 {
    margin-bottom: 10px;
}

.laps ul {
    list-style-type: none;
    padding: 0;
}

.laps ul li {
    background-color: white;
    color: black;
    padding: 5px 10px;
/*     margin-bottom: 5px; */
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    width: fit-content;
    margin: 10px auto;
}

@media (max-width: 540px) {
    .container{
        width: 70%;
    }

    .buttons{
        flex-direction: column;
    }

    .buttons button{
        padding: 15px;
    }
}

@media (max-width: 320px) {
    .time-display {
        font-size: 2.5rem;
    }

    .buttons button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 280px) {
    .container {
        padding: 15px;
    }

    .time-display {
        font-size: 2rem;
    }

    .buttons button {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
