html, body {
    height: auto !important;
    min-height: 100vh !important;
}


body {
    position: relative;
    background-color: #0B232E;
}

.footer {
    margin-top: 0 !important;
    z-index: 1;
}

.navbar {
    background: rgba(0, 0, 0, 0.55) !important;
    border-bottom: 0 !important;
}

.navbar-menu .navbar-item {
    color: #fff !important;
    opacity: 0.8;
}

.navbar-link.is-active, .navbar-link:focus, .navbar-link:focus-within, .navbar-link:hover, a.navbar-item.is-active, a.navbar-item:focus, a.navbar-item:focus-within, a.navbar-item:hover {
    background-color: transparent !important;
    border-bottom-color: #fff !important;
    opacity: 1;
}

.button.is-primary {
    background-color: #F60C5B !important;
    color: #fff !important;
}

.button.is-primary.is-hovered, .button.is-primary:hover {
    background-color: #d00a4d !important;
    color: #fff !important;
}

.navbar-item .buttons .button {
    background-color: transparent !important;
}

.navbar-item .buttons .button svg {
    opacity: 1;
    fill: #fff;
}

.navbar-item .age-limit {
    color: #fff;
}

.btn-burger__line {
    background-color: #fff !important;
}

footer.footer {
    background-color: #0B232E;
    color: rgba(255, 255, 255, 0.8);
}

footer.footer svg {
    fill : #fff !important;
}

.social-btns__item a:hover {
    background: transparent !important;
    border: 1px solid #fff !important;
}

footer.footer .link {
    color: rgba(255, 255, 255, 0.7) !important;
}

