@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Nunito:wght@400;700&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Ganti font utama ke Nunito */
    font-family: 'Nunito', sans-serif;
    /* Ganti background soft pink */
    background-color: #FFF9FB;
    /* Ganti warna teks jadi lebih gelap */
    color: #333;
    line-height: 1.7;
    /* Tambah spasi antar baris */
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

header {
    /* Ganti font judul ke Poppins */
    font-family: 'Poppins', sans-serif;
    /* Ganti warna header */
    background: #E7AAB4;
    color: #fff;
    padding: 25px 0;
    text-align: center;
    border-radius: 10px;
    /* Tambah sudut tumpul */
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.2rem;
    /* Sedikit kecilkan agar lebih rapi */
    font-weight: 600;
}

h2 {
    /* Ganti font judul bagian ke Poppins */
    font-family: 'Poppins', sans-serif;
    /* Ganti warna judul bagian */
    color: #C78283;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

section {
    background: #fff;
    /* Kontras putih bersih */
    margin-bottom: 25px;
    padding: 30px;
    border-radius: 12px;
    /* Sudut lebih tumpul */
    /* Shadow lebih soft untuk efek "mengambang" */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Bagian Intro */
#intro p {
    font-size: 1.1rem;
    text-align: center;
    color: #555;
}

/* =========== BOOTSTRAP CAROUSEL =========== */

/* Pindahkan padding dari section ke containernya */
section {
    padding: 30px;
}

#intro {
    padding-top: 0;
    padding-bottom: 0;
    /* Hapus shadow dari section karena akan dipindah ke carousel */
    box-shadow: none;
    background: none;
    /* Hapus background section */
}

/* Beri jarak antara judul h2 dan carousel */
#intro h2 {
    /* Samakan padding section */
    padding-top: 30px;
}

/* Ini untuk membuat carouselnya tumpul dan punya shadow */
#headerCarousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Tweak untuk gambar di dalam carousel agar rasionya pas */
.carousel-item img {
    height: 400px;
    /* Samakan tingginya */
    object-fit: cover;
    /* Biar nggak gepeng */
}

.whatsapp-bottom-container {
    text-align: center;

    /* Kasih jarak biar gak nempel */
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Efek hover */
.whatsapp-bottom-container a img {
    transition: transform 0.3s ease, opacity 0.3s ease;

}

.whatsapp-bottom-container a:hover img {
    transform: scale(1.05);
    /* Sedikit membesar */
    opacity: 0.85;
    /* Sedikit pudar */
}

/* Bagian Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    /* Kasih jarak lebih */
}

.gallery-item {
    /* Hilangkan border, ganti dengan shadow */
    border: none;
    border-radius: 10px;
    overflow: hidden;
    /* Shadow yang konsisten dengan section */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    /* Efek "mengangkat" saat di-hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item p {
    text-align: center;
    padding: 12px;
    font-style: italic;
    color: #666;
    background: #fafafa;
    font-size: 0.9rem;
}

/*gallery item 1*/

.gallery-item1 {
    /* Hilangkan border, ganti dengan shadow */
    border: none;
    border-radius: 10px;
    overflow: hidden;
    /* Shadow yang konsisten dengan section */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item1:hover {
    transform: translateY(-5px);
    /* Efek "mengangkat" saat di-hover */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
}

.gallery-item1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: 50% 30%;
    display: block;
}

.gallery-item1 p {
    text-align: center;
    padding: 12px;
    font-style: italic;
    color: #666;
    background: #fafafa;
    font-size: 0.9rem;
}

#gallery .center-text {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #C78283;
    font-size: 2rem;
    font-weight: 600;
    margin-top: 40px;
    /* tambahin jarak dari galeri di atas */
    margin-bottom: 40px;
    /* kasih ruang sebelum iframe di bawah */
    white-space: nowrap;
}


h3.center-text {
    text-align: center;
    white-space: nowrap;
    font-size: 2rem;
    /* samain ukuran default h2 */
    font-weight: bold;
    color: #c48080;
    /* warna h2-mu */
    margin: 20px 0;
    padding: 15px;
}

/* Bagian Game Kuis */
.quiz-question {
    margin-bottom: 20px;
}

.quiz-question p {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.quiz-question label {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.quiz-question label:hover {
    background-color: #FFF9FB;
    /* Efek hover */
}

#submit-quiz {
    display: block;
    width: 100%;
    padding: 14px;
    /* Samakan warna tombol dengan header */
    background: #E7AAB4;
    color: white;
    border: none;
    border-radius: 8px;
    /* Samakan font dengan header */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

#submit-quiz:hover {
    /* Warna hover yang lebih gelap */
    background: #C78283;
}

#quiz-result {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    /* Bold */
    margin-top: 20px;
    color: #C78283;
    /* Samakan dengan warna h2 */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    color: #aaa;
    margin-top: 30px;
    font-size: 0.9rem;
}

/* =========== GAME MEMORY =========== */

#game-memory .game-intro {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.memory-game {
    display: grid;

    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 400px;
    /* Batasi lebar game */
    margin: 0 auto;
    /* Efek 3D flip */
    perspective: 1000px;
}

.memory-card {
    background-color: transparent;
    /* Ukuran kartu */
    width: 80px;
    height: 100px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    cursor: pointer;
    /* Properti untuk efek 3D flip */
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

/* Sisi depan & belakang kartu */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    /* Sembunyikan sisi belakang saat nggak dibalik */
    backface-visibility: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

/* Sisi belakang kartu */
.card-back {
    background-color: #E7AAB4;
    color: white;
}

/* Sisi depan kartu (ikon yang tersembunyi) */
.card-front {
    background-color: #FFF9FB;
    color: #C78283;
    /* Balik 180 derajat agar tersembunyi */
    transform: rotateY(180deg);
}

.memory-card.is-flipped {
    transform: rotateY(180deg);
}

.memory-card.is-matched {
    /* Sedikit pudar & nggak bisa diklik lagi */
    opacity: 0.7;
    pointer-events: none;
}

/* Tombol Restart */
#restart-memory {
    display: block;
    /* Posisikan di tengah */
    margin: 20px auto 0 auto;
    width: 50%;
    max-width: 300px;
    padding: 12px;
    background: #C78283;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#restart-memory:hover {
    background: #E7AAB4;
}

#memory-status {
    text-align: center;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #C78283;
}

/* =========== FOOTER  =========== */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px solid #eee;
}

footer p:first-child {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #C78283;
    font-size: 1rem;
    margin: 0;
}

footer p:last-child {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
    margin-bottom: 0;
}