
/*工具视图*/
.gifmake-tool{
    width: 1106px;
    margin-top:20px;
    /*overflow: auto;*/
   /*display: none;*/
    position: relative;
}
.tool-content{
    /*padding:10px 270px 10px 240px;*/ 
    /*background:rgba(255,255,255,1) ;*/
    position: relative;
    /*display: none;*/
}
.tool-display{
    z-index: 3;
    width: 640px;
    height:360px;
}
.gifmake-tool .config-top-line{
    overflow: hidden;
}
.tool-content-div{
	width: 700px;
	height: 100px;
	margin: 0 auto;
	/*padding: 10px 0 20px 0;*/
    opacity:0;
    /*position: relative;*/
    /*left: -82px;*/
    background: #2B2D37;
}
/*.title{
    font-size:20px;
    color: white;
    height: 50px;
    line-height: 50px;
    text-indent: 44px;
}*/

.tool-speed-content{
    position:relative;
    left: 0;
    bottom: -10px;
    height: 50px;
}
.tool-speed-content img:nth-child(1){
    position: absolute;
    bottom: 20px;
    left: 36px;
    height: 80%;
}
.tool-speed-content img:nth-child(2){
    position: absolute;
    left:338px;
    bottom:30px;
    z-index: 2;
    height: 34%;
}
.tool-speed-content img:nth-child(3){
    bottom: 36px;
    position: absolute;
    left: 102px;
    width: 70%;
}
.tool-speed-content img:nth-child(4){
    position: absolute;
    bottom: 20px;
    right: 40px;
    height: 80%;
}

.line{
	height: 10px;
	background: #000;
}

.background{
	width: 1106px;
	height: 330px;
	margin: 20px auto;
	background: url(../images/background.png);
}
/**/
.img-box-outer{
    display: none;
    position: relative;
    left: 50%;
    margin-left: -220px;
    width:440px;
    height:330px;
    margin-bottom: 20px;
}
.config-body .img-box {
    position:absolute;
    left:0;
    top:0;
    right:0;
    bottom: 0;
    margin:auto;
    font-size:0;
    text-align:center;
    -ms-user-select:none;
    -webkit-user-select:none;
    -moz-user-select:none;
}
.config-body .img-box .caption-resize {
    display:none;
    position:absolute;
    bottom:0;
    left:0;
    width:100%;
    height:100px;
    min-height:50px;
    min-width:50px;
    font-family:"微软雅黑";
    color:yellow;
    cursor:move;
    cursor:grab;
    cursor:-moz-grab;
    cursor:-webkit-grab;
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
}



.config-body .img-box .overlay-draggable:before {
    content:"";
    display:block;
    position:absolute;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.4);
    border: 3px dashed rgba(255,255,255,0.7);
    opacity: 0;
    top:0;
    left:0;
    z-index:1;
    box-sizing:border-box;
    -webkit-box-sizing:border-box;
    -webkit-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    -moz-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    -ms-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    transition:opacity .2s cubic-bezier(.165,.84,.44,1);;
}


.config-body .img-box .overlay-draggable:hover .drag,.config-body .img-box .overlay-draggable:hover:before {
    opacity:1;
}

.config-body .img-box .overlay-draggable:hover .remove-button {
    width:40px;
}

.config-body .img-box .caption-resize .drag {
    bottom:0;
    cursor:nwse-resize;
    height:25px;
    opacity:0;
    position:absolute;
    right:0;
    width:25px;
    z-index:5;
    -webkit-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    -moz-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    -ms-transition:opacity .2s cubic-bezier(.165,.84,.44,1);
    transition:opacity .2s cubic-bezier(.165,.84,.44,1);
}

