
.quiz-container {
    text-align: center;
    position: relative;
}

.canvas-container {
    position: relative;
    display: inline-block; /* Make sure canvas and image are aligned */
}

canvas {
    border: 2px solid #000;
    margin-bottom: 10px;
    cursor: crosshair;
    display: block;
    /* Remove margin-left to avoid shifting */
}

#colorPicker {
    margin-bottom: 10px;
}

#showSolutionBtn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}

#showSolutionBtn:hover {
    background-color: #0056b3;
}

#solutionImage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border: 2px solid #000;
    display: none;
}


/* Connect the terms exercise */

.container {
    display: flex;
    justify-content: center;
    margin: 20px;
    position: relative;
}

.column {
    margin: 10px;
}

.box {
    width: 200px;
    padding: 20px;
    margin: 10px;
    border: 2px solid #000;
    text-align: center;
    cursor: pointer;
}

#left-column .box {
    cursor: move;
}

#answerposition {
    display: flex;
    justify-content: center;
}


#check-answer {
    display: block;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    text-align: center;
}
#check-answer:hover {
    background-color: #0056b3;
}

#feedback {
    text-align: center;
    font-size: 18px;
    margin-top: 20px;
}

.exercise {
  max-width: 900px;
  margin-left: 40px;
  font-family: Arial, sans-serif;
}

form label {
  display: block;
  margin-bottom: 0.4rem;
  cursor: pointer;
}

button {
  margin-top: 1rem;
  padding: 0.4rem 1rem;
}

.image-wrapper {
  position: relative;
  margin-top: 1.5rem;
}

.image-wrapper img {
  width: 100%;
  display: block;
}

/* Circle overlay */
.circle {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgb(0, 0, 0);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.feedback {
  margin-top: 0.8rem;
  font-weight: bold;
}

.feedback.incorrect {
  color: #b00020;
}

.feedback.correct {
  color: #006400;
}

.quiz-box {
    background: white;
    padding: 25px;
    max-width: 750px;
    border-radius: 8px;
    margin-left: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  h2 {
    margin-top: 0;
  }

  .answers label {
    display: block;
    margin: 8px 0;
    cursor: pointer;
  }

  button {
    display: block;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
    text-align: center;
  }

  .feedback {
    margin-top: 10px;
    font-weight: bold;
    color: #353435;
  }

  .hidden {
    display: none;
  }

  img {
    max-width: 100%;
    margin: 10px 0;
    border: 1px solid #ccc;
  }

  .info {
    margin-top: 25px;
  }


#nicebutton {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    margin-top: 15px;
}  