#menu, #bars {
    display: none;
}

#menu {
    margin-top: 10px;
}
#menu.showMenu {
    display: flex;
}
#badges {
    height: 200px;
    flex: none;
    width: 150px;
    justify-content: right;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    position: relative;
}
#badges > div {
    height: 69px;
    width: 100%;
    position: relative;
    margin: 10px;
}
#badges img {
    position: absolute;
    top: 0;
    right: 0;
    height: 69px;
    transition: 1s all;
}
#badges img.empty {
    opacity: .7;
}
#badges img.full {
    opacity: 0;
    transform: scale(1.3);
    pointer-events: none;
}

#badges .taken img.empty {
    opacity: 0;
}
#badges .taken img.full {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}


.heartbeatBig {
    animation-name: heartbeatBig;
    animation-duration: 2s;
    animation-iteration-count: 1;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

.popupTitle {
    font-size: 22px;
}





#bars {
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    transform: scale(0.8);
}
#bars[style*='display: block'] {
    display: flex !important;
}

@media (min-height: 800px) {
    #bars {
        top: 175px;
        transform: scale(1);
    }
}


#sledgeBar, #coldBar, #sledgeBearBar {
    position: relative;
    width: 330px;
    height: 100px;
    display: none;
}
#sledgeBearBar {
    width: 330px;
}
#coldBar {
    width: 290px;
    height: 50px;
    margin-top: 6px;
}
#bars .icon {
    position: absolute;
    height: 70px;
    width: 60px;
    background-repeat: no-repeat;
    background-size: 100%;
    left: 0;
}

#sledgeBar .icon {
    background-image: url("../images/bars/label-ico_sled.png");
}
#sledgeBearBar .icon {
    left: auto;
    right: 0;
    background-image: url("../images/bars/label-ico_sled.png");
}
#sledgeBearBar .bearIconContainer {
    width: 100%;
    height: 100%;
    position: relative;
}
#sledgeBearBar .bearIcon {
    position: absolute;
    top: -34px;
    left: auto;
    right: 0;
    transition: 0.5s all;
    margin-right: -35px;
    width: 70px;
    height: 70px;
    background-image: url(../images/bars/label-ico_bear.png);
    background-size: 100% 100%;
    z-index: 10;
    transform-origin: bottom;
}
#coldBar .icon {
    top: -26px;
    transition: 0.5s all;
    margin-left: -22.5px;
    width: 45px;
    height: 50px;
    background-image: url("../images/bars/label-ico_cold.png");
}
#coldBar.nearFire .icon {
    background-image: url("../images/bars/label-ico_hot.png");
}

#bars .background {
    position: absolute;
    height: 70px;
    width: 270px;
    background-repeat: no-repeat;
    background-size: 100%;
    overflow: hidden;
    background-image: url("../images/bars/bar_empty_sled.png");
    left: 58px;
}
#bars #sledgeBearBar .background {
    background-image: url("../images/bars/bar_bear.png");
    left: auto;
    right: 58px;
    overflow: visible;
    padding: 0 0 0 2px;
}
#sledgeBearBar .winZone {
    position: absolute;
    left: 0;
    background: green;
    opacity: 0.3;
    height: 13px;
    right: 80%;
    top: 27px;
}
#sledgeBearBar .deathZone {
    position: absolute;
    right: 0;
    background: red;
    opacity: 0.3;
    height: 13px;
    left: 75%;
    top: 27px;
}

#bars #coldBar .background {
    left: 50%;
    margin-left: -150px;
    width: 300px;
    height: 50px;
    background-image: url("../images/bars/bar_full_fire.png");
}

#bars .fill {
    position: absolute;
    height: 70px;
    width: 268px;
    background-repeat: no-repeat;
    background-size: 100%;
    transition: 0.5s all;
    left: 0;
}

#sledgeBar .fill {
    background-image: url("../images/bars/bar_full_sled.png");
}
#sledgeBar.dying {
    animation: heartbeat 2s infinite;
}
#coldBar.dying .icon {
    animation: heartbeat 2s infinite;
}
#sledgeBearBar.dying .bearIcon {
    animation: heartbeat 2s infinite;
}

.animation-duration4 {
    animation-duration: 2s !important;
}
.animation-duration3 {
    animation-duration: 1.5s !important;
}
.animation-duration2 {
    animation-duration: 1s !important;
}
.animation-duration1 {
    animation-duration: 0.5s !important;
}
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartbeatBig {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
