/* survey_form.css */

.survey-container {
  padding-top: 10vh;
  padding-bottom: 15vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 75vh;
  position: relative;
}

#survey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  width: min(90vw, 80vh);
  /*height: min(90vw, 80vh);*/
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.zone {
  padding: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  border: 1px solid;
}

.zone-1 {
  border-top-left-radius: 1rem;
}

.zone-2 {
  border-top-right-radius: 1rem;
}

.zone-3 {
  border-bottom-left-radius: 1rem;
}

.zone-4 {
  border-bottom-right-radius: 1rem;
}

.zone-label {
  margin-bottom: 0.25rem;
}

.zone-label strong {
  font-weight: 600;
}

.bubble-container {
  display: flex;
  flex-wrap: wrap;
}

.zone-1 {
  background-color: #dbeafe;
  border-color: #93c5fd;
}

.zone-2 {
  background-color: #d1fae5;
  border-color: #6ee7b7;
}

.zone-3 {
  background-color: #fef9c3;
  border-color: #fde047;
}

.zone-4 {
  background-color: #ede9fe;
  border-color: #c4b5fd;
}

#bubble-layer {
  position: absolute;
  top: 10vh;
  left: 0;
  width: 100%;
  height: 80%;
  pointer-events: none;
}

#question-text {
  margin-top: 1.5rem;
  max-width: 28rem;
  padding: 1rem;
  text-align: center;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

#submit-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: #2563eb;
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  display: none;
}

#submit-btn:hover {
  background-color: #1d4ed8;
}

.floating-bubble {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: #60a5fa;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  text-align: center;
  line-height: 40px;
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.placed-bubble {
  width: 2rem;
  height: 2rem;
  background-color: white;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #555;
  margin: 0.25rem;
  touch-action: none;
  cursor: grab;
}
