@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap");

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

body {
    font-family: "Roboto Mono", monospace;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: url("https://images.unsplash.com/photo-1554034483-04fda0d3507b?q=80&w=2070");
    background-size: cover;
    background-position: center;
}

.stopwatch-container {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #333;
}

.timer-display {
    font-size: 4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
}

button {
    border: none;
    border-radius: 50px;
    font-family: "Roboto Mono", monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 12px 0;
    width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

button:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-start  { background-color: #27ae60; } /* Green */
.btn-stop   { background-color: #c0392b; } /* Red */
.btn-lap    { background-color: #3498db; } /* Blue */
.btn-reset  { background-color: #7f8c8d; } /* Gray */

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.laps-container {
    max-height: 150px;
    overflow-y: auto;
    width: 100%;
    text-align: left;
}

#laps {
    list-style: none;
    padding-right: 10px;
}

#laps li {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px solid #ddd;
    font-size: 1rem;
}

#laps li:first-child {
    font-weight: bold;
}
