@font-face {
    font-family: "DancingScript-Regular";
    src: url('../font/DancingScript-Regular.woff2') format('woff2');
}

@font-face {
    font-family: "IndieFlower-Regular";
    src: url('../font/IndieFlower-Regular.woff2') format('woff2');
}

@font-face {
    font-family: "google-symbol";
    src: url('../font/google-symbol.woff2') format('woff2');
}

@font-face {
    font-family: "Tinos-Regular";
    src: url('../font/Tinos-Regular.woff2') format('woff2');
}

@font-face {
    font-family: "Tangerine";
    src: url('../font/Tangerine.woff2') format('woff2');
}

@font-face {
    font-family: "Arimo-Regular";
    src: url('../font/Arimo-Regular.woff2') format('woff2');
}

@font-face {
    font-family: "Estonia";
    src: url('../font/Estonia.woff2') format('woff2');
}

.layui-input {
    height: 32px;
}

.layui-form-checkbox>div {
    font-size: 12px;
}

.upload_btn {
    width: 300px;
    height: 160px;
    background: #fff;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 2px 2px 4px #ccc;
    border: 1px solid #f0f0f0
}

.upload_box {
    max-width: 800px;
}

.upload_success {
    width: 100%;
    height: 100%;
    display: none;
    background: #fff;
    padding: 18px 24px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.upload_files {
    max-height: 300px;
    overflow-y: auto;
}

.upload_success .upload_files>div {
    background: linear-gradient(to right, rgb(232, 240, 254) 50%, rgb(241, 243, 244) 50%);
    background-size: 200% 100%;
    border-radius: 10px;
}

.upload_success .upload_files img {
    width: 48px;
    height: 48px;
    margin-right: 16px;
}

.file_name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.del-file {
    position: absolute;
    right: 12px;
    top: 6px;
}

.backTop:hover {
    background: var(--themeGradient1);
    color: #fff;
}

.backTop {
    right: 32px;
    bottom: 32px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    background: #f9f9f9;
    color: var(--theme4);
}

#result {
    max-width: 800px;
    width: 100%;
    margin: auto;
}

.result_item {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-bottom: 10px;
}

.item_name {
    width: 0;
    margin-right: 30px;
}

.item_name div {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.download_btn:hover {
    color: var(--theme4);
}

.download-zip {
    justify-content: end;
    max-width: 800px;
    width: 100%;
    margin: 0 auto 20px;
}

.moveBtnGroup {
    right: 12px;
    bottom: 8px;
}

.file_item {
    box-sizing: border-box;
}

.preview {
    position: relative;
    width: 500px;
    height: 500px;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.preview_box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.preview #canvas {
    max-width: 100%;
    max-height: 100%
}

#preview_img {
    width: 100%;
    max-width: 100%;
    max-height: 100%
}

.preview_btns {
    position: absolute;
    right: 6px;
    top: 6px;
    background: #fff;
    border: 1px solid #e0e0e0
}

.preview_btn {
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
}

.preview_btn:nth-last-of-type(1) {
    border-bottom: none;
}

.preview_btn i {
    width: 32px;
    height: 32px;
    display: flex;
    align-content: center;
    justify-content: center;
    line-height: 32px;
}

.rotate_btn {
    min-width: 32px;
    border-radius: 8px;
}

#canvas {
    transition: transform .3s ease-in-out;
}

.form_label {
    width: 40px;
}

.custom_select {
    width: 100%;
    height: 32px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.draggable-canvas {
    border: 1px solid red;
    position: absolute;
    touch-action: none;
    user-select: none;
    top: 0px;
    left: 0;
}

select#font-select option {
    height: 60px;
    font-size: 24px;
}

#font-select option[value="Estonia"] {
    font-family: "Estonia", cursive;
}

#font-select option[value="IndieFlower-Regular"] {
    font-family: "IndieFlower-Regular", cursive;
}

#font-select option[value="google-symbol"] {
    font-family: "google-symbol", cursive;
}

#font-select option[value="Tinos-Regular"] {
    font-family: "Tinos-Regular", cursive;
}

#font-select option[value="Tangerine"] {
    font-family: "Tangerine", cursive;
}

#font-select option[value="Arimo-Regular"] {
    font-family: "Arimo-Regular", cursive;
}

#font-select option[value="DancingScript-Regular"] {
    font-family: "DancingScript-Regular", cursive;
}

#drawing-pad-canvas {
    width: 100%;
    height: 300px;
    background: rgba(125, 125, 125, 0.2);
}

.watermark_img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: none;
}

.line {
    position: absolute;
    background-color: red;
}