body {
  font-family: 'Arial', sans-serif;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
}

.menu {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.square {
  width: 25%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  font-weight: 1000;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.square:nth-child(1) {
  background-color: #F2DD77;
}

.square:nth-child(2) {
  background-color: #DD5350;
}

.square:nth-child(3) {
  background-color: #99D69F;
}

.square:nth-child(4) {
  background-color: #9FDAF4;
}

.square:hover {
  opacity: 0.8;
}

h1 {
  text-align: center;
  color: #333;
  margin-top: 20px;
}

.row {
  display: flex;
  margin: 20px;
  flex-wrap: wrap;
}

.col {
  flex: 1;
  margin: 10px;
}

canvas {
  display: block;
  margin: 0 auto;
}

button {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #5D5B5C;
  color: #ccc;
  cursor: not-allowed;
}

input[type="radio"] {
  margin-right: 5px;
}

label{
  margin-right: 30px;
}


input[type="range"] {
  margin: 10px 0;
}

.row .col:nth-child(2) {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #f0f0f0;
}

tr:hover {
  background-color: #f9f9f9;
}

#q-table {
  border: 1px solid #ccc;
  padding: 10px;
  background-color: #fff;
  height: 560px;
  max-height: 560px;
  overflow-y: auto;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

#history {
  display: inline-block;
  height: 600px;
  max-width: 265px;
  max-height: 600px;
  overflow-y: auto;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
}

h4 {
  margin-top: 0;
  color: #5D5B5C;
}

h5 {
  margin-bottom: 5px;
  color: #5D5B5C;
}

#gameGrid .cell {
  /* width: 20px;  */
  height: 75px;
  border: 1px solid #ccc; 
  box-sizing: border-box;
}

@media only screen and (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .col {
    margin: 10px 0;
  }

  canvas {
    width: 100%;
  }

  .square {
    width: 100%;
    margin: 5px 0;
  }
}

input[type="radio"] {
  display: none;
}

.radio-btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 5px;
  color: #4d4d4d;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.radio-btn:nth-child(2) {
  background-color: green;
}

.radio-btn:nth-child(4) {
  background-color: red;
}

.radio-btn:nth-child(6) {
  background-color: lightblue;
}

.radio-btn:nth-child(8) {
  background-color: #ddddd6;
}

input[type="radio"]:checked + .radio-btn {
  opacity: 0.7;
  font-weight: 200;
  border: 2px solid #5D5B5C;
}

footer {
  margin-top: 100px;
  display: flex;
  justify-content: center;
  padding: 5px;
  background-color: #45a1ff;
  color: #fff;
}