/* General Styles */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background-color: rgb(243, 244, 246);
  font-family: system-ui, -apple-system, sans-serif;
}

/* Header Styles */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(31, 41, 55);
  color: white;
  padding: 1rem;
  position: sticky;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  top: 0;
  left: 0;
  z-index: 10;
}

.header h1 {
  margin: 0;
  font-size: 2rem;
  flex-grow: 1;
  text-align: center;
}

.header nav {
  margin-left: auto;
}

.header ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

.header li {
  margin: 0 1rem;
}

.header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

.header a:hover {
  color: rgb(156, 163, 175);
}

/* Logo Styles */
.logo {
  max-width: 150px;
  height: auto;
  margin-right: 1rem;
}

/* Container Styles */
.container {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  max-width: 32rem;
  width: 100%;
  margin: 1rem;
  flex-grow: 1;
  margin-top: 80px;
}

footer {
  background-color: rgb(31, 41, 55);
  color: white;
  padding: 2rem 0;
  margin-top: 2rem;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
}

.footer-section {
  flex: 1;
  margin: 0 20px;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: white;
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #555;
  margin-top: 2rem;
}

/* Button Container Styles */
.button-container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

/* Button Styles */
.button-container button {
  background-color: rgb(59, 130, 246);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

.button-container button:hover {
  background-color: rgb(37, 99, 235);
}

/* Footer Styles */
.footer {
  background-color: rgb(31, 41, 55);
  color: white;
  padding: 1rem;
  text-align: center;
  width: 100%;
  position: relative;
  bottom: 0;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Board Styles */
.board {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 1px;
  background-color: rgb(209, 213, 219);
  padding: 1px;
  margin-bottom: 1.5rem;
}

/* Cell Styles */
.cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 500;
  background-color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.cell:not(:disabled):hover {
  background-color: rgb(239, 246, 255);
}

.cell.initial {
  background-color: rgb(243, 244, 246);
  cursor: not-allowed;
}

.cell.selected {
  background-color: rgb(219, 234, 254);
}

.cell[data-col="2"], .cell[data-col="5"] {
  border-right: 2px solid rgb(156, 163, 175);
}

.cell[data-row="2"], .cell[data-row="5"] {
  border-bottom: 2px solid rgb(156, 163, 175);
}

/* Footer Styles */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--secondary-color);
  background: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Number Button Styles */
.numbers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.number-button {
  padding: 0.75rem;
  background-color: rgb(59, 130, 246);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.number-button:hover {
  background-color: rgb(37, 99, 235);
}

.clear-button {
  background-color: rgb(107, 114, 128);
}

.clear-button:hover {
  background-color: rgb(75, 85, 99);
}

/* Status Styles */
.status {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
}

.status i {
  margin-right: 0.5rem;
}

.status.valid {
  color: rgb(22, 163, 74);
}

.status.invalid {
  color: rgb(220, 38, 38);
}

/* Game Page Styles */
.game-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}