body {
  margin: 0;
  font-family: "Merriweather", serif;;
  background: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#app {
  width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 20px;
  position: relative;
}

/* Container for the progress bar */
  #progress-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background-color: #333;
  }

  /* Actual progress bar */
  #progress-bar {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    transition: width 0.2s ease; /* smooth animation */
  }
  
/* General buttons */
button {
  padding: 10px 20px;
  font-family: "Merriweather", serif;
  margin: 8px;
  border: none;
  border-radius: 8px;
  background: #0d5b93;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #207aba;
}

.title{
    text-align: center;
}

.subtitle{
    text-align: center;
}

#start-btn{
    display: block;
  margin-left: auto;
  margin-right: 0;
}

#restart{
    display: block;
  margin-left: auto;
  margin-right: 0;
}
/* Multiple Choice styles */
.choice {
  display: block;
  margin: 10px 0;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ddd;
  cursor: pointer;
  transition: all 0.2s;
}
.choice:hover { background: #eee; }
.choice.correct { background: #a4e6a4; border-color: #2a9d2a; }
.choice.wrong { background: #f8a4a4; border-color: #c22; }


/* SlotLevel styles */
/* Slot looks different when filled, label hides */
.slot {
  border: 2px dotted #999;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  text-align: center;
  transition: background 0.2s, border 0.2s, box-shadow 0.2s;
  user-select: none;
}

.slot-label { color: #666; pointer-events: none; }
.slot-filled {
  background: #eef;
  border: 2px solid #446;
  box-shadow: inset 0 0 0 2px rgba(68,68,102,0.15);
}

.option {
  border: 2px solid #333;
  border-radius: 12px;
  background: #ddd;
  margin: 6px;
  font-size: small;
  text-align: center;
  cursor: grab;
  transition: transform 0.12s ease, opacity 0.12s ease;
  user-select: none;
}

.in-slot {

  margin: 0px;
  
}

.option.correct {

  transition: background 1s ease;
  background: #a4e6a4; border-color: #2a9d2a;
}

.option.dragging { opacity: 0.6; transform: scale(1.04); }

@keyframes snapAnim {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
.option.snap { animation: snapAnim 0.18s ease-out; }

/*popup*/
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 80%;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

#popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
