.main {
    font-family: "Bentham", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 14pt;
}

.font-size-11pt {
    font-size: 11pt !important;
}

.font-size-14pt {
    font-size: 14pt !important;
}

.font-size-16pt {
    font-size: 16pt !important;
}

.font-size-24pt {
    font-size: 24pt !important;
}


.text-bold {
    font-weight: bold;
}

.imperial-script-regular {
    position: absolute;
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 80px !important;
    margin-top: -30px !important;
}


.cover {
    position: fixed;
    width: calc(100% - 550px);
    margin: 0 0 0 0;
    height: 100vh;
    z-index: 99;
    background-color: #fdf9f3;
    overflow: hidden;
}


.image-cover {
    width: 100% !important;
    height: 490px;
    max-height: 500px;
    object-fit: cover;
}

#flower-decoration-0{
    width: 125% !important;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

.text-cover{
    margin-top: 50px;
}

.img-mt-0 {
    position: relative;
    z-index: 1;
}



#flower-decoration-01 {
    content: "";
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    /* background-image: url('/assets/template/template7/img/flower-3.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

@media (max-width: 768px) {
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
    }

    .image-cover {
        width: 100% !important;
        height: 290px;
        max-height: 500px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 205px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}

@media  (max-width: 428px){
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
        font-size: 14px !important;
    }

    .image-cover {
        width: 100% !important;
        height: 390px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 280px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}

@media  (max-width: 414px){
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
        font-size: 14px !important;
    }

    .image-cover {
        width: 100% !important;
        height: 380px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 270px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}

@media  (max-width: 390px){
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
        font-size: 14px !important;
    }

    .image-cover {
        width: 100% !important;
        height: 315px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 210px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}

@media  (max-width: 375px){
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
        font-size: 14px !important;
    }

    .image-cover {
        width: 100% !important;
        height: 285px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 185px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}

@media  (max-width: 360px){
    .cover {
        width: 100% !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100vh;
        z-index: 99;
        background-color: #fdf9f3;
        font-size: 14px !important;
    }

    .image-cover {
        width: 100% !important;
        height: 265px;
        object-fit: cover;
    }

    #flower-decoration-0{
        width: 140% !important;
        position: absolute;
        top: 170px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }
}


.container-invitation {
    max-width: 550px;
    margin: 0 0 0 auto;
    background-color: #fdf9f3;
    overflow: hidden;
}

.padding-10 {
    padding: 10px;
}


.text-salam {
    margin-top: -90px;
    margin-bottom: 20px;
}

.text-pengantin {
    font-size: 34pt;
    font-weight: 600;
    color: #b96e36;
}

.dan {
    font-size: 40pt !important;
    font-weight: bold;
}

#flower-decoration{
    width: 150%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    top: -80px;
    z-index: 1;
}

.img-mt {
    position: relative;
    z-index: 1;
}

.img-mt::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110%;
    height: 110%;
    /* background-image: var(--dynamic-bg, url('/assets/template/template7/img/flower-3.png')); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.img-mt-2 {
    position: relative;
    z-index: 1;
}

.img-mt-2::before {
    content: "";
    position: absolute;
    top: 250px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 110%;
    /* background-image: url('/assets/template/template7/img/flower-3.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

.img-mt-3 {
    position: relative;
    z-index: 1;
}

.img-mt-3::before {
    content: "";
    position: absolute;
    top: 230px;
    left: 50%;
    transform: translateX(-50%);
    width: 160%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

#couple{
    padding-top: 30px;
    padding-bottom: 30px;
}

.text-pengantin-couple {
    font-size: 24px;
}

.pengantin-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    gap: 10px;
    overflow: hidden;
}

.img-flower-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    width: 150px;
    z-index: 3;
    opacity: 1;
}

.pengantin-img {
    position: relative;
    max-width: 100%;
    height: 250px;
}

.text-initial {
    color: #bb723a;
}

#acara {
    padding-bottom: 200px;
}

.btn {
    position: relative;
    max-width: 80%;
    color: white;
    border-radius: 20px;
    padding-right: 20px !important;
    padding-left: 20px !important;
    background-color: #8b795a;
    z-index: 3;
    text-transform: none !important;
    font-weight: normal !important;
    font-family: "Bentham", serif;
    font-style: normal;
}

.btn:hover{
    color: white;
    background-color: #635640;
}

#countdown {
    color: white;
    padding-top: 10px;
    background-image: url("/assets/template/template7/img/couple-pengantin.jpg");
    background-size: cover;
    background-position: center;
    margin: 0 0 0 auto;
    height: 800px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
}

#countdown h3 {
    font-size: 40px;
    margin-top: 50px;
}

.text-countdown {
    font-size: 20px;
}

.btn-acara{
    background-color: #ba713a;
}

#flower-decoration-2 {
    width: 150%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: 630px;
}

#gallery{
    margin: 0 0 0 auto;
    background-color: #fffbf5;
    height: 1000px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    padding-left: 30px;
    padding-right: 30px;
}
.text-pengantin-couple-2 {
    font-size: 36px;
}
.dan-couple {
    color: #d68b51;
}

#flower-decoration-3 {
    width: 190%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: 80px;
}

.slider-scroll {
    margin-top: 30px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
}

.slider-scroll::-webkit-scrollbar {
    display: none;
}

.slider-item {
    flex: 0 0 70%;
    scroll-snap-align: center;
    position: relative;
    height: 450px;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

#video {
    margin: 0 0 0 auto;
    background-image: url("/assets/template/template7/img/img_2.png");
    background-size: cover;
    background-position: center;
    height: 1000px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    padding: 10px;
}

#flower-decoration-4 {
    width: 150%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: -135px;
}

.videoplayer {
    margin-top: 200px;
}

.btn-2 {
    position: relative;
    width: 250px;
    max-width: 80%;
    color: black;
    border-radius: 20px;
    border: none;
    padding: 8px;
    background-color: white;
    z-index: 3;
    text-transform: none !important;
    font-weight: normal !important;
    font-family: "Bentham", serif;
    font-style: normal;
    font-size: 14pt;
}

.btn-2:hover{
    background-color: #c2bfbb;
}

#gift {
    margin: 0 0 0 auto;
    background-color: #fffbf5;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
    padding: 10px;
}

#flower-decoration-5 {
    width: 300px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.form-gift {
    padding-top: 12px;
    padding-bottom: 12px;
    color: white;
    background-color: #8a7859;
}

.form-gift::-webkit-input-placeholder{
    color: white;
}

.form-gift:-ms-input-placeholder{
    color: white;
}

#footer {
    background-color: #fffbf5;
    margin: 0 0 0 auto;
    background-image: url("/assets/template/template7/img/flower-8.png");
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    max-width: 550px;
    padding: 10px;
}

.text-footer {
    padding-top: 60px;
}

.image-couple-footer {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 70%;
    height: 400px;
    border-radius: 10px;
}

#rekening {
    margin: 0 0 0 auto;
    padding-top: 100px;
    background-color: #fffbf5;
    height: 800px;
    overflow: hidden;
    width: 100%;
    max-width: 550px;
}

.img-mt-4 {
    position: relative;
    z-index: 1;
}

.img-mt-4::before {
    content: "";
    position: absolute;
    top: 600px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    /* background-image: url('/assets/template/template7/img/flower-5.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: -1;
}

.img-mt-5 {
    position: relative;
    z-index: 1;
}

.img-mt-5::before {
    content: "";
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 250%;
    height: 250%;
    /* background-image: url('/assets/template/template7/img/flower-3.png'); */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}

