.canvas {
    border-radius: 0rem;
}

#undanganmu,
.canvas {
    position: absolute;
    width: 420px;

    /* Sembunyikan scrollbar di semua browser */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer/Edge lama */
}

#undanganmu {
    color: var(--inv-base);
    font-family: var(--font-base);
}

.overlay-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
        var(--inv-background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.no-menu .undangan-container,
.not-open .undangan-container {
    height: 100%;
}
.no-menu .undangan_menu,
.not-open .undangan_menu {
    bottom: -100px;
}
.no-menu .floating-action,
.not-open .floating-action {
    bottom: 30px;
}
.no-menu .frame,
.not-open .frame {
    bottom: 0;
}
.undangan-container {
    position: relative;
    height: 100vh;
    background-color: var(--inv-background);
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    height: 100%;
    overflow: hidden;
    padding: 30px;
    transition: all 0.5s ease-in-out;
    width: 100%;
}
.undangan_track {
    height: 100%;
    width: 100%;
}
.undangan_track .undangan_list {
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.undangan_track .undangan_cover,
.undangan_track .undangan_slide {
    height: 100%;
    width: 100%;
}
.undangan_menu {
    background-color: var(--menu-bg);
    bottom: 0;
    box-shadow: 0 -1px 6px 0 rgba(0, 0, 0, 0.06);
    -webkit-box-shadow: 0 -1px 6px 0 rgba(0, 0, 0, 0.06);
    -moz-box-shadow: 0 -1px 6px 0 rgba(0, 0, 0, 0.06);
    height: 60px;
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    transition: all 0.2s ease-in-out;
    width: 100%;
}
.undangan_menu .undangan_menu_list {
    align-items: center;
    display: flex;
    height: 100%;
    list-style: none;
    margin: 0;
    min-width: 100%;
    padding: 0;
    transition: all 0.5s ease-in-out;
}
.undangan_menu .undangan_menu_item {
    align-items: center;
    color: var(--menu-inactive);
    display: flex;
    flex: none;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    position: relative;
    text-align: center;
    transition: all 0.1s ease-in-out;
    width: 100%;
}
.undangan_menu .undangan_menu_item .icon {
    font-size: 1.6rem;
}
.undangan_menu .undangan_menu_item i,
.undangan_menu .undangan_menu_item span,
.undangan_menu .undangan_menu_item svg {
    z-index: 2;
}
.undangan_menu .undangan_menu_item span {
    font-size: 12px;
}
.undangan_menu .undangan_menu_item:after {
    background-color: var(--menu-active);
    border-radius: 0.8rem;
    content: "";
    height: 0;
    position: absolute;
    transition: all 0.1s ease-in-out;
    width: 0;
}
.undangan_menu .undangan_menu_item.active {
    color: var(--menu-active);
}
.undangan_menu .undangan_menu_item.active:after {
    background-color: var(--menu-active);
    content: "";
    /* height: calc(100% - 0.5rem); */
    position: absolute;
    /* width: calc(100% - 0.5rem); */
}
.font-accent {
    font-family: var(--font-accent);
}
.font-latin {
    font-family: var(--font-latin);
    font-size: 200%;
}
.color-accent {
    color: var(--inv-accent);
}
.floating-action {
    bottom: 80px;
    gap: 12px;
    margin: auto;
    max-width: 500px;
    position: absolute;
    right: 20px;
}
.btn-float {
    align-items: center;
    background-color: var(--btn-background);
    border-color: var(--btn-background);
    color: var(--btn-icon-color);
    border-radius: 10rem;
    display: flex;
    height: 35px;
    justify-content: center;
    opacity: 0.7;
    padding: 0;
    width: 35px;
}
.btn-invitation {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--inv-accent);
    --bs-btn-border-color: var(--inv-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--inv-accent);
    --bs-btn-hover-border-color: var(--inv-accent);
    --bs-btn-focus-shadow-rgb: 117, 153, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--inv-accent);
    --bs-btn-active-border-color: var(--inv-accent);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--inv-accent);
    --bs-btn-disabled-border-color: var(--inv-accent);
    border-radius: 50px;
    padding-left: 20px;
    padding-right: 20px;
}
#btnAutoplay .play,
#btnMusic .play {
    display: block;
}
#btnAutoplay .pause,
#btnAutoplay.playing .play,
#btnMusic .pause,
#btnMusic.playing .play {
    display: none;
}
#btnAutoplay.playing .pause,
#btnMusic.playing .pause {
    display: block;
}
.sc-music {
    height: 0;
    overflow: hidden;
}
.sc-music div {
    display: none;
}
.rounded-pill {
    border-radius: 50rem;
}

