﻿.matreshka__container {
    display: flex;
    justify-content: space-around;
    overflow: hidden;
}

.matreshka__title {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    font-size: 22px;
    margin-bottom: 25px;
    background-color: #3a4752;
    padding: 10px 0;
    border-radius: .5em;
}

.matreshka__item img {
    max-width: 250px;
    width: 100%;
    padding: 0px;
    height: auto;
}


.win__matreshka span, .win__matreshka p,
.win__matreshka span {
    color: #8d7a7a;
}

.win__matreshka {
    display: none;
    position: relative;
    color: #8d7a7a;
}

.win__matreshka p,
.win__matreshka span {
    font-size: 50px;
    text-shadow: 1px 1px 1px #fff;
    text-align: center;
}

.sale {
    position: absolute;
    top: 7%;
    left: 50%;
    transform: translate(-50%, 50%);
    -webkit-transform: translate(-50%, 50%);
    -moz-transform: translate(-50%, 50%);
    -ms-transform: translate(-50%, 50%);
    -o-transform: translate(-50%, 50%);
}



.grats span, p.grats {
    color: #f52626;
}

picture.grats:after {
    content: none;
}

.grats:after {
    content: '';
    width: 100%;
    height: 30px;
    position: absolute;
    bottom: -10px;
    left: 0;
    z-index: 2;
    background-size: cover;
    background-image: url(../images/xline.png.pagespeed.ic.HaUQXKH3rT.png);
}

.order_block, .spin-result-wrapper {
    display: none;
}

.spin-result-wrapper {
    max-width: 100%;
    display: none;
    padding: 0 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    top: 0;
    z-index: 9999;
    left: 0;
    height: 100%;
    position: fixed;
    background-color: rgba(0, 0, 0, .6);
    text-align: center;
}

.pop-up-window {
    position: relative;
    max-width: 400px;
    right: 0;
    left: 0;
    top: 40%;
    margin: 0 auto;
    background: #fff none repeat scroll 0 0;
    text-align: center;
    padding: 10px;
    padding-top: 70px;
    padding-bottom: 20px;
    border-radius: 10px;
    animation: .7s ease 0s normal none 1 running pop-up-appear;
}


.super-rotation {
    -webkit-animation-name: super-rotation;
    animation-name: super-rotation;
    -webkit-animation-duration: 7s;
    animation-duration: 7s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-transition-timing-function: ease-in-out;
    -o-transition-timing-function: ease-in-out;
    transition-timing-function: ease-in-out;
}

.cursor-text:active {
    -webkit-box-shadow: rgba(0, 0, 0, .4) 0 0 5px inset;
    box-shadow: rgba(0, 0, 0, .4) 0 0 5px inset;
}

.pop-up-layer {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 99;
}

.pop-up-layer-show {
    display: block;
}

.text_small {
    font-size: .5em;
    font-weight: 400;
}

@keyframes pop-up-appear {

    0% {

        transform: translateY(-2000px)
    }

    30% {

        transform: translateY(100px)
    }

    100% {

        transform: translateY(0)
    }
}

@keyframes pop-up-appear-before {

    0% {

        transform: scale(0)
    }

    100% {

        transform: scale(1)
    }
}

@keyframes pop-up-appear-after {

    0% {

        opacity: 0
    }

    100% {

        opacity: 1
    }
}

.submit-roulette:hover {
    background: #b00;
    transition: background .3s;
}

.additional-form-fields {
    padding-left: 5px;
    height: 42px;
    margin-bottom: 10px;
}

#order_form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.submit-roulette:active {
    transform: translateY(2px);
    box-shadow: none;
}

.input-roulette::placeholder {
    font-size: .9em;
}

.input-roulette {
    padding-left: 5px;
    height: 42px;
    margin-bottom: 10px;
    max-width: 352px;
    width: 100%;
    box-sizing: border-box;
}

@keyframes pop-up-appear {

    0% {

        transform: translateY(-2000px);

    }

    30% {

        transform: translateY(100px);

    }

    100% {

        transform: translateY(0px);

    }
}

@keyframes pop-up-appear-before {

    0% {

        transform: scale(0);

    }

    100% {

        transform: scale(1);

    }
}

@keyframes pop-up-appear-after {

    0% {

        opacity: 0;

    }

    100% {

        opacity: 1;

    }
}


.cursor-text {
    line-height: 45px;
    font-size: 12px;
}


