/* Base Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #ffffff; /* Set page background to white */
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Navbar Styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ff0000;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.nav-links a:hover {
  color: #ff0000;
  transform: scale(1.1);
}

/* Game Title Styles */
.game-title {
  text-align: center;
  color: #FF0000;
  font-size: 2.5rem;
  margin-top: 20px;
}

/* Game Container */
.game-container {
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Tab Container Styles */
.tab-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: space-between;
  background-color: #333333;
  border-bottom: 2px solid #b30000;
}

.tabs button {
  background-color: inherit;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 20px;
  transition: background-color 0.3s ease;
  font-size: 16px;
  flex-grow: 1;
  text-align: center;
}

.tabs button:hover {
  background-color: #b30000;
}

.tabs button.active {
  background-color: #b30000;
  font-weight: bold;
}

.tabcontent {
  display: none;
  padding: 20px;
  animation: fadeEffect 0.5s;
  background-color: #ffffff;
  color: #333333;
  text-align: left;
}

.tabcontent h2 {
  margin-top: 0;
}

/* Fade in animation */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 12px 25px;
  margin: 5px;
  background-color: #FF0000;
  color: #FFFFFF;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  background-color: #CC0000;
}

.button:active {
  transform: translateY(2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#game-title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin: 2rem 0;
  color: #FF0000;
}

#difficulty-selection {
  text-align: center;
  margin-bottom: 2rem;
}

#difficulty-selection h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333333;
}

.container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  background-color: #F7F7F7;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  justify-content: center;
}

.sub-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

.card {
  display: inline-block;
  border: 2px solid #333333;
  padding: 12px 20px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Roboto', sans-serif;
  font-size: 24px;
  color: #333333;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  user-select: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  background-color: #E0E0E0;
}

.card:active {
  transform: translateY(1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#live-area {
  display: flex;
  flex-wrap: nowrap; /* Ensure items are in a single row */
  overflow-x: auto; /* Enable horizontal scrolling if needed */
  justify-content: start;
  align-items: center;
  background-color: #f8f8f8;
  border: 2px dashed #FF0000;
  border-radius: 8px;
  min-height: 100px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

#target-number {
  margin: 2rem 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  color: #333333;
  text-align: center;
  font-weight: bold;
}

/* Footer Styles */
.footer {
  text-align: center;
  padding: 2rem 2rem;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
}

.footer p {
  margin: 0;
  color: #333;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-content {
    flex-direction: column;
  }

  .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .game-container {
    padding: 1rem;
  }

  .word {
    font-size: 16px;
    padding: 10px 15px;
  }
}
