body {
  height: 100%;
  overflow: hidden; /* Prevent scrolling */
    display: table-cell;
    vertical-align: middle;
    margin: 0;
    background-color: #f5f3db;
    color: #333;
    font-family: 'Times New Roman', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

#mistake-text {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 20px;
  margin-left: -2%;
  margin-top: -3%;
}

#mistake-num {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 48px;
  font-weight: bold;
  margin-left: 25px;
  color: rgb(196, 20, 20);
  background-color: #ffffff;
  border-radius: 5px;
}


#timer {
  font-family: "Courier New", monospace;
  font-size: 48px;
  font-weight: bold;
  color: red;
  margin-left: 20%;
  padding: 10px;
  background-color: #333;
  text-align: center;
  border-radius: 10%;
}

.container {
    /* max-width: 600px; padding: 20px;*/
    max-width: 100%;
    padding: 3%;
  }
  

h1 {
    font-size: 32px;
    text-align: center;
    left: 4%;
  }

h3 {
    font-size: 18px;
    text-align: center;
    /* margin-bottom: 3%; */
}


table { 
    border-collapse: collapse; 
    font-family: Calibri, sans-serif; 
    margin: 3%;
}

colgroup, tbody { 
    border: solid medium; 
}

td {
    border: solid thin;
    height: 3em;
    width: 3em; 
    padding: 0;
}

input {
    /* font-size: 140%;
    font-weight: bolder;
    text-align: center;
    height: 4em;
    width: 4em; */
    color: #000000;
    padding: 0;
    border: 0;
    text-align: center;
    width: 48px;
    height: 48px;
    font-size: 50px;
    background-color: #FFFFFF;
    outline: none;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#solve-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    left: 0%;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.button-container {
  display: flex; 
  
}


/* CSS */
.button-56 {
  margin: 0% auto;
  left: 8%;
  align-items: center;
  background-color: #fee6e3;
  border: 2px solid #111;
  border-radius: 8px;
  box-sizing: border-box;
  color: #111;
  cursor: pointer;
  display: flex; 
  display: inline-block;
  margin-right: 2%;
  font-family: Inter,sans-serif;
  font-size: 16px;
  height: 48px;
  justify-content: center;
  line-height: 24px;
  max-width: 100%;
  padding: 0 4%;
  position: relative;
  text-align: center;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-56:after {
  background-color: #111;
  border-radius: 8px;
  content: "";
  display: block;
  height: 48px;
  left: 0;
  width: 100%;
  position: absolute;
  top: -2px;
  transform: translate(8px, 8px);
  transition: transform .2s ease-out;
  z-index: -1;
}

.button-56:hover:after {
  transform: translate(0, 0);
}

.button-56:active {
  background-color: #ffdeda;
  outline: 0;
}

.button-56:hover {
  outline: 0;
}

@media (min-width: 768px) {
  .button-56 {
    padding: 0 23px;
  }
}



.dimmed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Adjust opacity as desired */
  z-index: 999;
}

#leaderBoardButton {
  margin-top: 50px;
  position: relative;
  height: 40px;
  width: 140px;
  font-size: 20px;
  top: 170px;
  left: 350px;
  padding: 0%;
}

#leaderBoard{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #f8f6f600;
}

.leaderboard-td {
  background-color: #e0e0e0;
  border: solid thin;
  height: 1em;
  width: 3.5em; 
  padding: 0;
}
#leaderBoard{
  transform: translate(-50%, -50%);
  border-collapse: collapse; 
  font-family: Calibri, sans-serif; 
}

#lb-p {
  font-family: arcadeFont2;
  color: #f9f6f6;
  text-shadow: 0px -2px 4px #fff, 0px -2px 10px #FF3, 0px -10px 20px         #F90, 0px -20px 40px #C33;
  font-size: 30px;
  margin: 0;
  padding: 4px;

}

@font-face {
  font-family: arcadeFont2;
  src: url(./Barcade3D-YZBj.otf);
}

/* Add this CSS to align the number buttons to the right */
#number-panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 10px; /* Adjust margin as needed */
  margin-left: -50px;
}

.number-button {
  padding: 10px 20px;
  margin: 3px;
  font-size: 22px;
  font-weight: bolder;
  background-color: #dccb74;
  color: #110e0e;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.number-button:hover {
  background-color: #ada663;
}
