/* Tambahkan di bagian atas CSS */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Bubblegum+Sans&family=Luckiest+Guy&family=Comic+Neue&display=swap');

:root {
    --pastel-blue: #a7c7e7;
    --pastel-pink: #f8c8dc;
    --pastel-green: #c1e1c1;
    --pastel-yellow: #fdfd96;
    --pastel-purple: #d8bfd8;
    --logo-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

body {
   /* font-family: 'Comic Sans MS', cursive, sans-serif;*/
   font-family: 'Fredoka One', 'Bubblegum Sans', cursive, sans-serif;
    overflow-x: hidden;
}

/* Untuk judul utama */
h1 {
    font-family: 'Luckiest Guy', cursive;
    letter-spacing: 1px;
    text-shadow: 
        2px 2px 0 #fff,
        4px 4px 0 rgba(0,0,0,0.1);
}

/* Untuk teks card */
.card-title {
    font-family: 'Bubblegum Sans', cursive;
    font-size: 1.8rem;
    color: #ff6b9d;
    text-shadow: 1px 1px 0 #fff;
}

/* More vibrant outline effect */
.text-outline {
  -webkit-text-stroke: 2px #ff9bb7; /* Slightly brighter pink */
  text-stroke: 2px #ff9bb7;
  paint-order: stroke fill;
  color: #8ac6ff; /* Brighter pastel blue */
  text-shadow: 
    2px 2px 0 #fff,
    4px 4px 0 rgba(255,155,183,0.3); /* Soft shadow */
}

/* More vibrant bubble text */
.bubble-text {
  display: inline-block;
  padding: 0.4em 1em;
  background: rgba(255,255,255,0.95); /* Less transparent */
  border-radius: 2em;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.1),
    0 6px 12px rgba(255,155,183,0.2); /* Colorful shadow */
  transform: rotate(-3deg);
  border: 3px solid #ff9bb7; /* Brighter border */
  color: #6a8bff; /* Vibrant pastel blue */
  font-weight: bold;
  transition: all 0.3s ease;
}

/* Hover effect for bubbles */
.bubble-text:hover {
  transform: rotate(0deg) scale(1.05);
  background: white;
  box-shadow: 
    0 5px 15px rgba(255,155,183,0.3),
    0 10px 20px rgba(138,198,255,0.2);
}

/* Gradient bubble alternative */
.bubble-gradient {
  background: linear-gradient(135deg, #ff9bb7, #8ac6ff);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  border: none;
}

.bg-pastel {
    background: linear-gradient(135deg, var(--pastel-pink), var(--pastel-blue));
    min-height: 100vh;
}

.card-choice {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 300px;
    background-color: white;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.card-choice:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.card-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--pastel-pink), var(--pastel-blue));
}

#box {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 100px;
    position: relative;
    isolation: isolate;
}

#doraemon {
    width: 180px; /* Sedikit diperkecil */
    bottom: 20%; /* Posisi vertikal di 20% dari bawah */
    right: -30px; /* Sedikit ditarik ke dalam */
    z-index: 10;
    transform-origin: bottom right;
    pointer-events: none;
    position: fixed; /* Ganti dari absolute ke fixed */
}

/* Perbaikan container utama */
.container-fluid {
    padding-bottom: 50px; /* Mengurangi padding bawah */
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Animasi mengambang untuk card */
@keyframes float-card {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.card-choice {
    animation: float-card 4s ease-in-out infinite;
}

.card-choice:nth-child(1) {
    animation-delay: 0.1s;
}

.card-choice:nth-child(2) {
    animation-delay: 0.2s;
}

.card-choice:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #box {
        width: 95%;
        padding-bottom: 80px;
    }
    
    #doraemon {
        width: 120px;
        bottom: 15%;
        right: -20px;
    }
    
    .container-fluid {
        padding-bottom: 30px;
    }
    
    .card-choice {
        height: 250px;
    }
}

/* Animasi untuk logo */
.logo-container {
    margin: 40px 0 30px 0; /* Atas 40px, bawah 30px */
    padding: 20px 0;
    text-align: center;
    perspective: 1000px;
    position: relative;
    z-index: 1;
    text-align: center;
    perspective: 1000px;
}

.logo-animate {
    max-width: 180px; /* Sedikit diperkecil */
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1));
    transform-style: preserve-3d;
    will-change: transform;
    margin: 0 auto;
    display: block;
    animation: logo-float 4s ease-in-out infinite;
}

/* Tambahkan efek hover untuk logo */
.logo-animate:hover {
    animation: none; /* Nonaktifkan animasi saat hover */
    transform: scale(1.05) rotateY(20deg);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
    transition: all 0.3s ease;
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    50% {
        transform: translateY(-15px) rotateY(5deg) scale(1.02);
    }
}

/* Responsive logo */
/* Tambahkan space untuk mobile */
@media (max-width: 768px) {
    .logo-container {
        margin: 30px 0 20px 0;
        padding: 15px 0;
    }
    
    .logo-animate {
        max-width: 140px;
    }
}
