@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('../fonts/javasoul/style.css');
@import url('../fonts/laraboyok/style.css');

:root {
    --font-base: "Work Sans", sans-serif;
    --font-accent: 'Laraboyok', serif;
    --font-latin: 'Javassoul', serif;
}

/* Preloader background */
#preloader {
    position: fixed;
    z-index: 99999;
    background-color: #a0522d;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ffeec3;
    border-top: 6px solid #ffbf7a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #ffd8c7;
    opacity: 0;
    animation: fadeInText 1.5s ease forwards 1s;
}

@keyframes fadeInText {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}


/* Animasi memutar */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Ketika preloader selesai */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.gallery-fixed {
    width: 60%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.358);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-fixed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    object-fit: cover;

}

.gallery-fixed:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.text {
    font-family: var(--font-latin);
}

.jawa {
    font-family: var(--font-accent);
}

/* Styles for mobile-like appearance */
html {
    height: 100%;
    /* Ensure html takes full height */
}

body {
    font-family: var(--font-base);
    background-color: #f8f9fa;
    color: #343a40;
    overflow-x: hidden;
    /* Prevent horizontal scroll due to animations */
    /* New styles for mobile simulation */
    max-width: 480px;
    /* Maximum width for the mobile view */
    margin: 0 auto;
    /* Center the body on larger screens */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    /* Optional: add a subtle shadow for the "phone" frame */
    min-height: 100vh;
    /* Ensure body takes at least full viewport height */
    position: relative;
    /* Needed for fixed children positioning relative to body */
}

/* Adjust the background for the area outside the mobile view */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #885e15;
    /* A light grey background outside the mobile frame */
    z-index: -1;
    /* Place it behind the body content */
}

.lead {
    margin: auto;
    max-width: 80%;
    font-size: 15px !important;
}

.bingkai {
    position: absolute;
    width: 11rem;
    /* Sesuaikan ukuran */
    z-index: 5;
}

.bingkai-atas-kiri {
    top: 0;
    left: 0;
}

.bingkai-atas-kanan {
    top: 0;
    right: 0;
}

.bingkai-bawah-kiri {
    bottom: 0;
    left: 0;
}

.bingkai-bawah-kanan {
    bottom: 0;
    right: 0;
}

.tiang {
    position: absolute;
    top: 0;
    height: 100%;
    width: 8rem;
    z-index: 4;
    object-fit: contain;
}

.tiang-kiri {
    left: -4.5rem;
}

.tiang-kanan {
    right: -4.5rem;
}

.cover-section {
    height: 100vh;
    background: url(/asset/img/bg.png) no-repeat center center/cover;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: fixed !important;
    /* Make cover fixed to cover entire screen */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Ensure cover is on top of everything */
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
    /* Smooth fade out */
    /* Important: Adjust cover to fit the mobile-simulated body width */
    max-width: 480px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    /* Center cover within the new body constraints */
}

.cover-section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Disable interactions when hidden */
}

