* {
    box-sizing: border-box;
    -webkit-tap-highlight-color:  rgba(255, 255, 255, 0);
}

*:focus {
    outline: none;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

header a.bttn.yellow, .bttn.yellow {
    background: #FFDE00;
    border: solid 1px #FFDE00;
    color: #003E19;
    font-family: jost-bold !important;
}

header a.bttn.yellow path, .bttn.yellow path {
    fill: #003E19;
}

header a.bttn.yellow:hover, .bttn.yellow:hover {
    background: transparent;
    border: solid 1px #fff;
    color: #fff;
}

header a.bttn.yellow:hover path, .bttn.yellow:hover path {
    fill: #fff;
}

a {
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

#main {
    background: #fff;
    position: relative;
    padding: 0 0 48px 0;
}

.clmns {
    overflow: hidden;
    padding: 8px 0;
}

.clmn_50 {
    width: 50%;
    float: left;
    text-align: center;
}

.clmn_45 {
    width: 45%;
    float: left;
}

.clmn_33 {
    width: 33.3%;
    float: left;
}

.clmn_55 {
    width: 55%;
    float: left;
}

.clmn_66 {
    width: 66.6%;
    float: left;
}

.col-left, .col-right {
    flex-basis: 25%;
    padding: 16px;
}

.col-center {
    flex-basis: 50%;
    padding: 16px;
    line-height: 0;
}

.col-center a {
    display: inline-block;
    margin: 0 16px;
    line-height: 0;
}

.col-right {
    white-space: nowrap;
}

.col-right a {
    display: inline-block;
    line-height: 48px;
    margin: 0 8px;
}

.col-right a img {
    vertical-align: middle;
    height: 38px;
}

.col-left a {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.col-left a img {
    margin-bottom: -6px;
}

#animation_wrapper {
    opacity: 1;
    position: relative;
    background: #003E19;
    padding: 16px;
    border-radius: 24px;
    height: 120px;
    color: #fff;
    transform: translateY(0px);
    transition: all .5s ease;
}

#animation_wrapper.invis {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50px);
}

#animation_wrapper .clmns {
    position: relative;
    margin-top: 4px;
}

#animation_wrapper .clmn_45 {
    text-align: right;
}

#animation_wrapper h3 {
    margin: 0 16px 0 0;
    font-size: 86px;
    line-height: 66px;
}

#animation_wrapper h4 {
    margin: 0;
    font-size: 30px;
    line-height: .8;
    font-family: jost-bold !important;
}

#fireworks {
    position: absolute;
    width: 426px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

html[lang="fr"] #game.smaller {
    min-height: 540px !important;
}

html[lang="fr"] #game {
    min-height: 780px !important;
}

html[lang="fr"] #box_giveaway img {
    width: 130px;
}

#game {
    position: relative;
    max-width: 508px;
    min-height: 740px;
    margin: 0 auto;
    padding-top: 80px;
    transition: all .5s ease-in-out;
}

#game.smaller {
    min-height: 540px;
}

#ttl1 {
    opacity: 0;
    transform: scale(.2);
    position: absolute;
    left: 0;
    top: 30px;
    width: 100%;
    font-size: 28px;
    color: #003E19;
    margin: 0;
    text-align: center;
    font-family: jost-bold !important;
}

#ttl2 {
    opacity: 0;
    transform: scale(.2);
    position: absolute;
    left: 0;
    top: 15px;
    width: 100%;
    font-size: 22px;
    color: #003E19;
    margin: 0;
    text-align: center;
    font-family: jost-bold !important;
}

#ttl2.visible {
    animation: ttl_anim 1s ease-in-out forwards;
}

.play #ttl1 {
    animation: ttl_anim 1s ease-in-out forwards;
}

@keyframes ttl_anim {
    0% {
        opacity: 0;
        transform: scale(.1);
    }
    10%, 100% {
        opacity: 1;
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.play #ttl1.invis, .play #ttl2.invis {
    animation: ttl_invis .5s linear forwards;
}

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

#ballot_title {
    opacity: 1;
    padding-top: 16px;
    text-align: center;
    transition: all .3s ease;
}

#ballot_title.invis {
    pointer-events: none;
    opacity: 0;
}

html[lang="fr"] #ballot_wrapper {
    margin-top: 30px !important;
}

#ballot_wrapper {
    opacity: 0;
    position: absolute;
    top: 250px;
    left: 50%;
    width: 100%;
    max-width: 428px;
    color: #003E19;
    text-align: center;
    transform: translateX(-50%);
}

.play #ballot_wrapper {
    animation: ballot_wrapper .8s 2s ease-out forwards;
}

@keyframes ballot_wrapper {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.play #ballot_wrapper.move {
    animation: ballot_wrapper_move .8s ease-out forwards;
}

@keyframes ballot_wrapper_move {
    0% {
        opacity: 1;
        top: 250px;
    }
    100% {
        opacity: 1;
        top: 80px;
    }
}

