/* 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;
  grid-template-rows: auto 1fr auto;
}

.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;
  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;
  margin-right: 30px;
}

.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;
}

/* 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;
  position: inherit;
  bottom: 0px;
}

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%;
}

.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 15px;
  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: 768px) {
  .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;
  }
}

/* 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);
}