.cover-content {
    padding: 20px;
    animation: fadeInScale 2s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.cover-section h1 {
    color: #ffe2af;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}


h1.nama-greeting {
    font-size: 40px;
    font-family: var(--font-accent);
    padding: 0.5rem;
}

.alamat-greet {
    padding: 0.5rem;
}

.and-greet {
    font-size: 50px;
}

#greeting {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 15rem 2rem 10rem 2rem;
}

.card-g {
    max-width: 350px;
    background-color: rgba(255, 255, 255, 0.383);
    border: 2px solid #b57600;
    margin: auto;
    overflow: hidden;
}

.tokoh-greeting {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

.cover-section p {
    color: #793c10;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.cover-section #greetingText {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

div#guestNameDisplay {
    padding: 0 1rem;
    font-family: var(--font-base);
    font-weight: 700;
    color: #343a40;
    border-radius: 15px;
    background-color: #ffffff;
    line-height: 80px;
}


.open-button {
    background-color: #8B4513;
    border-color: #8B4513;
    color: #ffeed1;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
    z-index: 5;
}

.open-button:hover {
    background-color: #A0522D;
    /* Sienna */
    border-color: #A0522D;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.main-content {
    padding-bottom: 70px;
    /* Space for fixed bottom navbar */
}

section {
    background:
        linear-gradient(rgba(255, 182, 80, 0.448), rgba(172, 100, 0, 0.191)),
        url(/asset/img/bg.png) no-repeat center center/cover;
    font-family: var(--font-latin);
    text-align: center;
    display: none;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
    overflow: hidden !important;
}


section.active {
    display: block !important;
    opacity: 1;
    transition: opacity 0.5s ease-in;
}

section:nth-of-type(odd) {
    background-color: #e0e0e0;
}


h3 {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B4513;
    /* SaddleBrown */
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.h1-pengantin {
    font-size: 2rem;
    word-spacing: normal;
    line-height: 1.2;
}

h3::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 3px;
    left: 15%;
    bottom: -10px;
    border-radius: 5px;
}

.title-greet {
    font-weight: 500;
    font-family: var(--font-latin) !important;
}

.wayangan-greet-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 70vw;
    max-height: 70vh;
    opacity: 0.5 !important;
    z-index: 0;
    pointer-events: none;
}


.ig {
    text-decoration: none;
    color: #ffebdd;
}

.profile-card {
    background-color: #ffffff6f;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem !important;
    margin: 5rem auto;
    max-width: 22.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.profile-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #A0522D;
    margin-bottom: 20px;
}

.profile-card h4 {
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 600;
    color: #8B4513;
    margin-bottom: 10px;
}

.profile-card p {
    font-size: 1.1rem;
    color: #331500;
}

.pic-1 {
    object-fit: cover;
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    border: #ffe2af solid 3px;
    box-shadow: 0 5px 5px 5px rgba(0, 0, 0, 0.288);
}

.separator-icon {
    font-size: 3rem;
    color: #8B4513;
    /* SaddleBrown */
    margin: 30px 0;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.quote-block {
    background-color: #ffffff4a;
    border-left: 5px solid #A0522D;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 10rem auto;
    height: 30rem;
    max-width: 800px;
    /* Keep max-width for internal content constraints */
}

.quote-block p {
    font-size: 1.3rem;
    font-style: italic;
    color: #8B4513;
    margin-top: 3rem;
    margin-bottom: 10px;
}

.quote-block small {
    font-size: 1rem;
    color: #864212;
    font-weight: 700;
    word-spacing: 3px;
}

.quote-block cite {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #8B4513;
    margin-top: 20px;
}

.card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: auto;
    position: relative;
}

.event-card {
    margin: 10rem auto;
    width: 70%;
    background: #ffffff6f;
    border-radius: 15px;
    padding: 2.5rem;
    border-top: 5px solid #994d16;
    border-left: 10px solid #5f2f0d;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backface-visibility: hidden;
    transition: transform 0.8s;
    display: none;
}

.event-card.active {
    display: block;
    animation: flipIn 2.2s ease forwards;
}

.info-btn-acara {
    margin: auto;
    max-width: 12rem;
    font-size: 14px !important;
}

.button-i {
    font-weight: 900;
    font-size: 14px !important;
    color: #fff;
}

@keyframes flipIn {
    from {
        transform: rotateY(-180deg);
        opacity: 0;
    }

    to {
        transform: rotateY(0);
        opacity: 1;
    }
}

.nav-buttons {
    margin-top: 1rem;
    text-align: center;
}

.nav-buttons button {
    background-color: #a06e2d;
    color: #fff;
    border: none;
    margin: 0 10px;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 1rem;
    transition: background 0.3s ease;
}

.nav-buttons button:hover {
    background-color: #b5952e;
}

.event-card i {
    font-size: 2rem;
    color: #A0522D;
    margin-bottom: 15px;
}

.event-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #8b4513db;
    margin-bottom: 10px;
}

.event-card p {
    font-size: 1.1rem;
    color: #4b2001c2;
    margin-bottom: 5px;
}

.event-card a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.event-card a:hover {
    background-color: #8B4513;
    transition: color 0.3s ease;
}

