#sortinggame {
  overflow: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  background-color: #13293E;
  background-image: url(./sorting-background.jpg);
  background-size: 100% auto;
  background-repeat: repeat-y;
  width: 100%;
  min-height: 600px;
  border-radius: 20px;
}

#sortinggame .left {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 50px 0px 50px 100px;
  list-style: none;
  width: 60%;
}

#sortinggame .left:before {
  width: 50px;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 30px;
  background-color: #683C10;
  display: block;
  content: "";
}

#sortinggame .left .sg-book {
  max-width: 610px;
  width: 100%;
  text-align: center;
  font-family: "peachy-keen-jf","futura-pt", "Arial Black", "Impact", "Roboto", sans-serif;
  color: white;
  font-size: 30px;
  margin-bottom: 10px;
  height: var(--book-height);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  background-color: var(--book-bg);
  white-space: nowrap;
  border-radius: 10px;
  -moz-user-select: none;
  user-select: none;
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-blend-mode: multiply;
}

#sortinggame .left .sg-book:hover {
  color: white;
}

#sortinggame .left .sg-book[data-book="1. Mose"] {
  background-image: url(./bookcovers/stripes-1-mose.png);
}

#sortinggame .left .sg-book[data-book="2. Mose"] {
  background-image: url(./bookcovers/stripes-2-mose.png);
}

#sortinggame .left .sg-book[data-book="3. Mose"] {
  background-image: url(./bookcovers/stripes-3-mose.png);
}

#sortinggame .left .sg-book[data-book="4. Mose"] {
  background-image: url(./bookcovers/stripes-4-mose.png);
}

#sortinggame .left .sg-book[data-book="5. Mose"] {
  background-image: url(./bookcovers/stripes-5-mose.png);
}

#sortinggame .left .sg-book[data-book="Josua"] {
  background-image: url(./bookcovers/stripes-josua.png);
}

#sortinggame .left .sg-book[data-book="Richter"] {
  background-image: url(./bookcovers/stripes-richter.png);
}

#sortinggame .left .sg-book[data-book="Ruth"] {
  background-image: url(./bookcovers/stripes-ruth.png);
}

#sortinggame .left .sg-book[data-book="1. Samuel"] {
  background-image: url(./bookcovers/stripes-1-samuel.png);
}

#sortinggame .left .sg-book[data-book="2. Samuel"] {
  background-image: url(./bookcovers/stripes-2-samuel.png);
}

#sortinggame .right {
  width: 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 50px;
  padding-right: clamp(60px, 7.292vw, 180px);
}

.sg-button {
  background: #d4782c;
  background: linear-gradient(180deg, #d4782c 0%, #cd6132 100%);
  display: inline-blog;
  font-family: "peachy-keen-jf","futura-pt", "Arial Black", "Impact", "Roboto", sans-serif;
  font-size: 30px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 7px solid #814830;
  color: white;
  padding: 10px 35px;
  line-height: 1;
  text-align: center;
  min-width: 270px;
  position: relative;
  cursor: pointer;
}

.sg-button:hover {
  color: white;
}

.sg-button .sg-button-icon {
  position: absolute;
  left: 0px;
  top: 50%;
  height: 50px;
  transform: translate(-65%, -50%);
}

.sg-button .sg-button-dd {
  position: absolute;
  top: 100%;
  left: 10px;
  height: 70px;
  border: 7px solid #814830;
  background: #d4782c;
  background: linear-gradient(180deg, #d4782c 0%, #cd6132 100%);
  padding: 5px;
  display: flex;
  border-radius: 8px;
}

.sg-button .sg-button-dd a {
  color: white;
  padding: 7px 32px;
}

.sg-button .sg-button-dd a.active {
  background-color: rgba(0, 0, 0, 0.2);
}

.sg-button .sg-button-dd a:not(:last-child) {
  margin-right: 10px;
}

#sg-overlay {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

#sg-overlay #sg-close-overlay {
  position: absolute;
  display: block;
  top: 0px;
  right: 0px;
  transform: translate(40%, -40%);
  transition: all 150ms linear;
  transform-origin: 50%;
}

#sg-overlay #sg-close-overlay img {
  width: 50px;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2));
}

#sg-overlay #sg-close-overlay:hover img {
  filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
}

#sg-overlay #sg-close-overlay:hover {
  transform: translate(40%, -40%) scale(1.1);
}

#sg-overlay .sg-result-inner {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

#sg-overlay .sg-result {
  background: #d4782c;
  background: linear-gradient(180deg, #d4782c 0%, #cd6132 100%);
  border: 7px solid #814830;
  max-width: 450px;
  width: 100%;
  border-radius: 8px;
  margin-top: 120px;
  margin-bottom: 50px;
  padding: 20px 50px;
  text-align: center;
  position: relative;
}

#sg-overlay .sg-result-icon {
  max-width: 160px;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
  color: white;
}

#sg-overlay #sg-result-heading {
  color: white;
}

#sg-overlay #sg-result-text {
  font-family: "peachy-keen-jf","futura-pt", "Arial Black", "Impact", "Roboto", sans-serif;
  font-size: 25px;
  color: white;
}

#sg-overlay #sg-result-buttons {
  display: flex;
  position: relative;
  align-items: flex-end;
  flex-direction: column;
}

@media screen and (max-width: 992px) {
  #sortinggame .left {
    width: 80%;
    padding: 50px 0px 50px 32px;
  }
  #sortinggame .left:before {
    width: 20px;
    left: 10px;
  }
  #sortinggame .left .sg-book {
    max-width: 190px;
    font-size: 15px;
    height: calc(var(--book-height) / 2.5);
    border-radius: 4px;
  }
  #sortinggame .right {
    width: 20%;
    max-width: 20%;
    position: relative;
  }
  #sortinggame .right > * {
    transform: translateX(100%);
    pointer-events: hover;
    transition: transform 200ms linear;
  }
  #sortinggame .right > * > *:not(img) {
    opacity: 0;
  }
  #sortinggame .right > .open {
    transform: translateX(10%);
  }
  #sortinggame .right > .open > *:not(img) {
    opacity: 1;
  }
  #sg-overlay #sg-close-overlay {
    transform: translate(20%, -20%);
  }
  #sg-overlay #sg-close-overlay img {
    width: 40px;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2));
  }
  #sg-overlay #sg-close-overlay:hover {
    transform: translate(20%, -20%) scale(1.1);
  }
  #sg-overlay .sg-result {
    background: #d4782c;
    background: linear-gradient(180deg, #d4782c 0%, #cd6132 100%);
    border: 7px solid #814830;
    max-width: 340px;
    width: 100%;
    border-radius: 6px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 50px;
  }
  #sg-overlay #sg-result-buttons span {
    font-size: 25px;
  }
}

.correct {
	border: 5px solid green;
}
