@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
:root {
  --border-color: #1a1a1a;
  --background-color: #c3c7ca;
  --text-color: #eee;
}

html {
  scroll-behavior: smooth;
}

.sortingQuiz {
  box-sizing: border-box;
  background: -webkit-radial-gradient(center, #333333, #000000);
  background: -moz-radial-gradient(center, #333333, #000000);
  background: radial-gradient(ellipse at center, #333333, #000000);
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 30px 0 0;
  font-family: 'Montserrat', sans-serif;
  padding: 50px 50px 100px;
}

.sortingQuiz h2,
.sortingQuiz p {
  color: var(--text-color);
  text-align: center;
  margin-bottom: 0;
}

.sortingQuiz h2 {
  margin-bottom: 20px;
  font-weight: 700;
}

.sortingQuiz p span {
  font-style: italic;
  color: #aaa;
}

.draggable-list {
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 0;
  list-style-type: none;
}

.draggable-list li {
  background-color: #fff;
  display: flex;
  flex: 1;
  position: relative;
}

.draggable-list li:not(:last-of-type) {
  border-bottom: 1px solid var(--border-color);
}

.draggable-list .number {
  background-color: #060606;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  min-height: 100%;
  width: 60px;
  border-right: 1px solid var(--border-color);
}

.draggable-list .filmName {
  margin: 0 20vw 0 0;
  font-weight: 700;
}

.draggable-list li.right .filmName {
  color: #3ae374;
}

.draggable-list li.wrong .filmName {
  color: #ff3838;
}

.draggable-list li.over .draggable {
  background-color: #eaeaea;
}

.draggable-list li p.worldwideGross {
  position: absolute;
  bottom: 28px;
  left: 35px;
  display: none;
  font-size: 0.9rem;
}
.draggable-list li.right p.worldwideGross {
  display: inline-block;
  color: #3ae374;
}

.draggable-list li p,
.draggable-list li i {
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.draggable {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 55px 35px;
  flex: 1;
  background-size: cover;
  background-position: 50% 20%;
  position: relative;
}

.draggable:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 6, 6, 1) 00%,
    rgba(6, 6, 6, 0.05) 100%
  );
}

.sortingQuiz .check-btn {
  margin-top: 40px;
  margin-bottom: 40px;
  cursor: pointer;
  background-color: #333;
  padding: 13px 30px;
  transition: background-color 0.1s ease-in-out;
}

.sortingQuiz .check-btn:hover {
  background-color: #444;
  color: var(--text-color);
}

.winner li {
  animation-name: winner;
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.42, 0, 0.58, 1.27);
}
.winner li:nth-child(2) {
  animation-delay: 0.1s;
}
.winner li:nth-child(3) {
  animation-delay: 0.2s;
}
.winner li:nth-child(4) {
  animation-delay: 0.3s;
}
.winner li:nth-child(5) {
  animation-delay: 0.4s;
}
.winner li:nth-child(6) {
  animation-delay: 0.5s;
}
.winner li:nth-child(7) {
  animation-delay: 0.6s;
}
.winner li:nth-child(8) {
  animation-delay: 0.7s;
}
.winner li:nth-child(9) {
  animation-delay: 0.8s;
}
.winner li:nth-child(10) {
  animation-delay: 0.9s;
}

@keyframes winner {
  0% {
    left: 0;
  }
  50% {
    left: 30px;
  }
  100% {
    left: 0;
  }
}
