:root{
    --bg-half-top: #FAEEDE;
    --bg-half-bottom: #FAEEDE;
    --number-color: #26325D;
    --text-color: #ffffff;
    --shadow-card: #99A9C3;
    --line-separation: #FAEEDE;
    --font-family-number: 'TenorSans-Regular','sans-serif';
    --font-family-text:  'TenorSans-Regular', sans-serif;
}

.countdown {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row nowrap;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.title {
    color: var(--text-color);
    font-size: 1rem;
    text-transform: uppercase;
    font-family: var(--font-family-text);
}

.countdown-block {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin: 20px;
}

.time-elem {
    color: var(--number-color);
    position: relative;
    height: 140px;
    width: 150px;
    background-color: var(--bg-half-bottom); 
    border-radius: 50%;
    text-align: center;
    font-size: 5.5rem;
    font-family: var(--font-family-number);
    overflow: hidden;
    margin-bottom: 27px;
    line-height: 140px;
    /*border-image: linear-gradient(-45deg,
    #92979E 0%,
    #92979E 8.4759%,
    #1F2831 20.3001%,
    #92979E 32.4508%,
    #E5EDEF 44.0104%,
    #92979E 55.4998%,
    #1F2831 67.2392%,
    #92979E 77.9845%,
    #92979E 89.4283%,
    #E5EDEF 100%) 1;*/
    border: solid 2px #FAEEDE;
    -webkit-box-shadow: 0px 0px 4px var(--shadow-card);
    box-shadow: 0px 0px 4px var(--shadow-card);
}

.time-elem > span {
    position: absolute;
    left: 0px;
    right: 0px;
}

.top {
    z-index: 3;
    background-color: var(--bg-half-top);
    -webkit-transform-origin: 50% 100%;
    transform-origin: 50% 100%;
    -webkit-transform: perspective(200px);
    transform: perspective(200px);
}

.time-elem .top::after, .time-elem .bottom-back::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid var(--line-separation);
}

.bottom {
    z-index: 1;
}

.bottom-back {
    z-index: 2;
    top: 0;
    height: 50%;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-half-top); 
}

.bottom-back span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.top, .top-back {
    height: 50%;
    width: 100%;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.top-back {
    z-index: 4;
    bottom: 0;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    background-color: var(--bg-half-bottom);
    -webkit-transform: perspective(200px) rotateX(180deg);
    transform: perspective(200px) rotateX(180deg);
}

.top-back span {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    margin: auto;
}

@media only screen and (max-width: 768px) {
    .countdown-block {
        margin: 15px;
    }

    .title {
        font-size: 0.8rem;
    }

    .time-elem {
        height: 110px;
        width: 120px;
        font-size: 3rem;
        line-height: 110px;
        margin-bottom: 17px;
    }
}