body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(to right, #e0eafc, #cfdef3);
  display: flex;
  justify-content: center;
  height: 100vh;
  margin: 0;
}

#gameArea {
  background-color: #ffffff;
  padding: 30px 25px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 420px;
  transition: transform 0.3s ease;
}

#gameArea:hover {
  transform: translateY(-5px);
}

#targetNumber {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.target-number {
  font-size: 32px; /* Adjust as needed */
  font-weight: bold;
}

#appleArea {
  width: 320px;
  height: 240px;
  background: #fafafa;
  border: 2px dashed #bbb;
  border-radius: 12px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  align-items: start;
  padding: 12px;
  position: relative;
  overflow-y: auto;
}

.apple {
  width: 50px;
  height: 50px;
  font-size: 36px;
  text-align: center;
  animation: bounce 0.4s ease;
  margin: 5px;
}

#overlayCount {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 100px;
  font-weight: bold;
  color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

#messageArea {
  font-size: 24px;
  font-weight: 600;
  color: #28a745;
  margin-top: 25px;
}

#buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
  flex-wrap: wrap;
}

button {
  padding: 10px 24px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
}

#addBtn {
  background-color: #28a745;
}

#removeBtn {
  background-color: #dc3545;
}


#checkBtn {
  background-color: #007bff;
  padding: 14px 48px;     /* Increased padding */
  font-size: 25px;        /* Larger text */
  border-radius: 10px;    /* Optional: more rounded corners */
}

@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

#feedbackOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#feedbackFrame {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  background: white;
}

  /* Rich Back to Home Button */
.back-button {
    display: inline-block;
    margin-top: 90px;
    margin-bottom: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.back-button:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.controls {
  margin-top: 20px;
}
