body {
  font-family: 'Nunito', sans-serif;
  background: radial-gradient(circle at top left, #0f1c17, #000);
  margin: 0;
  padding: 0;
  text-align: center;
  color: #e6e6e6;
}

.container {
  max-width: 1140px;
  margin: auto;
  padding: 20px;
  padding-bottom: 80px;
}

h1, h2 {
  color: #ffffff;
  font-weight: 700;
}

h4 {
  margin-top: -10px;
  font-weight: normal;
  color: #b5b5b5;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: 30px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 10px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== FLASHCARD PREMIUM ===== */
.flashcard {
  border-radius: 20px;
  background: rgba(25, 35, 30, 0.9);
  backdrop-filter: blur(10px);
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  color: #e6e6e6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.flashcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px #CF392C;
}

#aksaraDisplay {
  font-size: 100px;
  margin-bottom: 10px;
  color: #CF392C;
  text-shadow: 0 4px 12px #cf3a2c70;
  font-family: 'Noto Sans Batak', serif;
}

#latinDisplay {
  font-size: 28px;
  font-weight: bold;
  color: #f1f1f1;
  margin-bottom: 15px;
}

/* ===== BUTTON STYLE ===== */
button {
  padding: 12px 22px;
  margin: 6px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 50px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  background: linear-gradient(135deg, #5f2f2a, #5f2f2a);
  color: white;
  box-shadow: 0 4px 12px rgba(185, 29, 29, 0.24);
  transition: all 0.3s ease;
}
button i {
  margin-right: 6px;
}
button:hover {
  background: linear-gradient(135deg, #23d464, #0f6d31);
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.6);
  transform: translateY(-2px);
}

/* ===== AUDIO BUTTON SPESIAL ===== */
.audio-button button {
  background: linear-gradient(135deg, #413535, #413535);
  box-shadow: 0 4px 12px rgba(40, 35, 35, 0.4);
}
.audio-button button:hover {
  background: linear-gradient(135deg, #23d464, #0f6d31);
  box-shadow: 0 6px 18px rgba(29, 185, 84, 0.6);
}

/* ===== CANVAS ===== */
canvas {
  width: 100%;
  height: 300px;
  border: 2px solid rgba(255,255,255,0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
  touch-action: none;
}

/* ===== CATATAN BAWAH ===== */
.bottom-note {
  margin-top: 40px;
  font-size: 16px;
  color: #dcdcdc;
  background: rgba(40, 50, 45, 0.8);
  padding: 18px 20px;
  border-radius: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 25px 10px;
  font-size: 14px;
  color: #9f9f9f;
  background: none;
}

/* ===== BACK BUTTON ===== */
#back-button {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0;
  user-select: none;
  z-index: 1000;
}
#back-button:hover {
  background: #CF392C;
  box-shadow: 0 6px 14px rgba(81, 77, 77, 0.8);
}
#back-button svg {
  stroke: #CF392C;
  transition: transform 0.3s ease;
}
#back-button:hover svg {
  transform: translateX(-4px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  #aksaraDisplay {
    font-size: 70px;
  }
  #latinDisplay {
    font-size: 22px;
  }
  canvas {
    height: 220px;
  }
  button {
    font-size: 14px;
    padding: 10px 16px;
  }
  .container {
    padding-top: 80px;
  }
}

/* ===== TABEL AKSARA PREMIUM ===== */
.batak-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.batak-table-container {
  min-width: 600px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(30, 40, 35, 0.8);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.batak-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
}

.batak-table th {
  background: linear-gradient(135deg, #cf392c, #a5281e);
  color: #fff;
  padding: 12px;
  border: none;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,0.2);
}

.batak-table td {
  padding: 12px;
  border: none;
  text-align: center;
  font-size: 1rem;
  background: #fdfdfd;
  color: #222;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.batak-table tbody tr:hover td {
  background: #fff4f3;
  color: #cf392c;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.05);
}
