* {
    font-family: "Google Sans Mono", "JetBrains Mono", monospace;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Google Sans Mono", "JetBrains Mono", monospace;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    user-select: none;
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: #ffaa55;
    transition: width 1s linear;
    z-index: 1000;
    display: none;
}

#progress-bar.paused {
    background-color: #777777;
}

.countdown-active #progress-bar {
    display: block;
}

#estimated-end-time {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
    display: none;
}

.countdown-active #estimated-end-time {
    display: block;
}

#estimated-end-time.paused {
    color: #ffaa55;
}

#countdown-display {
    font-size: 10vw;
    text-align: center;
    margin-bottom: 30px;
}

#options-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    max-width: 600px;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.option-button {
    padding: 15px 20px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.option-button:hover {
    background-color: #444;
}

.option-button:disabled {
    background-color: #222;
    color: #666;
    cursor: not-allowed;
    border-color: #333;
}

.option-button:disabled:hover {
    background-color: #222;
}

.custom-input-container {
    display: flex;
    align-items: center;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 5px;
    padding: 5px 10px;
    margin: 0 5px;
}

#custom-minutes {
    width: 80px;
    padding: 10px 5px;
    font-size: 16px;
    background-color: transparent;
    color: #fff;
    border: none;
    text-align: right;
}

#custom-minutes:focus {
    outline: none;
}

.custom-input-container span {
    padding-left: 5px;
    padding-right: 10px;
    font-size: 16px;
}

#custom-start {
    margin-left: 5px;
    padding: 5px 10px;
    border: none;
    background-color: #444;
}

#control-panel {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.control-button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    cursor: pointer;
    min-width: 100px;
    text-align: center;
}

.control-button:hover {
    background-color: #444;
}

#countdown-display, #control-panel {
    display: none;
}

.countdown-active #countdown-display,
.countdown-active #control-panel {
    display: block;
}

.countdown-active #options-panel {
    display: none;
}

.completed {
    color: #ff5555;
    animation: pulse 1s infinite alternate;
}

.paused {
    color: #ffaa55;
}

@keyframes pulse {
    from {
        opacity: 0.7;
    }
    to {
        opacity: 1;
    }
}

.notification {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    background-color: #ff5555;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    transition: top 0.5s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.notification.show {
    top: 0;
}