body { font-family: system-ui, Arial; margin:0; background:#f8f1e3; color:#333; }
#app { max-width: 1200px; margin: 40px auto; padding: 20px; }

.header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding: 0 10px; }
.card { background:white; border-radius:15px; padding:20px; margin:10px; box-shadow:0 4px 10px rgba(0,0,0,0.1); }
.flex { display:flex; gap:20px; flex-wrap:wrap; }
.left { width:45%; background:#fff7e6; border-radius:20px; padding:25px; text-align:center; }
.right { width:55%; background:white; border-radius:20px; padding:25px; }
.jar { width:220px; height:300px; background:linear-gradient(#f5e8c7, #f5e8c7); border:15px solid #d4a017; border-radius:25px 25px 90px 90px; margin:20px auto; position:relative; overflow:hidden; }
.honey { position:absolute; bottom:0; left:0; right:0; background:#f2c94c; transition:height 0.8s ease; }

h1 { color:#d4a017; }
button { background:#d4a017; color:white; border:none; padding:12px 24px; border-radius:50px; font-size:16px; cursor:pointer; }
button:hover { background:#c08f00; }
.logout-btn { background:#666; padding:8px 16px; font-size:14px; }

input { font-size:32px; width:100%; padding:15px; text-align:center; border:5px solid #d4a017; border-radius:12px; }
.message { font-size:28px; margin:20px 0; min-height:50px; }

table { width:100%; border-collapse:collapse; margin-top:10px; }
th, td { padding:10px; text-align:left; border-bottom:1px solid #ddd; }

.flex {
  display: flex !important;
  gap: 25px;
  align-items: stretch;           /* Makes both sides same height */
  flex-wrap: wrap;
}

.left, .right {
  flex: 1;
  min-width: 320px;
  border-radius: 20px;
  padding: 25px;
}

.left {
  background: #fff7e6;
  text-align: center;
}

.right {
  background: white;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .flex {
    flex-wrap: nowrap;
  }
}
.right input {
  width: 100%;
  box-sizing: border-box;
  border: 5px solid #d4a017;
  border-radius: 12px;
}

.right {
  display: flex;
  flex-direction: column;
}

.jar-container {
  position: relative;
  width: 260px;
  height: 300px;
  margin: 25px auto;
}

.jar-container img {
  filter: drop-shadow(0 15px 20px rgba(0,0,0,0.25));
  transition: transform 0.3s ease;
}

/* Make jar slightly bounce when honey increases */
#honeyLevel {
  transition: height 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Optional: Make jar "happy" when full */
.jar-container.filled img {
  transform: scale(1.05);
}

/* iPad & Tablet Optimization */
.flex {
  display: flex;
  gap: 30px;
  align-items: stretch;
}

.left, .right {
  flex: 1;
  min-width: 340px;
}

.jar-container {
  width: 260px;
  height: 300px;
  margin: 20px auto;
}

.right input {
  font-size: 32px;
  padding: 16px;
}

@media (max-width: 1024px) {
  .flex {
    flex-direction: column;
  }
  
  .left, .right {
    min-width: 100%;
  }
  
  #question {
    font-size: 34px;
  }
}

.number-pad button {
  font-size: 26px;
  padding: 18px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: transform 0.1s;
}

.number-pad button:active {
  transform: scale(0.95);
}

/* Prevent keyboard popup */
#answerInput {
  pointer-events: none;   /* Disable keyboard */
}