.game-container {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.info-bar {
  font-size: 1rem;
  display: flex;
  max-width: 1240px;
  margin: 0 auto;
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
}

.items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  min-height: 500px;
  max-width: 1240px;
  margin: 0 auto;
  background-color: #000;
  padding: 100px 20px 20px;
}

@media (max-width: 767px) {
  .items {
    min-height: 250px;
  }
}

/* .items:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: url('Hintergrund_Sotierspiel_Muell_V1.svg') no-repeat center center;
  background-size: cover;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.5;
} */

.items__background {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.items__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.items-inner {
  padding: 30px;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
}

@media (max-width: 767px) {
  .items-inner {
    min-height: 250px;
  }
}

.item {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  position: absolute;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 5px solid #ccc;
}

@media (max-width: 767px) {
  .item {
    width: 60px;
    height: 60px;
  }
}

.item img {
  width: 48px;
  height: 48px;
}

@media (max-width: 767px) {
  .item img {
    width: 38px;
    height: 38px;
  }
}

.containers {
  display: flex;
  justify-content: space-evenly;
  margin: 30px 10px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 30px 30px 50px;
  background-color: #55585a;
}

@media (max-width: 1199px) {
  .containers {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .containers {
    padding: 15px 20px 0;
  }
}

.container {
  width: 150px;
  min-height: 150px;
  background: #fff;
  border: 2px dashed #c2c4c7;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  flex-direction: column; /* Stapelt die Plättchen vertikal */
  align-items: center;
  position: relative;
  margin: 0 10px;
}

@media (max-width: 1199px) {
  .container {
    margin: 0 5px 40px;
  }
}

@media (max-width: 991px) {
  .container {
    width: 110px;
    min-height: 110px;
  }
}

@media (max-width: 767px) {
  .container {
    width: 90px;
    min-height: 90px;
  }
}

.container:before {
  content: "" attr(data-title) "";
  position: absolute;
  bottom: -25px;
  color: #fff;
  font-size: 0.7em;
  display: block;
}

@media (max-width: 767px) {
  .container--4:before,
	.container--5:before {
    width: 120px;
		left: -5px;
  }
}

/* .container--1:before,
.container--2:before,
.container--3:before,
.container--4:before,
.container--5:before {
  background: url('Container_Sortierspiel_Muell.png') no-repeat center center;
  background-size: contain;
  content: "";
  display: block;
  width: 150px;
  height: 150px;
}

@media (max-width: 991px) {
  .container--1:before,
  .container--2:before,
  .container--3:before,
  .container--4:before,
  .container--5:before {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 767px) {
  .container--1:before,
  .container--2:before,
  .container--3:before,
  .container--4:before,
  .container--5:before {
    width: 80px;
    height: 80px;
  }
}

.container--2:before {
  background-image: url('Container_Sortierspiel_Muell2.png');
}

.container--3:before {
  background-image: url('Container_Sortierspiel_Muell3.png');
}

.container--4:before {
  background-image: url('Container_Sortierspiel_Muell4.png');
}

.container--5:before {
  background-image: url('Container_Sortierspiel_Muell5.png');
} */

.container.multiple-items:before {
  display: none;
}

.container img {
  width: 150px;
  height: auto;
  margin: auto 0;
}

@media (max-width: 991px) {
  .container img {
    width: 110px;
  }
}

@media (max-width: 767px) {
  .container img {
    width: 80px;
  }
}

.modal {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.modal-content {
  background: rgba(255,255,255,0.9);
  padding: 30px;
  border-radius: 10px;
  max-height: 400px;
  max-width: 495px;
  width: auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.is-dark-mode .modal-content {
	background: rgba(0,0,0,0.9);
	color: #fff;
}

.dragging {
  opacity: 0.7;
  cursor: grabbing; /* Zeigt an, dass das Element gezogen wird */
  transform: scale(1.1); /* Beispiel: leicht vergrößert */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.start-modal {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 20px;
}

.start-modal-content {
  background: rgba(255,255,255,0.9);
  padding: 30px;
  border-radius: 10px;
  max-width: 495px;
  text-align: left;
}

.is-dark-mode .start-modal-content {
	background: rgba(0,0,0,0.9);
	color: #fff;
}

.start-modal-content h2 {
  font-size: 30px;
  margin-bottom: 20px;
	font-weight: 700;
}

.start-modal-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.modal-text {
  font-size: 18px;
}

.modal-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
	font-weight: 700;
}

.restart-btn {
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  background-color: #1C1F22;
  color: white;
  border: none;
  border-radius: 22px;
  transition: all 0.3s;
}

.start-game-btn {
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  background-color: #1C1F22;
  color: white;
  border: none;
  border-radius: 22px;
  float: right;
  transition: all 0.3s
}

.start-game-btn:hover,
.restart-btn:hover {
  background-color: #55585a;
}

.history-container {
  margin: 20px auto;
  max-width: 1240px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  display: none;
  width: 100%;
}

.is-dark-mode .history-container h3 {
	color: #000;
}

.history-container.game-ended {
  display: block;
}

/* #history-container.has-history {
  border-color: #4CAF50;
  box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
} */

.history-container h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 0px;
}

.history-container p {
	font-size: 1rem;
	margin: 0 0 20px;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list li {
  /* padding: 5px 10px; */
  /* border-bottom: 1px solid #ddd; */
}

.history-list li:last-child {
  border-bottom: none;
}

.container.highlight {
  outline: 3px solid #4CAF50; /* Grüne Umrandung */
  background-color: rgba(76, 175, 80, 0.2); /* Leicht grüne Hintergrundfarbe */
  transition: background-color 0.3s ease, outline 0.3s ease; /* Sanfte Übergänge */
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 2px;
}

.correct-dot {
  background-color: green;
}

.wrong-dot {
  background-color: red;
}

.plate {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  color: white;
  font-size: 0.8em;
  line-height: 40px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: absolute; /* Ermöglicht Positionierung in der Ecke */
  display: flex;
}

@media (max-width: 767px) {
  .plate {
    width: 25px;
    height: 25px;
  }
}

.plate img {
  margin: 0 auto;
  display: block;
  max-width: 20px;
}

.info-bar__clock {
  background: url('clock.svg') no-repeat center center;
  background-size: contain;
  width: 90px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
}

.is-dark-mode .info-bar__clock {
	color: #000;
}

@media (max-width: 767px) {
  .info-bar__clock {
    font-size: 12px;
		padding-right: 10px;
  }
}

.info-bar__score {
  background: url('score.svg') no-repeat center center;
  background-size: contain;
  width: 110px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-right: 10px;
}

.is-dark-mode .info-bar__score {
	color: #000;
}

@media (max-width: 767px) {
  .info-bar__score {
    font-size: 12px;
  }
}

.info-bar__score span {
  display: inline-block;
  margin-left: 5px;
}

.info-bar__left,
.info-bar__right {
  width: 50%;
  display: flex;
}

.info-bar__left {
  padding-left: 20px;
}

.info-bar__right {
  justify-content: flex-end;
  padding-right: 20px;
}

.info-bar__right img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pause-btn,
.music-btn {
  background: none;
  border: none;
  max-width: 60px;
  cursor: pointer;
}

.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f1f1f1;
  padding: 15px;
  cursor: pointer;
  text-align: left;
  border: none;
  width: 100%;
  font-size: 1em;
}

.accordion-header.correct {
  background-color: #d4edda; /* Hellgrün für korrekte Antworten */
  color: #155724; /* Dunkelgrün für Text */
}

.accordion-header.wrong {
  background-color: #f8d7da; /* Hellrot für falsche Antworten */
  color: #721c24; /* Dunkelrot für Text */
}

.accordion-header:hover {
  background-color: #e0e0e0;
}

.accordion-content {
  padding: 10px;
  background-color: #fff;
  border-top: 1px solid #ddd;
}

.is-dark-mode .accordion-content {
	color: #000;
}