.container-content{
    display: flex;
    justify-content: space-between;
}
.container-content{
    margin: 0 !important;
}
.container-content .header-preview{
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}
.container-content .header-preview h3{
    margin-bottom: 0 !important;
    margin-top: 5px;
}
.container-content .header-preview img{
    width: 2.5%;
    cursor: pointer;
}
.container-content .left-content{
    padding: 20px;
    width: 60%;
    margin: 0 30px 0 80px;
}
.container-content .content-left{
    margin: 30px 0px 0 30px ;
}
.content-people{
    background: #fff !important;
    padding: 150px 25px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
}
.content-image canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
}

.content-people .icon-add{
    width: 8%;
}
.content-preview .content-people .icon-add{
    width: 15%;
}
.content-people h4{
    margin: 40px 0;
}
.content-people .icon-upload{
    display: flex;
    gap: 60px;
    justify-content: center;
    cursor: pointer;
}
.content-people .icon-upload .icon-up{
    width: 15%;
    object-fit: contain;
    cursor: pointer;
}
.content-duet .icon-upload{
    cursor: pointer;
}
.content-people .icon-upload .icon-upload{
    width: 60%;
    object-fit: contain;
    cursor: pointer;
}
.container-content .right-content{
    background-color: #fff;
    padding: 20px 25px;
    width: 32%;
}
.right-content .list-function {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* khoảng cách giữa các item */
    justify-content: center;
}

.right-content .item-function {
    width: 40%;
    box-sizing: border-box;
    margin-bottom: 0;
    cursor: pointer;
}
.right-content .item-function.active{
    border: 4px solid #FF4D00;
    border-radius: 25px;
    padding: 10px;
}
.right-content .item-function img{
    width: 100%;
}
.right-content .text-content{
    padding: 20px 0 20px 0;
    display: none;

}
.border-right-content{
    border-bottom: 1px solid #000000;
}
.text-content .item-text{
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
    padding: 5px 0;
}
.text-content .item-text p{
    margin-bottom: 0 !important;
    font-weight: 550;
}
.item-text img{
    object-fit: contain !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
}
.icon-down{
    margin-left: 10px;
}


.inf-btn img{
    width: 100%;
}
.inf-btn button{
    background: none;
    color: #fff;
    font-size: 25px;
    margin-top: 5px;
}
.content-image{
    background: #EEEEEE;
    padding: 20px 0px;
    width: 100%;
    margin: 20px auto;
    border-radius: 15px ;
    display: none;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);

}

