/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(to bottom, #ffffff, #e3f2fd);
  overflow-x: hidden;
}

article {
  text-indent: 2em;
}

ol {
  margin-left: 30px;
  line-height: 2;
}

ul {
  margin-left: 40px;
}

.center-img {
  display: block;
  margin: 0 auto; /* Mengatur gambar di tengah */
  max-width: 100%; /* Membuat gambar responsif */
  height: auto; /* Menjaga proporsi gambar */
}

/* Animasi */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo dan Header */
.header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: 0px;
  margin: 20px auto;
  max-width: 1000px;
  animation: fadeIn 1s ease-in-out;
}

.logo {
  margin-right: 20px;
}

.logo img {
  width: 150px; /* Ukuran logo diperbesar */
  height: auto;
  margin-right: 20px auto;
}

.header-text {
  text-align: center;
}

.header-text h1 {
  font-size: 2.5rem;
  color: #1565c0;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.header-text h3 {
  color: #333;
  margin-top: 10px;
}

.header-text p {
  font-size: 1.2rem;
  color: #555;
  margin-top: 15px;
}

/* Menu Grid */
.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-box-align: center;
  gap: 20px;
  margin-left: 30px auto;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
  text-align: center;
}

/*materi*/
.menu-item-materi {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-materi:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.menu-item-materi img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-materi p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*LKPD*/
.menu-item-lkpd {
  background: linear-gradient(135deg, #bbfbd8, #90f9bf);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-lkpd:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90f9bf, #b4f6a5);
}

.menu-item-lkpd img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-lkpd p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*Latihan*/
.menu-item-latihan {
  background: linear-gradient(135deg, #defbbb, #caf990);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-latihan:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #caf990, #b5f664);
}

.menu-item-latihan img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-latihan p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*Kuis*/
.menu-item-kuis {
  background: linear-gradient(135deg, #fbd8bb, #f9bf90);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-kuis:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f9bf90, #f6a564);
}

.menu-item-kuis img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-kuis p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*Rangkuman*/
.menu-item-rangkuman {
  background: linear-gradient(135deg, #fbbbde, #f990ca);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-rangkuman:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #f990ca, #f664b5);
}

.menu-item-rangkuman img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-rangkuman p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*Info*/
.menu-item-info {
  background: linear-gradient(135deg, #d8bbfb, #bf90f9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menu-item-info:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #bf90f9, #a564f6);
}

.menu-item-info img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item-info p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/*
.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.menu-item img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menu-item p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}
*/
/* Menu Grid Baris 1*/
.menubaris1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-box-align: center;
  gap: 20px;
  margin-left: 30px auto;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
  text-align: center;
}

.menubaris1-item {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menubaris1-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.menubaris1-item img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menubaris1-item p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Menu Grid */
.menubaris1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  -moz-box-align: center;
  gap: 20px;
  margin-left: 30px auto;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
  text-align: center;
}

.menubaris1-item {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menubaris1-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.menubaris1-item img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menubaris1-item p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Menu Grid Baris 2*/
.menubaris2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  -moz-box-align: center;
  gap: 20px;
  margin-left: 30px auto;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 20px;
  animation: fadeIn 1.5s ease-in-out;
  text-align: center;
}

.menubaris2-item {
  background: linear-gradient(135deg, #bbdefb, #90caf9);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  text-decoration: none;
  color: #1565c0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.menubaris2-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #90caf9, #64b5f6);
}

.menubaris2-item img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.menubaris2-item p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
}

/* Konten */
.content {
  max-width: 800px;
  margin: 40px auto;
  padding: 15px 40px;
  text-align: justify;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: fadeIn 1.8s ease-in-out;
}

.content h3 {
  font-size: 1.8rem;
  color: #1565c0;
  margin-bottom: 15px;
  text-align: left;
}

.content p {
  font-size: 1rem;
  color: #333;
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #1565c0;
  color: #ffffff;
  margin-top: 40px;
  font-size: 0.9rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: none;
}

/* Responsif */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .menu {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 1.8rem;
  }

  .menu {
    grid-template-columns: 1fr;
  }
}

/* Google Formulir */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f9f9f9;
}

iframe {
  width: 100%;
  max-width: 800px;
  height: 600px;
  border: none;
}

/* kolom Latihan soal*/
.question {
  background-color: #f9f9f9;
  padding: 15px;
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 5px;
}
.toggle-answer {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.toggle-answer:hover {
  background-color: #0056b3;
}
.answer {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  background-color: #f1f1f1;
  border-radius: 5px;
  display: none;
}

/* Navigasi Bar */
.navbar {
  background-color: #1565c0;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  flex-direction: row;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
}

.navbar-menu {
  display: flex;
  list-style: none;
  transition: max-height 0.3s ease-in-out;
}

.navbar-menu li {
  position: relative;
  margin: 0 10px;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
  font-size: 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar-menu a:hover {
  background-color: #0d47a1;
  color: #e3f2fd;
}

/* Dropdown */
.dropdown-toggle {
  cursor: pointer;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1565c0;
  list-style: none;
  display: none;
  margin-top: 5px;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submenu li {
  margin: 0;
}

.submenu a {
  padding: 10px 20px;
  white-space: nowrap;
}

.dropdown:hover .submenu {
  display: block;
}

/* Responsif */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

.navbar-menu {
  flex-direction: row;
}

@media (max-width: 950px) {
  .menu-toggle {
    display: block;
  }

  .navbar-menu {
    flex-direction: column;
    display: none;
    width: 100%;
    background-color: #1565c0;
    max-height: 0;
    overflow: hidden;
  }

  .navbar-menu.active {
    display: flex;
    max-height: 500px;
  }

  .submenu {
    position: relative;
    top: 0;
    left: 0;
    background-color: #0d47a1;
    box-shadow: none;
  }

  .submenu a {
    padding: 10px 15px;
  }
}

.table-rangkuman {
  width: 100%; /* Tabel akan menyesuaikan lebar halaman */
  border-collapse: collapse; /* Menyatukan border tabel */
  text-align: center; /* Menyusun teks di tengah */
  border-radius: 10px; /* Menambahkan sisi tumpul pada tabel */
  overflow: hidden; /* Menghindari border-radius diterapkan ke dalam elemen tabel */
  line-height: 2;
}

td {
  padding: 20px; /* Memberikan ruang di dalam setiap sel */
  font-size: 16px; /* Ukuran font di dalam tabel */
  border-radius: 5px; /* Menambahkan sisi tumpul pada setiap sel */
}
tr:nth-child(1) td {
  background-color: #ffeb3b; /* Baris pertama berwarna kuning */
}
tr:nth-child(n + 2) td {
  background-color: #ffffff; /* Baris kedua dan seterusnya berwarna putih */
}

/* Paginasi*/
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pagination a {
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  border: 1px solid #ddd;
  margin: 0 4px;
  border-radius: 3px;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border: 1px solid #007bff;
}

.pagination a:hover:not(.active) {
  background-color: #ddd;
}

/* Gaya untuk tombol panah ke atas */
#scrollToTopBtn {
  display: none; /* Sembunyikan tombol secara default */
  position: fixed; /* Tetap di posisi yang sama */
  bottom: 20px; /* Jarak dari bawah */
  right: 20px; /* Jarak dari kanan */
  z-index: 99; /* Pastikan tombol di atas elemen lain */
  border: none; /* Hilangkan border */
  color: blue; /* Warna ikon */
  cursor: pointer; /* Ubah kursor saat diarahkan */
}

#scrollToTopBtn:hover {
  color: rgb(4, 4, 122);
}

/* Gaya untuk tombol petunjuk */
#petunjukBtn {
  position: fixed;
  top: 90px; /* Jarak dari bawah */
  right: 20px; /* Jarak dari kanan */
  border: none; /* Hilangkan border */
  color: blue; /* Warna ikon */
}

#petunjukBtn:hover {
  color: rgb(4, 4, 122);
}

@media (max-width: 950px) {
  #petunjukBtn {
    top: auto; /* Hapus posisi atas */
    bottom: 20px; /* Jarak dari bawah untuk mobile */
    left: 20px; /* Jarak dari kiri untuk mobile */
    right: auto; /* Hapus posisi kanan */
  }
}
