body {
    margin: 0;
    background-color: #000;
    color: white;
    font-family: sans-serif;
    text-align: center;
    overflow: hidden;
}

#board {
    display: block;
    margin: 32px auto;
    background: #000;
    box-shadow: 0 0 15px #fff;
}

#btn-back-game {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 2px solid #ff0;
  color: #ff0;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 5;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
#btn-back-game:hover {
  background-color: #ff0;
  color: #000;
  box-shadow: 0 0 6px rgba(255, 255, 0, 0.8);
}

* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    html, body {
      width: 100%;
      height: 100%;
      background-color: black;
      font-family: 'Courier New', monospace;
      overflow: hidden;
    }
    
    body::before {
      content: "";
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-image:
        linear-gradient(to right,  rgba(0, 0, 200, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 200, 0.05) 1px, transparent 1px);
      background-size: 32px 32px;
      z-index: 0;
      pointer-events: none;
    }
    
    .menu-container {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 360px;
      padding: 20px 30px;
      background-color: rgba(0, 0, 0, 0.80);
      border: 4px solid #00f; 
      box-shadow: 0 0 20px rgba(0, 0, 255, 0.7);
      z-index: 10;
    }
    .menu-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 2px;
  

  background: linear-gradient(
    to right,
    #ff0000, 
    #ff9900,  
    #ffff00,  
    #00ff00, 
    #0000ff, 
    #6600cc,  
    #cc00cc   
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  

  text-shadow:
    0 0 8px currentColor,
    0 0 16px currentColor,
    0 0 24px #ffa500;
  
  /* Animation */
  animation: rainbow-animation 1.3s linear infinite;
}

@keyframes rainbow-animation {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
    .menu-list {
      list-style: none;
    }
    .menu-item {
      margin: 12px 0;
    }
    .menu-item a {
      display: block;
      text-decoration: none;
      color: #ff0;
      font-size: 18px;
      padding: 6px 12px;
      border: 2px solid transparent;
      border-radius: 4px;
      transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    }
    .menu-item a:hover,
    .menu-item a.selected {
      background-color: rgba(255, 255, 0, 0.2);
      color: #fff;
      border-color: #00f;
      box-shadow: 0 0 8px rgba(255, 255, 0, 0.8);
    }
   
    #board {
      display: none;
      background-color: black;
    }
    #btn-back-game {
      display: none;
      position: absolute;
      top: 12px;
      left: 12px;
      background-color: rgba(0, 0, 0, 0.6);
      border: 2px solid #ff0;
      color: #ff0;
      font-size: 14px;
      padding: 6px 10px;
      border-radius: 4px;
      cursor: pointer;
      z-index: 5;
      transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
    }
    #btn-back-game:hover {
      background-color: #ff0;
      color: #000;
      box-shadow: 0 0 6px rgba(255, 255, 0, 0.8);
    }

    #btn-back-dev {
  background-color: black;
  color: yellow;
  border: 2px solid yellow;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}

#btn-back-dev:hover {
  background-color: #222;
  color: white;
  box-shadow: 0 0 8px yellow;
}

.settings-list {
  margin: 16px 0;
  text-align: left;
}
.setting {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 16px;
  color: white;
}
.setting label {
  color: #ff0;
}
.menu-footer {
  text-align: center;
  margin-top: 20px;
}
#btn-back-settings {
  background-color: black;
  color: yellow;
  border: 2px solid yellow;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
}
#btn-back-settings:hover {
  background-color: #222;
  color: white;
  box-shadow: 0 0 8px yellow;
}

body.show-grid::before {
  opacity: 1; 
}

#btn-back-game {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 14px;
  font-size: 18px;
  font-weight: bold;
  color: #ffeb3b;
  background-color: #222;
  border: 2px solid #ffeb3b;
  border-radius: 8px;
  box-shadow: 0 0 10px #ffeb3b;
  cursor: pointer;
  z-index: 1000;
  display: none;
  transition: all 0.2s ease-in-out;
}
#btn-back-game:hover {
  background-color: #444;
  color: #fff;
}



