.timed-output-widget {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 1vh 2vh;
    box-sizing: border-box;
    color: white;
}

.timed-output-name {
    font-size: 1.25rem;
    align-self: flex-start;
}

.timed-output-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80%;
}

.timer-display {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.3rem;
    padding: 0.4vh 0.2vh;
    width: 10vh;
}

.timer-display.with-hours {
    width: 16vh;
}

.timed-output-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timer-start,
.timer-reset {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.3rem;
    font-size: 1.25rem;
    width: 12vh;
    height: 6vh;
}

.timed-output-widget.running .timer-start {
    background: rgba(0, 229, 226, 0.3);
    border-color: #00E5E2;
    box-shadow: 0 0 1vh #00E5E2;
}

.timer-start:disabled,
.timer-reset:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.widget-template.timed-output {
    width: 40vmin;
    height: 25vmin;
}





/* === MEDIA === */

/* Mobile  */

@media (max-width: 699px) {
    .timed-output-name {
        font-size: 0.95rem;
    }

    .timer-display {
        padding: 0.5rem;
        font-size: 0.95rem;
    }

    .timer-start, .timer-reset {
        padding: 0.25rem 0.5rem;
        font-size: 0.95rem;
    }
}

/* WVGA / WVGA-Narrow (720x480, 800x480) */

@media (min-width: 700px) and (max-width: 880px) {
}

/* WSVGA / XGA (1024x600, 1024x768) */

@media (min-width: 881px) and (max-width: 1150px) {
    .timed-output-name {
        font-size: 0.95rem;
    }

    .timer-display {
        font-size: 0.95rem;
    }

    .timer-start, .timer-reset {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* WXGA / HD720 / SXGA (1280x720/800/1024) */

@media (min-width: 1151px) and (max-width: 1600px) {

    .timed-output-name {
        font-size: 0.95rem;
    }

    .timer-display {
        font-size: 0.95rem;
    }

    .timer-start, .timer-reset {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

/* HD / WUXGA (1920x1080, 1920x1200) */

@media (min-width: 1601px) and (max-width: 2879px) {
    /* standard styles */
}

/* 4K (3840x2160) */

@media (min-width: 2880px) {

    .timed-output-name {
        font-size: 2rem;
    }

    .timer-display {
        font-size: 2rem;
    }

    .timer-start, .timer-reset {
        padding: 0.5rem 1rem;
        font-size: 2rem;
    }
}

/* Low height */

@media (min-width: 1000px) and (max-height: 650px) {
    .timed-output-buttons {
        gap: 0.25rem;
    }

    .timer-start, .timer-reset {
        height: fit-content;
        padding: 0.25rem 1rem;
    }
}

/* Override for 1024x600 */

@media (width: 1024px) and (height: 600px) {
    .timed-output-buttons {
        gap: 0.25rem;
    }

    .timer-start, .timer-reset {
        height: fit-content;
        padding: 0.25rem 1rem;
    }
}
