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

body{
    background-color: #3B1C32;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding:8vh 4vw;
}

.stopwatch-display {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#time {
    font-size: clamp(4rem, 16vw,12rem);
    font-weight: 200;
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
    color: #ffffff;
}

#time .ms {
    font-size: 0.5em;
    color:#666666;
    font-weight: 300;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.controls #startBtn:hover{
    background-color:#532646 
}

.controls #lapBtn:hover{
    background-color : #532646
}

.controls #resetBtn:hover{
    background-color : #532646 
}

.btn {
    background: transparent;
    border: 1px solid #333333;
    color: #999999;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

.btn:hover(:disabled){
    border-color: white;
    color: white;
    background: rgba(59, 28, 50, 0.2);
}

.btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

btn.running{
    background-color: #3B1C32;
    border-color: #3B1C32;
    color: white;
}

.btn-running:hover{
    background-color: #4e2543;
    border-color: #4e2543;
}

.laps-container{
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    max-height: 25vh;
    overflow-y: auto;
    border-top: 1px solid #3B1C32;
    padding-top: 1rem;
}

.laps-container::-webkit-scrollbar{
    width: 4px;
}

.laps-container::-webkit-scrollbar-thumb{
    background-color: #3B1C32;
    border-radius: 2px;
}

.lap-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #909095;
    font-variant-numeric: tabular-nums;
    border-bottom: 1px solid #232327;
}

.lap-item .lap-number {
    color: #55555a;
}