@media (max-width:1023px) {
    .article-grid__right {
        display: none;
    }
}

.sale-red, .sale-blue, .sale-yellow {
    font-size: 50px;
}

p.sale {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding: 0;
}

@media screen and (max-width: 480px) {

    .win__matreshka p {
        display: block;
        width: 80px;
    }

    .sale-blue, .sale-red, .sale-yellow, .win__matreshka p,
    .win__matreshka span {
        font-size: 32px;
        text-align: center;
    }

    .grats:after {
        bottom: -20px;
    }

    .sale {
        top: 20%;
    }

    p.sale {
        display: block;
        margin: 0;
    }

}

@media screen and (max-width: 400px) {

    .win__matreshka p {
        display: block;
        width: 80px;
    }

    .sale-blue, .sale-red, .sale-yellow, .win__matreshka p,
    .win__matreshka span {
        font-size: 28px;
        text-align: center;
    }

    .grats:after {
        bottom: -20px;
    }

    .sale {
        top: 20%;
    }

    p.sale {
        display: block;
        margin: 0;
    }
}

.close-popup {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url(../fonts/cross.svg);
    background-size: 100%;
    top: -40px;
    border-radius: 50%;
    -webkit-box-shadow: 0 0 10px #fff;
    box-shadow: 0 0 10px #fff;
    right: -40px;
    cursor: pointer;
}

.pop-up-heading {
    font-size: 40px;
    margin-bottom: 20px;
}

.pop-up-text {
    margin-bottom: 25px;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
}

.pop-up-button {
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 20%;
    font-size: 20px;
    border-radius: 5px;
    background-color: #71c341;
    color: white;
    border: medium none;
    cursor: pointer;
    outline: medium none;
}

.cursor-text:active {
    -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px inset;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 5px inset;
}

.pop-up-layer {
    position: fixed;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

.pop-up-layer-show {
    display: block;
}

.pop-up-window {
    position: relative;
    max-width: 400px;
    right: 0px;
    left: 0px;
    top: 40%;
    margin: 0px auto;
    background: #fff none repeat scroll 0% 0%;
    text-align: center;
    padding: 10px;
    padding-top: 70px;
    padding-bottom: 20px;
    border-radius: 10px;
    animation: 0.7s ease 0s normal none 1 running pop-up-appear;
}

.pop-up-window::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    top: -55px;
    left: 0;
    right: 0px;
    margin: 0 auto;
    background-color: #71c341;
    border-radius: 50%;
    animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-before;
}

.pop-up-window::after {
    content: "";
    position: absolute;
    width: 50px;
    height: 20px;
    top: -20px;
    left: 0px;
    right: 0;
    margin: 0 auto;
    border-width: medium medium 4px 4px;
    border-style: none none solid solid;
    border-color: currentcolor currentcolor white white;
    -moz-border-top-colors: none;
    -moz-border-right-colors: none;
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    border-image: none;
    transform: rotate(-45deg);
    transition: opacity 1s ease 0s;
    animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-after;
}

.text_small {
    font-size: 0.5em;
    font-weight: normal;
}

#order {
    display: none;
}

@keyframes pop-up-appear {
    0% {
        transform: translateY(-2000px);
    }

    30% {
        transform: translateY(100px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pop-up-appear-before {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes pop-up-appear-after {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.pop-up-button:hover {
    color: white;
    text-decoration: none;
}

@media (max-width:767px) {
    .matreshka__item img {
        max-width: 155px;
    }

    .win__matreshka p,
    .win__matreshka span {
        font-size: 44px;
    }

    .win__matreshka p,
    .win__matreshka span {
        font-size: 36px;
    }

    .sale {
        top: 15%;
    }

    .sale-red, .sale-blue, .sale-yellow {
        font-size: 35px;
    }
}

@media (max-width:540px) {

    .win__matreshka p,
    .win__matreshka span {
        font-size: 32px;
    }
}

@media (max-width:480px) {
    .sale {
        top: 25%
    }
}

@media (max-width:420px) {

    .win__matreshka p,
    .win__matreshka span {
        font-size: 28px;
    }
}

@media (max-width:360px) {

    .win__matreshka p,
    .win__matreshka span {
        font-size: 26px;
    }

    .sale {
        top: 22%
    }
}

@media (max-height: 550px ) and (orientation: landscape) {
    div.pop-up-window {
        top: 22%;
    }
}