body {
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  text-align: center;
  margin: 0;
  padding: 0;
}

header {
  background: #2196f3;
  color: white;
  padding: 15px;
}

.matrix-container {
  margin: 20px auto;
  width: 80%;
}

#word-matrix {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  justify-items: center;
}

.word-box {
  background: white;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-size: 16px;
  width: 80px;
}

.controls {
  margin: 20px;
}

.controls button {
  margin: 10px;
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: white;
}

/* Diagnostic: make controls clearly on top and highlight on hover */
.controls button { position: relative; z-index: 10010; }
.controls button:hover { outline: 3px solid yellow; transform: translateY(-1px); }

#start, #stop { background: #2196f3; border-radius: 5px; border: none; padding: 10px 20px; cursor: pointer; color: white; font-size: 16px; margin: 5px; min-width: 100px; }
#start:hover, #stop:hover { background: #16528d; }
/* #startRecording { background: #3f51b5; } */
/* audio buttons merged into Start/Stop */
#processFixations { background: #1976d2; }

#calibrate {
    background-color: lightcoral; /* Light red color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#calibrate:hover {
    background-color: red;
}

#stopRecording {
    background-color: rgba(79, 47, 197, 0.316); /* Grey color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#stopRecording:hover {
    background-color: rgb(26, 164, 227);
}

#downloadData {
    background-color: lightgreen; /* Green color */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#downloadData:hover {
    background-color: green;
}

#dot {
      position: absolute;
      width: 15px;
      height: 15px;
      background: red;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 9999;
    }
    .word-box {
      display: inline-block;
      width: 60px;
      height: 40px;
      margin: 5px;
      text-align: center;
      line-height: 40px;
      border: 1px solid #ccc;
      border-radius: 5px;
      user-select: none;
      cursor: default;
      font-size: 14px;
    }
