/* Style Dasar */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 0;
  padding: 0;
  background: #b18d23;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background: #121212;
  color: #fff;
}

body.dark .sidebar {
  background: #1e1e1e;
}

header {
  background-color: #a3d2ca;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #0c89bb;
}

header p {
  font-size: 1rem;
  margin-top: 5px;
  color: #444;
}

.controls {
  display: flex; 
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.controls .button-listening {
  text-decoration: none;
  background-color: #45692a;
  color: white;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.controls .button-listening:hover {
  background-color: #588157;
}

button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background-color: #56cfe1;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s;
}

button:hover {
  background-color: #4ea8de;
  transform: scale(1.05);
}

button:active {
  background-color: #3f88c5;
  transform: scale(0.95);
}

.harakat-controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
  flex-wrap: wrap;
}

.harakat-controls button {
  background-color: #ffb703;
  color: #000;
  border: 2px solid #fb8500;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 14px;
}

.harakat-controls button.active {
  background-color: #fb8500;
  color: #fff;
}

.slide {
  scroll-snap-align: start;
  padding: 20px;
  text-align: center;
  min-width: 100vw;
  box-sizing: border-box;
  background-color: #fff;
  border-right: 2px solid #eee;
  transition: all 0.3s ease;
}

body.dark .slide {
  background-color: #1e1e1e;
  border-color: #444;
}

.slide h2 {
  font-size: 4em;
  margin-bottom: 0;
  color: #ff6b6b;
}

.huruf-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.harakat-display {
  font-size: 1.8rem;
  color: #06d6a0;
}

.slide ul {
  padding: 0;
  list-style: none;
}

.slide li {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 8px;
}

.slide button {
  margin-top: 10px;
  font-size: 0.9rem;
  background-color: #ffd166;
  color: #222;
}

.bookmark-btn.active {
  background-color: #06d6a0;
  color: white;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.sidebar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 60px;
  background: #00b4d8;
  padding: 10px 0;
  height: 80%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0 10px 10px 0;
  z-index: 1000;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar button {
  background: none;
  color: white;
  font-size: 24px;
  margin: 5px 0;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.sidebar button:hover {
  color: #ffd166;
}

footer {
  background-color: #00b4d8;
  color: white;
  text-align: center;
  padding: 12px;
  font-size: 14px;
}

.shoutout {
  background-color: #e9f5f2;
  padding: 20px;
  text-align: center;
}

.shoutout h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.shoutout ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.shoutout li {
  font-weight: bold;
  margin: 5px 0;
}

body.dark .shoutout {
  background-color: #003049;
  color: white;
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out forwards;
}

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

.rounded-card {
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.text-large {
  font-size: 2rem;
}

.text-small {
  font-size: 0.8rem;
}

.margin-top-20 {
  margin-top: 20px;
}

.padding-20 {
  padding: 20px;
}

.color-primary {
  color: #219ebc;
}

.bg-light {
  background-color: #edf6f9;
}

.border-bottom {
  border-bottom: 2px solid #ddd;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.transition-fast {
  transition: all 0.2s ease-in-out;
}

.cursor-pointer {
  cursor: pointer;
}


.zoom-indicator {
  font-size: 0.9rem;
  margin-top: 8px;
  color: #555;
}

body.dark .zoom-indicator {
  color: #aaa;
}

/* Bookmark button */
.bookmark-btn {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.bookmark-btn:hover {
  background-color: #e9ecef;
}

.bookmark-btn.active, .bookmark-btn.active:hover {
  background-color: #e33618;
  color: #000;
  border-color: #000000;
}

.mode-dasar {
  background-color: #28a745 !important;
  color: white !important;
}

#favoriteSlides .slide 
{
  transform: none !important;
}