.modal-nav .modal-background, .modal-search .modal-background {
    background: radial-gradient(50% 50% at 50% 50%, #0B1968 0%, #110445 100%) !important;
}

.modal-search .tag-cloud a {
    color: #fff !important;
}

.modal-nav .modal-close:focus, .modal-nav .modal-close:hover, .modal-search .modal-close:focus, .modal-search .modal-close:hover {
    background: transparent !important;
}

.modal-nav .modal-close:after, .modal-nav .modal-close:before, .modal-search .modal-close:after, .modal-search .modal-close:before {
    background-color: #fff !important;
}

.modal .is-primary.input, .modal .is-primary.textarea {
    border-color: #fff !important;
}

.modal .modal-nav__item a:hover .link-value {
    background-image: linear-gradient(45deg,#F60C5B,#6A0D5B);
}

.modal .modal-nav__item .link-value {
    color: #fff;
}

.game_match_three .social-btns-title {
    font-weight: 300;
    font-size: 24px;
    line-height: 33px;
    color: #fff;
    margin: 30px auto 10px;
}

.game_match_three .social-btns__item a {
    width: 40px;
    height: 40px;
    border: 1px solid #E1BD65;
}

.game_match_three .social-btns__item a:hover {
    background: transparent !important;
    border: 1px solid #C89B2F!important;
}

.game_match_three .social-btns__item svg {
    opacity: 1;
    fill: #E1BD65;
    transform: scale(1.2);
}

.social-btns__item a:hover svg {
    fill: #C89B2F !important;
}

.post-share-buttons {
    display: block !important;
    margin-bottom: 0 !important;
}

.social-btns-wrapper .button {
    visibility: hidden;
}

.neon-text {
    position: relative;
    color: #fff;
    font-size: 35px;
    text-shadow:
        0 0 5px #FF004D,
        0 0 20px #FF004D,
        0 0 15px #FF004D,
        0 0 20px #FF004D,
        0 0 30px #FF004D,
        0 0 30px #FF004D,
        0 0 40px #9E0D5B,
        0 0 45px #9E0D5B,
        0 0 50px #9E0D5B,
        0 0 55px #9E0D5B;
  }
  
.neon-text:after {
    content: attr(data-heading);
    position: absolute;
    left: 0;
    color: #FF9983;
    text-shadow:
    -1px -1px 0 #fff,  
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff,
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 15px #fff;
}

.neon-text, .neon-text:after {
    width: 100%;
    text-align: center;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

.bg-page {
    position: absolute;
    z-index: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: url('./images/bg.jpg');
    background-size: cover;
    background-position: center;
}

div.game_match_three {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 25px 15px 30px;
    position: relative;
}

.game-body {
    width: 100%;
    max-width: 1010px;
    background-image: radial-gradient(50% 50% at 50% 50%, #0B1968 0%, #110445 100%);
    margin: auto;
    padding: 70px 160px 30px;
    text-align: center;
    box-shadow: 0px 12px 82px rgba(80, 192, 255, 0.7);
    min-height: 935px;
}

button#game_match_three_aibot {
    position: absolute;
    left: 0;
    top: 100px;
}

button#game_match_three_showMoves {
    position: absolute;
    left: 0;
    top: 130px;
}

.game_match_three canvas {
    width: 100%;
}

.step-game {
    display: none;
}

.step-game .modal-close {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
}

.first-popup {
    display: block;
}

.error-message {
    background: #ffeaea;
    padding: 10px 20px;
    margin: 10px 0 0;
    border-left: 5px solid #e48181;
}

.gifts {
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
}

.gifts-item {
    display: inline-block;
    width: 100px;
    height: 120px;
    margin-right: 1em;
    background-image: url('./images/gift.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.gifts-item:last-child {
    margin-right: 0;
}

.gifts-item-active {
    background-image: url('./images/gift-active.png');
}

.bg-popup {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 28;
    opacity: 0.95;
    transition: opacity 2s;
}

.popups {
    position: absolute;
    max-width: 850px;
    margin: auto;
    top: 20vh;
    left: 0;
    right: 0;
    width: 95%;
    background: radial-gradient(50% 50% at 50% 50%, #0B1968 0%, #110445 100%);
    box-shadow: 0px 12px 82px rgba(80, 192, 255, 0.5);
    padding: 70px 135px;
    box-sizing: border-box;
    z-index: 29;
    transition: transform 0.3s;
}

.popups[data-visibility="hidden"] {
    transform: translateY(-1000px);
}

.popups[data-visibility="visible"] {
    transform: translateY(0);
}

.step-game .neon-text {
    margin-bottom: 50px;
}

.step-game .content {
    color: #fff;
    font-size: 22px;
    line-height: 25px;
    font-weight: 300;
    margin-bottom: 45px !important;
}

.counter {
    font-size: 22px;
    line-height: 25px;
    color: #fff;
    font-weight: 300;
    margin-top: 50px;
    margin-bottom: 30px;
}

.step-game .content * {
    color: #fff !important;
}

.step-game .input, .step-game .textarea {
    box-shadow: inset 0 0.0625em 0.125em rgba(10,10,10,.05);
    max-width: 100%;
    width: 100%;
    background: transparent;
    font-size: 18px;
    border-color: #dbdbdb !important;
    border-radius: 4px;
    color: #fff;
}

.step-game .form-info-message {
    color: #fff;
    margin-bottom: 30px;
}

.step-game .input::placeholder, .step-game .textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.fourth-popup .content {
    text-align: center;
    margin-bottom: 35px !important;
}

button.custom-btn {
    background: linear-gradient(0deg, #F60C5B 0%, #DE0C5B 8.11%, #7C0D5B 69.63%, #490E5B 89.39%, #6A0D5B 99.44%);
    font-size: 22px !important;
    line-height: 26px;
    text-align: center;
    text-transform: uppercase;
    padding: 20px 45px;
    border-radius: 15px;
    border: none;
    position: relative;
    min-width: 270px;
    transition: background 0.5s;
}

button.custom-btn:hover {
    background: linear-gradient(0deg, #811F40 0%, #A81F52 8.11%, #701254 69.63%, #250D2C 89.39%, #380C31 99.44%);
}

button.custom-btn::after {
    content: "";
    position: absolute;
    left: 2%;
    top: calc(4% + 1px);
    width: 96%;
    height: 92%;
    background: url(./images/btn-border.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.step-game .social-btns-wrapper .content {
    margin-bottom: 1em !important;
}

.second-result {
    display: none;
}

@media (max-width: 1400px) {
    .game-body {
        max-width: 665px;
        padding: 45px 70px 20px;
        min-height: 740px;
    }

    .game_match_three canvas {
        max-width: 500px;
    }

    .popups {
        top: 20vh;
        max-width: 628px;
        padding: 45px;
    }

    .step-game .neon-text {
        margin-bottom: 30px;
    }

    .neon-text {
        font-size: 25px;
    }

    .neon-text, .neon-text:after {
        line-height: 1;
    }

    .fourth-popup .content {
        margin-bottom: 15px !important;
    }

    button.custom-btn {
        font-size: 18px !important;
        line-height: 1;
        padding: 10px 20px;
        min-width: 220px;
        border-radius: 10px;
    }

    button.custom-btn::after {
        top: calc(5% + 1px);
        height: 90%;
    }

    .step-game .content {
        font-size: 18px;
        margin-bottom: 30px !important;
    }

    .counter {
        font-size: 18px;
        margin-top: 30px;
        margin-bottom: 10px;
    }

    .game_match_three .social-btns-title {
        margin-top: 20px;
        font-size: 18px;
        line-height: 21px;
    }

    .game_match_three .social-btns__item a {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    div.game_match_three {
        padding: 10px;
    }

    .game-body {
        padding: 20px 10px;
        min-height: 0;
    }

    .neon-text, .neon-text:after {
        font-size: 25px;
        line-height: 1.2;
    }

    .neon-text:after {
        top: 0;
    }

    .counter {
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .game_match_three .social-btns-title {
        margin-top: 0;
        font-size: 18px;
        line-height: 21px;
    }

    .post-share-buttons {
        margin: 0.5em auto !important;
    }

    .popups {
        top: 15vh;
        padding: 35px 15px;
    }

    .step-game .neon-text {
        margin-bottom: 20px;
    }

    .step-game .content {
        font-size: 16px;
        margin-bottom: 20px !important;
        line-height: 21px;
    }

    .step-game .input, .step-game .textarea {
        font-size: 16px;
    }

    .step-game .form-info-message {
        margin-bottom: 20px;
        font-size: 12px;
    }

    .gifts {
        margin-bottom: 1em;
    }

    .gifts-item {
        width: 100%;
        height: 75px;
        margin-right: 5px;
    }

    button#game_match_three_showMoves {
        top: 40px;
    }
    button#game_match_three_aibot {
        top: 15px;
    }
}