#puzzle-app-fractions{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
#puzzle-app-fractions *,#puzzle-app-fractions *::before,#puzzle-app-fractions *::after{box-sizing:border-box}
#puzzle-app-fractions .t123-arithmetic-trainer{
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#puzzle-app-fractions .controls{
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

#puzzle-app-fractions .control-group{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

#puzzle-app-fractions .control-group label{
  font-weight: bold;
  font-size: 14px;
}

#puzzle-app-fractions .controls select,
#puzzle-app-fractions .controls input{
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
}

#puzzle-app-fractions .buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#puzzle-app-fractions .controls button{
  padding: 10px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

#puzzle-app-fractions .controls button:hover{
  background-color: #45a049;
}

#puzzle-app-fractions .examples-container{
  margin-top: 20px;
}

#puzzle-app-fractions .example{
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 18px;
  line-height: 1.6;
}

#puzzle-app-fractions .answer{
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f0f8ff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  font-size: 18px;
}

#puzzle-app-fractions .fraction{
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  margin: 0 2px;
}

#puzzle-app-fractions .numerator,
#puzzle-app-fractions .denominator{
  display: block;
  padding: 0 3px;
}

#puzzle-app-fractions .denominator{
  border-top: 1px solid black;
}

#puzzle-app-fractions .mixed-fraction{
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

#puzzle-app-fractions .operation{
  margin: 0 5px;
  font-weight: bold;
}

#puzzle-app-fractions .bracket{
  font-weight: bold;
  margin: 0 2px;
}

#puzzle-app-fractions .latex-output{
  display: none;
  margin-top: 20px;
  padding: 15px;
  background-color: #eee;
  border-radius: 5px;
  white-space: pre-wrap;
  font-family: monospace;
}
