#countdown {
    animation: show 200ms ease-in-out;
    transition: 100ms ease-in-out;
}

@keyframes show {
    0% {
        opacity: 0.5;
        transform: scale(0);
    }
}

.container-countdown {
    box-sizing: border-box;
    font-family: Teko, sans-serif;
    font-size: 4.3rem;
    display: flex;
    gap: 0.3em;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.timer-container {
    display: flex;
    flex: 1;
    margin-bottom: 20px;
    gap: 0.3em;
}

.first-child {
    justify-content: flex-end;
}

.second-child {
    justify-content: flex-start;
}

.flip-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.2);
    border-radius: 0.1em;
}

.top,
.bottom,
.flip-card .top-flip,
.flip-card .bottom-flip {
    height: 0.75em;
    line-height: 1;
    padding: 0.25em;

    overflow: hidden;
}
.top {
    /* padding-top: 0.33em; */
    min-width: 70px;

}
.bottom {
    /* padding-bottom: 0.155em; */
    min-width: 70px;
}



.top,
.flip-card .top-flip {
    background-color: #8d0b2d;
    border-top-right-radius: 0.1em;
    border-top-left-radius: 0.1em;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
    text-align: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.bottom,
.flip-card .bottom-flip {
    background-color: #8d0b2d;
    display: flex;
    align-items: flex-end;
    border-bottom-right-radius: 0.1em;
    border-bottom-left-radius: 0.1em;
    text-align: center;
    justify-content: center;
}

/* texto abaixo do countdown */
.segment-title {
    font-size: 20px;
    color: #8d0b2d;
    font-family: Poppins, sans-serif;
}

.flip-card .top-flip {
    position: absolute;
    width: 100%;
    animation: flip-top 250ms ease-in;
    transform-origin: bottom;
    text-align: center;
}

@keyframes flip-top {
    100% {
        transform: rotateX(90deg);
    }
}

.flip-card .bottom-flip {
    position: absolute;
    bottom: 0;
    width: 100%;
    animation: flip-bottom 250ms ease-out 250ms;
    transform-origin: top;
    transform: rotateX(90deg);
}

@keyframes flip-bottom {
    100% {
        transform: rotateX(0deg);
    }
}

.container-segment {
    display: flex;
    flex-direction: column;
    /* gap: 0.4em; */
    align-items: center;
}

.segment {
    display: flex;
    gap: 0.1em;
}

/* .container-segment:not(:first-child) .segment::before {
    content: ' ';
    width: 1px;
    border-left: 1px solid black;
} */

/* @media */
/* .timer-container {
    display: flex;
    flex: 1;
    justify-content: space-evenly;
    margin-bottom: 20px;
} */

@media (max-width: 768px) {
    .first-child,
    .second-child {
        justify-content: center;
    }
}
