/* =========================================
   CSS - THEME: SAD & FAREWELL (UPDATED)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #121212; /* Gelap / Deep Black */
    color: #d1d1d1;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Overlay Password */
.password-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1.5s ease;
}

.password-box {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #333;
    text-align: center;
    width: 85%;
    max-width: 320px;
}

.password-box h3 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-style: italic;
}

.password-box input {
    width: 100%;
    padding: 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    color: white;
    outline: none;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
}

.password-box button {
    background: #444;
    color: #bbb;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.error-msg {
    color: #ff5f5f;
    font-size: 0.8rem;
    margin-top: 10px;
    display: none;
}

/* Tampilan Desktop Warning */
.desktop-warning {
    display: none;
    height: 100vh;
    width: 100vw;
    background-color: #000;
    color: white;
    text-align: center;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    z-index: 9999;
    position: fixed;
}

@media (min-width: 601px) {
    .mobile-container { display: none !important; }
    .desktop-warning { display: flex; }
}

/* Container Mobile */
.mobile-container {
    width: 100%;
    height: 100vh;
    position: relative;
    background: #121212;
    overflow: hidden;
}

/* Cover Screen */
.cover-screen {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #1a1a1a, #000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: all 2s ease-in-out;
    padding: 20px;
    text-align: center;
}

/* Animasi Kenangan yang Gugur */
.heart-particle {
    position: absolute;
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.cover-screen h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 20px;
    font-style: italic;
    opacity: 0.8;
}

.open-btn {
    padding: 12px 30px;
    background: transparent;
    color: #aaa;
    border: 1px solid #444;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: 0.5s;
}

.open-btn:active {
    background: rgba(255,255,255,0.05);
}

.cover-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Main Content */
.main-content {
    display: none;
    padding: 40px 25px;
    text-align: center;
    height: 100vh;
    overflow-y: auto;
    background-color: #121212;
}

.main-content.show {
    display: block;
    animation: fadeIn 3s ease forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Perbaikan Foto: Tidak B&W dan Ukuran disesuaikan */
.photo-wrapper img {
    max-width: 80%; /* Foto tidak terlalu besar */
    height: auto;
    /* filter: grayscale(100%); <- Efek hitam putih dihapus */
    border-radius: 10px; /* Sedikit lebih halus sudutnya */
    opacity: 1; /* Full warna */
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Tambah sedikit bayangan agar estetik */
    display: inline-block; /* Agar margin auto bekerja */
}

.title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Perbaikan Teks Paragraf: Lebih besar dan terang */
.message {
    line-height: 1.8; /* Sedikit dirapatkan agar rapi */
    font-size: 1.1rem; /* Ukuran text diperbesar */
    color: #ddd; /* Warna lebih terang dari #aaa (tapi bukan putih pekat) */
    text-align: justify;
    margin-bottom: 50px;
    padding: 0 10px; /* Tambah padding kiri kanan agar text tidak mentok layar */
}

.signature {
    font-family: 'Dancing Script', cursive;
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

.date-memory {
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: #444;
    margin-top: 20px;
}