* {
  box-sizing: border-box;
}

body {
  margin: 7vh auto 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgba(73, 54, 75, 0.897);
  background-color: rgb(250, 244, 249);
}

h1,
h3 {
  margin: 0;
  color: rgb(131, 37, 131);
}

p.introduction {
  text-align: center;
  max-width: 60vw;
}

/*list -------------------------------------*/
.sortable-list {
  list-style: none;
  border: solid 1px rgba(112, 11, 112, 0.432);
  padding: 0;
}

li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 50px;
}

li:not(:last-of-type) {
  border-bottom: solid 1px rgba(112, 11, 112, 0.432);
  height: 51px;
}

.number {
  background-color: rgb(131, 37, 131);
  color: white;
  height: 50px;
  width: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.draggable {
  padding: 0 15px;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}
.draggable:hover {
  background-color: rgba(161, 127, 155, 0.034);
}
.draggable:hover i,
.draggable:hover .state-name {
  color: rgb(0, 0, 0);
}

.draggable .state-name {
  margin-right: 20px;
}

.draggable i {
  color: rgb(131, 37, 131);
}

/*change the box bg-color when user drags over it*/
li.over .draggable {
  background-color: rgba(209, 133, 195, 0.514);
}

/*change the name color based on order status*/
li.correct .state-name {
  color: rgb(4, 158, 4);
}
li.wrong .state-name {
  color: rgb(216, 21, 69);
}

/*button -------------------------------------*/
.btn {
  border: solid 2px rgb(131, 37, 131);
  width: 100%;
  background-color: white;
  height: 50px;
  font-size: 23px;
  color: rgb(131, 37, 131);
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background-color: rgb(131, 37, 131);
  color: white;
  transition: 0.3s;
}

.btn:focus {
  outline: none;
}

.btn:active {
  transform: scale(0.93);
}

/*message -------------------------------------*/
#message-container {
  display: none;
  position: fixed;
  top: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(78, 40, 80, 0.233);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

#message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 150px;
  padding: 20px;
  text-align: center;
  background-color: #f9cd23;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 12px -4px;
}
small {
  margin-top: 15px;
}
