/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Comic Sans MS', 'Segoe UI', sans-serif;
  background-color: #fdf6ec;
  color: #333;
  text-align: center;
  padding: 20px;
  padding-bottom: 120px; /* space for bottom nav */
}

/* Heading */
h1 {
  font-size: 2.5em;
  margin: 20px 0;
  color: #e67e22;
}

/* Word Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
  padding: 10px;
}

.word {
  background: linear-gradient(135deg, #ffecd2, #fcb69f);
  border-radius: 10px;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #2c3e50;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, background-color 0.3s;
  cursor: default;
}

.word:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #f6d365, #fda085);
}

/* Top Navigation */
#tabs-top {
  background-color: #3498db;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  flex-wrap: wrap;
}

#tabs-top a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  transition: background 0.3s;
}

#tabs-top a:hover {
  background-color: #2980b9;
  border-radius: 5px;
}

/* Bottom Navigation */
#tabs-bottom {
  background-color: #2c3e50;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 1000;
  flex-wrap: wrap;
}

#tabs-bottom a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px;
  transition: background 0.3s;
}

#tabs-bottom a:hover {
  background-color: #34495e;
  border-radius: 5px;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 0.9em;
  color: #888;
  padding-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  h1 {
    font-size: 2em;
  }

  .word {
    font-size: 1em;
    padding: 15px;
  }

  #tabs-top,
  #tabs-bottom {
    flex-direction: column;
    align-items: center;
  }
}
