/* Global resets */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "MyCaptchaFont";
}

/* Instructions overlay */
#instructions {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  background: #8A65AD;          /* deep corporate blue */
  padding: 4px 8px;
  border: 2px outset #b0b0b0;    /* beveled border */
  pointer-events: none;
  z-index: 10;
}



/* Page border */
body {
  border: 5px solid #003366;    /* match instruction header */
  box-sizing: border-box;
  background-color: #f5f5f5;     /* light gray page background */
}

/* CAPTCHA Section */
#captcha-section {
  text-align: center;
  padding: 20px;
  background: #A47DAB;           /* more muted blue */
  border: 2px groove #888;      /* classic groove border */
}

/* instruction text */
#captcha-instruction {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 16px;
}

/* Inline helpers */
.inline {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px;
}

/* CAPTCHA image */
#image {
  display: inline-block;
  margin-top: 10px;
  width: 100px;
  height: 40px;
  padding: 0;
  background: #ffffff;
  border: 2px outset #ccc;
  font-size: 1rem;
  line-height: 40px;
  user-select: none;
  text-decoration: none;
  font-style: normal;
  font-weight: normal;
}

/* User input field */
#user-input {
  display: inline-block;
  margin: 10px;
  padding: 2px 4px;
  height: 24px;
  border: 2px inset #ccc;
  background-color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Generic inputs/buttons */
input {
  font: inherit;
  padding: 2px 4px;
  border: 2px inset #ccc;
  background-color: #e0e0e0;
}

/* Action button */
#btn {
  display: inline-block;
  margin: 10px;
  padding: 2px 6px;
  font-size: 1rem;
  font-family: inherit;
  color: #000000;
  background-color: #e0e0e0;     /* classic buttonface */
  border: 2px outset #fff;      /* white highlight edge */
  cursor: pointer;
}

#btn:hover {
  border-style: inset;          /* pressed look on hover */
}

/* Status messages */
#key, #message {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  color: #990000;                /* dark red */
}

/* Canvas container */
#canvas-container {
  position: relative;
  width: 100%;
  height: calc(100% - 100px);
  overflow: hidden;
  border: 2px solid #333333;    /* simple dark border */
  background-color: #ffffff;
}

/* Canvas and overlay */
#glcanvas,
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#overlay {
  pointer-events: none;
}
