
.container {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.event-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  min-height: 300px;
}

/* Timeline cues now spaced out as before, with centered text in each cue */
.timeline-cues {
  display: flex;
  justify-content: space-between;
  background-color: #e9ecef;
  padding: 10px;
  margin-top: 10px;
  font-weight: bold;
}

.timeline-cues > div {
  flex: 1;
  text-align: center;
}

.event {
  width: 20%;
  padding: 10px;
  cursor: grab;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: solid 1px #dee2e6;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event img {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}

.event.dragging,
.drag-ghost {
  opacity: 0.6;
  transform: scale(1.03);
}

.event-text {
  padding: 5px;
  text-align: left;
}

h2.text-muted {
  margin: 0;
  font-size: 16px;
  color: #aaa;
  flex-shrink: 0;
}

.event-year {
  position: absolute;
  top: -5px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 20px;
}

#result {
  margin-top: 10px;
  font-weight: bold;
}

.correct-order {
  background-color: green;
  color: white;
}

#clearScore {
  font-size: 14px !important;
  font-family: Arial, sans-serif;
}

@media (max-width: 767px) {
  .header {
    padding: 0 10px 0 10px;
  }

  .event-list {
    flex-direction: column;
    overflow-x: hidden;
    gap: 5px;
  }

  .event {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    /* margin-bottom: 3px; */
  }

  .event img {
    width: 30%;
    margin-right: 10px;
  }

  .event-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5px;
    font-size: small;
  }

  .timeline-cues {
    display: none;
  }
}
