body {
    font-family: sans-serif;
    background-color: #f0f0f0;
    text-align: center;
    padding: 20px;
}

.header-box {
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0 auto 10px;
    background-color: #75D1E0;
    width: fit-content;
    text-align: center;
    display: block;
}

.timer-box {
    border: 2px solid #333;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 0 auto 20px;
    background-color: #75D1E0;
    width: fit-content;
    text-align: center;
    font-size: 18px;
    display: block;
}

.grid-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#grid {
    display: grid;
    grid-template-columns: repeat(12, 30px);
    gap: 2px;
}

.cell {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
}

.cell.selected {
    background-color: yellow;
}

.cell.found {
    background-color: lightgreen;
    font-weight: bold;
}

#word-list {
    margin-top: 20px;
}

#word-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

#word-list li {
    background: #fff;
    padding: 5px 10px;
    border: 1px solid #888;
    border-radius: 5px;
}

#word-list li.found {
    color: green;
    font-weight: bold;
    border-color: green;
}

#buttons,
#retry {
    margin-top: 10px;
}

#retry {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

button {
    padding: 10px 20px;
    margin: 10px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #333;
        border-radius: 10px;
    background-color: #75D1E0;
}
.pause-button-container {
    margin-bottom: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
}

#pause-play-btn {
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pause-play-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.grid-container.paused {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}
#buttons button,
#retry button {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
}

#buttons button img,
#retry button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}