  html, body {
	margin: 0;
	padding: 0;
	background: #fff;
	font-family: sans-serif;
  }

  #controls {
	width: 800px;
	margin: 20px auto;
	padding: 10px;
	background: #eee;
	border: 1px solid #000;
	font-size: 14px;
	display: flex;
	flex-direction: column;
  }

  #controls .top-buttons {
	margin-bottom: 10px;
  }

  #controls button {
	margin-right: 10px;
  }

  #controls label {
	margin-right: 10px;
  }

  #controls #save-form {
	display: none;
	margin-top: 10px;
  }

  #controls #save-form input[type=text] {
	margin-right: 10px;
  }

  #game-container {
	position: relative;
	width: 800px;
	height: 600px;
	margin: 20px auto 8em;
	background: #ccc;
	box-shadow: 0 0 10px rgba(0,0,0,0.5);
	overflow: hidden;
  }

  canvas {
	background: #fff;
	display: block;
  }

  #congrats-banner {
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #000;
	padding: 20px 40px;
	font-size: 24px;
	font-weight: bold;
	border: 2px solid #000;
	box-shadow: 0 0 10px rgba(0,0,0,0.3);
	transition: top 1s ease-in;
	text-align: center;
	z-index: 20;
  }

  #congrats-banner.drop {
	top: 100px;
  }
  
/* General button styles */
  button {
	background: #000; /* Black background */
	color: #fff; /* White text */
	border: 2px solid #fff; /* White border */
	border-radius: 5px; /* Slightly rounded corners */
	font-size: 14px;
	padding: 10px 15px;
	cursor: pointer;
	transition: background 0.3s, color 0.3s, transform 0.2s;
  }
  
  /* Hover effect for buttons */
  button:hover {
	background: #fff; /* White background */
	color: #000; /* Black text */
	transform: scale(1.05); /* Slight zoom effect */
  }
  
  /* Active state for buttons */
  button:active {
	background: #555; /* Dark gray */
	color: #fff;
	transform: scale(0.95); /* Slight press-in effect */
  }
  
  /* Disabled buttons */
  button:disabled {
	background: #444; /* Dark gray background */
	color: #777; /* Light gray text */
	border-color: #555;
	cursor: not-allowed;
  }
  
  /* Toolbar container */
  #build-tools {
	display: flex;
	justify-content: start;
	align-items: center;
	padding: 10px;
	border: 2px solid #000; /* Black border for the toolbar */
	background: #fff; /* White background */
	margin: 10px auto;
	width: fit-content;
	border-radius: 10px;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  }
  
  /* Tool icons */
  .tool {
	width: 50px;
	height: 50px;
	margin-right: 5px;
	cursor: pointer;
	border-radius: 5px; /* Rounded corners */
	transition: transform 0.2s, background 0.3s;
	opacity:0.7;
  }
  
  /* Selected tool styling */
  .tool.selected {
	transform: scale(1.5); /* Slightly larger to indicate selection */
	opacity:1;
  }
  
  /* Tool colors */
  #tool-wall {
	background: #000; /* Black for wall tool */
  }
  
  #tool-start {
	background: green; /* Green for start tool */
  }
  
  #tool-end {
	background: red; /* Red for end tool */
  }
  
  /* Reset button in toolbar */
  #btn-reset-walls {
	margin-left: 20px;
	font-weight: bold;
  }
  
  /* Build and play buttons */
  #controls .top-buttons button {
	margin-right: 10px;
  }
  
  /* Form for saving the maze */
  #save-form {
	margin-top: 15px;
	display: none; /* Hidden by default */
  }
  
  #save-form input {
	padding: 5px 10px;
	font-size: 14px;
	border: 1px solid #000;
	border-radius: 5px;
  }
  
  #save-form button {
	margin-left: 10px;
  }
  
  /* Game container and canvas */
  #game-container {
	position: relative;
	margin: 20px auto;
	border: 2px solid #000; /* Black border */
	box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
  }
  
  canvas {
	display: block;
	background: #fff; /* White background for canvas */
  }
  
  /* Banner styling for "Congratulations" */
  #congrats-banner {
	position: absolute;
	top: -100px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	color: #000;
	padding: 20px 40px;
	font-size: 24px;
	font-weight: bold;
	border: 2px solid #000;
	box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
	border-radius: 10px;
	text-align: center;
	transition: top 1s ease-in;
	z-index: 10;
  }
  
  #congrats-banner.drop {
	top: 50px; /* Drop into view */
  }
  
  /* Touch controls styling */
  #touch-controls button {
	background: #000;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.3s, transform 0.2s;
  }
  
  #touch-controls button:hover {
	background: #fff;
	color: #000;
	transform: scale(1.1); /* Slight zoom effect */
  }
  
  #touch-controls button:active {
	background: #555;
	color: #fff;
  }
  
  
  