body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.timer_title {
    margin-bottom: 30px;
}

h1 {
    font-size: 2em;
    font-family: 'Roboto', sans-serif;
    color: #673606;
    text-align: center;
    line-height: 0;
}



.countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.time_input {
    display: flex;
    justify-content: center;
    align-items: center;
}

input {
    margin: 5px;
    padding: 10px;
}

.time_input input[type="number"]:focus {
    outline: none;       /* Optional: Removes the default browser outline */
    border: none;
    border-radius: 3px;
}

.time_input input {
    width: 100px;
    height: 100px;
    background-color: #673606;
    border: none;
    color: #fff;
    font-size: 4em;
    text-align: center;
}

#hours::placeholder {
  color: #ffffffa4;
}

#minutes::placeholder {
  color: #ffffffa4;
}

#seconds::placeholder {
  color: #ffffffa4;
}

.bts {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

button {
    margin: 5px;
    padding: 5px 10px;
    border-radius: 3px;
    background-color: #673606;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border: 1px solid #673606;
}

button:hover {
    opacity: .9;
    cursor: pointer;
}

.button_outline {
    border: 1px solid #673606;
    color: #673606;
    background-color: #fff;
}

.timesup_stop {
    background-color: rgb(171, 12, 12);
    border: 1px solid rgb(171, 12, 12);
}

.timesup_bg input {
    background-color: #fff;
    color: rgb(171, 12, 12);
}

.dots {
    width: 15px;
    height: 15px;
    background-color: #673606bd;
    margin: 15px;
}


.timesup_title {
    color: rgb(171, 12, 12);
}



.countdown img {
    width: 150px;
    margin-bottom: 10px;

}



@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-2px, 0px) rotate(1deg); }
    30% { transform: translate(1px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-1px, 1px) rotate(0deg); }
    70% { transform: translate(1px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
    /* animation-iteration-count: 1;  */
    /* 因為動畫的單次持續時間是0.5秒，所以播放4次總持續時間是2秒 */
}

/* -------------- RWD --------------*/
/* Medium Device */
@media(max-width: 950px) {
    .time_input input {
        width: 52px;
        height: 52px;
        font-size: 2.1em;
    }

    .countdown img {
        width: 132px;
    }
    
}