/* ==================== IMPORT FONT ==================== */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Cormorant+Garamond:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600&family=Playfair+Display:wght@400;500;600;700;800&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* ==================== RESET GLOBAL - FULLSCREEN MOBILE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(135deg, #4a90e2, #2c5f8a);
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==================== FRAME UTAMA - FULLSCREEN HP ==================== */
.frame-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a90e2, #2c5f8a);
}

.frame-container {
    position: relative;
    width: 100%;
    height: auto;
    background: url('../images/frame/bingkai.png') no-repeat center center;
    background-size: 100% 100%;
    aspect-ratio: 9 / 16;
}

.content-layer {
    position: absolute;
    top: 7%;
    left: 8%;
    right: 8%;
    bottom: 7%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.content-layer::-webkit-scrollbar {
    width: 3px;
}

.content-layer::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.content-layer::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 10px;
}

/* ==================== OVERLAY COVER DENGAN BINGKAI ==================== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4a90e2, #2c5f8a);
    color: white;
    z-index: 9999;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.cover-content {
    max-width: 340px;
    width: 90%;
    margin: 0 auto;
    padding: 40px 25px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border-radius: 0;
}

.cover-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: url('../images/frame/bingkai.png') no-repeat center center;
    background-size: 100% 100%;
    z-index: 0;
    pointer-events: none;
}

.cover-content .undangan-text,
.cover-content .monogram,
.cover-content .couple-names,
.cover-content .guest-label,
.cover-content .guest-name,
.cover-content .form-ubah-nama,
.cover-content .link-info,
.cover-content #bukaBtn {
    position: relative;
    z-index: 1;
}

/* HAPUS FORM UBAH NAMA & HELPER (tidak tampil di frontend) */
.form-ubah-nama,
.link-info {
    display: none !important;
}

.undangan-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.undangan-text::before,
.undangan-text::after {
    content: '✦';
    margin: 0 8px;
    font-size: 10px;
    color: #ffd700;
}

.monogram {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.couple-names {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.guest-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.guest-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 25px;
}

#bukaBtn {
    background: linear-gradient(135deg, #ffecd6, #ffe0b5);
    color: #2c5f8a;
    border: none;
    padding: 12px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 40px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#bukaBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

@media screen and (max-width:768px){
    .cover-content{ max-width:320px; padding:35px 20px; }
    .monogram{ font-size:3rem; }
    .couple-names{ font-size:1.8rem; }
}
@media screen and (max-width:480px){
    .cover-content{ max-width:300px; padding:30px 18px; }
    .monogram{ font-size:2.8rem; }
    .couple-names{ font-size:1.6rem; }
}

/* ==================== NAVBAR BOTTOM ==================== */
.nav-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-height: 58px;
    padding: 0;
}

.nav-bottom::-webkit-scrollbar { display: none; }
.nav-menu {
    display: inline-flex;
    gap: 2px;
    padding: 8px 12px;
    min-width: max-content;
    width: 100%;
    justify-content: center;
}
.nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    min-width: 60px;
    color: #999;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 12px;
}
.nav-item i { font-size: 0.95rem; margin-bottom: 3px; }
.nav-item small { font-size: 0.5rem; font-weight: 500; }
.nav-item.active { color: #4a90e2; background: rgba(74,144,226,0.1); }

/* ==================== TAB SYSTEM ==================== */
.tab-content { display: none; }
.tab-content.active { display: block !important; }

/* ==================== SEMUA CONTAINER ==================== */
.home-card,.quotes-container,.couple-container,.akad-container,
.resepsi-container,.gallery-container,.rsvp-container,
.gift-container,.thanks-container {
    width: 100%;
    padding: 15px 10px;
    text-align: center;
    color: white;
}

/* ==================== SECTION TITLE ==================== */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.3rem,5vw,1.8rem);
    color: #ffd700;
    text-align: center;
    margin-bottom: 18px;
    position: relative;
}
.section-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #ffd700;
}