.config-body .img-box .caption-resize .drag:before {
    background:linear-gradient(-45deg,#fff 0,#fff 3px,rgba(255,255,255,0) 3px,rgba(255,255,255,0) 5px,#fff 5px,#fff 8px,rgba(255,255,255,0) 8px,rgba(255,255,255,0) 10px,#fff 10px,#fff 13px,rgba(255,255,255,0) 13px,rgba(255,255,255,0) 15px);
    bottom:5px;
    content:"";
    height:20px;
    position:absolute;
    width:20px;
    right:5px
}

.config-body .img-box .overlay-draggable .remove-button {
    font-size:16px;
    height:40px;
    left:100%;
    line-height:44px;
    overflow:hidden;
    padding:0;
    position:absolute;
    top:0;
    width:0;
    background-color:rgba(62,194,253,1);
    color: white;
    -webkit-transition:width .2s cubic-bezier(.165,.84,.44,1) .1s;
    -moz-transition:width .2s cubic-bezier(.165,.84,.44,1) .1s;
    -ms-transition:width .2s cubic-bezier(.165,.84,.44,1) .1s;
    transition:width .2s cubic-bezier(.165,.84,.44,1) .1s;

}



.config-body .img-box .caption-resize .mark-msg {
    background:transparent;
    color:#ffffff;
    font-size:40px;
    height:53px;
    left:0;
    line-height:53px;
    margin:0;
    overflow:hidden;
    padding:0;
    position:relative;
    resize:none;
    text-align:center;
    /* text-transform:uppercase;*/
    top:23.5px;
    white-space:normal;
    display:inline-block;
    max-width:100%;
    z-index:3;
}


.config-body .img-box img{
    width:100%;
    height:100%;
}
.config-body .add-caption{
    position: relative;
    width: 616px;
    height: 46px;
    margin: auto;
    overflow: hidden;
    padding-right: 0px;
    transition: padding-right 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    border:2px dashed rgba(67,194,251,1);
    border-radius: 4px;
}
.config-body .add-caption input{
    position: absolute;
    top:0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background-color: rgba(243,243,243,1);
    color: #000;
    text-indent: 19px;
    letter-spacing: 1px;
    /*font-family: Adobe Heiti Std R;*/
}
.add-caption input::-webkit-input-placeholder{
	color: rgba(198,194,194,1);
    font-size: 16px;
    /*font-family: Adobe Heiti Std R;*/
}
.add-caption input:-moz-placeholder,::-moz-placeholder{
	color: rgba(198,194,194,1);
    font-size: 16px;
    /*font-family: Adobe Heiti Std R;*/
}
.config-body .add-caption span{
    height: 48px;
    line-height: 48px;
    width: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    background: rgba(62,194,253,1);
    color: #fff;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: width .2s cubic-bezier(.165,.84,.44,1);
    -moz-transition: width .2s cubic-bezier(.165,.84,.44,1);
    -ms-transition: width .2s cubic-bezier(.165,.84,.44,1);
    transition: width .2s cubic-bezier(.165,.84,.44,1);
}
.config-body .select-box {
    /*position: relative;*/
    /*left: -82px;*/
    width:700px;
    margin:0 auto;
    line-height:50px;
    background: #2B2D37;
    padding-bottom: 18px;
}

.add-caption.color-box {
    border: 2px solid #000;
}
.config-body .select-box > div:first-child > input{
    /*width:100%;*/
    /*height:100%;*/
    border:none;
    outline:none;
    background-color:transparent;
    text-indent:9px;
}
.config-body .select-box .font-box {
    /*width:557px;*/
    /*height:50px;*/
    text-align:center;
}
.config-body .select-box .font-box > span {
    display: inline-block;
    width:178px;
    height: 50px;
    line-height: 50px;
    border: 2px solid #616161;
    color: white;
    font-size: 22px;
    background-color: #2B2D37;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.config-body .select-box .font-box > span:nth-of-type(1){
	/*margin-left: 8px;*/
	margin-right: 34px;
}
.config-body .select-box .font-box > span:nth-of-type(2){
	margin-right: 34px;
}
.config-body .select-box .font-box > span:nth-of-type(3){
	margin-right: 0px;
}
.config-body .select-box .color-box {
	width: 616px;
	margin: auto;
	background: #2B2D37;
    height: 50px;
    /*border: 2px solid #000;*/
    box-sizing: border-box;
}
.config-body .select-box .color-box > span {
    display:inline-block;
    width:30px;
    height:30px;
    border-radius:5px;
    margin-top:9px;
    margin-left:24px;
    cursor:pointer;
    float: left;
}
.config-body .select-box .color-box > span:nth-child(1) {
    background-color:white;
}
.config-body .select-box .color-box > span:nth-child(2) {
    background-color:black;
}
.config-body .select-box .color-box > span:nth-child(3) {
    background-color:rgb(255,57,57);
}
.config-body .select-box .color-box > span:nth-child(4) {
    background-color:rgb(255,144,0);
}
.config-body .select-box .color-box > span:nth-child(5) {
    background-color:rgb(255,240,57);
}
.config-body .select-box .color-box > span:nth-child(6) {
    background-color:rgb(156,216,26);
}
.config-body .select-box .color-box > span:nth-child(7) {
    background-color:rgb(14,238,183);
}
.config-body .select-box .color-box > span:nth-child(8) {
    background-color:rgb(6,224,244);
}
.config-body .select-box .color-box > span:nth-child(9) {
    background-color:rgb(0,126,255);
}
.config-body .select-box .color-box > span:nth-child(10) {
    background-color:rgb(180,0,255);
}
.config-body .select-box .color-box > span:nth-child(11) {
    background-color:rgb(249,66,170);
}
.add-caption .remove-caption{
    height: 48px;
    line-height: 48px;
    width: 0;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    background: #f66;
    color: #fff;
    text-align: center;
    overflow: hidden;
    cursor: pointer;
    -webkit-transition: width .2s cubic-bezier(.165,.84,.44,1);
    -moz-transition: width .2s cubic-bezier(.165,.84,.44,1);
    -ms-transition: width .2s cubic-bezier(.165,.84,.44,1);
    transition: width .2s cubic-bezier(.165,.84,.44,1);
}

.config-body .select-box .font-box .selected {
    border:2px solid #79FFD4;
    /*border-image: linear-gradient(#69DEFF  #46C7FD ) 14 14;*/
}

.config-body .select-box .color-box .selected {
    border:2px solid ;
    box-sizing:border-box;
    border-image: linear-gradient(#69DEFF , #46C7FD ) 14 14;
}
/*缩略图展示*/
.config-content{
	background: #f9f9f9;
	width: 1106px;
	border-radius: 4px;
	/*margin-left: 12px;*/
    /*position: relative;*/
   margin-top: 20px;
}
.config-top-line{
    /*margin:20px 0 20px 0;*/
    height: 50px;
    line-height: 50px;
    position: relative;
    text-indent: 44px;
}
.config-top-line span{
    color:#0a0a0a;
   font-size: 22px;
   /*text-indent: 18px;*/
}
.config-top-line img{
    /*float:right;*/
}
.preview-content{
	width: 941px;
    /*background:rgba(243,243,243,1) ;*/
    /*padding:0px 0px 20px 0px;*/
    overflow: auto;
    margin: 0 auto 6px;
    /*margin-top: 20px;*/
}
.template-content{
    width: 184px;
    height: 189px;
    float: left;
    /*margin:2px;*/
   margin-right: 4px;
   margin-bottom: 4px;
}
.preview-img{
    position: relative;
    /*padding:2px;*/
    width:184px;
    height:189px;
    background: #fff;
    /*text-align: center;*/
    overflow: hidden;
}
.preview-img-close{
    position: absolute;
    top: 0;
    right: 0;
    height: 22px;
    line-height: 22px;
    text-align: center;
    width: 22px;
    color: #ffffff;
    background-color: rgba(62,194,253,1);
    cursor: pointer;
    /*border-bottom-left-radius: 5px;*/
}
.preview-img p{
    line-height: 90px;
}
.preview-img img{
    width: 100%;
    height: 100%;
    vertical-align: middle;
}
.preview-img:nth-of-type(1){
	margin-left: 1px;
}
/*.preview-img:nth-of-type(5){
	margin-right: 2px;
}*/
.preview-img:nth-of-type(6){
	margin-left: 1px;
}
/*.preview-img:nth-of-type(10){
	margin-right: 2px;
}*/
.info-index{
    position: absolute;
    left: 0;
    bottom: 0;
    width: 22px;
    height: 20px;
    background: rgba(153,51,255,1);
    color: #FFFFFF;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    /*border-top-right-radius: 5px;*/
}
.info-name{
	position: absolute;
	right: 0;
	bottom: 0;
	width: 162px;
    font-size: 12px;
    text-align: right;
    line-height: 20px;
    background: #ccc;
    color: white;
}

.download-content{
	width: 1106px;
    overflow: auto;
    background:#f9f9f9;
    padding-bottom: 40px;
    padding-top: 40px;
    position: relative;
    /*display: none;*/
}
.download-content div{
    cursor:pointer;
    text-align: center;
    line-height: 50px;
    width: 230px;
    height: 50px;
    font-size: 24px;
    border-radius: 4px;
    /*font-family: Adobe Heiti Std R;*/
    /*border-radius: 8px;*/
    color: #FFFFFF;
    background: rgba(62,194,253,1);
}
.disable{
    border-color: #666666 !important;
    background:#B5B5B5 !important;
    color:#FFFFFF !important;
}
.download-content>div:nth-child(1){
    margin-left:260px;
    float:left;
}
.download-content>a>div{
    margin-right:260px;
    float:right;
}
/*向导*/
.compress-guide{
    background: #333333;
    margin-top:20px;
    padding: 20px 0 30px 0;
}

.guide-title{
    font-size: 18px;
    line-height: 25px;
}
.guide-subtitle{
    font-size: 15px;
    color:#B3B3B3;
}
.guide-remind{
    padding-top:90px;
}
.msg-making{
    position: relative;
    display: none;
    width: 100%;
    padding-bottom: 40px;
    background:#f9f9f9;
    color:white;
    text-align: center;
}

/*canvas大小固定*/
.jsgif{
    /*background:#fff;*/
    /*width:640px;*/
    /*height:360px;*/
}
/*.jsgif canvas{
    width:100% !important;
    height:100% !important;
}*/

/*底部加载*/
.config-msg{
    position: relative;
    padding-top: 40px;
    color: #000;
}
.box-loading {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    left: 50%;
    margin-left: -30px;
    top: -20px;
}
/*.loading:before {
    content: '';
    position: absolute;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 36px;
    height: 36px;
    top: 50%;
    margin-top: -18px;
    left: 50%;
    margin-left: -18px;
    border-radius: 50%;
    border-width: 2px 1px;
    border-style: solid;
    border-color: #ddbb00 rgba(221, 187, 0, 0.3);
    -webkit-animation: spin 3s infinite;
    -moz-animation: spin 3s infinite;
    animation: spin 3s infinite;
}
.loading:after {
    content: '';
    position: absolute;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 6px;
    height: 6px;
    top: 50%;
    margin-top: -3px;
    left: 50%;
    margin-left: -3px;
    border-radius: 50%;
    background-color: #ddbb00;
    -webkit-animation: pulse 6s infinite, borderPulse 6s infinite;
    -moz-animation: pulse 6s infinite, borderPulse 6s infinite;
    animation: pulse 6s infinite, borderPulse 6s infinite;
}*/

/*遮罩层*/
.shade,.shade-del{
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	left: 0;
	top: 0;
	display: none;
	z-index: 5;
	opacity: 0.5;
}

.shade-cover{
	height: calc(100% + 0px);
	top: 0px;
}

.upload-content{
	/*width: calc(100% - 337px - 8px);*/
	/*margin: 20px auto 0 auto;*/
}

.shade-del{
	display: none;
	top: 41px;
	height: 190px;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(360deg);
    }
    100% {
        -webkit-transform: rotate(1080deg);
    }
}
@-moz-keyframes spin {
    0% {
        -moz-transform: rotate(0deg);
    }
    50% {
        -moz-transform: rotate(360deg);
    }
    100% {
        -moz-transform: rotate(1080deg);
    }
}
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    50% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    100% {
        -webkit-transform: rotate(1080deg);
        -moz-transform: rotate(1080deg);
        -ms-transform: rotate(1080deg);
        -o-transform: rotate(1080deg);
        transform: rotate(1080deg);
    }
}
@-webkit-keyframes pulse {
    0% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    13% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    15% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    28% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    30% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    43% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    45% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    70% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    74% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    100% {
        background-color: rgba(255, 234, 119, 0.9);
    }
}
@-moz-keyframes pulse {
    0% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    13% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    15% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    28% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    30% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    43% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    45% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    70% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    74% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    100% {
        background-color: rgba(255, 234, 119, 0.9);
    }
}
@keyframes pulse {
    0% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    13% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    15% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    28% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    30% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    43% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    45% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    70% {
        background-color: rgba(255, 234, 119, 0.9);
    }
    74% {
        background-color: rgba(221, 187, 0, 0.2);
    }
    100% {
        background-color: rgba(255, 234, 119, 0.9);
    }
}
@-webkit-keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 #333, 0 0 0 1px rgba(221, 187, 0, 0.8);
    }
    40% {
        box-shadow: 0 0 0 1px #333, 0 0 0 2px rgba(221, 187, 0, 0.8);
    }
    80% {
        box-shadow: 0 0 0 3px #333, 0 0 1px 3px rgba(221, 187, 0, 0.8);
    }
}
@-moz-keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 #333, 0 0 0 1px rgba(221, 187, 0, 0.8);
    }
    40% {
        box-shadow: 0 0 0 1px #333, 0 0 0 2px rgba(221, 187, 0, 0.8);
    }
    80% {
        box-shadow: 0 0 0 3px #333, 0 0 1px 3px rgba(221, 187, 0, 0.8);
    }
}
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 #333, 0 0 0 1px rgba(221, 187, 0, 0.8);
    }
    40% {
        box-shadow: 0 0 0 1px #333, 0 0 0 2px rgba(221, 187, 0, 0.8);
    }
    80% {
        box-shadow: 0 0 0 3px #333, 0 0 1px 3px rgba(221, 187, 0, 0.8);
    }
}


