#video {
  display: none;
  width: 100%;
  max-height: 50vh;
  border: 1px solid gray;
}


#start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 1.5em;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  text-align: center;
  padding: 0;         /* remove extra space */
  margin: 0;          /* prevent overflow */
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: auto;
}


.video-wrapper {
  position: relative;
  width: 90vw;
  max-width: 600px; /* optional max for layout */
  margin: 0 auto;
  height: 30vh;
  overflow: hidden;
  box-sizing: border-box;
}

.video-wrapper.active {
  height: auto;
}

.video-wrapper.active #video {
  display: block;
}

.video-wrapper.active #start-overlay {
  display: none;
}



.hidden {
    display: none;
}

body {
  font-family: sans-serif;
  margin: 20px;
  background-color: #f4f4f4;
  color: #333;
}


.container {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.column {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  flex: 1 1 400px;
  max-width: 500px;
}

h2 {
  margin-top: 0;
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ccc;
}

th {
  background-color: #e9ecef;
}

#startButton{
    background-color: green;
}

#resetButton{
    background-color: red;
}

.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 10;
  left: 50%; top: 0;
  width: 60vw; height: auto;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
  transform: translateX(-50%);
  font-size: 30px;
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  width: 50vw;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  text-align: center;
}

.modal-input{
  font-size: 40px;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

input[type="number"] {
  padding: 8px;
  width: 80%;
  margin: 10px 0;
}

button#confirmSubtract {
  padding: 10px 20px;
  font-size: 40px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

button#confirmAdd {
  padding: 10px 20px;
  font-size: 40px;
  background-color: #007bff;
  border: none;
  color: white;
  border-radius: 4px;
  cursor: pointer;
}

#checkmark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1000px !important;
  filter: invert(57%) sepia(16%) saturate(2194%) hue-rotate(71deg) brightness(110%) contrast(91%);
  display: none;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.inline-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#result {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 200px;  /* optional: to constrain the width */
}

.action-button {
  width: 30vw;
  height: auto;
  min-height: 5vh;
  font-size: x-large;
}

#searchBox {
  width: 60vw;
  font-size: 20px;
}

.edit-icon {
  font-size: 0.8em;
  color: #888;
  margin-left: 6px;
  vertical-align: middle;
}

#typeSelect{
  font-size: 16px;
}

#valueSelect{
  font-size:16px;
}
#footprintSelect{
  font-size:16px;
}