/* ==================== HOME TAB ==================== */
.save-the-date {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.65rem,3vw,0.75rem);
    letter-spacing: 3px;
    color: #ffd700;
    margin-bottom: 15px;
}
.couple-names-home {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(1.6rem,6vw,2.2rem);
    color: #fff;
    margin-bottom: 15px;
}
.invitation-to {
    font-size: clamp(0.8rem,3.5vw,0.95rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}
.guest-name-home {
    font-size: clamp(0.9rem,4vw,1.1rem);
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 20px;
}
.btn-buka-home {
    background: #ffecd6;
    color: #2c5f8a;
    border: none;
    padding: 8px 20px;
    font-weight: bold;
    border-radius: 40px;
    cursor: pointer;
    font-size: clamp(0.7rem,3vw,0.85rem);
}

/* ==================== QUOTES TAB ==================== */
.quotes-container { width: 100%; padding: 15px 12px; text-align: center; color: white; }
.couple-photo-container {
    aspect-ratio: 3/4;
    max-width: 75%;
    margin: 0 auto 20px auto;
    overflow: hidden;
    border-radius: 16px;
    border: 2px solid #ffd700;
    background: rgba(0,0,0,0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.couple-together-photo { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s ease; display: block; }
.couple-together-photo:hover { transform: scale(1.02); }
.quote-card { margin-top: 5px; }
.quote-card i { font-size: clamp(1.5rem,6vw,2rem); color: #ffd700; margin-bottom: 15px; display: inline-block; }
.quote-card p { font-size: clamp(0.85rem,3.5vw,1rem); line-height: 1.7; color: white; margin-bottom: 15px; font-style: italic; font-weight: 400; }
.quote-card small { font-size: clamp(0.65rem,3vw,0.8rem); color: rgba(255,255,255,0.7); display: block; font-family: 'Montserrat', sans-serif; letter-spacing: 1px; }
@media screen and (max-width:768px){ .couple-photo-container{ max-width:85%; border-radius:14px; } }
@media screen and (max-width:480px){
    .couple-photo-container{ max-width:90%; border-radius:12px; margin-bottom:15px; }
    .quote-card i{ margin-bottom:10px; }
    .quote-card p{ line-height:1.6; }
}

/* ==================== MEMPELAI TAB ==================== */
.couple-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}
.photo-frame-34 { aspect-ratio: 3/4; overflow: hidden; }
.frame-photo-34 { width: 100%; height: 100%; object-fit: cover; }
.couple-info { padding: 12px; }
.couple-info h3 { font-family: 'Great Vibes', cursive; font-size: clamp(1.3rem,5vw,1.8rem); color: #ffd700; }
.couple-info .the-label { font-size: clamp(0.55rem,2.5vw,0.7rem); color: rgba(255,255,255,0.7); }
.couple-info p { font-size: clamp(0.75rem,3vw,0.9rem); }

/* ==================== AKAD & RESEPSI TAB ==================== */
.akad-info-item, .resepsi-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.akad-info-item i, .resepsi-info-item i { font-size: clamp(1.3rem,5vw,1.6rem); color: #ffd700; width: 35px; }
.akad-info-title, .resepsi-info-title { font-weight: bold; font-size: clamp(0.85rem,3.5vw,1rem); color: white; }
.akad-info-sub, .resepsi-info-sub { font-size: clamp(0.7rem,3vw,0.85rem); color: rgba(255,255,255,0.9); }
.akad-btn-map, .resepsi-btn-map {
    background: #ffd700;
    color: #2c5f8a;
    padding: 8px 12px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 12px;
    font-size: clamp(0.7rem,3vw,0.85rem);
    text-align: center;
}

/* ==================== COUNTDOWN ==================== */
.akad-countdown-box {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 12px;
    margin-top: 15px;
}
.akad-countdown-title { color: #ffd700; font-size: clamp(0.8rem,3.5vw,0.95rem); margin-bottom: 10px; }
.akad-countdown-container { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.akad-countdown-card { background: rgba(255,255,255,0.1); border-radius: 8px; padding: 5px 8px; min-width: 48px; text-align: center; }
.akad-countdown-number { font-size: clamp(1rem,4.5vw,1.3rem); font-weight: bold; color: #ffd700; }
.akad-countdown-label { font-size: clamp(0.45rem,2.5vw,0.55rem); color: white; }
.akad-countdown-separator { font-size: clamp(0.9rem,4vw,1.1rem); color: #ffd700; }

/* ==================== GALLERY TAB ==================== */
.gallery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 12px; }
.gallery-item {
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    border: 2px solid #ffd700;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 6px;
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay i { background: #ffd700; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #2c5f8a; font-size: 0.75rem; }

/* ==================== RSVP TAB ==================== */
.rsvp-card {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px;
}
.form-label { font-size: clamp(0.7rem,3vw,0.8rem); color: white; margin-bottom: 5px; text-align: left; display: block; }
.form-control, .form-select {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 8px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: clamp(0.75rem,3vw,0.85rem);
}
.btn-gold {
    background: #ffd700;
    color: #2c5f8a;
    border: none;
    padding: 8px;
    border-radius: 40px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    font-size: clamp(0.75rem,3vw,0.85rem);
}

/* ==================== GIFT TAB ==================== */
.bank-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}
.bank-card i { font-size: clamp(1.5rem,6vw,1.8rem); color: #ffd700; }
.bank-card h5 { margin: 6px 0; font-size: clamp(0.8rem,3.5vw,0.95rem); }
.bank-card p, .bank-card small { font-size: clamp(0.65rem,3vw,0.8rem); }

/* ==================== THANKS TAB ==================== */
.thanks-text .lead { color: #ffd700; font-size: clamp(0.9rem,4vw,1.1rem); margin-bottom: 8px; }
.couple-names-signature h3 { font-family: 'Great Vibes', cursive; font-size: clamp(1.1rem,5vw,1.5rem); display: inline-block; margin: 0 6px; color: #ffd700; }
.logo-ar { width: 50px; height: 50px; margin: 12px auto; }
.social-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    background: rgba(255,255,255,0.15);
    border-radius: 40px;
    text-decoration: none;
    color: white;
    margin: 4px;
    font-size: clamp(0.6rem,2.5vw,0.7rem);
}

/* ==================== MUSIC PLAYER ==================== */
.music-player {
    position: fixed;
    bottom: 70px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 50px;
    z-index: 1000;
    border: 1px solid #ffd700;
}
.cassette { width: 28px; height: 28px; background: linear-gradient(135deg, #1a3a50, #0f2a3a); border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.cassette.spinning { animation: spin 2s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.play-pause-btn { background: #ffd700; border: none; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; }
.song-info { display: none; }
#musicNotification {
    position: fixed;
    bottom: 70px;
    right: 10px;
    background: #2c5f8a;
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 9px;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
#musicNotification.show { opacity: 1; }

/* ==================== ANIMASI TAB ==================== */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-content.active {
    display: block !important;
    animation: fadeInUp 0.45s cubic-bezier(0.2,0.9,0.4,1.1) forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
.tab-content.active .home-card,
.tab-content.active .quotes-container,
.tab-content.active .couple-container,
.tab-content.active .akad-container,
.tab-content.active .resepsi-container,
.tab-content.active .gallery-container,
.tab-content.active .rsvp-container,
.tab-content.active .gift-container,
.tab-content.active .thanks-container {
    animation: cardPop 0.4s cubic-bezier(0.2,0.8,0.4,1) forwards;
    opacity: 0;
    transform: scale(0.98);
}
@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}
.tab-content.active .couple-photo-container { animation: slideUpFade 0.4s ease forwards 0.05s; opacity: 0; transform: translateY(15px); }
.tab-content.active .quote-card { animation: slideUpFade 0.4s ease forwards 0.1s; opacity: 0; transform: translateY(15px); }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }
.tab-content.active .couple-card { animation: fadeInUp 0.4s ease forwards; opacity: 0; }
.tab-content.active .couple-card:first-child { animation-delay: 0.05s; }
.tab-content.active .couple-card:last-child { animation-delay: 0.1s; }
.tab-content.active .akad-info-item,
.tab-content.active .resepsi-info-item { animation: slideInLeft 0.35s ease forwards; opacity: 0; }
.tab-content.active .akad-info-item:first-child,
.tab-content.active .resepsi-info-item:first-child { animation-delay: 0.05s; }
.tab-content.active .akad-info-item:last-child,
.tab-content.active .resepsi-info-item:last-child { animation-delay: 0.1s; }
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}
.tab-content.active .akad-countdown-card { animation: zoomFade 0.35s ease forwards; opacity: 0; transform: scale(0.9); }
.tab-content.active .akad-countdown-card:nth-child(1) { animation-delay: 0.03s; }
.tab-content.active .akad-countdown-card:nth-child(3) { animation-delay: 0.06s; }
.tab-content.active .akad-countdown-card:nth-child(5) { animation-delay: 0.09s; }
.tab-content.active .akad-countdown-card:nth-child(7) { animation-delay: 0.12s; }
@keyframes zoomFade { to { opacity: 1; transform: scale(1); } }
.tab-content.active .gallery-item { animation: galleryFade 0.3s ease forwards; opacity: 0; transform: scale(0.92); }
.tab-content.active .gallery-item:nth-child(1) { animation-delay: 0.02s; }
.tab-content.active .gallery-item:nth-child(2) { animation-delay: 0.04s; }
.tab-content.active .gallery-item:nth-child(3) { animation-delay: 0.06s; }
.tab-content.active .gallery-item:nth-child(4) { animation-delay: 0.08s; }
.tab-content.active .gallery-item:nth-child(5) { animation-delay: 0.1s; }
.tab-content.active .gallery-item:nth-child(6) { animation-delay: 0.12s; }
@keyframes galleryFade { to { opacity: 1; transform: scale(1); } }
.tab-content.active .save-the-date { animation: fadeInUp 0.3s ease forwards; opacity: 0; }
.tab-content.active .couple-names-home { animation: fadeInUp 0.35s ease forwards 0.05s; opacity: 0; }
.tab-content.active .guest-name-home { animation: fadeInUp 0.35s ease forwards 0.1s; opacity: 0; }
.tab-content.active .btn-buka-home { animation: btnPop 0.4s ease forwards 0.15s; opacity: 0; transform: scale(0.92); }
@keyframes btnPop {
    0% { opacity: 0; transform: scale(0.92); }
    60% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* ==================== RESPONSIVE FULLSCREEN HP ==================== */
@media screen and (max-width: 768px) {
    .frame-wrapper { width: 100%; min-height: 100vh; min-height: 100dvh; }
    .frame-container { aspect-ratio: 9 / 16; width: 100%; height: auto; }
    .content-layer { top: 6%; left: 7%; right: 7%; bottom: 6%; padding: 12px 10px; }
    .nav-item { min-width: 55px; padding: 5px 8px; }
    .nav-item i { font-size: 0.85rem; }
    .nav-item small { font-size: 0.45rem; }
}
@media screen and (max-width: 480px) {
    .content-layer { top: 5%; left: 6%; right: 6%; bottom: 5%; padding: 10px 8px; }
    .home-card,.quotes-container,.couple-container,.akad-container,
    .resepsi-container,.gallery-container,.rsvp-container,
    .gift-container,.thanks-container { padding: 10px 8px; }
    .section-title { margin-bottom: 12px; }
    .couple-photo-container { max-width: 85%; }
    .akad-countdown-card { min-width: 42px; padding: 4px 5px; }
    .akad-countdown-number { font-size: 0.9rem; }
    .gallery-grid { gap: 6px; }
}
@media screen and (min-width: 1024px) {
    .frame-wrapper { width: 100%; max-width: 450px; margin: 0 auto; min-height: 100vh; }
    .frame-container { aspect-ratio: 9 / 16; }
    .content-layer { top: 7%; left: 8%; right: 8%; bottom: 7%; padding: 20px 15px; }
}

/* ==================== FULLSCREEN IMMERSIVE MODE ==================== */

/* Animasi cinematic saat masuk fullscreen */
@keyframes cinematicZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.05);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes cinematicZoomOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.98);
        filter: blur(4px);
    }
}

/* Class saat fullscreen aktif */
.fullscreen-active {
    overflow: hidden !important;
}

.fullscreen-active .frame-wrapper {
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Tombol exit fullscreen hover effect */
#exitFullscreenBtn {
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

#exitFullscreenBtn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(2px) !important;
    border-color: #ffd700;
}

#exitFullscreenBtn:hover .exit-icon-wrapper {
    transform: scale(1.08);
    background: linear-gradient(135deg, #e6b800, #cca300);
}

/* Efek glow pada tombol exit */
#exitFullscreenBtn {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Animasi fade in untuk tombol exit */
@keyframes exitBtnFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive untuk tombol exit di HP */
@media screen and (max-width: 768px) {
    #exitFullscreenBtn {
        top: 12px;
        right: 12px;
        padding: 6px 12px;
    }
    
    .exit-icon-wrapper {
        width: 24px !important;
        height: 24px !important;
    }
    
    .exit-icon-wrapper i {
        font-size: 14px !important;
    }
    
    .exit-tooltip {
        font-size: 9px !important;
    }
}

@media screen and (max-width: 480px) {
    #exitFullscreenBtn {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
    }
    
    .exit-tooltip {
        display: none; /* Sembunyikan teks di HP kecil, cukup icon */
    }
    
    .exit-icon-wrapper {
        width: 28px !important;
        height: 28px !important;
    }
}