/* Reset */
html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}blockquote,figure,h1,h2,h3,h4,ol,p,ul{margin:0;padding:0}li,main{display:block}h1,h2,h3,h4{font-size:inherit}strong{font-weight:700}a,button{color:inherit;}a{text-decoration:none}button{overflow:visible;border:0;font:inherit;-webkit-font-smoothing:inherit;letter-spacing:inherit;background:0 0;cursor:pointer}::-moz-focus-inner{padding:0;border:0}:focus{outline:0}img{max-width:100%;height:auto;border:0}fieldset{border:none;padding:0;}

/* Lib */
.clear {clear:both;}
.cf:before,
.cf:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.cf:after {
    clear: both;
}
.container { max-width: 800px;margin:0 auto; text-align: center;}  
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }



html {
    background-image: url('../images/background.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
    font-family: 'Roboto Slab', serif;
    overflow: hidden;
}

.logo {
    display: inline-block;
    position: relative;
    z-index: 3;
}

.slot-machine {
    background-image: url('../images/slot-machine3.png');
    background-repeat: no-repeat;
    width: 322px;
    height: 622px;
    margin: 60px auto 0;
    position: relative;
    z-index: 1;
}

.handle {
    background-image: url('../images/handle.png');
    background-repeat: no-repeat;
    width: 79px;
    height: 280px;
    position: absolute;
    right: -79px;
    bottom: 215px;
    z-index: 0;
    cursor: pointer;
    transition: .2s;
}
.handle:before {
    content:"";
    display: block;
    background-image: url('../images/arrow-down.png');
    background-repeat: no-repeat;
    width: 29px;
    height: 52px;
    position: absolute;
    top: -70px;
    left: 50%;
    margin-left: -20px;
}

.handle.active {
    background-image: url('../images/handle-active.png');
    width: 79px;
    height: 234px;
}

.snow {
    background-image: url('../images/snow.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    height: 316px;
    position: absolute;
    bottom: 0px;
    z-index: 2;
    text-align: center;
}


.snow a {
    font-size: 18px;
    color: #175e93;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    top: 200px;
}

.snow a:before {
    content: "";
    display: block;
    background-image: url('../images/ribbon.png');
    background-repeat: no-repeat;
    width: 48px;
    height: 36px;
    margin: 0 auto;
}

.luck-wrap {
    top: -630px;
    position: absolute;
    left: 49%;
    right: 0;
    transform: translate(-46%, 0);
    transition: .3s;
    z-index: 3;
    /*display: none;*/
}

.hands {
    background-image: url('../images/luck-wrap-1.png');
    background-repeat: no-repeat;
    width: 548px;
    height: 329px;
    z-index: 3;
    position: relative;
    left: 53%;
    top: 0px;
    margin-left: -315px;
}

.luck-container {
    background-image: url('../images/luck-pattern.jpg');
    background-repeat: repeat;
    padding: 110px 25px 90px;
    width: 592px;
    min-height: 311px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    top: -120px;
    left: 42%;
    transform: translate(-46%, 0);
    /*z-index: 3;*/
}

.luck-wrap.active {
    top: 0;
    z-index: 3;
    /*display: block;*/
}

.luck-wrap p {
    font-size: 25px;
    color: #1e5b16;
    /*position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translate(-50%, 0);*/
}

.luck-wrap a {
    text-transform: uppercase;
    width: 165px;
    display: block;
    height: 50px;
    font-size: 14px;
    float: left;
    margin-right: 23px;
    color: #fff;
    text-decoration: none;
    padding-top: 14px;
    box-sizing: border-box;
}

.luck-wrap .luck-container div {
    position: absolute;
    bottom: 25px;
}

.luck-wrap .back-btn {
    background-color: #f9b115;
}

.luck-wrap .share-btn {
    background-color: #175e93;
}

.luck-wrap .send-btn {
    background-color: #1e5b16;
    margin-right: 0;
}

.slot {
    width: 70px;
    height: 126px;
}

.slot1{
    background-image: url("../images/slot1.png");
}
.slot2{
    background-image: url("../images/slot2.png");
}
.slot3{
    background-image: url("../images/slot3.png");
}


.email-form {
    background-color: #fefefe;
    position: absolute;
    z-index: 55;
    padding: 55px 85px;
    width: 515px;
    box-sizing: border-box;
    left: 50%;
    /*margin-left: -255px;*/
    transform: translate(-50%, 0);
    top: 60px;
    display: none;
}

.email-form li {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
}

.email-form li label {
    color: #8e8c87;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.email-form li textarea,
.email-form li input {
    background-color: #dbd8d0;
    padding: 12px 20px;
    border: none;
    box-sizing: border-box;
    width: 100%;
    border-radius: 3px;
    font-family: 'Roboto Slab', sans-serif;
    resize: none;
}

.email-form li .error-message {
    background-color: #ed6e4e;
    display: block;
    color: #fff;
    font-size: 12px;
    padding: 3px 7px 5px;
    text-align: left;
    border-radius: 3px;
    display: none;
}

.email-form li .email-btn {
    background-color: #e5b534;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    border-radius: 3px;
}

.email-form .close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background-image: url('../images/close-btn.png');
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.email-form .close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    background-image: url('../images/close-btn.png');
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media(max-width: 1366px) {
    .snow {
        bottom: -20px;
    }

    .slot-machine {
        margin-top: -10px;
    }

    .snow a {
        display: none;
    }
}

@media(max-width: 900px) {
    .hands {
        left: 60%;
    }
}

@media(max-width: 600px) {
    .email-form {
        top: 20px;
        width: 90%;
        padding: 30px 30px 10px;
    }

    .luck-container {
        width: 98%;
        top: -14px;
        left: 47%;
        transform: translate(-50%, 0);
    }

    .hands {
        background-image: url('../images/luck-wrap-small.png');
        background-repeat: no-repeat;
        width: 399px;
        height: 238px;
        top: 70px;
        margin-left: -170px;
        left: 50%;
    }

    .luck-wrap {
        width: 100%;
        top: -700px;
    }

    .luck-wrap.active .luck-container div {
        position: static;
        margin-top: 20px;
    }

    .luck-wrap a {
        float: none;
        margin: 0 auto 10px;
    }

    .luck-wrap .send-btn {
        margin-right: auto;
    }

    .hands {
        display: none;
    }

    .luck-container,
    .luck-wrap {
        width: 100%;
        left: auto;
        transform: translate(0, 0);
    }

    .luck-wrap.active {
        top: 70px;
    }
}

@media(max-width: 500px) {
    .slot-machine {
        background-image: url('../images/slot-machine-small.png');
        background-repeat: no-repeat;
        width: 252px;
        height: 487px;
        margin: 0 auto 0;
        position: relative;
        z-index: 1;
    }

    .handle {
        background-image: url('../images/handle-small.png');
        background-repeat: no-repeat;
        width: 49px;
        height: 174px;
        position: absolute;
        right: -49px;
        bottom: 215px;
        z-index: 0;
        cursor: pointer;
        transition: .2s;
    }

    .handle.active {
        background-image: url('../images/handle-active-small.png');
        width: 49px;
        height: 145px;
    }

    .snow {
        bottom: -100px;
    }

    .machineContainer {
        width: 220px;
        height: 122px;
        top: 223px;
    }

    .slotMachine {
        height: 98px;
    }

    .slotMachine .slot {
        width: 54px;
        height: 110px;
    }
    
    

    .luck-wrap p {
        font-size: 24px;
        line-height: 24px;
    }
}

@media(max-width: 350px) {
    .slot-machine {
        margin-left: 15px;
    }
    
}