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

.container {
  max-width: 1200px;
  margin: auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  color: #333;
}

.content {
  display: flex;
  flex-wrap: nowrap; /* Keep graph and table side-by-side */
  justify-content: space-between;
  align-items: flex-start;
}

.graph-section,
.table-section {
  flex: 1 1 45%;
  margin: 10px;
}

.graph-section {
  position: relative;
}

#graph {
  border: 1px solid #ccc;
  background-color: #fff;
}

button#newProblem {
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  width: 100%;
  font-size: 16px;
}

.table-section {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #ccc;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

.question-input {
  width: 90%;
  padding: 5px;
  box-sizing: border-box;
}

.check-button,
.show-answer-button {
  padding: 5px 10px;
  margin-top: 5px;
  margin-right: 5px;
  cursor: pointer;
  font-size: 14px;
}

.feedback {
  margin-top: 5px;
  font-weight: bold;
}

.correct {
  color: green;
}

.incorrect {
  color: red;
}

@media (max-width: 1000px) {
  .content {
    flex-direction: column;
  }
  .graph-section,
  .table-section {
    flex: 1 1 100%;
  }
}