.play #ballot_wrapper.invis {
    pointer-events: none;
    animation: ballot_wrapper_invis .8s ease-out forwards;
}

@keyframes ballot_wrapper_invis {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

html[lang="fr"] #box_giveaway h4 {
    font-weight: bold !important;
    font-size: 20px !important;
    white-space: nowrap;
    margin-top: 10px;
}

html[lang="fr"] #box_giveaway img {
    width: 130px !important;
    left: -15px !important;
    position: relative !important;
}

html[lang="fr"] #enter_ballots {
    line-height: 22px !important;
}

#box_ballots, #box_giveaway {
    opacity: 0;
    pointer-events: none;
}

#box_ballots.vis {
    animation: box_ballots .5s ease-in-out forwards;
}

#box_giveaway.vis {
    animation: box_ballots .5s .2s ease-in-out forwards;
}

@keyframes box_ballots {
    0% {
        transform: scale(.2);
        opacity: 0;
    }
    20%, 100% {
        opacity: 1;
    }
    80% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }

}

#ballots {
    color: #00965F;
    font-size: 15px;
    font-family: jost-bold !important;
    margin: 0px 0 6px 0;
}

#ballot_enter {
    font-size: 14px;
    margin: 0 0 16px 0;
    font-weight: normal;
}

.clmn_img {
    position: relative;;
}

.clmn_img img {
    max-height: 116px;
}

.clmn_img svg {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
}

.clmn_img a:hover svg path {
    fill: #FFCE09;
}

.clmn_img h3 {
    display: block;
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    font-size: 15px;
    padding: 8px 12px;
}

#ballot_frame {
    background: #00965F29;
    padding: 12px 10px;
    border-radius: 36px;
}

.counters_wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    padding-bottom: 8px;
}

#counters_wrapper img {
    user-select: none;
}

.counter {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.counter_center {
    user-select: none;
    font-size: 24px;
    font-family: jost-bold !important;
    text-align: center;
    min-width: 56px;
    color: #003E19;
    border: solid 1px #00965F;
    background: #fff;
    border-radius: 12px;
}

.counter_center.small {
    font-size: 40px;
    padding-top: 8px;
}

.counter_left, .counter_right {
    opacity: 1;
    padding: 8px 4px 0 4px;
    transition: all .3s ease;
}

.counter_left.invis, .counter_right.invis {
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.counter_left a:hover rect, .counter_right a:hover rect {
    fill: #FFCE09;
}

.counter_left a:hover path, .counter_right a:hover path {
    fill: #fff;
}

#enter_ballots {
    opacity: 1;
    display: block;
    margin: 0 auto 8px auto;
    width: 98%;
    border-radius: 2px;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    background-color: #FFCE09;
    font-size: 14px;
    line-height: 36px;
    text-decoration: none;
    transform: scale(1);
    transition: all .3s ease;
    border: 2px solid #003E19;
}

#enter_ballots.inactive {
    user-select: none;
    background-color: #000;
    color: #fff;
    pointer-events: none;
    opacity: .4;
}

#enter_ballots:hover {
    background: #003E19;
    color: #fff;
}

#enter_ballots.invis {
    pointer-events: none;
    opacity: 0;
    transform: scale(.5);
}

#enter_ballots.hide {
    display: none !important;
}

[id*="popup_bg_"] {
    opacity: 1;
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    background-color: rgba(0, 0, 0, .7);
    transition: all .3s linear;
}

[id*="popup_bg_"].invis {
    opacity: 0;
    pointer-events: none;
}

[id*="popup_3"] {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 96%;
    max-width: 520px;
    height: 510px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
}

[id*="popup_3"] h2 {
    background: #00965F;
    color: #fff;
    display: block;
    margin: 0 0 32px 0;
    padding: 20px 50px;
    font-size: 18px;
}

[id*="popup_3"] h3 {
    color: #00965F;
    font-size: 18px;
    margin: 0 0 8px 0;
}

[id*="popup_3"] h4 {
    font-size: 16px;
    font-weight: normal;
    margin: 0;
}

[id*="popup_3"] p {
    margin: 10px 0;
}

[id*="popup_footer_"] {
    width: 100%;
    padding: 16px 24px;
    position: absolute;
    bottom: 0;
    text-align: right;
    background-color: #FFFFFF;
}

[id*="close_bttn_"] {
    display: block;
    position: absolute;
    right: 24px;
    top: 17px;
}

[id*="close_bttn_"] svg {
    width: 18px;
    height: 18px;
}

[id*="close_bttn2_"] {
    padding: 6px 16px;
    display: inline-block;
    border-radius: 6px;
    color: #707070;
    text-decoration: none;
    border: solid 1px #707070;;
}

#more_ballots {
    opacity: 1;
    max-height: 1000px;
    overflow: hidden;
    max-width: 776px;
    margin: 0 auto;
    opacity: 1;
    padding: 84px 0 0 0;
    color: #003E19;
    text-align: center;
    transition: all 1s ease-in-out;
}

