html {
  height: 100%
}
body {
  font-family: "Roboto Mono", monospace;
  height: 90%
}

.question-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.question-text-wrapper {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.help-icon-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.8em;
  cursor: help;
  user-select: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.help-icon:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.help-icon:active {
  transform: scale(0.95);
}

.tooltip-box {
  position: fixed;
  background-color: #808080;
  color: #fff;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9em;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  max-width: 250px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip-box::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #5f5e5e;
}

.tooltip-box.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Layout for questions and techniques sections */
/* Layout for questions and techniques sections */
#body-sections{
  position: absolute;
  top: 25%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  width: 99vw;
  

}

/* Arrange the inner question groups so vulnType and binType sit side-by-side,
   while constraints spans the full width below. */
#questions {
  border: 2px solid;
  border-right: none;
  background-color: #d4d4d4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.5rem;
  box-sizing: border-box;
  width: 100%;
  height: 100%
}

#questions_outer{
  bottom: 0;
  height: 100%;
}

#techniques_wrapper {
  border: 2px solid;
  border-left: none;
  background-color: #d4d4d4;
  box-sizing: border-box;
  display: grid;
  gap: 0.5rem;
  padding: 0.5rem;
  height: 100%
}

#techniques {
  padding: 10px;
  border: 2px solid;
  background-color: #ffffff;
  display: grid;
}

#techniques_outer {
  height: 100%
}

#vulnType {
  background-color: #ffffff;
  display: inline-block;
  padding: 10px;
  border: 2px solid;
}

#binType {
  background-color: #ffffff;
  display: inline-block;
  padding: 10px;
  border: 2px solid;
}

#constraints {
  background-color: #ffffff;
  border: 2px solid;
  padding: 10px;
  grid-column: span 2;
}