body {
background-color: #f0f2f5;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: 'Segoe UI', sans-serif;
}
.timer-card {
background: white;
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
text-align: center;
width: 300px;
}
.timer-display {
font-size: 48px;
font-weight: bold;
margin: 20px 0;
color: #333;
font-family: monospace;
}
.timer-display.finished {
color: #ff4d4f;
animation: blink 0.5s infinite;
}
@keyframes blink {
50% { opacity: 0; }
}
.controls {
display: flex;
flex-direction: column;
gap: 15px;
}
input {
padding: 10px;
font-size: 18px;
border: 2px solid #ddd;
border-radius: 5px;
outline: none;
}
.button-group {
display: flex;
gap: 5px;
}
button {
flex: 1;
padding: 10px;
cursor: pointer;
border: none;
border-radius: 5px;
background: #007bff;
color: white;
font-size: 16px;
transition: background 0.3s;
}
button:hover {
background: #0056b3;
}
button:disabled {
background: #ccc;
cursor: not-allowed;
}
#stop-btn {
background: #dc3545;
}
#stop-btn:hover {
background: #a71d2a;
}
#reset-btn {
background: #6c757d;
}
#reset-btn:hover {
background: #495057;
}