/* General Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    background: #1a1a1a;
    /* Dark background */
    background-image: url('Background.jpg');
    /* Path to your image */
    background-size: cover;
    /* Ensures the image covers the entire screen */
    background-position: center;
    /* Centers the image */
    background-repeat: no-repeat;
    /* Prevents the image from repeating */
    color: white;
}

.container {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #fff;
}

.stopwatch-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(106, 17, 203, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 10px #6a11cb, 0 0 20px #6a11cb;
    }
    to {
        box-shadow: 0 0 20px #2575fc, 0 0 40px #2575fc;
    }
}

.time-display {
    font-size: 36px;
    font-weight: bold;
    color: white;
    background: transparent;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.controls button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 100px;
}

.controls button:hover {
    transform: scale(1.05);
}

#start-btn {
    background: linear-gradient(135deg, #28a745, #1c943d);
    color: white;
}

#pause-btn {
    background: linear-gradient(135deg, #dc3545, #b02a37);
    color: white;
}

#reset-btn {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: black;
}

#lap-btn {
    background: linear-gradient(135deg, #17a2b8, #0f6674);
    color: white;
}

.laps {
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: rgb(18, 18, 18);
}

.laps div {
    margin-bottom: 5px;
    padding: 5px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: rgb(13, 12, 12);
}
