#heada{
    margin-top: 100px;
        display: flex;
    flex-direction: column;   /* 세로 정렬 */
    align-items: center; 
}
.Topic {
    display: flex;
    gap: 10px;
}
.buttons {
    width: 100%;
    margin: 0 auto;
}
.button {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
}


.hiragana-container {
    width: 70%;
    text-align: center;
    margin: 0 auto;
    display: none;
}


.toggle-btn {
  background: #0078d4;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.25s ease;
  margin-top: 10px;
}
.button:hover,.toggle-btn:hover {
  background: linear-gradient(135deg, #005fa3, #004a87);
  transform: translateY(-2px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
}

.toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.3);
}


/* 테이블 컨테이너 */
.hiragana-container {
    width: 90%;
    max-width: 900px;
    margin: 20px auto 40px;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    font-family: 'Noto Sans KR', sans-serif;
}

/* 테이블 스타일 */
table {
    width: 100%;
    border-collapse: collapse;
}

/* 테이블 헤더 */
thead {
    background-color: #0078d4;
    color: white;
}

thead th {
    padding: 14px;
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* 테이블 바디 */
tbody tr {
    transition: background-color 0.2s;
}

tbody tr:hover {
    background-color: #f0f9f0;
}

tbody td {
    padding: 12px;
    text-align: center;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
}

/* 짝수 줄 배경색 */
tbody tr:nth-child(even) {
    background-color: #fafafa;
}


/* 반응형 */
@media (max-width: 600px) {
    tbody td, thead th {
        padding: 10px;
        font-size: 14px;
    }
}