/* File: rational_expression_simplifier_calculator.css */

/* Input and button styles */
.main-input-box {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}

.solve-button {
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  background-color: #3498db;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 20px;
}
.solve-button:hover {
  background-color: #2980b9;
}

/* Answer/result box styling */
.answer-box,
#result {
  background-color: #f0f0f0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}

/* Fraction table styling */
.fraction-table {
  display: table;
  margin: 0.5em 0;
  border-collapse: collapse;
  width: auto;
}
.fraction-table td {
  text-align: center;
  padding: 4px;
  font-size: 1rem;
}
.fraction-numerator {
  border-bottom: 2px solid black;
}
.fraction-divider {
  height: 0;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  padding: 0;
}

/* Steps layout */
.steps-container {
  margin-top: 20px;
}
.step {
  margin-top: 20px;
}

/* Step explanation styling */
.step-explanation {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

/* Step answer styling */
.step-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  width: 100%;
}

/* Ensure fraction tables inside steps appear on their own line */
.step-answer .fraction-table {
  margin-top: 10px;
  margin-bottom: 0;
}