:root {
  --primary-color: #ffcb00;
  --secondary-color: #0034ff;
  --accent-color: #3e5359;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
  font-size: 20px;
}

body {
  margin: 0;
  padding: 0;
  background-image: url(./hintergrund.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: grid;
  place-items: center;
  /* background-color: hsla(0, 98%, 45%, 0.3); */
}

/* == Spielbilder die sich abwechseln ==*/

#game-field {
  width: 100%;
  height: 100vh;
  position: relative;
}

div > img {
  width: 200px;
  height: 200px;
}

/* 1 */
#imageContainer3 {
  position: absolute;
  top: 12%;
  left: 10%;
}

/* 2 */
#imageContainer1 {
  position: absolute;
  top: 30%;
  left: 30%;
}

/* 3 */
#imageContainer5 {
  position: absolute;
  top: 48%;
  left: 47%;
}

/* 4 */
#imageContainer2 {
  position: absolute;
  top: 8%;
  left: 68%;
}

/* 5 */
#imageContainer4 {
  position: absolute;
  top: 39%;
  left: 80%;
}

#imageContainer6 {
  display: none;
  /* position: absolute;
    top: 48%;
    left: 17%; */
}

/* == Vorlagen für Spiele == */

#vorlagen {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 80%;
  left: auto;
}

.bilder {
  height: 180px;
  width: 180px;
  background-color: white;
  padding: 10px;
  margin-right: 20px;
  display: flex;
  align-items: center;
  border-radius: 12px;
}

.bilder img {
  width: 100%;
  height: 100%;
}

.rules {
  position: fixed;
  text-align: center;
  top: 50%;
  left: 50%;
  width: 550px;
  height: 450px;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 1);
  z-index: 1;
  padding: 20px;
  border-radius: 12px;
  border: 4px solid var(--secondary-color);
}

.rules ol {
  padding: 20px;
  text-align: left;
  line-height: 30px;
}

.rules button {
  margin-top: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 10px 20px;
  border-radius: 5px;
  border: 3px solid var(--secondary-color);
  cursor: pointer;
}

#containerRightAnswer {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  display: none;
  background-color: rgb(18, 18, 18);
  z-index: 1;
}

#rightAnswer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

#containerWrongAnswer {
  position: absolute;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  display: none;
  background-color: (rgba(22, 22, 22, 0.5));
  z-index: 1;
}

#wrongAnswer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

#gameOverOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: white;
  text-align: center;
  padding-top: 20%;
  padding: auto 20px;
  z-index: 1000;
}

/* == Clock == */

#numbers {
  position: absolute;
  top: 0;
  right: 0;
  background-color: white;
}

.stopwatch {
  color: black;
  font-size: 24px;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  cursor: pointer;
  border-radius: 5px;
  border: 3px solid var(--secondary-color);
  font-size: 18px;
}

/* == Countdown für das Overlay == */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 50px;
  font-weight: bold;
  z-index: 1000;
  display: none;
}

#winMessage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  text-align: center;
  font-size: 30px;
  color: white;
  z-index: 2;
  font-size: 50px;
  font-weight: bold;
}

/* == Responsive == */

@media (max-width: 768px) {
  #vorlagen {
    width: 100%;
    height: 60px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    position: absolute;
    top: 65%;
    left: auto;
  }

  .bilder {
    height: 100px;
    width: 100px;
    background-color: white;
    padding: 10px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    border-radius: 12px;
  }

  .bilder img {
    width: 100%;
    height: 100%;
  }

  #imageContainer1 {
    position: absolute;
    top: 22%;
    left: 4%;
  }

  #imageContainer2 {
    position: absolute;
    top: 8%;
    left: 50%;
  }

  #imageContainer3 {
    position: absolute;
    top: 1%;
    left: 7%;
  }

  #imageContainer4 {
    position: absolute;
    top: 39%;
    left: 60%;
  }

  #imageContainer5 {
    position: absolute;
    top: 43%;
    left: 12%;
  }
}
