body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background-color: #fef9f2;
}

h1 {
  margin-bottom: 10px;
}

#block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 60px 20px 160px;
  gap: 10px;
  max-width: 800px;
  margin: auto;
  background-color: #ffe7c7;
  padding: 10px;
  border-radius: 10px;
  border: 2px solid #333;
}

.entry {
  grid-row: 1;
  background-color: #d3d3d3;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: flex;
  flex-direction: column;
  font-weight: bold;
}

.exit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  height: 160px;
  overflow: hidden;
  padding: 4px;
  background-color: #ececec;
  border: 1px solid #999;
  border-radius: 8px;
  box-sizing: border-box;
}



.queue {
  display: flex;
  flex-direction: column;       /* ✅ normal direction */
  align-items: stretch;
  justify-content: flex-end;    /* ✅ pushes queue to bottom of .exit */
  height: 100%;
  width: 100%;
  gap: 4px;
  overflow-y: hidden;
}




.good {
  width: 100%;
  padding: 5px 10px;
  background-color: #3498db;
  color: white;
  border-radius: 10px;
  font-size: 0.8em;
  box-sizing: border-box;
  text-align: center;
}


.good.accepted {
  background-color: #2ecc71;
}

.good.rejected {
  background-color: #e74c3c;
  opacity: 0.6;
}

.good.selected {
  border: 2px solid #0000ff;
}

.good.leaving {
  animation: fadeOutUp 0.8s forwards;
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-40px);
  }
}

#controls {
  margin-top: 10px;
}

button {
  padding: 8px 16px;
  margin: 0 5px;
  font-size: 1em;
  cursor: pointer;
}

#scoreBanner {
  font-size: 1.5em;
  margin-bottom: 10px;
}
