/* General Styling */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Breadcrumb styling */
  .breadcrumb {
    font-size: 14px;
    padding: 15px 40px;
    background-color: #BDBDBD;
    color: blue;
    text-align: left;
    margin-top: 70px; /* Adjust based on your header height */
    z-index: 1;
  }
  
  .breadcrumb a {
    color: black;
    text-decoration: none;
    font-weight: 500;
  }
  
  .breadcrumb a:hover {
    text-decoration: underline;
  }

/* Minesweeper Wrapper Styling (Classic look) */
.minesweeper-wrapper {
    background-color: #BDBDBD; /* Classic Minesweeper gray */
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
}

.minesweeper-wrapper h1 {
    margin-top: 20px;
    color: black;
    font-weight: bold;
    font-size: 28px;
}

/* Game Container */
#game {
    display: grid;
    grid-template-columns: repeat(10, 36px);
    grid-template-rows: repeat(10, 36px);
    gap: 1px;
    justify-content: center;
    margin-top: 20px;
    background-color: #A9A9A9;
    border: 4px solid #808080;
    padding: 5px;
    box-shadow: inset 2px 2px white, inset -2px -2px #404040;
}

/* Game Cells */
.cell {
    width: 36px;
    height: 36px;
    background-color: #C0C0C0;
    border: 2px solid #808080;
    box-shadow: inset 1px 1px white, inset -1px -1px #404040;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Revealed Cells */
.cell.revealed {
    background-color: #E0E0E0;
    cursor: default;
}

/* Empty Revealed Cells */
.cell.revealed.zero {
    background-color: #D0D0D0;
}

/* Flagged Cells */
.cell.flagged {
    background-color: #FFA500;
    cursor: default;
}

/* Button Styling (Classic look) */
.minesweeper-wrapper button {
    background-color: #C0C0C0;
    border: 2px outset #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    padding: 5px 10px;
    cursor: pointer;
}

.minesweeper-wrapper button:active {
    border: 2px inset #ffffff;
}

/* Status Message */
#status {
    font-size: 16px;
    font-weight: bold;
    color: red;
    margin-top: 10px;
}

/* Instructions (Perfectly Centered Below Game) */
#instructions {
    margin-top: 20px;
    text-align: center;
    max-width: 500px; /* Restrict width for better readability */
    margin-left: auto;
    margin-right: auto;
}

#instructions h2 {
    margin-bottom: 10px;
    font-size: 18px;
}

#instructions ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#instructions li {
    margin: 5px 0;
    font-size: 14px;
}

/* Footer (Always at Bottom) */
footer {
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center; /* Aligns items vertically */
    background: #C0C0C0;
    color: black;
    font-size: 16px;
    padding: 10px;
    white-space: nowrap; /* Prevents text from wrapping */
    margin-top: 20px; /* Space above footer */    
}



.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;
}