i.maps {
    font-size: 20px;
    color: #ffff;
}

i.arrow {
    color: #ffff;
}

.ucapan-isi {
    margin: 10rem auto;
}

.ucapan-isi p {
    color: #331500;
    max-width: 21rem;
}

.ucapan-isi h5 {
    color: #ffe8bf;
    text-shadow: 1px 1px 1px #000;
}

.ucapan-isi span.label {
    text-shadow: 1px 1px 1px #ffe8bf;
}

.ucapan-form .form-control,
.ucapan-form .form-select {
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ucapan-form .form-control:focus,
.ucapan-form .form-select:focus {
    border-color: #A0522D;
    box-shadow: 0 0 0 0.25rem rgba(160, 82, 45, 0.25);
}

.ucapan-form .btn-primary {
    background-color: #8B4513;
    border-color: #8B4513;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #8B4513;
}

.btn-primary:hover {
    background-color: #A0522D;
    border-color: #A0522D;
    transition: ease-in-out 1s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ucapan-form .btn-primary:hover {
    background-color: #A0522D;
    border-color: #A0522D;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hadiah-isi {
    margin: 10rem auto;
}

.hadiah-isi p {
    color: #331500;
}

.hadiah-isi span {
    color: #331500 !important;
}

.hadiah-isi span#metode2 {
    font-weight: 800;
}

.gift-info {
    padding: 1rem;
    margin: 0 auto;
    max-width: 800px;
}

.gift-info p {
    font-size: 1rem;
    color: #572c18;
}

.gift-info .bank-details {
    background-color: #ffffff6f;
    border-radius: 10px;
    padding: 20px;
    border-left: 5px solid #A0522D;
    border-right: 5px solid #A0522D;
    box-shadow: 0 0 5px #0000007a;
    margin-top: 20px;
}

.gift-info .bank-details strong {
    color: #8B4513;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.gift-info .bank-details span {
    display: block;
    font-size: 1rem;
    color: #343a40;
}

.copy-button {
    background-color: #A0522D;
    border-color: #A0522D;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background-color: #F8C794;
    color: #A0522D;
    border-color: #8B4513;
    transform: translateY(-1px);
    box-shadow: 0 0 5px #0000007a;
}

.copy-button i {
    margin-right: 5px;
}

.btn {
    z-index: 1000 !important;
    border-radius: 20px !important;
    border: none;
}

.btn-dark {
    background-color: #8B4513;
}

.btn-dark:hover {
    background-color: #A0522D;
    box-shadow: 1px 5px 10px 3px #343a4081;
    transition: all ease-in 0.5s;
}

.greeting-section {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 7.5rem;
    margin: 0 auto;
    max-width: 800px;
}

.thanks-isi {
    margin: 10rem auto;
}

.thanks-message {
    max-width: 800px;
}

.time-color {
    color: #8B4513 !important;
    background-color: #ffd7ba;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.201);
    padding: 0.5rem;
    border-radius: 8px;
}

.darkbrown-text {
    color: #5f2f0d;
}

.thanks-message p {
    font-size: 1rem;
    color: #5f2f0d;
    line-height: 1.6;
}

.thanks-message h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #65310c;
    margin-top: 30px;
}

.tag-kirim {
    padding: 0.5rem;
    background-color: #f4c578a4;
    border-radius: 10px;
    box-shadow: 3px 5px 7px #572c18;
}

.bottom-navbar {
    position: fixed;
    bottom: 0;
    /* Adjust left and right to be relative to the centered body */
    left: 50%;
    transform: translateX(-50%);
    max-width: 480px;
    /* Match body's max-width */
    width: 100%;
    /* Ensure it fills the max-width */
    background-color: #8B4513;
    /* SaddleBrown */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: flex;
    /* Keep flex display for horizontal alignment */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    scrollbar-width: none;
    /* Hide scrollbar for Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar for IE/Edge */
}

/* Hide scrollbar for WebKit browsers */
.bottom-navbar::-webkit-scrollbar {
    display: none;
}

