body {
  font-family: 'Roboto', sans-serif;
  background-color: #F7F7F7;
  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%;
}

.logo {
  font-size: 2rem;
  font-weight: bold;
  color: #ff0000;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.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);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  .nav-links.nav-open {
    display: flex;
  }
  .nav-links a {
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
  }
}

/* Container Styles */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
  max-width: 1000px;
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: red;
  text-align: center;
}

/* Tab Container and Game Area Styles */
.tab-container,
.game-area {
  width: 100%;
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
  background-color: #fff;
  text-align: left; /* Ensure left alignment */
}

.game-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.number-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 300px;
  padding: 10px;
}

.number-buttons button {
  width: 100%;
  height: 48px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #ebebeb;
  color: #000;
  transition: background-color 0.3s, transform 0.2s;
  user-select: none;
}

.number-buttons button:hover,
.number-buttons button:active {
  background-color: #dadada;
  transform: scale(1.05);
}

.number-buttons button:disabled {
  background-color: #d1d5db;
  color: #888;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Control Styles */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.controls label {
  margin-right: 10px;
}

input[type="number"] {
  font-size: 18px;
  padding: 5px;
  width: 80px;
  text-align: center;
}

#resetButton,
#setCardsButton {
  padding: 10px 20px;
  font-size: 20px;
  margin-left: 10px;
  cursor: pointer;
  background-color: #ff0000;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.2s;
}

#resetButton:hover,
#resetButton:active,
#setCardsButton:hover,
#setCardsButton:active {
  background-color: #b82b3d;
  transform: scale(1.05);
}

#message {
  margin-top: 20px;
  font-size: 1.5rem;
  color: #0077cc;
  max-width: 300px;
  word-wrap: break-word;
}

/* Responsive Design */
@media (min-width: 768px) {
  .number-buttons button {
    height: 64px;
    font-size: 18px;
  }
  .number-buttons {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    max-width: 400px;
  }
}

@media (max-width: 600px) {
  .controls {
    flex-direction: column;
  }
  .game-title {
    font-size: 2rem;
  }
  #message {
    font-size: 1.2rem;
  }
  .number-buttons {
    grid-template-columns: repeat(5, 1fr);
  }
  button {
    height: 40px;
    font-size: 14px;
  }
  #resetButton {
    font-size: 16px;
    padding: 8px 16px;
  }
}

/* Footer Styles */
.footer {
  text-align: center;
  padding: 2rem;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
  color: #333;
}

.tab-container {
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  justify-content: space-between;
  background-color: #333;
  border-bottom: 2px solid #b30000;
}

.tabs button {
  background-color: inherit;
  color: white;
  border: none;
  cursor: pointer;
  padding: 14px 20px;
  transition: background-color 0.3s;
  font-size: 16px;
  flex-grow: 1;
  text-align: center;
}

.tabs button:hover,
.tabs button.active {
  background-color: #b30000;
  font-weight: bold;
}

.tabcontent {
  display: none;
  padding: 20px;
  animation: fadeEffect 0.5s;
  color: #333;
  text-align: left; /* Ensure left alignment */
}

/* Fade Effect Animation */
@keyframes fadeEffect {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