/* Canvas-based Flower Decoration System */
.flower-decoration-container {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.flower-canvas {
    width: 125% !important;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    cursor: pointer;
}

.flower-canvas-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
    width: 150px;
    z-index: 3;
    opacity: 1;
    cursor: pointer;
}

.color-controls {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: none;
    z-index: 1000;
}

.flower-decoration-container:hover .color-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.color-picker {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-edit-color, .btn-reset-color, .btn-undo, .btn-redo {
    padding: 3px 8px;
    font-size: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    background: #8b795a;
    color: white;
    margin: 0 1px;
}

.btn-edit-color:hover, .btn-reset-color:hover, .btn-undo:hover, .btn-redo:hover {
    background: #635640;
}

.btn-undo {
    background: #6c757d;
}

.btn-redo {
    background: #28a745;
}

/* Specific positioning for different flower decorations */
#flower-decoration-0-canvas {
    width: 125% !important;
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#flower-decoration-canvas {
    width: 150%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    top: -80px;
    z-index: 1;
}

#flower-decoration-2-canvas {
    width: 150%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: 630px;
}

#flower-decoration-3-canvas {
    width: 190%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: 80px;
}

#flower-decoration-4-canvas {
    width: 150%;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
    top: -135px;
}

#flower-decoration-5-canvas {
    width: 300px;
    margin-top: 50px;
    margin-bottom: 50px;
}

/* Override: Hapus background-image pada pseudo-element agar hanya <img class="bg-flower"> yang tampil */
.cover,
.container-invitation,
#footer,
.img-mt-0, .img-mt, .img-mt-2, .img-mt-3, .img-mt-4, .img-mt-5,
.img-mt-0::before, .img-mt::before, .img-mt-2::before, .img-mt-3::before, .img-mt-4::before, .img-mt-5::before {
    background-image: none !important;
}

.bg-flower {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
    object-fit: contain;
}

.img-mt-0, .img-mt, .img-mt-2, .img-mt-3, .img-mt-4, .img-mt-5 {
    position: relative;
    z-index: 1;
}

/* Samakan posisi <img class="bg-flower"> dengan ::before sebelumnya */
#bg-flower-img-mt-0 {
    position: absolute;
    top: 150px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt {
    position: absolute;
    top: 0;
    left: 50%;
    width: 110%;
    height: 110%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt-2 {
    position: absolute;
    top: 250px;
    left: 50%;
    width: 150%;
    height: 110%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt-3 {
    position: absolute;
    top: 230px;
    left: 50%;
    width: 160%;
    height: 110%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt-4 {
    position: absolute;
    top: 600px;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: -1;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt-5 {
    position: absolute;
    top: 100px;
    left: 50%;
    width: 250%;
    height: 250%;
    transform: translateX(-50%);
    opacity: 0.3;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
#bg-flower-img-mt-footer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #flower-decoration-0-canvas {
        width: 150% !important;
        position: absolute;
        top: 270px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 999;
    }

    .color-controls {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        transform: none;
        background: rgba(255, 255, 255, 0.95);
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
}

.save-the-date{
    margin-top: 300px !important;
}

.display-none{
    display: none !important;
}
