/**  Styles of html and body**/

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden; /* Prevent horizontal scrolling */
  overflow-y: scroll;
}

.ws-clickable-event {
  cursor: pointer;
}

.ws-select-div {
  border: 2px solid black;
  background: linear-gradient(
    to bottom,
    rgba(135, 206, 250, 0.1) 0%,
    /* Light Sky Blue */ rgba(216, 191, 216, 0.3) 100% /* Light Purple */
  );
  box-shadow: 0px 0px 3px 0px rgba(255, 255, 255, 0.5); /* Light White Shadow */
  font-size: 14px;
  position: absolute;
}

.ws-select-div-selected {
  border-radius: 4px;
  background: linear-gradient(
    to bottom,
    rgba(135, 206, 250, 0.2) 0%,
    /* Light Sky Blue */ rgba(12, 223, 107, 0.5) 100% /* Medium Sea Green */
  );
  box-shadow: 0px 0px 3px 0px rgb(128 128 128 / 50%); /* Gray */
  font-size: 14px;
  position: absolute;
}

.image-container {
  position: relative;
  width: 100%; /* Use 100% of the container's width */
  max-width: 1000px; /* Max width of the actual image */
  margin: auto; /* Center the container on the page */
  height: auto; /* Height will be set automatically to maintain the aspect ratio */
}

.image-container img {
  width: 100%;
  display: block; /* Remove extra space below the image */
  user-select: none; /* Prevent the image from being selectable */
  -webkit-user-drag: none; /* Prevent the image from being draggable */
  pointer-events: none; /* Prevent mouse events on the image */
}

.canvas-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.bounding-boxes-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* pointer-events: all; */ /* Ensure it captures mouse events */
}

svg {
  width: 100%;
  height: 100%;
}
.drawn-box {
  position: absolute;
  box-sizing: border-box;
  pointer-events: auto; /* Enable mouse events on the box */
}

/* Add this to your CSS file */
.feedback-message {
  display: none; /* Hidden by default */
  position: fixed;
  border: 3px solid black;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: rgb(255, 255, 255);
  border: 1px solid #ddd;
  font-size: 32px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 300px;
  max-width: 80%;
  box-sizing: border-box;
  /* Additional styling for animation */
  opacity: 0;
  transition: opacity 0.5s;
}

#btndiv {
  display: flex;
  justify-content: center; /* This will center the buttons horizontally */
  align-items: center; /* This will center the buttons vertically if you want that */
  position: relative;
  left: 0;
  right: 0; /* These properties stretch the div to the full width */
  margin-bottom: 5px;
}

.button {
  background-color: #48bb78;
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 24px;
  margin: 4px 10px;
  cursor: pointer;
}

#back-btn {
  background-color: #a0aec0; /* Light blue */
}

#finish-btn {
  background-color: #48bb78; /* A shade of green */
}

#try-again-btn {
  background-color: #f6ad55; /* A warm orange */
}

#back-btn:hover,
#finish-btn:hover,
#try-again-btn:hover {
  background-color: #180534;
  color: white;
}
/* Smaller font size for screens smaller than 1024px */
@media (max-width: 1024px) {
  .button {
    font-size: 22px;
  }
  .feedback-message {
    font-size: 28px;
  }
}

/* Even smaller font size for screens smaller than 768px */
@media (max-width: 768px) {
  .button {
    font-size: 20px;
  }
  .feedback-message {
    font-size: 24px;
  }
}

/* Smallest font size for screens smaller than 480px */
@media (max-width: 480px) {
  .button {
    font-size: 16px;
  }
  .feedback-message {
    font-size: 20px;
  }
}
