body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
}
.game-button {
    font-family: 'Press Start 2P', sans-serif;
}


.sudoku-container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.title {
    margin-bottom: 10px;
    font-size: 2rem;
}

.timer {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

table {
    border-collapse: collapse;
    margin: 0 auto 20px;
}

td {
    width: 40px;
    height: 40px;
    text-align: center;
    border: 1px solid #ccc;
    position: relative;
}

input {
    width: 100%;
    height: 100%;
    text-align: center;
    border: none;
    outline: none;
    font-size: 18px;
    background: none;
    padding: 0;
    box-sizing: border-box;
}

input:disabled {
    background: #f0f0f0;
    color: #333;
    font-weight: bold;
}

td:nth-child(3n+1) {
    border-left: 2px solid #000;
}

td:nth-child(3n) {
    border-right: 2px solid #000;
}

tr:nth-child(3n+1) td {
    border-top: 2px solid #000;
}

tr:nth-child(3n) td {
    border-bottom: 2px solid #000;
}

button {
    padding: 10px 20px;
    border: none;
    background: #007BFF;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

button:hover {
    background: #0056b3;
}

.hidden {
    display: none;
}

#congratulations-screen {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}


#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

#hint-button {
    position: relative;
}

#hint-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 7%;
    border-bottom: 3px solid rgb(255, 255, 255);
    transform: translateY(-50%);
    display: none;
}

#hint-button.completed::after {
    display: block;
}


