/* matrix________________________ */
.matrix-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.matrix-cell {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  background: black;
  border: 2px solid white;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  color: white;
}

.answer-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
}

.answer-cell {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  background: black;
  border: 2px solid white;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.white-square {
  position: absolute;
  width: 30px;
  height: 30px;
  background: white;
}

/* Square positions */
.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.top {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.top-right {
  top: 10px;
  right: 10px;
}

.bottom-right {
  bottom: 10px;
  right: 10px;
}

.bottom-left {
  bottom: 10px;
  left: 10px;
}

.bottom {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.top-left {
  top: 10px;
  left: 10px;
}

.answer-cell:hover {
  border-color: #906bff;
}

.answer-cell.correct {
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.2);
}

.answer-cell.incorrect {
  border-color: #e74c3c;
  background-color: rgba(231, 76, 60, 0.2);
}

.scroll-container {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: 2rem;
  min-height: 100vh;
}

.scroll-text {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
}

.scroll-visual {
  position: sticky;
  top: 20vh;
  height: fit-content;
  padding: 2rem;
}

.section.sudoku,
.section.raven {
  padding: 60px;
}

@media screen and (max-width: 768px) {
  .matrix-grid {
    gap: 0.5rem;
  }

  .answer-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .white-square {
    width: 20px;
    height: 20px;
  }
}

.choice-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.choice-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: black;
  border: 2px solid white;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 6px;
}

.choice-button:hover {
  border-color: #906bff;
  background: #222;
  color: white;
}

.choice-button.selected {
  border-color: #2ecc71;
  background-color: rgba(46, 204, 113, 0.2);
}

.choice-button svg {
  width: 24px;
  height: 24px;
}

.choice-button svg path {
  stroke: white;
  transition: stroke 0.3s ease;
}

.choice-button.selected svg path {
  stroke: #2ecc71;
}
