body {
    font-family: Verdana, sans-serif;
    background: #f4f4f4;
    text-align: center;
    font-size: 20px;
    padding: 0.2rem;
  }

  #gameContainer {
    max-width: 600px;
    width: 100%;
    background: white;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
  }

  #gameContainer img {
    max-width: 200px;
    height: auto;
}
    
  #word {
    font-size: 2rem;
  }
  
  #message {
    margin-bottom: 5px;
  }

  /* Keyboard wrapper */
  #keyboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
  }

  /* Each row of keys */
  .keyboard-row {
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  /* Individual keys */
  .keyboard-row button {
    height: 50px;
    width: 50px;
    font-size: 18px;
    font-weight: 600;
    background-color: #eaeaea;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;

    /* Add these properties for proper alignment */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: normal; /* Prevents text from being misaligned */
    padding: 0; /* Ensures no extra space inside the button */
  }

  .keyboard-row button:hover:enabled {
    background-color: #d6d6d6;
  }

  .keyboard-row button:disabled {
    background-color: #f3f3f3;
    cursor: default;
    opacity: 0.6;
  }

  /* Mobile responsiveness */
  @media (max-width: 500px) {
    .keyboard-row button {
      height: 58px;
      width: 30px;
      font-size: 22px;
    }
  }
  
  #restart {
    display: none;
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 20px;
  }

  #revealHintBtn {
    padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #0077ff;
  color: white;
  cursor: pointer;
  margin: 0.3rem;
  transition: background-color 0.3s ease;
  }
  
  #topNav {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    padding: 1rem;
    color: black;
  }
  
  #topNav nav a {
    color: black;
    margin-left: 15px;
    text-decoration: none;
  }

  /* Mobile layout (stacked menu items) */
@media (max-width: 768px) {
  #topNav {
    flex-direction: column; /* Stack the logo and nav items */
    align-items: center;
  }
}

  #topNav img {
    max-width: 125px;
    height: auto;
}
  
  #mainLayout {
    display: flex;
    justify-content: center;
    /* padding: 1rem; */
  }
  
  #ad-left, #ad-right {
    width: 160px;
    min-height: 250px;
    margin: 0 1rem;
    background: #f1f1f1;
    border: 1px dashed #ccc;
    text-align: center;
    display: none; /* hide on small screens */
    margin-bottom: 15px;
  }
  

  /* Sticky Footer Ad */
  .sticky-footer {
    position: sticky;
    bottom: 0;
    background: #f4f4f4;
    padding: 10px;
    border-top: 1px solid #ddd;
    text-align: center;
  }
  
  /* Show side ads only on wider screens */
  @media (min-width: 1000px) {
    #ad-left, #ad-right {
      display: block;
    }
  }

  .other-games-section {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #ccc;
  }
  
  .other-games-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #222;
  }
  
  .game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
  }
  
  .game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 1rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
  }
  
  .game-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }
  
  .game-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 0.5rem;
  }
  
  .game-card span {
    font-weight: bold;
    font-size: 0.95rem;
    color: #333;
  }
  
  .other-games-section p {
    font-size: 1rem;
    margin-top: 1rem;
    text-align: center;
  }
  
  .other-games-section p a {
    color: #0077cc;
    text-decoration: underline;
  }

  .info {
    font-size: 14px;
    font-style: italic;
  }

  /* Input Styling */
#guessInput {
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

#guessInput:focus {
  outline: none;
  border-color: #0077ff;
}

/* Buttons (Submit, Hint, Next) */
.path {
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #0077ff;
  color: white;
  cursor: pointer;
  margin: 0.3rem;
  transition: background-color 0.3s ease;
}

.path:hover {
  background-color: #005fcc;
}

.path:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

  