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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.timer-container {
    background-color: white;
    margin-top: 20vh;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 350px;
    width: 100%;
    max-width: 600px;
    margin-bottom: 40px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.display {
    font-size: 4em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 40px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 15px 30px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-start {
    background-color: #27ae60;
    color: white;
}

.btn-start:hover:not(:disabled) {
    background-color: #229954;
}

.btn-pause {
    background-color: #f39c12;
    color: white;
}

.btn-pause:hover:not(:disabled) {
    background-color: #e67e22;
}

.btn-reset {
    background-color: #e74c3c;
    color: white;
}

.btn-reset:hover:not(:disabled) {
    background-color: #c0392b;
}

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

.btn-lap {
    background-color: #3498db;
    color: white;
}

.btn-lap:hover:not(:disabled) {
    background-color: #2980b9;
}

.laps-container {
    margin-top: 30px;
    max-height: 300px;
    overflow-y: auto;
    text-align: left;
}

.laps-container h3 {
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.5em;
}

.laps-list {
    list-style: none;
    padding: 0;
}

.laps-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
}

.laps-list li:hover {
    background-color: #f8f9fa;
}

.lap-number {
    font-weight: bold;
    color: #3498db;
    min-width: 60px;
}

.lap-time {
    color: #27ae60;
    font-family: 'Courier New', monospace;
    flex: 1;
    text-align: center;
}

.total-time {
    color: #666;
    font-family: 'Courier New', monospace;
    text-align: right;
    min-width: 120px;
}

/* Footer Styles */
.timer-footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px 15px;
    margin-top: auto;
    width: 100%;
}

.footer-text {
    margin: 0 0 10px 0;
    font-size: 1em;
}

.footer-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFA500;
    text-decoration: underline;
}

.footer-tagline {
    margin: 0;
    font-size: 0.9em;
    color: #cccccc;
}

.footer-ps {
    margin: 15px 0 0 0;
    font-size: 0.85em;
    color: #999999;
    font-style: italic;
}