body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9fc;
  color: #333;
  background-image: url('../image/Bee_bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.overlay {
  background-color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  padding: 40px;
  margin-top: 40px;
}

header {
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(240,240,240,0.95));
  padding: 20px 60px 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.logo {
  max-height: 140px;
  width: auto;
}

.event-title {
  text-align: center;
  flex-grow: 1;
  margin: 20px 0 0 0;
  font-size: 2em;
  color: #2c3e50;
  font-weight: bold;
}

nav {
  background-color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 12px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 2;
  position: relative;
}

nav a {
  color: #2c3e50;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1.1em;
}

nav a:hover {
  color: #3498db;
}

.word {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.word:hover {
  background-color: #eef6ff;
}
/* Grid-based word layout */
.word-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 equal-width columns */
  gap: 16px;
  margin-top: 20px;
}

.word-item {
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.word-item:hover {
  background-color: #eef6ff;
}

@media (max-width: 992px) {
  .word-grid {
    grid-template-columns: repeat(3, 1fr); /* tablet: 3 columns */
  }
}

@media (max-width: 576px) {
  .word-grid {
    grid-template-columns: repeat(2, 1fr); /* mobile: 2 columns */
  }
}
