/* Standar Reset */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  padding: 20px;
}

/* Title */
.title {
  font-weight: bold;
  font-size: 2rem;
  color: #0f172a;
  margin-bottom: 10px;
}

/* Title Responsive */
@media screen and (max-width: 480px) {
  .title {
    font-size: 1.5rem;
  }
}

/* Formula Container */
.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3rem;
  margin-bottom: 30px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 5px;
}

.formula {
  font-family: "Asana Math";
  font-style: italic;
  display: inline-block;
  background-color: #f2f2f2;
  padding: 15px;
  font-size: 1.3rem;
}

/* Responsive Formula Container */
@media screen and (max-width: 480px) {
  .card-title,
  .formula {
    font-size: 1rem;
  }
}

@media screen and (max-width: 660px) {
  .card-title,
  .formula {
    font-size: 1.2rem;
  }
  .container {
    gap: 1.2rem;
  }
}

/* Input Data Form */
form {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 50px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1.2rem;
}

.form-group textarea {
  outline: none;
  border: 2px solid #9370db;
  border-radius: 5px;
  padding: 0.5rem 0.5rem;
  overflow: hidden;
  min-height: 36px;
  font-family: "Poppins";
}
.form-group textarea::placeholder {
  font-family: "Poppins";
}

button {
  height: 35px;
  width: 110px;
  background-color: #9370db;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  color: white;
  align-self: flex-end;
}

@media screen and (max-width: 540px) {
  form {
    gap: 20px;
  }
}

/* Histogram Visualization */
.graph .labels-title {
  text-anchor: end;
  font-family: "Asana Math";
}

.graph {
  height: 450px;
  width: 720px;
}

.graph .grid {
  stroke: black;
  stroke-dasharray: 0;
  stroke-width: 1;
}

.labels {
  font-size: 13px;
}

.label-title {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 12px;
  fill: black;
}

.data {
  fill: red;
  stroke-width: 1;
}

/* Legend Info Box */
#infoBox {
  position: absolute;
  display: none;
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  padding: 5px;
  transition: opacity 0.3s ease-in-out;
}

/* Stroke Line */
.stroke-line {
  stroke: rgba(0, 0, 0, 0.2);
  stroke-dasharray: 0;
  stroke-width: 1;
}
