/* General Styling */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #1a1a1a, #333333);
    color: white;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
 
}

  .breadcrumb {
  font-size: 14px;
  padding: 15px 40px;
  background-color: transparent;
  color: #ffcc00;
  text-align: left;

  /* Push below fixed header */
  margin-top: 150px; /* Adjust based on your header height */
  z-index: 1;
  position: relative;
}

/* Link Styling */
.breadcrumb a {
  color: #EDEAE1;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .breadcrumb {
    font-size: 13px;
    padding: 10px 15px;
    margin-top: 70px; /* Slightly more for mobile if needed */
  }
}

  
/* Game Container */
.game-container {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 400px;
    margin-top: 20px; /* Space from the top */
}

/* Heading */
h1 {
    margin: 10px 0;
    font-size: 24px;
}

/* Game Board (Centered Inside Game Container) */
.board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 0 auto; /* Keeps it centered */
    padding: 10px;
    justify-content: center;
    width: 100%;
    max-width: 300px;
}



/* Game Cells */
.cell {
    width: 100px;
    height: 100px;
    background: #222;
    border: 2px solid #555;
    font-size: 2rem;
    color: #F9A01B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.cell:hover {
    background: #444;
}

/* RiK Theme Buttons */
button {
    display: inline-block;
    padding: 10px 20px;
    background: #F9A01B;
    color: black;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #FFC107;
}

#restart {
    background: #F9A01B;
    color: black;
}

#restart:hover {
    background: #FFC107;
}

/* Result Message */
#result-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #F9A01B;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
    display: none;
    z-index: 10;
}

/* Difficulty Selector */
.difficulty-container {
    margin-bottom: 10px;
}

#difficulty {
    padding: 5px;
    font-size: 16px;
    border-radius: 5px;
}

/* Footer Styling */
footer {
    position: relative;
    bottom: 0;
    text-align: center;
    background: transparent;
    color: white;
    padding: 15px 10px;
    margin-top: 30px;
    margin-bottom: auto; /* Pushes footer to the bottom */
    width: 100%;
    font-size: 14px;
    
}

footer p {
    margin: 5px 0;
}



/* Responsive Design */
@media (max-width: 500px) {
    .cell {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }

    h1 {
        font-size: 20px;
    }

    footer {
        font-size: 12px;
        padding: 10px 5px;
    }

    footer button {
        padding: 8px 15px;
        font-size: 12px;
    }
}


.fixed-footer-menu-games {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #222;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 2px solid #FEC107;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

/* Menu Item */
.fixed-footer-menu-games .menu-item {
  flex: 1;
  text-align: center;
  color: #FEC107;
  text-decoration: none;
  font-size: 11px;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  height: 100%;
}

/* Icon inside Menu */
.fixed-footer-menu-games .icon {
  font-size: 20px;
  margin-bottom: 2px;
}

/* Hide fixed footer on desktop */
@media screen and (min-width: 768px) {
  .fixed-footer-menu-games {
    display: none;
  }
}

/* Make sure body has bottom padding so content doesn't hide under footer */
body {
  padding-bottom: 80px;
}

.more-games-drawer {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  max-height: 60vh;
  background: #111;
  border-top: 2px solid #FEC107;
  z-index: 999;
  padding: 10px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.more-games-drawer .drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 14px;
  color: #FEC107;
}

.more-games-drawer .games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.more-games-drawer .games-grid a {
  background-color: #222;
  color: #FEC107;
  padding: 8px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  text-align: center;
}
