﻿


.timer-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--spacer-8, 24px);
    align-self: stretch;
}

.circular-timer {
    border-radius: 200px;
    width: 100px;
    height: 100px;
}

.circular-timer-txt {
    color: var(--colours-theme-white, #FFF);
    text-align: center;
    /* headings/h2 */
    font-family: var(--font-family-heading-typeface, Poppins);
    font-size: 33px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%; /* 39.6px */
    position: relative;
    top: -70px; //-50% of parent - 50% of self
    left: 0px;
}


.timer {
    background: -webkit-linear-gradient(left, var(--colours-theme-tertiary, #00B398) 50%, var(--colours-theme-white, #FFF) 50%);
    border-radius: 100%;
    height: calc(var(--size) * 1px);
    width: calc(var(--size) * 1px);
    position: relative;
    -webkit-animation: time calc(var(--duration) * 1s) steps(1000, start) infinite;
    -webkit-mask: radial-gradient(transparent 50%,#000 50%);
    mask: radial-gradient(transparent 50%,#000 50%);
}

.mask {
    border-radius: 100% 0 0 100% / 50% 0 0 50%;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 50%;
    -webkit-animation: mask calc(var(--duration) * 1s) steps(500, start) infinite;
    -webkit-transform-origin: 100% 50%;
}

@-webkit-keyframes time {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes mask {
    0% {
        background: var(--colours-theme-white, #FFF);
        -webkit-transform: rotate(0deg);
    }

    50% {
        background: var(--colours-theme-white, #FFF);
        -webkit-transform: rotate(-180deg);
    }

    50.01% {
        background: var(--colours-theme-tertiary, #00B398);
        -webkit-transform: rotate(0deg);
    }

    100% {
        background: var(--colours-theme-tertiary, #00B398);
        -webkit-transform: rotate(-180deg);
    }
}