/* 기존 스타일 유지 */
@import url('https://fonts.googleapis.com/css2?family=Dongle:wght@300&family=Gamja+Flower&family=Gowun+Dodum&display=swap');
body {
    font-family: "Gowun Dodum", sans-serif;
    text-align: center;
    background-color: #f9f9f9;
    margin: 20px;
}

h1 {
    color: #333;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.grid {
    display: grid;
    gap: 5px;
    margin: 20px auto;
}

.grid div {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
    touch-action: none; /* 터치 기본 동작 방지 */
}

.grid div.selected {
    background-color: #FF6F61;
    color: #fff;
}

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

.word-list li {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.word-list li.found {
    text-decoration: line-through;
    color: green;
}
        /* 기록 섹션 스타일 (모달) */
        #recordSection {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        #recordContent {
            background-color: #fff;
            padding: 20px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            max-height: 80%; /* 높이 제한 추가 */
            overflow-y: auto; /* 스크롤 추가 */
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            animation: fadeIn 0.3s ease-out;
        }        

        #recordTable {
            width: 100%;
            border-collapse: collapse;
            margin: 10px 0;
            max-height: 200px;
            overflow-y: auto;
        }
        #recordTable th, #recordTable td {
            border: 1px solid #ccc;
            padding: 8px;
            text-align: center;
        }
        #viewRecordsButton {
            font-size: 0.8em;
            padding: 5px 10px;
            border: 1px solid #ccc;
            background-color: #ffa500;
            color: white;
            border-radius: 5px;
            cursor: pointer;
            margin-left: 10px;
            }
    
            #viewRecordsButton:hover {
            background-color: #ff8c00;
            }
