/* Set height of HTML and body to 100% and remove default margin and padding */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Display body contents in a column layout and align them to the left */
body {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align everything to the left */
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  overflow-y: auto;
}

/* Styles for the top result banner */
#top-result {
  background-color: #f2f2f2;
  text-align: center;
  font-weight: bold;
  font-size: 80px;
  padding: 20px;
  width: 100%; /* Take full width of the container */
  box-sizing: border-box; /* Include padding in width calculation */
  margin-bottom: 20px;
}

/* Styles for the webcam container */
#webcam-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Styles for the label container */
#label-container {
  display: table;
  width: 80%;
  padding: 20px;
  margin-bottom: 20px;
  font-size: 18px;
  border-spacing: 15px 10px;
}

/* Styles for each label wrapper */
.label-wrapper {
  display: table-row;
  width: 40%;
}

/* Styles for each label */
.label {
  font-weight: bold;
  margin-right: 5px;
  font-size: 18px; /* increase font size */
  min-width: 0; /* Set a minimum width for labels */
}

/* Styles for the bar container */
.bar-container {
  display: table-cell;
  vertical-align: middle;
  width: 75%;
  height: 18px;
}

/* Styles for the bar */
.bar {
  height: 100%;
  background-color: #5ba00d;
}

/* Media queries for mobile */
@media only screen and (max-width: 600px) {
  /* Increase font size for top result on mobile */
  #top-result {
    font-size: 50px;
  }

  /* Increase font size for labels on mobile */
  .label {
    font-size: 16px;
  }

  /* Decrease spacing between labels and bars on mobile */
  #label-container {
    border-spacing: 10px 5px;
  }
}
