body, html{
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

#dynamic-content {
    max-width: 100%;
    right: 5.833%;
    width: 38.333%;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    display: table;
}


body {
    background: rgb(131, 58, 180);
    background: linear-gradient(90deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 0%, rgba(252, 176, 69, 1) 100%);

}

.playfair {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.great-vibes-regular {
    font-family: "Great Vibes", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
}

.contentContainer .template-1 {
    position: absolute;
    color: #222;
}

.textEdit {
    font-size: 20px;
}

.red-saturate .template-2 {
    filter: saturate(2);
    /* Tăng độ bão hòa gấp 2 lần */
}

/* Mẫu 1 */
.dynamic-content.template-1 .recipient {
    color: yellow;
    font-size: 32px;

}

.dynamic-content p {
    margin: 5px 0;
    /* Giảm khoảng cách trên và dưới mỗi thẻ */
    line-height: 1.2;
    /* Giảm khoảng cách giữa các dòng trong thẻ */
}

.dynamic-content.template-1 .message {
    white-space: pre-line;
}

.bd {
    border: 2px solid black;
}

.title24{
    font-size: 24px;
}

.title30{
    font-size: 30px;
}

.sender_1 {
    right: 5.833%;
    bottom: 8.72%;
    position: absolute;
    /* right: 50px;
    bottom: 50px; */
    /* border: 1px solid black;
    background-color: black;
    color: yellow;
    font-size: 30px;
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: auto;
    margin-bottom: 0px; */

}

/* Mẫu 2 */
.contentContainer .template-2 {
    position: absolute;
    /* Chèn nội dung lên ảnh */
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Nội dung xếp theo cột */
    text-align: center;
    width: 100%;
    /* Đảm bảo khối phủ toàn bộ chiều rộng ảnh */
    color: white;
    /* Đổi màu chữ để dễ nhìn hơn (có thể tùy chỉnh) */
    padding: 10px;
    /* Tạo khoảng cách bên trong */
}

.dynamic-content.template-2 .recipient {
    color: yellow;
    font-size: 38px;
    font-weight: 500;

}

.shadow .template-2 {
    filter: brightness(50%);
    /* Giảm độ sáng xuống 50% */

}

.dynamic-content.template-2 .message {
    color: yellow;
    font-size: 42px;
    font-weight: 500;

}

.dynamic-content.template-2 .sender {
    color: yellow;
    font-size: 24px;

}

/* Mẫu 3 */
.contentContainer .template-3 {
    position: absolute;
    /* Chèn nội dung lên ảnh */
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Căn giữa nội dung */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Nội dung xếp theo cột */
    text-align: center;
    width: 100%;
    /* Đảm bảo khối phủ toàn bộ chiều rộng ảnh */
    padding: 10px;
    /* Tạo khoảng cách bên trong */
}

.dynamic-content.template-3 .recipient {
    color: yellow;
    font-size: 32px;


}

.dynamic-content.template-3 .message {
    color: yellow;
    font-size: 36px;

}

.dynamic-content.template-3 .sender {
    color: yellow;
    font-size: 24px;
    position: relative;
    right: 0px;

}
/* cho modal to ra */
.modal.show .modal-dialog{
    max-width: 700px;
}

@media(max-width: 1900px){
    .title30{
        font-size: calc(14px + (30 - 14) * ((100vw - 375px) / (1920 - 375)));
    }
    .title24{
        font-size: calc(14px + (24 - 14) * ((100vw - 375px) / (1920 - 375)));
    }
}

@media(max-width: 399px){
    .sender_1 {
        right: 15px;
        bottom: 15px;
        position: absolute;
    }
}