/* General styling */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #282c34;
    color: #fff;
    margin: 0;
    padding: 0;
    height: 100vh;
  }
  
  .game-container {
    margin-top: 50px;
    padding: 20px;
    background-color: #3a3f47;
    display: inline-block;
    border-radius: 10px;
  }
  
  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  /* Sudoku grid styling */
  table {
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
  }
  
  td {
    width: 40px;
    height: 40px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #666; /* Default thin grid border */
  }
  
  input {
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 16px;
    border: none;
    outline: none;
  }
  
  input:focus {
    outline: 2px solid #9d59d4; /* Highlight focused cells */
  }
  
  /* Added bold borders for inner 3x3 grids */
  tr:nth-child(3n) td {
    border-bottom: 3px solid black; /* Bold horizontal border every 3 rows */
  }
  
  td:nth-child(3n) {
    border-right: 3px solid black; /* Bold vertical border every 3 columns */
  }
  
  /* Ensure outermost grid borders are bold */
  tr:first-child td {
    border-top: 3px solid black; 
  }
  
  td:first-child {
    border-left: 3px solid black; 
  }
  
  tr:last-child td {
    border-bottom: 3px solid black; 
  }
  
  td:last-child {
    border-right: 3px solid black; 
  }
  

  button {
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: #9d59d4;
    color: white;
  }
  
  button:hover {
    background-color: #7a34a8;
  }

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.message-box {
  display:none; 
  font-size: 16px; 
  margin-top: 10px;
}