.Words{
    margin: 0 auto;
    margin-top: -30px;
    width: 100%;
}
.Words h2{
    width: 100%;
    text-align: center;
    margin-top: 100px;
}
#wordTable th,
#wordTable td {
    padding: 8px;
    border: 1px solid #ccc;
}
table {
    width: 60%;
    border-collapse: collapse;
    margin: 20px auto;
}
#wordTable tbody td {
    text-align: center;
    font-size: 16px;
    white-space: nowrap;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 0;
  margin-top: 150px;
}

nav ul li button {
  padding: 8px 16px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

nav ul li button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

nav ul li button.active {
  background-color: #e67e22;
}


/* 버튼 중앙 정렬 */
#pagination {
    text-align: center;
}
#pagination button {
    width: 30px;
    height: 30px;
    margin: 5px;
    border: none;
    background-color: #000;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}
@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

    /* 현재 페이지 버튼 스타일 */
#pagination button.current {
    background-color: #FFA500; /* 현재 페이지 버튼 배경색 */
}

/* 페이드 인/아웃 애니메이션 적용 */
#wordTable tbody tr {
    animation: fade 0.5s ease;
}


/* 테이블 비율 */
th:nth-child(1),
td:nth-child(1) {
    width: 30%;
}

th:nth-child(2),
td:nth-child(2) {
    width: 30%;
}

th:nth-child(3),
td:nth-child(3) {
    width: 30%;
}