/* ---------------------------
   GENERAL PAGE LAYOUT
---------------------------- */

body {
  font-family: Arial, sans-serif;
  margin: 20px;
}

#children-area {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}


/* ---------------------------
   CHILD BOXES
---------------------------- */

.child-box {
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  margin: 8px;
  width: 95px;
  text-align: center;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  cursor: grab;
}

.child-box:hover {
  transform: scale(1.05);
}

.child-avatar {
  width: 50px;
  height: 50px;
  background: #ddd url('default-avatar.png') center/cover no-repeat;
  border-radius: 50%;
  margin: 0 auto 6px auto;
}

.child-name {
  font-weight: bold;
  font-size: 0.9em;
}

.child-weight {
  margin-top: 6px;
  font-size: 0.85em;
  font-weight: bold;
  color: #444;
}

.child-guess-row {
  margin-top: 4px;
  text-align: center;
}

.child-box .guess-input {
  width: 45px;
  font-size: 0.9em;
}

.child-box .guess-feedback {
  margin-left: 6px;
  font-weight: bold;
}


/* ---------------------------
   SEESAW CONTAINER
---------------------------- */

#seesaw-container {
  position: relative;
  margin-top: 20px;
  height: 200px;
}

#seesaw {
  position: relative;
  width: 500px;
  height: 200px;
  margin: 0 auto;
  z-index: 1;
}


/* ---------------------------
   SEESAW PLANK
---------------------------- */

#seesaw-bar {
  width: 400px;
  height: 20px;
  background: linear-gradient(90deg, #c89b53, #d8b16a, #c89b53);
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: 50% 50%;
  transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}


/* ---------------------------
   SEESAW SEATS
---------------------------- */

.side {
  position: absolute;
  top: 20px;
  width: 120px;
  height: 28px;
  background: #eee;
  border-radius: 6px;
  box-shadow: 0 2px 3px rgba(0,0,0,0.2);
  padding-top: 2px;
}

#left-side { left: 50px; }
#right-side { right: 50px; }

.side-label {
  position: absolute;
  top: -18px;
  width: 100%;
  text-align: center;
  font-weight: bold;
  font-size: 0.8em;
}

.drop-zone {
  position: absolute;
  top: 4px;
  left: 5px;
  right: 5px;
  height: 20px;
  border: 1px dashed #999;
  border-radius: 4px;
  font-size: 0.75em;
  color: #666;
  line-height: 20px;
}

.side-children {
  position: absolute;
  top: 4px;
  left: 5px;
  right: 5px;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 0.8em;
  font-weight: bold;
}


/* ---------------------------
   PIVOT
---------------------------- */

#pivot {
  width: 0;
  height: 0;
  border-left: 35px solid transparent;
  border-right: 35px solid transparent;
  border-top: 60px solid #555;
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.3));
}



/* ---------------------------
   REPORT + STATUS BOXES
---------------------------- */

#controls {
  text-align: center;
  margin-bottom: 15px;
}

#report-box {
  border: 1px solid #ccc;
  padding: 10px;
  height: 120px;
  overflow-y: auto;
  background: #fafafa;
  margin-bottom: 10px;
}

#status-box {
  font-weight: bold;
  color: green;
  text-align: center;
  margin-top: 10px;
}
.final-button {
  display: block;
  width: 200px;
  margin: 10px auto;
  padding: 10px;
  font-size: 1.1em;
  border-radius: 8px;
  cursor: pointer;
}
#children-area {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;   /* optional but makes spacing nicer */
}
