#gameCanvas {
  width: 500px;
  height: 500px;
  border: 2px solid black;
  display: block;
  margin: 10px auto;
}

/* Hover effects for the buttons */
.btn:hover {
  opacity: 0.9;
}

.score-board {
  font-size: 1.0rem;
  /* Adjust to your liking */
}

.current-score,
.max-score,
.camera-status {
  padding: 0 px;
}

.camera-status {
  font-weight: bold;
}

#cameraVideo {
  display: none;
}

#toggleCameraBtn {
  margin-bottom: 10px;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  padding: 10px;
  text-align: center;
  /* Disables text selection */
  -webkit-user-select: none;
  /* Safari */
  -ms-user-select: none;
  /* IE 10 and IE 11 */
  user-select: none;
  /* Standard syntax */
}

#instructions-container {
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 7px auto;

  ;
}

h1 {
  color: #333;
}

p {
  color: #666;
  line-height: 1.6;
}

.overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  /* Semi-transparent black background */
  z-index: 1000;
  /* High z-index ensures it's on top */
}

.overlay-content {
  position: relative;
  width: 80%;
  max-width: 600px;
  /* or whatever you prefer */
  margin: 10% auto;
  /* centers the content vertically */
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0px 0px 10px #000;
  /* Optional shadow for better visibility */
  text-align: center;
}


.ranking {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #0099cc;
  /* Change color as needed */
  padding: 10px;
  background-color: #f7f7f7;
  /* Light gray background */
  border-radius: 8px;
  /* Rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* Box shadow for depth */
  list-style: none;
  /* In case you use <li> tags */
  margin: 0;
  /* Reset default margins */
}

.ranking p {
  padding: 10px 5px;
  border-bottom: 1px solid #ccc;
  /* Light border between scores */
  margin: 0;
  /* Reset default margins */
}

.ranking p.highlight {
  background-color: #0099cc;
  /* Change color as needed */
  color: white;
  /* Text color */
  font-weight: bold;
}


.ranking::-webkit-scrollbar {
  width: 8px;
}

.ranking::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.ranking::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}