.close-popup,
.cursor-text {
    cursor: pointer;
    position: absolute;
}

.cursor-text,
.pop-up-window,
.spin-result-wrapper,
.spin-wrapper,
.wheel-wrapper {
    text-align: center;
}

.spin-wrapper {
    -webkit-box-shadow: 0 0 10px;
    box-shadow: 0 0 10px;
    border: 3px solid red;
    padding: 20px 10px;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 700px;
}

.spin-wrapper p {
    text-align: center;
    font-size: 21px !important;
    line-height: 1.4 !important;
    margin-bottom: 15px;
}

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

.wheel {
    width: 380px !important;
    margin: 0 auto;
    position: relative;
}

.wheel-cursor {
    position: absolute;
    width: 35% !important;
    height: 35%;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

.cursor-text {
    z-index: 2;
    display: inline-block;
    width: 45% !important;
    height: 45%;
    line-height: 59px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #ccc;
    font-size: 14px;
    top: 49%;
    left: 50%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-box-shadow: rgba(255, 255, 255, 1) 0 -2px 0 inset, rgba(255, 255, 255, 1) 0 2px 0 inset, rgba(0, 0, 0, 0.4) 0 0 5px;
    box-shadow: rgba(255, 255, 255, 1) 0 -2px 0 inset, rgba(255, 255, 255, 1) 0 2px 0 inset, rgba(0, 0, 0, 0.4) 0 0 5px;
    background: #fff;
    background: -o-radial-gradient( center, ellipse cover, rgba(255, 255, 255, 1) 0, rgba(234, 234, 234, 1) 100%);
    background: -o-radial-gradient( center, ellipse, rgba(255, 255, 255, 1) 0, rgba(234, 234, 234, 1) 100%);
    background: radial-gradient( ellipse at center, rgba(255, 255, 255, 1) 0, rgba(234, 234, 234, 1) 100%);
    filter: progid: DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#eaeaea', GradientType=1);
}

.wheel-img {
    -webkit-transition: 4s;
    -o-transition: 4s;
    transition: 4s;
}

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

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

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

.pop-up-window::after,
.pop-up-window::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
}

.pop-up-window::before {
    width: 110px;
    height: 110px;
    top: -55px;
    background-color: #71c341;
    border-radius: 50%;
    -webkit-animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-before;
    animation: 0.5s ease 0.6s normal backwards 1 running pop-up-appear-before;
}

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

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

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

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

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

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

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

.pop-up-heading {
    font-size: 40px !important;
    margin-bottom: 20px !important;
    line-height: 1.3;
}

.pop-up-text {
    margin-bottom: 0px !important;
    font-size: 24px !important;
    line-height: 30px !important;
    text-align: center !important;
    color: #414141 !important;
    font-weight: 400;
}

.pop-up-button,
.pop-up-button:hover {
    color: #fff !important;
    text-decoration: none !important;
}

.pop-up-button {
    text-transform: uppercase !important;
    padding: 10px 0 !important;
    font-size: 20px !important;
    border-radius: 5px !important;
    background-color: #71c341 !important;
    border: none !important;
    cursor: pointer !important;
    outline: 0 !important;
    display: block;
    max-width: 188px;
    margin: 20px auto 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.wheel img {
    max-width: 100%;
}

@media all and (max-width: 520px) {
    .wheel {
        width: 260px !important;
    }
    .pop-up-window {
        top: 30%;
    }
    .pop-up-heading {
        font-size: 33px !important;
    }
    .pop-up-text {
        margin-bottom: 15px !important;
    }
    .cursor-text {
        line-height: 45px;
        font-size: 10px;
        width: 50% !important;
        height: 50%;
    }
}

.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;
}

@-webkit-keyframes super-rotation {
    70% {
        -webkit-transform: rotate(1783deg);
        transform: rotate(1783deg);
    }
    100% {
        -webkit-transform: rotate(1774deg);
        transform: rotate(1774deg);
    }
}

@keyframes super-rotation {
    70% {
        -webkit-transform: rotate(1860deg);
        transform: rotate(1860deg);
    }
    100% {
        -webkit-transform: rotate(1867deg);
        transform: rotate(1867deg);
    }
}

.time_remains {
    font-size: 1.1em;
    color: red;
    font-weight: 700;
}

.order_block {
    font-family: "Arial", sans-serif;
    display: none;
}

.prod_img_wrapper {
    margin: 15px auto;
    position: relative;
}

.prod_img {
    width: 100%;
    max-width: 250px;
}

.wheel_input {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: block !important;
    margin: 0 auto 20px !important;
    padding: 10px !important;
    width: 50% !important;
    border: 2px solid grey !important;
    border-radius: 5px !important;
}

.order_form {
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

@media screen and (max-width: 480px) {
    .wheel_input {
        width: 90% !important;
    }
    .main-link {
        width: 90%!important;
    }
    .close-popup {
        right: -5px;
    }
}

.main-link {
    display: block;
    margin: 0px auto 40px;
    padding: 14px;
    font-size: 20px;
    text-decoration: none;
    background-color: #de0606;
    text-align: center;
    color: #fff !important;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    width: 50%;
}

.main-link:hover {
    opacity: 0.8;
}

@media (max-width: 319px) {
    .wheel {
        width: 220px !important;
    }
    .cursor-text {
        font-size: 9px;
    }
}