.bottom-navbar .nav-link {
    color: #fff;
    padding: 10px 10px;
    /* Add horizontal padding for spacing */
    text-align: center;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
    flex-shrink: 0;
    /* Prevent items from shrinking */
    min-width: 80px;
    /* Ensure each item has a minimum width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bottom-navbar .nav-link i {
    font-size: 1rem;
    margin-bottom: 5px;
}

.bottom-navbar .nav-link:hover,
.bottom-navbar .nav-link.active {
    background-color: #A0522D;
    color: #fff;
    transform: scale(1.1);
}


/* Ukuran max 576px */
@media (max-width: 576px) {
    .cover-section h1 {
        font-size: 2rem;
    }

    .cover-section h2 {
        font-size: 1.2rem;
    }

    .cover-section p {
        font-size: 0.9rem;
    }

    .cover-section #greetingText {
        font-size: 0.65rem;
    }

    .bingkai {
        width: 5.5rem;
    }

    .tiang {
        width: 4rem;
    }

    .tiang-kiri {
        left: -2rem;
    }

    .tiang-kanan {
        right: -2rem;
    }

    .card-g {
        max-width: 260px;
    }

    .profile-card img {
        width: 100px;
        height: 100px;
    }

    .profile-card h4 {
        font-size: 1.2rem;
    }

    .quote-block {
        margin-top: 5rem;
        max-width: 260px !important;
    }

    .quote-block p {
        font-size: 0.95rem;
        margin-top: 5rem;
    }

    .quote-block cite {
        font-size: 0.9rem;
    }

    .event-card {
        width: 90%;
        padding: 1.5rem;
    }

    .event-card h4 {
        font-size: 1.3rem;
    }

    .event-card p {
        font-size: 0.95rem;
    }

    .gallery-item img {
        height: 180px;
    }

    .thanks-message {
        padding: 25px;
    }

    .thanks-message h4 {
        font-size: 1.2rem;
    }

    .thanks-message p {
        font-size: 1.2rem;
    }

    .bottom-navbar .nav-link {
        font-size: 0.6rem;
    }

    .bottom-navbar .nav-link i {
        font-size: 1rem;
    }

    .music-btn {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

/* Ukuran max 768px */
@media (max-width: 768px) {
    body {
        max-width: 100%;
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    body::before {
        display: none;
    }

    .no-scroll-card {
        overflow: hidden !important;
        max-height: 100vh;
        /* Batasi tinggi sesuai viewport */
    }

    .pic-1 {
        width: 8rem;
        height: 8rem;
    }

    .cover-section {
        max-width: 100%;
        left: 0;
        transform: none;
        padding: 2rem 1rem;
    }

    .cover-content {
        padding: 1rem;
    }

    .cover-section h1 {
        font-size: 2.2rem;
    }

    .cover-section h2 {
        font-size: 1.3rem;
    }

    .cover-section p {
        font-size: 1rem;
    }

    .music-btn {
        bottom: 70px;
        right: 15px;
    }

    .bottom-navbar {
        max-width: 100%;
        left: 0;
        transform: translateX(0);
    }

    .cover-section h1 {
        font-size: 2.5rem;
    }

    .cover-section h2 {
        font-size: 1.5rem;
    }

    .cover-section p {
        font-size: 1rem;
    }

    .cover-section #greetingText {
        font-size: 0.7rem;
    }

    .bingkai {
        position: absolute;
        width: 7rem;
        /* Sesuaikan ukuran */
        z-index: 1;
    }

    .tiang {
        position: absolute;
        top: 0;
        height: 100%;
        width: 6rem;
        z-index: 2;
        object-fit: contain;
    }

    .tiang-kiri {
        left: -4rem;
    }

    .tiang-kanan {
        right: -4rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.5rem;
    }

    .h1-pengantin {
        font-size: 1.7rem;
    }

    .gift-info {
        padding: 20px;
        max-width: 90%;
    }

    .gift-info .bank-details {
        margin-top: -0.5rem;
    }

    #greeting {
        padding: 3rem 1rem;
        overflow: hidden !important;
    }

    .card-g {
        max-width: 300px;
        background-color: rgba(255, 255, 255, 0.172);
        margin: 2rem auto;
        z-index: 0;
    }

    .profile-card {
        padding: 2rem !important;
        margin-top: 0;
        width: 18rem;
    }

    .profile-card img {
        width: 7rem;
        height: 7rem;
    }

    .profile-card h4 {
        font-size: 1.5rem;
    }

    .btn.btn-primary {
        padding: 8px 2px 2px 2px;
        width: 11rem;
        height: 2.5rem;
    }

    a i.btn.btn-primary {
        font-size: 12px;
    }

    .nav-buttons button {
        font-size: 12px;
        padding: 8px 2px 2px 2px;
        width: 5rem;
        height: 2rem;
        transition: background 0.3s ease;
    }

    .quote-block {
        max-width: 18.5rem !important;
    }

    .quote-block p {
        color: #8B4513;
        font-size: 1rem;
    }

    .event-card {
        margin: 8rem auto;
        width: 18rem;
    }

    .bottom-navbar .nav-link {
        font-size: 0.7rem;
    }

    .bottom-navbar .nav-link i {
        font-size: 1.2rem;
    }

    .ucapan-isi {
        margin: 2rem auto;
    }

    .ucapan-isi p {
        font-size: 12px !important;
        max-width: 16rem;
    }

    .thanks-isi {
        margin: 3rem auto;
    }

    .thanks-message {
        margin: 2rem auto;
        padding: 0.5rem 2rem;
    }

    .thanks-message p {
        font-size: 1rem;
    }

    .thanks-message h4 {
        font-size: 1.4rem;
    }

    .hadiah-isi {
        margin: 2rem auto;
    }

    .sub-gift {
        font-size: 12px !important;
    }

    #acara .row {
        flex-direction: column !important;
        align-items: center;
    }

    .ucapan-form .btn-primary {
        font-size: 1rem;
        padding: 10px 25px;
    }
}