#more_ballots.invis {
    pointer-events: none;
    max-height: 0px;
    padding: 32px 0;
    opacity: 0;
}

#more_ballots h2 {
    text-align: center;
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #00965F;
    font-family: jost-bold !important;
}

#more_ballots h2.blue {
    font-size: 18px;
    color: #167DB1;
}

#more_ballots a {
    display: inline-block;
    color: #003E19;
    text-transform: uppercase;
    margin: 0 0 6px 0;
}

#more_ballots .bttn.yellow {
    padding: 6px 12px;
    min-width: 240px;
}

#more_ballots .bttn.yellow:hover {
    background-color: #00965F;
    color: #fff;
}

#community_block .bttn.yellow:hover {
    color: #fff;
}

#more_ballots ul {
    text-align: left;
}

#more_ballots a svg {
    vertical-align: middle;
    margin-right: 4px;
}

#community_block, #flyer_block {
    background: #00965F;
    width: 98%;
    max-width: 428px;
    padding: 20px;
    border-radius: 24px;
    margin: 0 auto;
    color: #fff;
    margin-top: 32px;
}

#flyer_block {
    background: #FFCE09;
    padding-bottom: 0;
    color: #003E19;
}

#flyer_block a {
    color: #003E19;
}

#flyer_block img {
    width: 320px;
    display: block;
    margin: 0 auto;
}

#community_block h2 {
    font-size: 25px;
    color: #fff;
    margin: 0;
}

#community_block h3 {
    font-size: 14px;
    margin: 0 0 16px 0;
    font-family: jost-bold !important;
}

#community_block .bttn {
    min-width: 240px;
}

#flyer_block h3, #flyer_block h4 {
    margin: 0;
    font-family: jost-bold !important;
}

#flyer_block h4 {
    font-size: 16px !important;
}

@media (max-width: 1290px) {
    .col-center a {
        margin: 0 8px;
    }
    .col-center a img {
        height: 32px;
    }
    .col-right a {
        line-height: initial;
    }
    .col-right a img {
        height: 32px;
    }
    .col-left a img {
        height: 32px;
    }
    .col-left a {
        font-size: 14px;
    }
}

@media (max-width: 998px) {
    #main {
        padding: 0 0 0 0;
    }
    .col-center {
        padding: 0;
    }
    #footer_wrapper img {
        max-height: 44px;
    }
    .clmn_img img {
        max-height: 90px;
        display: block;
        margin-bottom: 3px;
    }
    html[lang="fr"] #game.smaller {
        min-height: 450px !important;
    }
    html[lang="fr"] #game {
        min-height: 638px !important;
    }
    #game {
        padding-top: 40px;
        min-height: 556px;
    }
    #game.smaller {
        min-height: 450px;
    }
    #ttl1 {
        margin-top: 0px !important;
        top: 10px;
        font-size: 21px;
    }
    #ttl2 {
        margin-top: 0px !important;
        top: 15px;
        line-height: 1.1;
    }
    #animation_wrapper h3 {
        font-size: 70px;
    }
    #animation_wrapper h4 {
        font-size: 26px;
    }
    #box_giveaway img {
        height: 28px;
        margin-bottom: -5px;
    }
    #more_ballots {
        padding: 40px 0 0 0;
    }
    #animation_wrapper {
        width: 96%;
        margin: 0 auto;
        height: 84px;
        padding: 4px;
    }
    #animation_wrapper h3 {
        margin: 0 4px 0 0;
        font-size: 70px;
        line-height: 54px;
    }
    html[lang="fr"] #game.smaller #ballot_wrapper {
        top: 46px !important;
    }
    html[lang="fr"] #ballot_wrapper {
        top: 176px !important;
    }
    html[lang="fr"] #box_giveaway h4 {
        font-size: 16px !important;
    }
    #ballot_wrapper {
        top: 156px;
    }
    #ballots {
        font-size: 13px;
    }
    #ballot_enter {
        font-size: 12px;
    }
    #ballot_title {
        padding-top: 4px;
    }
    [id*="popup_3"] {
        width: 88%;
        max-width: 350px;
        height: 456px;
    }
    [id*="popup_3"] h2 {
        font-size: 20px;
    }
    #community_block h2 {
        line-height: 1.1;
        margin-bottom: 8px;
    }
    #ballot_frame {
        padding: 10px;
    }
    #flyer_block {
        margin-bottom: 32px;
    }
    #fireworks {
        width: 100%;
    }
    .counters_wrapper {
        padding-bottom: 4px;
    }
    .counter_center {
        line-height: 1;
        padding-top: 3px;
        font-size: 21px;
    }
    .counter_left, .counter_right {
        padding: 4px 4px 0 4px;
    }
    .clmn_img svg {
        top: 10px;
        right: 10px;
    }
}