/* Entire page background for a fun, unified kid-friendly look */
body {
  font-family: 'Comic Sans MS', cursive, sans-serif;
  background: #fff3e0; /* same as emoji-note */
  text-align: center;
  margin: 0;
  padding: 0;
}

/* Fun yellow-orange header */
header {
  background: #edcb0c;
  color: #b51515;
  padding: 20px;
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Unified layout for simulation & graph */
.main-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: 20px;
  flex-wrap: wrap;
  width: 100%;
}

/* Graph image */
.graph-image img {
  width: 600px;
  height: 450px;
  max-width: 90vw;
  border: 2px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

/* Road + box */
.road {
  width: 600px;
  height: 450px;
  background: url('./image/background.png');
  background-size: cover;
  background-position: center;
  border: 2px solid #999;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.box {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100px;
  transition: left 2s ease-in-out;
}

.force {
  position: absolute;
  bottom: 65px;
  left: 0;
  width: 80px;
  display: none;
  transition: left 2s ease-in-out;
}

/* Slider panel */
.control {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #d9f48e;
  border-radius: 10px;
  border: 2px solid #a6c756;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  min-width: 140px;
  height: 450px;
  padding: 10px;
  /* margin-top: 30px; */
}


/* Slider */
.vertical-slider {
  writing-mode: bt-lr;
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  width: 25px;
  height: 360px;
  background: #607d8b;
  border-radius: 5px;
  cursor: crosshair;
}

/* Button styling */
button {
  padding: 8px 16px;
  font-size: 1rem;
  background: #3e4e5e;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background: #2c3e50;
}

/* Explanation Box */
.emoji-note {
  font-size: 1.5rem;
  line-height: 2;
  background: #fff3e0;
  border: 3px solid #ffa726;
  padding: 16px;
  border-radius: 12px;
  margin: 20px auto;

}
