/* Base styles */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

/* Themes */
.light-mode {
  background: #f4f4f4;
  color: #333;
}

.dark-mode {
  background: #222;
  color: #ddd;
}

/* Main Menu Styles */
#main-menu {
  margin-top: 50px;
}

#mobile-toggle {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.hide-on-desktop {
  display: none;
}

@media (min-width: 768px) {
  #mobile-toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  #mobile-toggle {
    display: block;
  }
}

/* Hide the main menu on mobile */
.show-on-mobile {
  display: block;
}

/* Improve menu layout */
.menu-option {
  margin-bottom: 1em;
}

/* Improve theme switcher */
.theme-switcher {
  margin-bottom: 1em;
}

/* Buttons */
button {
  margin: 5px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #555;
  color: white;
}

/* Game Container */
#game-container {
  margin-top: 20px;
}

/* Board Styles */
#board {
  display: grid;
  grid-template-columns: repeat(7, 80px);
  gap: 8px;
  margin: 20px auto;
  width: max-content;
}

.cell {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #333, #555);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s;
}

.cell:hover {
  transform: scale(1.1);
}

/* Player Pieces */
.player-1 {
  background: radial-gradient(circle, #ff4d4d 30%, #b30000 90%);
}

.player-2 {
  background: radial-gradient(circle, #ffd700 30%, #b8860b 90%);
}

/* Win Screen */
#win-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(34, 34, 34, 0.95);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#win-message {
  font-size: 2rem;
  font-weight: bold;
}

#game-duration,
#move-count {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #bbb;
}

#exit-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

#exit-button:hover {
    background: darkred;
}
/* Footer Styles */
/* Footer Styles */
footer {
  background-color: #333;
  color: white;
  padding: 10px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}

footer a {
  color: #ffd700; /* Gold color for links */
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