.content-image canvas {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


.content-image img{
    width: 70%;
    max-width: 100%;
    max-height: 900px;
    object-fit: contain; /* hoặc 'cover' nếu muốn ảnh cắt đều */
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}
.content-image .icon-remove{
    position: absolute;
    top: 2%;
    right: 20px;
    width: 3%;
    cursor: pointer;
}
@media (min-width:900px) and (max-width:1700px){
    .container-btn{
        width: 60% !important;
    }
    .content-people{
        padding: 100px 25px !important;
    }
    .right-content .item-function{
        width: 33% !important;
    }
    .item-text img{
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
    }
    .text-content .item-text p{
        font-size: 13px;
    }
    .inf-btn{
        padding: 10px !important;
    }
    .container-btn{
        margin: 10px auto;
    }
}
.container-btn{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container-btn:hover{
    transform: scale(1.05);
}
.icon-upload{
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.icon-upload:hover{
    transform: scale(1.05);
}
@media (min-width: 1000px) and (max-width: 1400px) {
    .content-image .icon-remove{
        position: absolute;
        top: 1%;
        right: 20px;
        width: 5%;
        cursor: pointer;
    }
    .container-content .right-content{
        width: 40% !important;
    }
    .container-content .header-preview img{
        width: 4%;
    }
    .content-people h4{
        font-size: 20px;
    }
    .inf-btn button{
        font-size: 18px;
    }
    .right-content .item-function{
        width: 35%;
    }
    .right-content .text-content{
        padding: 10px 0 !important;
    }
}
@media (min-width: 800px) and (max-width: 1100px) {
    .content-people h4{
        font-size: 18px;
    }
    .inf-btn button{
        font-size: 16px;
    }

}
.tool-buttons{
    justify-content: center;
    gap: 20px;
    padding: 0;
    display: none;
}
.tool-buttons button{
    background: #fff;
    padding: 10px 15px;
    border-radius: 15px;
}
.tool-buttons button:hover{
    background: #ccc;
}
.tool-buttons .fa-undo,
.tool-buttons .fa-redo{
    font-size: 30px;
}
.container-shares{
    display: none;
    flex-direction: row;
    justify-content: center;
    margin: 20px 0;
}
.container-shares img{
    width: 25%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.container-shares img:hover{
    transform: scale(1.05);
}
.left-content {
    position: relative;
}
.btn-action{
    background: #fff;
}
#loadingModal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;  /* theo container-duet */
    height: 100%;
    min-height: 35vh;
    background: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px; /* bo góc theo container nếu có */

}
.loading-content {
    text-align: center;
    color: white;
    border-radius: 20px;
    padding: 0px 20px;
}

.title {
    margin-top: 25px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(90deg, #F9AA0D 0%, #CB1B9A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title .highlight {
    color: #FF007A;
}

.loading-text .percent {
    font-size: 20px;
    color: #00FFCC;
    font-weight: bold;
    margin-top: 10px;
}

.loading-text .sub-text {
    font-size: 16px;
    color: #eee;
    margin-top: 8px;
}
.canvas-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

canvas.lower-canvas,
canvas.upper-canvas {
    position: absolute;
    left: 0;
    top: 0;
    touch-action: none;
    user-select: none;
}
.container-header{
    max-width: 100% !important;
}
.container{
    padding-right: 1px !important;
}

.header-preview-pc{
    display: block;
}
.header-preview-mobile{
    display: none;
}
.border-top-content{
    display: none;
    border-top: 1px solid #000;
    margin: 15px 0 10px 0;
}
@media (max-width: 767px) {
    .container-content{
        width: 90% !important;
        margin: auto !important;
    }
    .border-top-content{
        display: block;
    }
    .border-right-content{
        display: none;
    }
    .text-content .item-text{
        align-items: start !important;
    }
    .container-shares img {
        width: 50% !important;
    }
    .right-content .text-content{
        padding: 20px 0 90px 0;
    }
    .container-header{
        width: 100% !important;
    }
    .content-image .icon-remove {
        top: 0% !important;
    }
    .tool-buttons .fa-undo, .tool-buttons .fa-redo {
        font-size: 20px;
    }
    .content-image{
        padding: 5px 0 !important;
    }
    .tool-buttons button {
        padding: 5px 10px;
        border-radius: 10px;
    }
    .header-preview{
        margin-bottom: 20px;
    }
    .right-content .item-function {
        width: 100%; /* mobile hiển thị 1 item mỗi dòng */
    }
    .container-content {
        flex-direction: column;
        gap: 20px;
        border-radius: 10px;
    }
    .tool-buttons{
        padding: 0;
    }

    .container-content .left-content {
        width: 100%;
        margin: 0;
        padding: 0 !important;
    }
    .container-content .right-content {
        width: 100%;
        margin: 0;
        padding: 15px !important;
        border-radius: 10px;
    }
    .content-image .icon-remove {
        width: 8% !important;
        right: 5px !important;
    }
    .content-image{
        width: 100% !important;
    }
    .content-image img{
        width: 100% !important;
    }

    .container-content .content-left {
        margin: 0;
    }

    .container-content .header-preview {
        justify-content: start;
        gap: 10px;
    }

    .container-content .header-preview img {
        width: 6%;
    }

    .content-people {
        padding: 40px 15px;
    }

    .content-people .icon-add {
        width: 15%;
    }

    .content-people h4 {
        font-size: 16px;
        text-align: center;
    }
    .content-people .icon-upload .icon-up{
        width: 15%;
    }

    .content-people .icon-upload .icon-upload {
        width: 50%;
    }

    .text-content .item-text {
        flex-direction: row;
        padding: 3px 0 !important;

    }

    .item-text img {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
    }

    .icon-down {
        text-align: center;
        margin: 15px 0;
    }
    .btn-action{
        width: 100%;
        position: fixed;
        z-index: 999;
        bottom: 5px;
        left: 0;
        right: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .container-btn {
        width: 77%;
        margin: 0 auto;
    }

    .inf-btn img {
        width: 100%;
    }

    .inf-btn button {
        font-size: 18px;
    }
    .right-content .list-function {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: space-between;
    }

    .right-content .item-function {
        width: 45%; /* chiếm 2 item mỗi dòng */
    }

    .right-content .item-function img {
        width: 100%;
        height: auto;
        border-radius: 15px;
    }
}
@media (min-width: 900px) and (max-width: 1400px){

    .container-shares img {
        width: 40%;
    }
}
.border-header{
    margin-bottom: 0 !important;
}
@media (min-width: 768px) and (max-width: 848px) {
    .border-top-content{
        display: block;
    }
    .border-right-content{
        display: none;
    }
    .text-content .item-text{
        align-items: start !important;
    }
    .container-content .left-content{
        margin-left: 0 !important;
        width: 90%;
    }
    .container-content {
        flex-direction: column;
        gap: 20px;
        border-radius: 10px;
        padding: 0 20px;
    }
    .container-content .right-content{
        width: 97%;
        margin-left: 10px;
    }
    .content-image .icon-remove{
        width: 8%;
    }
    .right-content .text-content{
        padding: 0 20px;
    }
    .container-content .right-content{
        order: -1;
    }
    .content-people{
        padding: 50px 25px !important;
    }
    .inf-btn button {
        width: 100%;
    }
    .inf-btn img {
        width: 60% !important;
    }
    .btn-remove-bg {
        width: 60% !important;
    }
    .container-save {
        width: 60% !important;
        margin-top: 90px !important;
    }


        .container-content .left-content{
        padding-bottom: 150px !important;
    }
    .header-preview{
        margin-bottom: 10px !important;
    }
    .header-preview-pc{
        display: none !important;
    }
    .header-preview-mobile{
        display: block;
    }
    .btn-action {
        width: 100%;
        position: fixed;
        z-index: 999;
        bottom: 5px;
        left: 0;
        right: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .container-header {
        max-width: 90% !important;
    }
    .container-content .left-content{
        padding-top: 0 !important;
    }
    .container-content{
        gap: 0 !important;
    }

}
@media (max-width: 540px) {
    .right-content h5{
        font-size: 22px !important;
    }
    .container-content .header-preview .icon-back {
        width: 5% !important;
        font-size: 20px !important;
    }
    .header-preview-pc{
        display: none !important;
    }
    .header-preview-mobile{
        display: block;
    }
    .container-content .right-content{
        order: -1;
    }
    .right-content .text-content{
        padding: 0 !important;
    }
    .container-content .left-content{
        padding-bottom: 150px !important;
    }
    .header-preview{
        margin-bottom: 10px !important;
    }
    .content-people h4{
        margin: 20px 0;
        font-size: 20px;
    }
    .content-people{
        padding: 20px 15px !important;
    }
    .text-content .item-text{
        align-items: start !important;
    }
}
.content-bg-image{
    background-color: #fff;
}
@media (max-width: 320px) {
    .right-content .text-content{
        padding-bottom: 50px !important;
    }
}
@media (min-width: 775px) and (max-width: 810px){
    .text-content{
        padding-bottom: 90px !important;
    }
    .container-btn{
        width: 60% !important;
        margin: 0 auto !important;
    }
    .btn-action {
        bottom: 0 !important;
    }

}
@media (max-height: 540px) {
    .right-content .text-content{
        padding: 20px 0 130px 0 !important;
    }
    .container-btn{
        width: 60% !important;
    }
    .btn-action{
        bottom: 0 !important;
    }
}
@media (min-width: 770px) {
    html,body{
        height: 100%;
    }
}
