body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1, h2 {
  text-align: center;
  color: #0056b3;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
  margin-top: 0;
}

h1 {
  font-size: 2.2em;
  margin-bottom: 30px;
}

h2 {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
}

p, ul {
  margin-bottom: 15px;
}

code {
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background-color: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.sudoku-img {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  border: 2px solid #343a40;
  margin: 25px auto;
  border-radius: 4px;
}

/* Stile per il menu */
.menu-list {
  list-style-type: none;
  padding: 0;
}
.menu-list li {
  margin-bottom: 10px;
}
.menu-list a {
  display: block;
  padding: 15px;
  background-color: #f8f9fa;
  text-decoration: none;
  color: #343a40;
  border-radius: 5px;
  font-size: 1.1em;
  transition: all 0.2s ease;
}
.menu-list a:hover {
  background-color: #e9ecef;
  transform: translateX(5px);
}


/* --- BLOCCO CORRETTO E UNIFICATO PER I PULSANTI "INDIETRO" --- */

/* Contenitore per il link/bottone */
.back-link {
  display: block;
  text-align: center;
  margin-top: 40px;
}

/* 
  Stile UNIFICATO per entrambi gli elementi: 
  - .back-link a (i link "Torna al Menu")
  - .back-button (il pulsante "Torna al Gioco")
*/
.back-link a,
.back-button {
  display: inline-block;
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  color: #0056b3; /* Testo blu */
  text-decoration: none;
  background-color: #fff;
  padding: 12px 25px; /* Padding più grande */
  border: 1px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Effetto hover UNIFICATO per entrambi */
.back-link a:hover,
.back-button:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

