/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: 'Oswald', sans-serif;
  background: linear-gradient(180deg, #2f6d9b, #afcffe);
  color: #333;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Centering Containers */
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Header */
header {
  padding: 20px 0;
}

.logo-container {
  text-align: center;
}

.logo {
  font-size: 36px;
  color: #fff;
  text-decoration: none;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.desktop-nav a {
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}

.desktop-nav a:hover {
  text-decoration: underline;
}

/* Hamburger Menu for Mobile */
.hamburger-menu {
  display: none;
  position: relative;
}

.hamburger-icon {
  font-size: 30px;
  cursor: pointer;
  position: absolute;
  top: 15px;
  left: 15px;
  color: #fff;
}

.hamburger-links {
  display: none;
  flex-direction: column;
  background-color: #003366;
  padding: 10px;
  position: absolute;
  top: 50px;
  left: 0;
  width: 200px;
  z-index: 99
}

.hamburger-links.active {
  display: flex;
}

.hamburger-links a {
  color: #fff;
  padding: 10px;
  text-decoration: none;
}

.hamburger-links a:hover {
  background-color: #2f6d9b;
}

/* Hide desktop navigation on mobile */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger-menu {
    display: block;
  }
}

/* Game Area Box */
.game-area {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
}

/* Bob and Hello container */
.bob-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bob-image {
  width: 100px;
  height: 100px;
}

.hello-image {
  width: 100px;
  height: auto;
  margin-left: 10px;
  opacity: 0;
  transition: opacity 0.5s ease-in;
}

/* Game Container */
.game-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

/* Tic-Tac-Toe Game Board */
.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px auto;
  max-width: 300px;
  background-color: #2f6d9b;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cell {
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.cell:hover {
  background-color: #e6f7ff;
}

.cell.x {
  color: #FF0000;
}

.cell.o {
  color: #00FF00;
}

/* Game Status */
#game-status {
  margin-top: 20px;
  font-size: 18px;
  font-weight: bold;
  color: #2f6d9b;
}

/* Overlay */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Game Settings */
.settings-content, .result-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.setting {
  margin-bottom: 20px;
  text-align: left;
}

.setting label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.option-btn {
  flex: 1;
  background-color: #ffffff;
  border: 2px solid #000000;
  color: #000000;
  padding: 10px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: bold;
}

.option-btn:hover {
  background-color: #f0f0f0;
}

.option-btn.active {
  background-color: #4da6ff;
  border-color: #4da6ff;
  color: white;
}

#start-game, #play-again {
  background-color: #4da6ff;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
  width: 100%;
  font-weight: bold;
}

#start-game:hover, #play-again:hover {
  background-color: #3385d6;
}

/* How to Play Section */
.how-to-play {
  background: linear-gradient(135deg, #d4fc79, #96e6a1);
  color: #333;
  padding: 40px;
  border-radius: 10px;
  max-width: 900px;
  width: 100%;
  margin: 20px auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.how-to-play h2 {
  margin-bottom: 20px;
  color: #333;
}

.how-to-play p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background: black;
  color: white;
  padding: 40px 0 0 0;
  width: 100%;
  margin-top: auto;
}

.footer-content-container {
  max-width: 900px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 24px;
  color: white;
  text-decoration: none;
}

.footer-column h4 {
  margin-bottom: 10px;
}

.footer-column a {
  color: white;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer-column a:hover {
  text-decoration: underline;
}

/* Copyright Text */
.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #fff;
  background: black;
  margin-top: 20px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}