* {
  font-family: "Public Sans";
  box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

*::-webkit-scrollbar {
  width: 5px;
}

*::-webkit-scrollbar-track {
  background-color: #EEF3FD;
}


*::-webkit-scrollbar-thumb {
  background-color: #2563EB;
}

*::-webkit-scrollbar-thumb:hover {
  cursor: pointer;
  background-color: #dfdfdfee;
}

html,
body {
  margin: 0;
  display: normal;
  width: 100%;
  overflow: hidden;
}

body  {
  display: flex;
  justify-content: space-between;
  gap : 1.5rem;
  padding : 0.25rem;
}

canvas {
  margin: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: -moz-crisp-edges;
  /* display: block; */
  position: relative;
  width: 80%;
  max-width: 550px;
  aspect-ratio: 1/1;
  overflow: auto;
}

.Instruction1 {
  font-size: 16px;
  color: #333;
  margin: 10px 0;
  padding: 10px;
  background-color: #f5f5f5;
  text-align: center;
  border: 1px solid #ccc;
  font-weight: bold;

  /* Positioning */
  position: relative;
  top: 10px; /* Adjust the top position */
  left: 0px; /* Adjust the left position */
  /* transform: translate(-50%, -50%); */
}

.image-container {
  position: relative; /* Container for relative positioning */
  width: 300px; /* Adjust container width */
}

#myImage {
  width: 100%; /* Make the image responsive within the container */
}

.image-caption {
  position: absolute; /* Position the caption absolutely within the container */
  bottom: 1; /* Position the caption at the bottom */
  left: 0; /* Align the caption to the left */
  margin: 0; /* Remove margin to align text closely */
  padding: 0px; /* Add padding for readability */
  background-color: rgba(
    0,
    0,
    0,
    0
  ); /* Add a background color for better visibility */
  color: rgb(0, 0, 0); /* Set text color */
  font-size: 14px; /* Adjust font size */
  width: 100%; /* Make caption width match the container */
}

#Nextbutton {
  background-color: #007bff; /* Button background color */
  color: rgb(255, 255, 255); /* Button text color */
  /* border: none; Remove border */
  padding: 10px 20px; /* Add padding */
  border-radius: 5px; /* Rounded corners */
  cursor: pointer; /* Show pointer cursor on hover */
  font-size: 16px; /* Adjust font size */
  font-weight: bold; /* Bold text */
  transition: background-color 0.3s, color 0.3s; /* Smooth transition */
  position: absolute; /* Position the caption absolutely within the container */
  top: 30%; /* Position the caption at the bottom */
  left: 7.2%; /* Align the caption to the left */
}

#Nextbutton:hover {
  background-color: #0056b3; /* Darker background color on hover */
}

#logContainer {
  width : 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap : 20px;
}

#consoleContainerWrapper {
  height : 80%;
  width : 100%;
  display : flex;
  flex-direction: column;
  gap : 20px;
}

#consoleContainer {
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  height: 400px;
}

#alert {
  background-color: #FEE2E2;
  border-radius: 8px;
  display: flex;
  gap : 20px;
  justify-content: space-around;
  align-items: center;
  padding : 0.25rem 0.5rem;
  color : #991B1B;
  font-weight: bold;
}

#feedContainer {
  flex-grow: 1.75;
  display:  flex;
  flex-direction: column;
  border-radius: 8px;
  background-color: #EEF3FD;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.4);
  padding : 0.25rem;
}

#webcamContainer {
  display: flex;
  justify-content: center;
  padding : 0.25rem;
}

#webcamContainer > canvas {
  width : 60%;
}

#infoContainer {
  display : flex;
  gap : 10px;
  width : 100%;
  padding : 0.25rem;
}

.instruction > span {
  font-weight: bold;
}

.instruction {
  font-size: 0.9em;
  margin : 0;
}

.instruction > svg {
  width : 20px;
  aspect-ratio: 1/1;
  position: relative;
  top : 10px;
}

#next-page-btn {
  background-color: #2563EB;
  border-radius: 4px;
  border : none;
  box-shadow: none;
  width: fit-content;
  color : white;
  font-size: 1em;
  font-weight: bold;
  padding : 1rem 0.5rem;
  align-self: center;
}

#next-page-btn:hover {
  cursor: pointer;
}

#status-template {
  display: none;
}

#head-pose-template {
  display: none;
}

.log { 
  display: flex;
  flex-direction: row;
  align-items: center;
  gap : 10px;
  padding : 0.15rem;
  border-bottom: 1px solid #cccccc;
}