/* static/css/montecarlo_pi.css */

.mc-container {
  display: flex;
  height: calc(100vh - 180px); /* Adjust if header height changes */
  width: calc(100vw - 40px); /* full viewport width, minus padding */
  box-sizing: border-box;
  padding: 20px;
  gap: 20px;
}

.mc-left,
.mc-right {
  flex: 1; /* share available space */
  min-width: 0; /* allow child to shrink */
  display: flex;
  flex-direction: column;
}

.mc-left {
  align-items: center;
}

#mcCanvas {
  flex: 1;
  max-width: 100%;
  max-height: 100%;
  border: 1px solid #333;
  background: #fff;
}

.mc-controls {
  margin-top: 10px;
  text-align: center;
}

.mc-controls button {
  margin: 0 5px;
  padding: 6px 12px;
  font-size: 14px;
}

.mc-right {
  flex-direction: row; /* side-by-side plots */
}

.mc-plot {
  flex: 1;
  min-width: 0; /* prevent overflow */
}
