/* Reset dasar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url('https://files.catbox.moe/648td2.jpg') no-repeat center center fixed;
    background-size: cover;
    text-align: center;
    color: white;
    overflow-y: auto; /* Mengaktifkan scroll vertikal */
    height: auto; /* Sesuaikan tinggi dengan konten */
    min-height: 100vh; /* Pastikan minimal setinggi viewport */
    display: block; /* Supaya elemen bisa bertumpuk dan bisa di-scroll */
}

.container {
    width: 80%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    margin: 20px auto; /* Beri margin atas bawah agar tidak terlalu mepet */
}

/* Couple Section */
.couple-section h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: black;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.description {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    opacity: 1;
}

/* Foto Couple */
.couple-photo {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease-in-out;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid black;
    margin-bottom: 10px;
}

/* Efek shadow lebih kuat saat diklik */
.couple-photo:active {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.9);
}

/* Tombol */
.buttons {
    margin-top: 15px;
}

button {
    background: white;
    color: black;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

button:hover {
    background: black;
    color: white;
    transform: scale(1.1);
}

/* Profil */
.profile {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(8px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

/* Profil Text */
.profile h2 {
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.7);
}

.profile p {
    font-weight: normal;
    font-style: italic;
    color: rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    text-align: center;
    line-height: 1.5;
}

/* Foto Profil */
.profile-photo {
    box-shadow: 0px 5px 15px rgba(255, 255, 255, 0.5);
    transition: box-shadow 0.3s ease-in-out;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    margin-bottom: 10px;
}

/* Efek shadow lebih kuat saat diklik */
.profile-photo:active {
    box-shadow: 0px 10px 30px rgba(255, 255, 255, 0.8);
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sembunyikan profil awal */
.hidden {
    display: none;
}

/* Bagian Story */
.story-section {
    margin-top: 30px; /* Jarak dari profil */
    padding: 20px;
    background: rgba(0, 0, 0, 0.3); /* Lebih transparan agar menyatu */
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 80%; /* Sesuaikan lebar agar tidak melebihi */
    max-width: 600px; /* Sesuai dengan container utama */
    margin-left: auto;
    margin-right: auto;
}

.story-section h2 {
    color: white;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
}

/* Layout Story */
#story-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolom per baris */
    gap: 15px; /* Jarak antar story */
    justify-content: center;
}

.story-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Agar teks tidak numpuk */
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    text-align: center;
}

.story-title {
    font-weight: bold;
    color: white;
    font-size: 12px; /* Kecilkan font agar lebih muat */
    white-space: normal; /* Boleh lebih dari satu baris */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px auto;
    padding: 0 5px; /* Tambahkan padding */
}

.story-item:hover {
    transform: scale(1.05);
}

.story-item img {
    width: 100%;
    height: 70%; /* Tinggi gambar */
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.story-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 10px; /* Kecilkan font agar lebih muat */
    white-space: normal; /* Boleh lebih dari satu baris */
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
    padding: 0 5px; /* Tambahkan padding */
    max-height: 2.5em; /* Batasi tinggi, tapi tetap bisa dua baris */
    line-height: 1.2; /* Tingkatkan jarak antar baris */
}
