/* 計時器與秒錶 */

.timer-section {
    background: linear-gradient(to right,rgb(52, 220, 250),rgb(255, 184, 77));
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    width: 80%;
    margin: auto;
    text-align: center;
    color: rgb(89, 0, 255);
}
.display {
    font-size: 520%;
    margin: 15px 0;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
    color: #333;
    letter-spacing: 2px; /* Added for better readability of time */
}
.inputs {
    margin-bottom: 15px;
}
.inputs label {
    margin: 0 5px 0 10px; /* Adjusted margin for labels */
    color: #fdfdfd;
    font-size: 200%;
}
.inputs input[type="number"] {
    width: 50px; /* Slightly wider for better click targets */
    padding: 8px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 1em;
}
/* Hide number input spinners for a cleaner look */
.inputs input[type="number"]::-webkit-outer-spin-button,
.inputs input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.inputs input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: testfield;
}
.controls i{
    font-size: 40px;
}
.controls button {
    padding: 40px 52px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.1s ease; /* Added transform transition */
}
.Full-screen-and-zoom button{
    padding: 12px 40px;
    border: 1;
}
.controls button:active:not(:disabled) {
    transform: scale(0.95); /* Click feedback */
}
.controls button:disabled {
    background-color: #ccc;
    color: #666; /* Darker text for disabled buttons */
    cursor: not-allowed;
}
.start-btn { background-color: #4CAF50; color: white; }
.start-btn:hover:not(:disabled) { background-color: #45a049; }

.pause-btn { background-color: #ffc107; color: black; }
.pause-btn:hover:not(:disabled) { background-color: #e0a800; }

.reset-btn { background-color: #f44336; color: white; }
.reset-btn:hover:not(:disabled) { background-color: #da190b; }

.music-btn { background-color: #3f6dec; color: white; }
.music-btn:hover:not(:disabled) { background-color: #0b53da; }

/* Responsive adjustments */
@media (max-width: 400px) {
    .timer-section {
        width: 90%;
        padding: 15px;
    }
    .display {
        font-size: 2.2em; /* Adjusted for smaller screens */
    }
    .inputs label {
        display: block; /* Stack labels on small screens */
        margin-bottom: 3px;
    }
    .inputs input[type="number"] {
        width: calc(33% - 10px); /* Adjust input width */
        margin-bottom: 10px;
    }
    .controls button {
        padding: 10px; /* Slightly smaller padding */
        font-size: 0.9em;
        width: calc(33% - 10px); /* Make buttons take up available width */
        box-sizing: border-box;
    }
}