@font-face {
    font-family: IRANSans;
    src: url('../../fonts/IRANSans/IRANSansWeb_Light.woff');
    font-weight: normal;
}
#stripes {
    width: 100%;
    height: 88%;
    overflow: hidden;
    transform-origin: 0;
    transform: skewY(-8deg);
    background: -webkit-linear-gradient(300deg, #53f 15%, #05d5ff 70%, #a6ffcb 94%);
    background: linear-gradient(150deg, #53f 15%, #05d5ff 70%, #a6ffcb 94%);
    z-index: -1;
}
#stripes,
#stripes span {
    position: absolute;
}
#stripes span {
    height: 40px;
}
#stripes :nth-child(1) {
    width: 50%;
    left: 50%;
    top: 40px;
    background: #4c29ff;
}
#stripes :nth-child(2) {
    width: 14%;
    right: 0;
    bottom: 40px;
    background: #2be7ff;
}
#stripes :nth-child(3) {
    width: 25%;
    bottom: 0;
    right: 0;
    background: #a1ffc8;
}
@media (min-width: 670px) {
    #stripes span {
        height: 150px;
    }
    #stripes :nth-child(1) {
        top: 0;
    }
    #stripes :nth-child(2) {
        width: 16.66667%;
        top: 300px;
        bottom: auto;
        background: #0dcfff;
    }
    #stripes :nth-child(3) {
        width: 33.33333%;
        right: auto;
        background: #11bdff;
    }
}
@media (min-width: 880px) {
    #stripes span {
        height: 190px;
    }
    #stripes :nth-child(1) {
        width: 33.33333%;
        left: -16.66666%;
        background: #53f;
    }
    #stripes :nth-child(2) {
        width: 33.33333%;
        top: 0;
        left: 16.66666%;
        right: auto;
        background: #4553ff;
    }
    #stripes :nth-child(3) {
        width: 33.33333%;
        left: 49.99999%;
        bottom: auto;
        background: #4f40ff;
    }
    #stripes :nth-child(4) {
        width: 33.33333%;
        top: 380px;
        right: -16.66666%;
        background: #25ddf5;
    }
    #stripes :nth-child(5) {
        width: 33.33333%;
        bottom: 0;
        background: #1fa2ff;
    }
}
.wrapper {
    padding: 15px;
    background-color: #f7f5f5;
    border-radius: 15px;
    box-shadow: 0 0 5px 5px #5717d93b;
    overflow: hidden;
    position: relative;
}


*{
    direction: rtl;
    font-family: IRANSans;
}
.pointer{
    cursor: pointer;
}
.bg-auth{
    background-color: #1098e8;
}
.blur{
    filter: blur(7px);
}
.top-5{
    top: 5px;
}
.title_header {
    top: 4.5rem;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px #000;
    position: relative;
}
.title_header span {
    background-color: #fff;
    padding: 0.3rem;
    border-radius: 15px;
    font-size: 2rem;
    color: #20a0ff;
    text-shadow: 0 0 1px #000;
}
.title_header h2 {
    padding: 15px;
    font-size: 1.45rem;
}
.mod-chest {
    position: relative;
    width: 100%;
}
.mod-chest .chest-close {
    width: 320px;
    height: 135px;
    opacity: 0;
    position: relative;
    z-index: 1;
    position: absolute;
    left: 50%;
    top:0;
    margin-left: -160px;
}
.mod-chest .chest-close .gift {
    width: 320px;
    height: 135px;
    background: url(../img/chest.png) no-repeat 0 0;
    background-size: 320px auto;
    position: absolute;
    left: 0;
    top:0;
}
.mod-chest .chest-open {
    width: 320px;
    height: 150px;
    background: url(../img/chest.png) no-repeat 0 -137px;
    background-size: 320px auto;
    opacity: 0;
    position: relative;
    z-index: 1;
    position: absolute;
    left:0;
    top:0;
}
.mod-chest .chest-open .mod-chest-cont {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
}
.mod-chest .show {
    z-index: 2;
    opacity: 1;
}
.open-has {
    position: relative;
    z-index: 2;
    height: 310px;
    width: 320px;
}
.mod-chest .chest-close:after {
    width: 320px;
    height: 300px;
    position: absolute;
    top: -100px;
    left: -61px;
    content: "";
    display: block;
}

.mod-chest .chest-close:active {
    -webkit-transform: scale(1.05);
    -webkit-transition: all .3s;
}

.mod-chest .chest-close.shake .gift {
    -webkit-animation: shake 1.2s linear;
    -webkit-animation-fill-mode: forwards;
    animation-iteration-count: infinite;
}
.mod-chest .chest-close.open .gift {
    -webkit-animation: open 1s linear;
    -webkit-animation-fill-mode: forwards;
}
.mod-chest .chest-open {}

.mod-chest .chest-open.blur:after {
    width: 320px;
    height: 68px;
    background: url(../img/chest-open-blur.png) no-repeat 0 0;
    background-size: 320px auto;
    position: relative;
    z-index: 1;
    position: absolute;
    left:0;
    top: -5px;
    content: "";
    display: block;
}
.open-has .chest-open.show .mod-chest-cont {
    /*-webkit-transform:translate(0px,0px);opacity: 1;*/
    -webkit-animation: move2 .2s .0s linear;
    -webkit-animation-fill-mode: forwards;
}

.open-has .mod-chest-cont .gift {
    color: #ff6000;
    font-size: 24px;
    line-height: 30px;
    padding-bottom: 30px;
}

/*.open-has.opened .mod-chest{-webkit-transform:translate(0px,150px);}*/

.open-has.opened .mod-chest .chest-open {
    -webkit-transform: translate(0px, 150px);
}

.open-has .mod-chest-cont .gift {
    color: #ff6000;
    font-size: 24px;
    line-height: 30px;
    padding-bottom: 30px;
}
@-webkit-keyframes move2 {
    0% {
        -webkit-transform: translate(0px, 30px);
        opacity: 0;
    }
    70% {
        -webkit-transform: translate(0px, -20px);
        opacity: 1;
    }
    100% {
        -webkit-transform: translate(0px,0);
        opacity: 1;
    }
}

@-webkit-keyframes shake {
    0% {
        transform: scale(1);
        -webkit-transform: scale3d(1, 1, 1);
    }
    6% {
        -webkit-transform: scale(.9) rotate(-8deg);
        -webkit-transform: scale3d(1, 1, 1) rotate(0, 0, 1, -8deg);
    }
    18%,
    30%,
    42% {
        -webkit-transform: scale(1.1) rotate(8deg);
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 8deg);
    }
    12%,
    24%,
    36%,
    48% {
        -webkit-transform: scale(1.1) rotate(-8deg);
        -webkit-transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -8deg);
    }
    54% {
        -webkit-transform: scale(1);
        -webkit-transform: scale3d(1, 1, 1);
    }
    100% {
        -webkit-transform: scale(1);
        -webkit-transform: scale3d(1, 1, 1);
    }

}
@keyframes open {
    0% {
        -webkit-transform: scale(1) translate(0px, 150px);
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 150px, 0);
    }
    50% {
        -webkit-transform: scale(1) translate(0px, 130px);
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 130px, 0);
    }
    100% {
        -webkit-transform: scale(1) translate(0px, 150px);
        -webkit-transform: scale3d(1, 1, 1) translate3d(0px, 150px, 0);
    }
}

.mod-chest .show {
    z-index: 2;
    opacity: 1;
}
