/* Global Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f3f4f6;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background-color: #4caf50;
  color: white;
  padding: 20px 0;
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  text-align: center;
}

.nav {
  text-align: center;
  margin-top: 10px;
}

.nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2rem;
}

.nav a:hover {
  text-decoration: underline;
}

/* Main Content Styles */
.main {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.game-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

h2 {
  color: #4caf50;
  text-align: center;
}

/* Word Grid Styles */
.word-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.grid-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.grid-cell {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  border: 2px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  text-transform: uppercase;
}

.grid-cell.green {
  background-color: #6aaa64;
  color: white;
  border-color: #6aaa64;
}

.grid-cell.yellow {
  background-color: #c9b458;
  color: white;
  border-color: #c9b458;
}

.grid-cell.gray {
  background-color: #787c7e;
  color: white;
  border-color: #787c7e;
}

/* Keyboard Styles */
.keyboard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.keyboard-row {
  display: flex;
  gap: 5px;
}

.keyboard button {
  width: 40px;
  height: 50px;
  background-color: #d3d6da;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.keyboard button.wide {
  width: 70px;
}

.keyboard button:hover {
  background-color: #bbb;
}

/* Rules and FAQ Styles */
.rules-section, .faq-section {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.color-guide {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.color-explanation {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-box {
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

.color-box.green { background-color: #6aaa64; }
.color-box.yellow { background-color: #c9b458; }
.color-box.gray { background-color: #787c7e; }

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.faq-item {
  background-color: #f9f9f9;
  border-radius: 5px;
  padding: 15px;
}

/* Footer Styles */
.footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
}

.footer h3 {
  margin-top: 0;
}

.footer ul {
  list-style-type: none;
  padding: 0;
}

.footer ul li {
  display: inline;
  margin: 0 15px;
}

.footer ul li a {
  color: #4caf50;
  text-decoration: none;
}

.footer ul li a:hover {
  text-decoration: underline;
}
