body {
    font-family:Arial, Helvetica, sans-serif;
    text-align: center;
    background: #111;
    color: #fff;
    margin: 0;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

.htu-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 9999;
}
.closed {
    display: none;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #222;
    width: 80%;
    height: 90%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10000;
    text-align: justify;
    overflow-y: auto;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    scale: 1.5;
}

.time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 100px 0;
    font-size: 20vw;
    font-weight: bold;
    width: 100%;
    height: 1.2em;
}

.time-group {
    height: 1.2em;
    display: flex;
    align-items: center;
    gap: 0;
}

.time-box {
    width: 11vw;
    height: 1.1em;
    display: flex;
    justify-content: center;
    /* background: #1b1b1b; */
    /* border-radius: 10px; */
    /* box-shadow: inset 0 0 0 1px #2a2a2a; */
    /* line-height: 1; */
}

.time-sep {
    width: 42px;
    height: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    position: relative;
}

.time-sep .colon {
    width: 2vw;
    height: 2vw;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.time-sep .colon:first-child {
    top: 36%;
}
.time-sep .colon:last-child {
    bottom: 28%;
}

/* .time-sep .colon {
    display: none;
} */

input {
    font-size: 1rem;
    padding: 6px;
    width: 80px;
    text-align: center;
    border-radius: 3px;
    border: none;
}
button {
    font-size: 1.2rem;
    padding: 12px 24px;
    margin: 8px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.start {
    background: #4CAF50;
    color: white;
}
.start.disabled {
    background: #333;
    color: white;
}
.stop {
    background: #f44336;
    color: white;
}
.stop.disabled {
    background: #333;
    color: white;
}
.reset {
    background: #2196F3;
    color: white;
}
.reset.disabled {
    background: #333;
    color: white;
}

.config {
    margin-top: 30px;
    font-size: 1rem;
}

.preset-row {
    width: 100%;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: normal;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.preset-select {
    height: 40px;
    font-size: 1rem;
    padding: 6px;
    border-radius: 3px;
    border: none;
    margin-left: 10px;
}
.preset-select option {
    font-size: 1rem;
    text-align: center;
}

.preset-button {
    height: 40px;
    width: max-content;
    font-size: 1rem;
    padding: 4px 8px;
    margin-left: 10px;
    border-radius: 3px;
    border: none;
    background: #555;
    color: white;
    cursor: pointer;
}
.preset-button:hover {
    background: #4CAF50;
}

input {
    font-size: 1rem;
    padding: 6px;
    width: 80px;
    text-align: center;
}

.bell-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 10px 0;
}

.bell-icon {
    width: 60px;
    text-align: center;
    min-height: 24px;
}

.toggle-btn {
    width: 50px;
    height: 24px;
    padding: 0;
    border-radius: 12px;
    border: none;
    text-align: center;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s;
}

.toggle-btn.on {
    background: #4CAF50;
    color: white;
}

.toggle-btn.off {
    background: #999;
    color: white;
}

@media (max-width: 959px) {
    #time {
        font-size: 30vw;
        margin: 80px 0;
    }
    .time-box {
        width: 16vw;
    }
    .time-sep {
        width: 25px;
    }
    .time-sep .colon {
        width: 3vw;
        height: 3vw;
    }
    input {
        width: 60px;
    }
}

@media (max-width: 767px) {
    #time {
        font-size: 32vw;
        margin: 50px 0;
    }
    .time-box {
        width: 18vw;
    }
    .time-sep {
        width: 10px;
    }
    .time-sep .colon {
        width: 4vw;
        height: 4vw;
    }
    input {
        width: 50px;
    }
    .preset-button {
        font-size: 0.8rem;
        padding: 2px 6px;
    }
}

