@define-color clocks_go_color_a #7fc141;
@define-color clocks_go_color_b #8fc95d;
@define-color clocks_stop_color_a #f44848;
@define-color clocks_stop_color_b #ff6565;

.clocks-digital-renderer {
    background-color: transparent;
}

.clocks-digital-renderer.stripe {
    font-size: 32px;
}

/* world */

.clocks-digital-renderer.light.stripe {
    background-color: rgba(255, 255, 255, 0.4);
    color: black;
}

.clocks-digital-renderer.light.stripe:prelight {
    background-color: rgba(255, 255, 255, 0.6);
}

.clocks-digital-renderer.dark.stripe {
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
}

.clocks-digital-renderer.dark.stripe:prelight {
    background-color: rgba(0, 0, 0, 0.2);
}

/* alarms */

.clocks-digital-renderer.active {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(shade(@theme_selected_bg_color,1.2)), to(@theme_selected_bg_color));
    color: white;
}

.clocks-digital-renderer.active:prelight {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(shade(@theme_selected_bg_color, 1.4)), to(@theme_selected_bg_color));
    text-shadow: 0 2px 2px rgba(0,0,0,0.5)
}

.clocks-digital-renderer.snoozing {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(@warning_bg_color), to(shade(@warning_bg_color,0.9)));
    color: white;
}

.clocks-digital-renderer.snoozing:prelight {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(shade(@warning_bg_color,1.1)), to(shade(@warning_bg_color,0.99)));
    text-shadow: 0 2px 2px rgba(0,0,0,0.5)
}

.clocks-digital-renderer.inactive {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(shade(@insensitive_bg_color,0.9)), to(shade(@insensitive_bg_color,0.85)));
    color: shade(@insensitive_fg_color,0.9);
}

.clocks-digital-renderer.inactive:prelight {
    background-color: transparent;
    background-image: -gtk-gradient(radial,
                                    center center, 0,
                                    center bottom, 1.0,
                                    from(shade(@insensitive_bg_color,0.99)), to(shade(@insensitive_bg_color,0.9)));
    color: @insensitive_fg_color;
}

.clocks-ampm-toggle-button {
    font-size: 18px;
}

.clocks-digital-renderer.active.stripe,
.clocks-digital-renderer.snoozing.stripe,
.clocks-digital-renderer.inactive.stripe {
    background-color: transparent;
    background-image: none;
}

.clocks-standalone-label,
.clocks-ringing-label {
    font-size: 64px;
}

.clocks-secondary-standalone-label {
    font-size: 18px;
}

.clocks-button {
    font-size: 14px;
}

.clocks-alarm-setup-time {
    font-size: 32px;
}

.clocks-spinbutton {
    font-size: 48px;
}

.clocks-stopwatch-label,
.clocks-timer-label {
    font-size: 48px;
}

.clocks-go {
    background-image: linear-gradient(to bottom,
                                      @clocks_go_color_a,
                                      darker(@clocks_go_color_a) 70%
                                      );
    color: #ffffff;
    border-image: url("button-border-go.svg") 3 3 4 3 / 3 3 4 3 stretch;
    border-radius: 3px;
    border-width: 1px 1px 2px 1px;
    border-style: solid;
    border-color: transparent;
}

.clocks-go:hover {
    background-image: linear-gradient(to bottom,
                                      @clocks_go_color_b,
                                      darker(@clocks_go_color_b) 70%
                                      );
}

.clocks-go:active {
    background-image: linear-gradient(to bottom,
                                      darker(@clocks_go_color_a),
                                      @clocks_go_color_a
                                      );
    border-image: url("button-border-go-active.svg") 3 3 4 3 / 3 3 4 3 stretch;
}

.clocks-stop {
    background-image: linear-gradient(to bottom,
                                      @clocks_stop_color_a,
                                      darker(@clocks_stop_color_a) 70%
                                      );
    color: #ffffff;
    border-image: url("button-border-stop.svg") 3 3 4 3 / 3 3 4 3 stretch;
    border-radius: 3px;
    border-width: 1px 1px 2px 1px;
    border-style: solid;
    border-color: transparent;
}

.clocks-stop:hover {
    background-image: linear-gradient(to bottom,
                                      @clocks_stop_color_b,
                                      darker(@clocks_stop_color_b) 70%
                                      );
}

.clocks-stop:active {
    background-image: linear-gradient(to bottom,
                                      darker(@clocks_stop_color_a),
                                      @clocks_stop_color_a
                                      );
    border-image: url("button-border-stop-active.svg") 3 3 4 3 / 3 3 4 3 stretch;
}

.linked .clocks-go:first-child,
.linked .clocks-stop:first-child,
.linked .clocks-go:active:first-child,
.linked .clocks-stop:active:first-child,
.linked .clocks-go:active:hover:first-child,
.linked .clocks-stop:active:hover:first-child,
.linked .clocks-go:insensitive:first-child,
.linked .clocks-stop:insensitive:first-child {
    border-right-width: 0;
    border-image-width: 3px 0 4px 3px;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.linked .clocks-go:last-child,
.linked .clocks-stop:last-child,
.linked .clocks-go:active:last-child,
.linked .clocks-stop:active:last-child,
.linked .clocks-go:active:hover:last-child,
.linked .clocks-stop:active:hover:last-child,
.linked .clocks-go:insensitive:last-child,
.linked .clocks-stop:insensitive:last-child {
    border-left-width: 0;
    border-image-width: 3px 3px 4px 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

.clocks-selection-bar {
    border-width: 1px 0 0;
    border-style: solid;
    border-color: shade(@borders, 0.90);
    padding: 9px;
}

.clocks-selection-bar .button.text-button {
    padding: 2px 16px;
}

.clocks-analog-frame.trough {
    color: #d3d7cf;
}

.clocks-analog-frame.progress {
    color: #2e3436;
}

.clocks-analog-frame.progress-fast {
    color: #888a85;
}

.clocks-laps-panel {
    border: 0;
    padding-top: 120px;
    padding-bottom: 120px;
}

.clocks-laps-panel:dir(ltr) {
    padding-right: 48px;
}

.clocks-laps-panel:dir(rtl) {
    padding-left: 48px;
}

.clocks-stopwatch-laps-row {
    font-size: larger;
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: #d3d7cf;
}

@keyframes clocks-blink {
    0% { color: @theme_fg_color; }
    100% { color: @insensitive_fg_color; }
}

.clocks-blink {
    animation-name: clocks-blink;
    animation-iteration-count: infinite;  
    animation-timing-function: cubic-bezier(1.0,0,0,1.0);
    animation-duration: 1s; 
}

