.calendar,
.calendar:before, 
.calendar:after, 
.calendar *, 
.calendar *:before, 
.calendar *:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

a {
	text-decoration: none;
}

.calendar-counter {
	position: relative;
}

.contador {
    height: 100%;
    padding: 0;
    transform: translateX(8px);
}

.calendar {
    width: 100%;
    height: 100%;
    background: #ffe3ab;
    margin: 0 auto;
    position: relative;
    padding: 0;
    overflow: hidden;
}

.calendar-inner {
    position: relative;
    text-align: center;
    font-size: 19px;
    color: #ffffff;
    height: 100%;
    width: 100%;
    display: flex;
}

.calendar-left {
	background: #efb400;
	width: calc(50% - 20px);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.calendar-left a {
	max-width: 350px;
	width: 100%;
	position: relative;
}

.calendar-left:after {
    content: "";
    position: absolute;
    width: 20px;
    height: 100vh;
    top: 0;
    right: -20px;
    border-right: 20px solid #efb400;
    border-top: 100vh solid transparent;
    transform: rotate(180deg);
}

.calendar-right {
	width: calc(50% + 20px);
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding: 0 14px 50px 20px;
}

.calendar-right a {
	max-width: 350px;
	width: 100%;
	position: relative;
}

.calendar-top {
    background: #ebb900;
    width: 100%;
    height: 134px;
    display: flex;
    align-items: center;
}

.calendar-bottom {
    width: 100%;
}

.calendar-top-content  {
    width: 100%;
}

.calendar-top-content > div  {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 198px;
    margin: 0 auto;
}

.calendar-inner p {
    margin: 2px auto;
    line-height: 25px;
    font-family: "Raleway", sans-serif;
    font-weight: 500;
    font-size: 18px;
}

.text-calendar {
    color: #1e3a5e;
    font-weight: 700;
    text-indent: -12px;
}

.clearfix:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0px;
}

.counter {
    width: 118px;
    margin: 6px auto 0;
}

.counter .sheet {
    width: 32px;
    height: 40px;
    line-height: 40px;
    perspective: 600px;
    font-size: 30px;
    color: #e79900;
    float: left;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    font-weight: 700;
    margin: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    font-family: "Raleway", sans-serif;
    font-weight: 700;
}

.counter .sheet:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    left: 0;
    top: 21px;
    z-index: 100;
}

