.picturematch-column {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 0.25rem;
  margin: 1rem;
  position: relative;
  transition: opacity 0.2s;
  width: 100%;
}
#play-again-btn {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  margin-left: -50px;
  font-size: 1rem;
  font-weight: bold;
  color: #fff;
  background-color: #111;
  border: 5px double #fff;
  border-radius: 14px;
  padding: 8px 10px;
  outline: none;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: none;
  opacity: 0;
  transition: opacity 0.5s, transform 0.5s, background-color 0.2s;
}
#play-again-btn:hover {
  background-color: #333;
}
#play-again-btn:active {
  background-color: #555;
}
#play-again-btn.play-again-btn-entrance {
  opacity: 1;
  transform: translateX(6rem);
}
.draggable-items {
  display: flex;
  justify-content: center;
  margin: 0rem 1rem 0rem 1rem;
  transition: opacity 0.5s;
  flex-wrap: wrap;
}
.draggable {
  height: 6rem;
  width: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: bold;
  margin: 1rem 1rem 1.5rem 1rem;
  cursor: move;
  transition: opacity 0.2s;
}
.draggable:hover {
  opacity: 0.5;
}

.draggable img {
  max-width: 100%;
  max-height: 100%;
}

.draggable {
  cursor: move;
}

.dragging {
  opacity: 0.5;
}

.droppable img {
  max-width: 100%;
  max-height: auto;
}
.matching-pairs {
  transition: opacity 0.5s;
  display: flex;
  flex-wrap: wrap; /* Povolí zalamování na další řádek */
  justify-content: center;
  margin: 1rem 1rem 1.5rem 1rem;
}

.matching-pair {
  height: 6rem;
  /* 50% šířky s odsazením 1rem pro mezeru mezi sloupci */
  margin: 1rem;
  display: flex;
  justify-content: space-between;
}

.matching-pair span {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  user-select: none;
}
.label {
  width: 15rem;
  font-size: 2rem;
}
.droppable {
  width: 5.8rem;
  font-size: 1.5rem;
  background-color: rgb(68, 68, 68);
  transition: 0.2s;
  border: 2px solid #26db47;

  color: #26db47;
}
.droppable-hover {
  background-color: rgb(38, 38, 38);
  transform: scale(1.1);
}

.dragged {
  user-select: none;
  opacity: 0.1;
  cursor: default;
}
.draggable.dragged:hover {
  opacity: 0.1;
}

.bg-game-topologies {
  background-color: #363636;
  border-radius: 50px;
  max-width: 1050px;
  margin: auto;
  padding: 10px 10px 30px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border: #efefef 5px solid;
}

@media (max-width: 600px) {
  html {
    font-size: 14px;
  }
  #play-again-btn {
    top: -0.4rem;
  }
  #play-again-btn.play-again-btn-entrance {
    transform: translateX(7rem);
  }
}

@media all and (min-width: 1024px) and (max-width: 1280px) {
  .draggable {
    height: 6.2rem;
    width: 6.2rem;
    margin: 8px;
  }

  .droppable {
    width: 6rem;
    font-size: 24px;
  }

  .matching-pair {
    height: 6.2rem;
    margin: 8px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}

@media all and (min-width: 850px) and (max-width: 1024px) {
  .draggable {
    height: 5.2rem;
    width: 5.2rem;
    margin: 8px;
  }

  .droppable {
    width: 5rem;
    font-size: 24px;
  }

  .matching-pair {
    height: 5.2rem;
    margin: 8px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}

@media all and (min-width: 755px) and (max-width: 850px) {
  .draggable {
    height: 4.5rem;
    width: 4.5rem;
    margin: 8px;
  }

  .droppable {
    width: 4.3rem;
    font-size: 20px;
  }

  .matching-pair {
    height: 4.5rem;
    margin: 8px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }

  .score {
    font-size: 1.5rem;
  }
}

@media all and (min-width: 600px) and (max-width: 755px) {
  .draggable {
    height: 7rem;
    width: 7rem;
    margin: 10px;
  }

  .droppable {
    width: 6.8rem;
    font-size: 20px;
  }

  .matching-pair {
    height: 7rem;
    margin: 10px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }

  .score {
    font-size: 1.5rem;
  }
}

@media all and (min-width: 580px) and (max-width: 600px) {
  .draggable {
    height: 8rem;
    width: 8rem;
    margin: 10px;
  }

  .droppable {
    width: 7.715rem;
    font-size: 18px;
  }

  .matching-pair {
    height: 8rem;
    margin: 10px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}

@media all and (min-width: 468px) and (max-width: 580px) {
  .draggable {
    height: 7.25rem;
    width: 7.25rem;
    margin: 10px;
  }

  .droppable {
    width: 6.965rem;
    font-size: 18px;
  }

  .matching-pair {
    height: 7.25rem;
    margin: 10px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}

/*Phones*/
@media all and (min-width: 380px) and (max-width: 468px) {
  .draggable {
    height: 5.8rem;
    width: 5.8rem;
    margin: 5px;
  }

  .droppable {
    width: 5.514rem;
    font-size: 18px;
  }

  .matching-pair {
    height: 5.8rem;
    margin: 5px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}

/*Ultra small phones*/
@media all and (max-width: 380px) {
  .draggable {
    height: 4.4rem;
    width: 4.4rem;
    margin: 5px;
  }

  .droppable {
    width: 4.114rem;
    font-size: 18px;
  }

  .matching-pair {
    height: 4.4rem;
    margin: 5px;
  }

  .matching-pairs {
    transition: opacity 0.5s;
    display: flex;
    flex-wrap: wrap; /* Povolí zalamování na další řádek */
    justify-content: center;
    margin: 0rem 1rem 0rem 1rem;
  }
}