/* Tablet (portrait dan landscape) - tampilan tetap 480px */
@media (min-width: 577px) and (max-width: 991.98px) {
    body {
        max-width: 576px;
        margin: 0 auto;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: -1;
    }

    .cover-section {
        max-width: 576px;
        left: 50%;
        transform: translateX(-50%);
    }

    .tiang {
        width: 8rem;
    }

    .bottom-navbar {
        max-width: 576px !important;
    }

    .tiang-kiri {
        left: -5.5rem;
    }

    .tiang-kanan {
        right: -5.5rem;
    }

    .main-content {
        max-width: 576px;
        margin: 0 auto;
    }

    .quote-block {
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        max-width: 20.5rem !important;
    }

    .profile-card {
        position: absolute;
        margin: auto;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        max-width: 22.5rem !important;
        max-height: 63vh;
    }

    .event-card {
        margin-top: 10rem;
        width: 22.5rem;
    }

    .ucapan-isi {
        margin-top: 15rem;
    }

    .hadiah-isi {
        margin-top: 10rem;
    }

    .thanks-isi {
        margin-top: 15rem;
    }

    .gift-info {
        margin: -3rem;
    }

    .bank-details {
        margin: auto;
        max-width: 25rem;
    }

    .thanks-message {
        margin: -4rem auto;
        padding: 6rem;
    }

    .bottom-navbar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }

    .music-btn {
        right: calc(50% - 240px + 20px);
        /* 480/2 - 240 + offset */
    }
}

.hidden-section {
    display: none !important;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.music-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.music-btn:hover {
    background-color: #A0522D;
}

.music-btn.paused i::before {
    content: "\f6a9";
    /* fa-volume-mute */
}

.blink-animation {
    animation: blinkText 1s infinite;
}

@keyframes blinkText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.blurred {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.copy-toast {
    position: fixed;
    bottom: 50%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #A0522D;
    color: #ffc8ae;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    animation: fadeIn 0.3s forwards;
}

.copy-toast.fade-out {
    animation: fadeOutRight 0.5s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeOutRight {
    from {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        transform: translate(100%, 0);
    }
}