body {
  background-image: url('../images/bg-utama.jpg');
  background-attachment: fixed; /* This makes the background fixed */
  background-size: cover; /* This ensures the image covers the entire background */
  background-position: center; /* This centers the image */
}


@font-face {
  font-family: 'Gagalin';
  src: url('../font/Gagalin-Regular.otf') format('opentype');
}
h1 {
  font-family: 'Gagalin', sans-serif;
  font-size: 3em;
  color: #ffffff;
  text-align: center;
  opacity: 0; /* Awalnya tidak terlihat */
  animation: slideIn 1.5s ease-out forwards; /* Animasi selama 1.5 detik */
}
/* Definisi keyframes untuk animasi */
@keyframes slideIn {
  0% {
      transform: translateY(-50px); /* Mulai dari posisi lebih atas */
      opacity: 0; /* Tidak terlihat */
  }
  100% {
      transform: translateY(0); /* Kembali ke posisi awal */
      opacity: 1; /* Terlihat sepenuhnya */
  }
}


.text-sumber{
    font-size: 10px;
}
.text-col-10 {
  font-size: 18px;
  color: rgb(0, 0, 0);
}

/* Styles for larger screens (e.g., tablets and desktops) */
@media (min-width: 768px) {
  .images-col-2 {
      width: 124%;
  }

  .text-col-10 {
      font-size: 23px;
  }
}
@media (min-width: 992px) {
  .row > div {
      display: flex;
      flex-direction: row;
  }
}

.img-fluid-menu{
  width: 265px;
  height: auto;
}

.custom-card {
  transition: background-color 0.3s, border-color 0.3s;
}
.inner-card {
  border: 2px dashed #ff913f; /* Border putus-putus */
  border-radius: 10px; /* Lengkungan pada sudut */
  padding: 15px; /* Padding untuk isi card */
}

/* Animasi untuk gambar-gambar */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Memberikan animasi fade-in saat gambar muncul */
.img-materi-garuda,
.img-materi-alur {
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0; /* Agar gambar mulai tidak terlihat */
}

/* Ukuran untuk perangkat dengan lebar maksimal 768px (misalnya HP) */
@media (max-width: 768px) {
  .img-materi-garuda {
    width: 183px;
    height: auto; /* Menjaga proporsi gambar */
  }
  .img-materi-alur {
    width: 100%;
    height: auto; /* Menjaga proporsi gambar */
  }
}

/* Ukuran untuk perangkat dengan lebar lebih besar (misalnya tablet atau desktop besar) */
@media (min-width: 769px) {
    .images-col-2 {
        width: 124%;
    }

  .img-materi-garuda {
    width: 240px;
    height: auto;
  }
  .img-materi-alur {
    width: 320px;
    height: auto;
  }
}

/* Animasi untuk gambar yang muncul lebih cepat atau lambat */
@media (max-width: 768px) {
  .img-materi-garuda {
    animation: fadeInUp 1.2s ease-out forwards;
  }
  .img-materi-alur {
    animation: fadeInUp 1.5s ease-out forwards;
  }
}

@media (min-width: 769px) {
  .img-materi-garuda {
    animation: fadeInUp 1s ease-out forwards;
  }
  .img-materi-alur {
    animation: fadeInUp 1.3s ease-out forwards;
  }
}


.img-materi-bpupki,
.img-panah {
  width: 100px;
  height: auto;
  opacity: 0; /* Memulai dengan gambar tidak terlihat */
  animation-duration: 1s;
  animation-fill-mode: both;
}

/* Fade-in Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Slide-in dari bawah */
@keyframes slideInFromBottom {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Media query untuk desktop */
@media screen and (min-width: 768px) {
  .img-panah {
    width: 78px;
    animation-name: slideInFromBottom; /* Menggunakan slide-in */
  }

  .img-materi-bpupki {
    width: 343px;
    animation-name: fadeIn; /* Menggunakan fade-in */
  }
}

/* Media query untuk perangkat seluler */
@media screen and (max-width: 767px) {
  .img-panah {
    width: 80px;
    animation-name: slideInFromBottom; /* Menggunakan slide-in */
  }

  .img-materi-bpupki {
    width: 252px;
    animation-name: fadeIn; /* Menggunakan fade-in */
  }
}
.text-justify {
  text-align: justify;
}
.text-pahlawan{
  font-size: 12px;
}

.text-pengembang{
    font-size: 15px;
  }



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

.inner-card {
  animation: fadeIn 0.8s ease-in-out;
}

h6 {
  display: inline-block;
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  border: 4px solid white; /* Default border color */
  border-radius: 50px;
  position: relative;
  animation: rotate-border 4s linear infinite; /* Apply animation */
}

@keyframes rotate-border {
  0% {
    border-color: #3498db; /* Start with blue */
  }
  25% {
    border-color: #e74c3c; /* Red */
  }
  50% {
    border-color: #2ecc71; /* Green */
  }
  75% {
    border-color: #f39c12; /* Yellow */
  }
  100% {
    border-color: #3498db; /* Back to blue */
  }
}

.custom-card-soal {
    transition: background-color 0.3s, border-color 0.3s;
    background-color: #fff5dc;
    border: 7px solid #b2783f;
    width: auto;
    height: auto;
}

.custom-card-soal.correct {
    background-color: #4CAF50; /* Hijau untuk benar */
    border-color: #388E3C;
    color: white;
}

.custom-card-soal.incorrect {
    background-color: #F44336; /* Merah untuk salah */
    border-color: #D32F2F;
    color: white;
}
