@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
@font-face {
  font-family: "Vividly-Regular";
  src: local("Vividly-Regular");
}

@font-face {
  font-family: "Vividly-Regular";
  src: url("Vividly-Regular.otf") format("truetype");
    src: url("Vividly-Regular.ttf") format("truetype");

  font-weight: 400;
  font-style: normal;
}

        body {
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background-image: url(bg.png);
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
  font-family: "Vividly-Regular", Helvetica;
            overflow: hidden;
            position: relative;
        }

        /* SUBTLE BACKGROUND BLOBS */
        .blob {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.5;
            z-index: 0;
            animation: drift 20s infinite alternate ease-in-out;
        }

        @keyframes drift {
            0% { transform: translate(0, 0) scale(1); }
            100% { transform: translate(30px, -30px) scale(1.1); }
        }

        .blob-1 { width: 400px; height: 400px; background: #ffeaf4; top: -100px; left: -100px; }
        .blob-2 { width: 500px; height: 500px; background: #ffe9f4; bottom: -150px; right: -150px; }

        /* FLOATING HEARTS */
        .hearts-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .heart {
            position: absolute;
            color: #ffd1e7;
            font-size: 16px;
            opacity: 0;
            animation: floatUp 12s infinite linear;
            bottom: -10px;
        }

        @keyframes floatUp {
            0% { transform: translateY(0) rotate(0deg); opacity: 0; }
            10% { opacity: 0.7; }
            90% { opacity: 0.7; }
            100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
        }

        /* MAIN WRAPPER */
        .main-wrapper {
            position: relative;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 40px;
        }

        /* THE MAIN VIEWER */
        .viewer {
            position: relative;
            display: flex;
            align-items: center;
            gap: 30px;
        }

        /* LEFT & RIGHT PAGE CONTAINERS */
        .page-container {
            width: 300px;
            height: 420px;
            position: relative;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(255, 182, 219, 0.3), 0 5px 15px rgba(0,0,0,0.05);
            background: white;
        }

        .page-right {
            transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
            transform-origin: left center;
        }

        .page-right.flipping-out {
            transform: rotateY(-90deg) translateX(-50%);
            opacity: 0;
        }

        .page-container img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        /* NAVIGATION BUTTONS */
        .nav-btn {
            background: #ffffff;
            border: 2px solid #ffd1e7;
            color: #ffd1e7;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            box-shadow: 0 4px 15px rgba(255, 182, 222, 0.3);
            transition: all 0.3s ease;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }

        .nav-btn:hover {
            background: #ffe7f3;
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        #prevBtn { left: -90px; }
        #nextBtn { right: -90px; }

        .nav-btn.hidden {
            opacity: 0;
            pointer-events: none;
        }

        /* PAGE NUMBER */
        .page-indicator {
            position: absolute;
            bottom: 20px;
            color: #fff6fa;
            font-size: 14px;
            padding: 8px 20px;
            z-index: 10;
            background: rgba(255,255,255,0.6);
            border-radius: 20px;
        }

        /* ====== CUTE LINKS SIDEBAR ====== */
        .cute-links-sidebar {
            position: fixed;
            right: 30px;
            top: 50%;
            transform: translateY(-50%);
            background: rgb(255, 255, 255);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 20px 18px;
            min-width: 140px;
            box-shadow: 0 8px 32px rgba(255, 221, 240, 0.685);
            border: 2px solid rgba(255, 209, 231, 0.4);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateY(-50%) translateX(20px);
        }

        .cute-links-sidebar.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(-50%) translateX(0);
        }

        .cute-links-sidebar .sidebar-title {
  font-family: "Vividly-Regular", Helvetica;
            font-size: 16px;
            font-weight: 600;
            color: #ffcbe8;
            text-align: center;
            margin-bottom: 12px;
            letter-spacing: 1px;
            padding-bottom: 8px;
        }

        .cute-links-sidebar .link-item {
            display: block;
            padding: 8px 12px;
            margin: 5px 0;
            background: rgba(255, 241, 245, 0.6);
            border-radius: 12px;
  font-family: "Vividly-Regular", Helvetica;
            font-size: 14px;
            font-weight: 400;
            color: #ffb8e0;
            text-decoration: none;
            transition: all 0.3s ease;
            border: 1.5px solid transparent;
            text-align: center;
            word-break: break-word;
        }

        .cute-links-sidebar .link-item:hover {
            background: #ffe7f3;
            border-color: #ffb6d4;
            transform: scale(1.03);
            color: #ffd9ec;
            box-shadow: 0 4px 12px rgba(255, 182, 212, 0.3);
        }

        .cute-links-sidebar .link-item:active {
            transform: scale(0.95);
        }

        .cute-links-sidebar .no-links {
  font-family: "Vividly-Regular", Helvetica;
            font-size: 13px;
            color: #ffbfde;
            text-align: center;
            padding: 8px 0;
        }

   
        /* ====== TABLET RESPONSIVE (890px) ====== */
        @media (max-width: 890px) {
            .cute-links-sidebar {
                right: 15px;
                padding: 16px 14px;
                min-width: 120px;
            }
            .cute-links-sidebar .sidebar-title {
                font-size: 14px;
            }
            .cute-links-sidebar .link-item {
                font-size: 13px;
                padding: 7px 10px;
            }
            .page-container {
                width: 250px;
                height: 350px;
            }
            .nav-btn {
                width: 44px;
                height: 44px;
                font-size: 20px;
            }
            #prevBtn { left: -78px; }
            #nextBtn { right: -78px; }
            .page-indicator {
                font-size: 13px;
                padding: 6px 16px;
            }
        }

        /* ====== MOBILE RESPONSIVE (390px) ====== */
        @media (max-width: 480px) {
            .cute-links-sidebar {
                position: fixed;
                bottom: 12px;
                top: auto;
                right: 50%;
                transform: translateX(50%) translateY(20px);
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                min-width: auto;
                width: 92%;
                max-width: 380px;
                padding: 12px 14px;
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.85);
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
            }
            .cute-links-sidebar.active {
                transform: translateX(50%) translateY(0);
            }
            .cute-links-sidebar .sidebar-title {
                width: 100%;
                font-size: 13px;
                margin-bottom: 5px;
                padding-bottom: 5px;
            }
            .cute-links-sidebar .link-item {
                display: inline-block;
                margin: 3px 3px;
                font-size: 11px;
                padding: 4px 10px;
                border-radius: 10px;
            }

            .cute-links-sidebar .no-links {
                font-size: 11px;
                padding: 4px 0;
            }
            
            .viewer {
                gap: 12px;
            }
            
            .page-container {
                width: 140px;
                height: 196px;
                border-radius: 8px;
            }
            .page-container img {
                border-radius: 8px;
            }
            
            .nav-btn {
                width: 32px;
                height: 32px;
                font-size: 14px;
                border-width: 1.5px;
            }
            #prevBtn { 
                left: -40px; 
            }
            #nextBtn { 
                right: -40px; 
            }
            
            .page-indicator {
                font-size: 10px;
                bottom: 8px;
                padding: 3px 12px;
                background: rgba(255,255,255,0.7);
            }
            
            .blob-1 { width: 200px; height: 200px; top: -60px; left: -60px; filter: blur(60px); }
            .blob-2 { width: 250px; height: 250px; bottom: -80px; right: -80px; filter: blur(60px); }
            
            .heart {
                font-size: 12px;
            }
        }

        /* ====== EXTRA SMALL PHONES (under 390px) ====== */
        @media (max-width: 390px) {
            .viewer {
                gap: 8px;
            }
            
            .page-container {
                width: 115px;
                height: 161px;
                border-radius: 6px;
            }
            
            .nav-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
                border-width: 1.5px;
            }
            #prevBtn { 
                left: -32px; 
            }
            #nextBtn { 
                right: -32px; 
            }
            
            .page-indicator {
                font-size: 9px;
                bottom: 6px;
                padding: 2px 10px;
            }
            
            .cute-links-sidebar {
                width: 40%;
                max-width: 340px;
                padding: 10px 10px;
                bottom: 8px;
                border-radius: 14px;
            }
            .cute-links-sidebar .sidebar-title {
                font-size: 10px;
                margin-bottom: 4px;
                padding-bottom: 4px;
            }
            .cute-links-sidebar .link-item {
                font-size: 8px;
                padding: 3px 8px;
                margin: 2px 2px;
                border-radius: 8px;
            }
            .cute-links-sidebar .link-item::before {
                font-size: 8px;
            }
            
            .blob-1 { width: 150px; height: 150px; top: -40px; left: -40px; filter: blur(50px); }
            .blob-2 { width: 180px; height: 180px; bottom: -60px; right: -60px; filter: blur(50px); }
        }

        /* ====== LANDSCAPE MODE FIX for mobile ====== */
        @media (max-height: 500px) and (orientation: landscape) {
            .page-container {
                width: 120px;
                height: 168px;
            }
            .viewer {
                gap: 10px;
            }
            .nav-btn {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            #prevBtn { left: -35px; }
            #nextBtn { right: -35px; }
            .cute-links-sidebar {
                bottom: 8px;
                padding: 8px 12px;
                width: 90%;
                max-width: 500px;
            }
            .cute-links-sidebar .sidebar-title {
                font-size: 11px;
                margin-bottom: 3px;
                padding-bottom: 3px;
            }
            .cute-links-sidebar .link-item {
                font-size: 10px;
                padding: 3px 8px;
                margin: 2px 3px;
            }
            .page-indicator {
                font-size: 9px;
                bottom: 4px;
                padding: 2px 10px;
            }
            .blob-1, .blob-2 {
                display: none;
            }
        }
