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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease;
}

body.white {
    background-color: #ffffff;
    background-image: url('MMA_2560_HQ.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body.green {
    background-color: #22c55e;
}

body.amber {
    background-color: #f59e0b;
}

body.red {
    background-color: #ef4444;
}

.container {
    text-align: center;
    z-index: 1;
}

.timer-display {
    font-size: 20vw;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1200px) {
    .timer-display {
        font-size: 15rem;
    }
}

.timer-display.hidden {
    display: none;
}

.button-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-start {
    background-color: #22c55e;
    color: white;
}

.btn-start:hover {
    background-color: #16a34a;
}

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

.btn-reset:hover {
    background-color: #4b5563;
}

/* When timer is running, hide start button */
body.green .btn-start,
body.amber .btn-start,
body.red .btn-start {
    display: none;
}

/* When timer is running, show reset button */
body.green .btn-reset,
body.amber .btn-reset,
body.red .btn-reset {
    display: inline-block;
}

.settings-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.setting-item label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.setting-item input {
    padding: 0.5rem;
    font-size: 0.9rem;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

.setting-item input:focus {
    outline: none;
    border-color: #22c55e;
}

/* Hide settings panel when timer is running */
body.green .settings-panel,
body.amber .settings-panel,
body.red .settings-panel {
    display: none;
}

