body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f0f0f0;
}

h1 {
  text-align: center;
  margin: 5vh;
}

#studentList {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.student-card {
  position: relative;
  background-color: #ffffff;
  border: 2px solid;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
@keyframes improved-jiggle {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-5px) rotate(-2deg);
  }
  75% {
    transform: translateX(5px) rotate(2deg);
  }
}
.jiggling {
  animation: improved-jiggle 0.3s ease-in-out infinite;
  animation-fill-mode: backwards; /* Maintain final state after animation */
}

#pickedStudentCard,
.moving-card {
  background-color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin: 20px 0;
  padding: 20px;
  border: 2px solid;
  border-radius: 10px;
  text-align: center;
  min-width: 200px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pickedStudentCard {
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.moving-card {
  transition: all 0.5s ease;
  position: absolute;
  box-shadow: 0 0 15px #4caf50;
}

#pickButton {
  font-size: 1.2rem;
  padding: 10px 20px;
  cursor: pointer;
  background-color: #3d36eb;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  position: relative; 
  text-align: left; 
}

#pickButton:hover {
  background-color: #2722b9;
}

#pickButton:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.select-text {
  margin-left: 5px;
}

.crooked-text {
  display: block;
  transform: rotate(7deg);
  position: relative;
  top: 2px;
  left: -8px;
  font-size: 1.6rem;
  font-family: cursive;
}

.remove-button {
  position: absolute;
  background-color: #625fb7;
  top: -10px;
  right: -10px;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: none;
}

.crossed-out {
  text-decoration: line-through;
  opacity: 0.7;
}