/* assets/css/style.css */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 2em auto;
  padding: 1em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

h1 {
  text-align: center;
  color: #0074D9;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  justify-content: center;
  margin-bottom: 1em;
}

input[type="text"] {
  flex: 1 1 60%;
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

input[type="submit"] {
  padding: 0.5em 1em;
  border: none;
  background: #0074D9;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #005fa3;
}

p.explainer {
  font-size: 0.9em;
  line-height: 1.4;
  text-align: center;
  color: #555;
}

#ad-banner {
  margin: 1em 0;
  text-align: center;
  padding: 1em;
  background: #eef;
  border: 1px dashed #99c;
}

/* Existing image rule */
.plot-container img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* New: make the chart fill more vertical space */
.plot-container {
  width: 100%;
  max-width: 800px;
  height: 55vh;
  margin: auto;
}

.plot-container canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Taller chart on small screens */
@media (max-width: 600px) {
  .plot-container {
    height: 65vh;
  }
}