.frame {
    bottom: 0;
    right: 0;
}
.frame::after {
    content: "";
    position: absolute;
    left: var(--frame-padding-left, 0px);
    right: var(--frame-padding-right, 0px);
    top: var(--frame-padding-top, 0px);
    bottom: var(--frame-padding-bottom, 0px);
    background-color: var(--frame-bg, rgba(255, 255, 255, 0));
    border: var(--frame-border-width, 2px) solid
        var(--frame-border-color, #ffffff00);
    border-radius: var(--frame-radius, 0px);
    backdrop-filter: blur(var(--frame-blur, 0px));
    pointer-events: none;
}
.frame,
.frame-gate-left {
    left: 0;
    position: absolute;
    top: 0;
}
.frame-gate-left {
    width: 50%;
}

.frame-gate-right {
    right: 0;
    position: absolute;
    top: 0;
}
.frame-gate-right {
    width: 50%;
}

.frame-top-left {
    top: 0;
    left: 0;
}
.frame-top-right {
    top: 0;
    right: 0;
}

.frame-full {
  position: absolute;
  inset: 0;
}

.frame-top-center {
    top: 0;
}

.frame-bottom-left {
    bottom: 0;
    left: 0;
}
.frame-bottom-right {
    bottom: 0;
    right: 0;
}

.frame-bottom-center {
    bottom: 0;
}

.frame-center-left {
    left: 0;
    transform: translateY(-50%);
}

.frame-center-right {
    right: 0;
    transform: translateY(-50%);
}

.frame-tl {
    left: 0;
    position: absolute;
    top: 0;
}
.frame-tl {
    width: 50%;
}
.frame-tr {
    right: 0;
    top: 0;
}
.frame-bl,
.frame-tr {
    position: absolute;
    width: 50%;
}
.frame-bl {
    bottom: 0;
    left: 0;
}
.frame-br {
    width: 50%;
}
.embed-video iframe,
.frame-br {
    bottom: 0;
    position: absolute;
    right: 0;
}
.embed-video iframe {
    height: 100%;
    left: 0;
    top: 0;
    width: 100%;
}

.frame-out {
    display: none;
}

.cover .frame-out {
    display: block;
}

.editor-wrapper .frame-out {
    display: none;
}

.editable-container {
    position: relative;
}

.edit-btns {
    display: none; /* Tombol tersembunyi secara default */
    position: absolute;
    top: 50%; /* Posisi vertikal di tengah */
    left: 50%; /* Posisi horizontal di tengah */
    transform: translate(
        -50%,
        -50%
    ); /* Menggeser tombol agar benar-benar di tengah */
    background: rgba(255, 255, 255, 0.7); /* Background transparan */
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    z-index: 10;
}

/* Ketika pointer melayang di atas teks */
.editable-container:hover .edit-btns {
    display: inline-block;
}

/* Memberikan efek garis putus-putus saat hover */
.clickable-text:hover {
    outline: 2px dotted #333;
    outline-offset: 2px;
    cursor: pointer;
}

.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.countdown-box {
    border-radius: 1rem;
    padding: 10px 15px;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}
.countdown-box:hover {
    transform: scale(1.05);
}
.countdown-value {
    font-weight: bold;
}
.countdown-label {
    text-transform: uppercase;
}