@media screen and (max-width: 470px) {
    .config-content{
        width: 100%;
    }
    .template-content{
        width: 100%;
        float: none;
    }
    .preview-img,.tool-content-div,.config-body .select-box,.download-content{
        width: 100%;
    }
    .gifmake-tool,.background,.img-box-outer{
        width: 100%;
    }
    .config-body .select-box .font-box > span{
        margin: 0;
    }
    .config-body .select-box .font-box > span:nth-of-type(1),.config-body .select-box .font-box > span:nth-of-type(2){
        margin-right: 0;
    }
    .config-body .add-caption{
        width: 90%;
        margin: 0 auto;
    }
    .config-body .add-caption input{
        text-indent: 0.5em;
    }
    .img-box-outer{
        margin-left: 0;
        left: 0;
    }
    .config-body .select-box .title{
        color: #fff;
        padding-left: 3%;
        font-size: 16px;
    }
    .tool-content-div{
        overflow: hidden;
    }
    .download-content{
        padding: 20px 0 10px 0;
    }
    .config-body .select-box .color-box{
        width: 100%;
        height: 100px;
    }
    .download-content>a>div,.download-content>div:nth-child(1){
        margin: 0 auto 10px auto;
        float: none;
    }
    #tailorCreate #create{
        margin-left: 0;
    }
}