.cg-button {
    display: block;
    position: absolute;
    width: 100px;
    height: 100px;
    background: none;
    border: none;
    transition: all .5s;
    padding: 0;
}
@media screen and (max-width: 980px){
    .cg-button {
        width: 60px;
        height: 60px;
    }
}

.cg-button:hover {
    transform: scale(0.9);
}

.cg-button.clicked {
    transform: scale(0);
    visibility: hidden;
}

.cg-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.cg-button.hero-block {
    bottom: -40px;
    left: 0;
}
@media screen and (max-width: 980px){
    .cg-button.hero-block {
        bottom: -20px;
        left: 0;
    }
}

.cg-button.infogrid-block {
    top: 40px;
    right: 25%;
}
@media screen and (max-width: 980px){
    .cg-button.infogrid-block {
        top: 0px;
        right: 0px;
    }
}

.cg-button.shop-slider {
    top: calc(50% - 50px);
    right: -30px;
}
@media screen and (max-width: 980px){
    .cg-button.shop-slider {
        top: calc(50% - 30px);
        right: 0;
    }
}

.cg-button.accordeons-block {
    top: calc(50% - 50px);
    left: -50px;
}
@media screen and (max-width: 980px){
    .cg-button.accordeons-block {
        top: 27%;
        left: -30px;
    }
}

.cg-button.abt-company {
    top: 0;
    right: -20px;
}
@media screen and (max-width: 980px){
    .cg-button.abt-company {
        right: 0;
    }
}

.cg-button.factory {
    bottom: -30px;
    left: 0;
    z-index: 1;
}
@media screen and (max-width: 980px){
    .cg-button.factory {
        bottom: -20px;
    }
}

.cg-button.marquee_block {
    bottom: -30px;
    right: 20px;
}
@media screen and (max-width: 980px){
    .cg-button.marquee_block {
        bottom: -20px;
        right: 16px;
    }
}

.cg-button[data-id="minerals"] {
    top: 0;
    left: 0;
}
@media screen and (max-width: 980px){
    .cg-button[data-id="minerals"] {
        top: 0;
        left: 0;
    }
}

.cg-button[data-id="vegetables"] {
    bottom: 0;
    right: 0;
}
@media screen and (max-width: 980px){
    .cg-button[data-id="vegetables"] {
        bottom: 0;
        right: 0;
    }
}


.cg-button[data-id="love"] {
    top: 10px;
    left: 10px;
}
@media screen and (max-width: 980px){
    .cg-button[data-id="love"] {
        top: 10px;
        left: 10px;
    }
}


.catch-game-button {
    position: fixed;
    display: block;
    width: 80px;
    height: 80px;
    right: 48px;
    bottom: 48px;
    z-index: 1000;
}
.catch-game-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media screen and (max-width: 980px) {
    .catch-game-button {
        width: 52px;
        height: 52px;
        right: 16px;
        bottom: 16px;
    }
}


.cg-popup-overlay,
.cg-final-overlay{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2500;
    background-color: #00000055;
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: center;
    transition: all .5s;
    visibility: hidden;
    opacity: 0;

}
.cg-popup-overlay.active,
.cg-final-overlay.active {
    visibility: visible;
    opacity: 1;
}
.cg-popup-overlay.active .cg-progress-popup,
.cg-final-overlay.active .cg-final-popup{
    transform: translateY(0);
    opacity: 1;
}
.cg-progress-popup,
.cg-final-popup{
    padding: 24px 32px;
    background-color: #fff;
    border-radius: 24px;
    width: 330px;
    transform: translateY(100px);
    opacity: 0;
    transition: all .5s;
}
.cg-final-popup {
    width: 560px;
    padding: 24px 20px;
}
.cg-progress-popup .cg-progress-bar {
    width: 100%;
    border-radius: 16px;
    background-color: #FFE5F5;
    padding: 6px;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.cg-progress-popup .cg-progress-bar .cg-progress-bar-points{
    width: calc(100% - 58px);
    margin-right: 4px;
    display: flex;
    align-items: center;
}
.cg-progress-bar-points .cg-bar-point {
    height: 26px;
    border-radius: 16px;
    background-color: #F7B3D1;
    width: 100%;
    margin-right: 4px;
}
.cg-progress-bar-points .cg-bar-point.active {
    background-color: #A31E58;
}

.cg-step-title {
    text-transform: uppercase;
    text-align: center;
    color: #A31E58;
    margin-bottom: 12px;
}

.cg-step-image {
    margin-bottom: 12px;
    margin: auto;
}
.cg-step-image img {
    margin: auto;
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.cg-step-ingredient {
    text-align: center;
}
.cg-step-ingredient p {
    color: #A31E5880;
    text-align: center;
}
.cg-step-ingredient p.ing-name {
    color: #A31E58;
}

.cg-final-button.button {
    margin: 12px auto 0;
    transition: all .5s;
    padding: 32px 24px;
}

.cg-final-button.hidden {
    display: none;
}


.cg-final-popup__wrap {
    display: flex;
    justify-content: space-between;
}

.cg-final-popup__wrap__sticker {
    width: 50%;
    margin-right: 12px;
    display: flex;
    flex-direction: column;
    height: inherit;
}
.cg-final-text {
    display: flex;
    width: 100%;
    align-items: center;
    margin-bottom: 24px;
}
.cg-final-text svg {
    margin-right: 4px;
}
.cg-final-text p {
    color: #A31E58;
    width: calc(100% - 40px);
}

.cg-final-sticker {
    width: 100%;
    padding-top: 100%;
    border-radius: 16px;
    background-color: #FFE5F5;
    position: relative;
}
.cg-final-sticker img {
    width: calc(100% - 32px);
    height: calc(100% - 32px);
    position: absolute;
    left: 16px;
    top: 16px;
    object-fit: contain;
}

.cg-final-popup__wrap__main {
    width: 50%;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    height: inherit;
}

.cg-final-popup__wrap__main .heading {
    color: #A31E58;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cg-final-popup__wrap__main  .paragraph {
    margin-bottom: 12px;
}

.cg-final-popup__wrap__main .button {
    padding: 24px;
    margin-top: auto;
}

.cg-final-popup__wrap__main .button svg {
    margin-right: 8px;
}

@media screen and (max-width: 980px) {
    .cg-popup-overlay,
    .cg-final-overlay{
        padding: 16px 40px;
    }

    .cg-final-button.button {
        padding: 24px;
    }

    .cg-final-popup {
        padding: 18px;
    }
    .cg-final-popup__wrap {
        flex-direction: column;
    }
    .cg-final-popup__wrap__sticker {
        width: 100%;
        margin-right: 0;
    }
    .cg-final-text {
        margin-bottom: 12px;
    }
    .cg-final-sticker {
        padding-top: 70%;
    }
    .cg-final-popup__wrap__main {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    .cg-final-popup__wrap__main .heading {
        margin-bottom: 12px;
        text-align: center;
        font-size: 20px;
    }
    .cg-final-popup__wrap__main .paragraph {
        margin-bottom: 12px;
        text-align: center;
    }

}