.counter .sheet>div {
    height: 50%;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.counter .sheet>div span {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.counter .sheet .up {
    top: 0;
    background-color: #ffffff;
    border-radius: 5px 5px 0 0;
}

.counter .sheet .up span {
    top: 0;
}

.counter .sheet .down {
    bottom: 0;
    background-color: #f4f3f3;
    box-sizing: border-box;
    border-radius: 0 0 5px 5px;
}

.counter .sheet .down span {
    bottom: 0;
}

.counter .sheet .helper {
    position: absolute;
    left: 0;
}

.counter .sheet .helper-up {
    background-color: #ebe7e0;
    border-radius: 5px 5px 0 0;
    top: 0;
    -webkit-transform-origin: center bottom;
    -ms-transform-origin: center bottom;
    transform-origin: center bottom;
    border-top: 1px solid #cac0b2;
}

.counter .sheet .helper-up:nth-child(3) {
    background-color: #ffffff;
}

.counter .sheet .helper-up span {
    top: 0;
}

.counter .sheet .helper-down {
    background-color: #ebe7e0;
    border-radius: 0 0 5px 5px;
    top: 50%;
    border-top: 0px solid #826a4d0d;
    box-sizing: border-box;
    -webkit-transform-origin: center top;
    -ms-transform-origin: center top;
    transform-origin: center top;
    -webkit-transform: rotateX(90deg);
    -ms-transform: rotateX(90deg);
    transform: rotateX(90deg);
    border-bottom: 1px solid #cac0b2;
}

.counter .sheet .helper-down:last-child {
    background-color: #f4f3f3;
    border-bottom: none;
}

.counter .sheet .helper-down span {
    bottom: 0;
}

.calendar .logo-censo {
    position: absolute;
    width: 46px;
    left: 24px;
    top: 3px;
    transform: translateX(-25px);
    opacity: 0;
}

.calendar .recenseador-menino {
    z-index: 2;
    position: absolute;
    width: 76px;
    top: 50%;
    left: calc(100% - 75px);
    transform: translate(25px, -55%);
    opacity: 0;
}

.calendar .recenseador-menina {
    position: absolute;
    width: 75px;
    bottom: -49px;
    z-index: 1;
    left: -6px;
    transform: translateX(-25px);
    opacity: 0;
}

.calendar-balloon {
	background: #fff;
	border-radius: 10px;
	margin: 9px 10px 0 15px;
	position: relative;
	transform: scale(.5);
	opacity: 0;
}

.calendar-balloon.top {
	padding: 8px 0 15px;
	margin: 10px 1px 0 35px;
}

.calendar-balloon:after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	top: -16px;
	right: 50px;
	border-right: 21px solid #ffffff;
	border-top: 21px solid transparent;
	transform: rotate(12deg);
	z-index: 1;
}

.calendar-balloon.top:after {
	top: auto;
	right: auto;
	bottom: -14px;
	left: 32px;
	transform: rotate(190deg);
	z-index: 1;
}

.calendar-balloon .balloon-text {
    font-size: 13px;
    line-height: 17px;
    padding: 13px 0;
    font-weight: 700;
    color: #00375f;
}

.calendar-balloon.top .balloon-text {
    padding: 0 0 5px;
}

p.balloon-button {
	background: #e79900;
	color: #ffffff;
	font-size: 13px;
	border-radius: 25px;
	padding: 4px;
	margin: 0 15px;
	font-weight: 700;
	transition: all 150ms;
}

.calendar-right a:hover .balloon-button {
	background: #d68e00;
	box-shadow: inset 0px 2px 3px rgb(0 0 0 / 31%);
}

.calendar .calendar-balloon.bottom.animate {
    animation: pop .7s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
    animation-delay: .7s;
    animation-iteration-count: 1;
}

.calendar .logo-censo.animate {
    animation: logo 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
    animation-iteration-count: 1;
}

.calendar .recenseador-menino.animate {
    animation: mascote 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
    animation-iteration-count: 1;
}

.calendar .recenseador-menina.animate {
    animation: logo 1s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
    animation-delay: 1.5s;
    animation-iteration-count: 1;
}

.calendar .calendar-balloon.top.animate {
    animation: pop .7s cubic-bezier(0.680, -0.550, 0.265, 1.550) forwards;
    animation-delay: 2s;
    animation-iteration-count: 1;
}

.calendar .counter-text {
    margin-top: 0;
    line-height: 22px;
    width: 100%;
    flex: 0 0 auto;
}

.calendar.before-start .calendar-top-content > div {
    max-width: 228px;
}

.start-text {
    background: #f4f3f3;
    box-shadow: 0 0 5px rgb(0 0 0 / 10%);
    border-radius: 3px;
    padding: 19px 5px;
    position: relative;
}

.start-text:before {
    content: "";
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: #ffffff;
    border-radius: 3px;
    height: 35px;
    border-bottom: 1px solid #cccccc69;
}

.start-text p {
    font-size: 29px;
    color: #e79900;
    font-weight: 700;
    position: relative;
}

@keyframes logo {
    0% {
        opacity: 0;
	    transform: translateX(-25px);
    }
    100% {
        opacity: 1;
	    transform: translateX(0);
    }
}

@keyframes mascote {
    0% {
        opacity: 0;
	    transform: translate(25px, -55%);
    }
    100% {
        opacity: 1;
	    transform: translate(0, -55%);
    }
}

@keyframes pop {
    0% {
        opacity: 0;
        transform: scale(.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes upflip {
    from {
        transform: rotateX(0deg);
    }
    to {
        transform: rotateX(-90deg);
    }
}

@keyframes downflip {
    0% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

@media (max-width: 568px) {
    .calendar-top-content > div {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .calendar .recenseador-menino {
    }
    
    .calendar .logo-censo {
    }
    
    .counter {
        width: 120px;
        margin: 4px auto;
    }
}

@media (max-width: 700px) {    
    .calendar .recenseador-menino {
    }

    .calendar .recenseador-menina {
    }
    
    .calendar .logo-censo {
    }
}

@media (max-width: 568px) {
    .calendar-top-content {
        flex-direction: column;
        padding: 12px 0;
    }
    
    .calendar .recenseador-menino {
    left: calc(100% - 69px);
    }

    .calendar .recenseador-menina {
    }
    
    .calendar .logo-censo {
        left: 18px;
    }
    
    .counter {
        width: 116px;
        margin: 1px auto;
    }

    .calendar-inner p.text-calendar {
        font-size: 21px;
    }

    .calendar .counter-text {
        line-height: 24px;
        font-size: 19px;
    }
}

@media (min-height: 360px) {     

	.calendar-inner {
		flex-direction: column;
	}

	.calendar-left {
		width: 100%;
		padding: 15px;
	}

	.calendar-right {
		width: 100%;
		padding: 15px;
	}
}