body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #BFC9D1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  height: 100vh;
  /* overflow: hidden; */
  overflow-y: auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.card {
  width: 80vw;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #EAEFEF;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  padding-top: calc(16px + env(safe-area-inset-top));
  
}

/* Progress Bar */
#progress-container {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 10px;
}
#progress-bar {
  flex: 1;
  height: 8px;
  background: #BFC9D1;
  border-radius: 4px;
  margin-right: 12px;
  overflow: hidden;
}
#progress-fill {
  height: 100%;
  width: 0%;
  background: #F8B259;
  border-radius: 4px;
  transition: width 0.3s ease;
}
#progress-text {
  flex: 0 0 auto;
  font-weight: bold;
  font-size: 14px;
}

/* Image */
.image-container {
  flex: 0 0 auto;
}
#surveyImage {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
  margin-bottom: 10px;
  box-shadow: inset 0 12px 20px -8px rgba(0,0,0,.1),
              inset 0 -12px 20px -8px rgba(0,0,0,.1);
}
#description {
  text-align: center;
  font-size: 14px;
  margin-bottom: 15px;
}

/* Questions */
#questions-container {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 10px;
  /* background: #BFC9D1; */
  background: #fff;
  background-blend-mode: overlay;
  border-radius: 12px;
  padding-bottom: 10px;

  box-shadow: inset 0 12px 20px -8px rgba(0,0,0,.1),
              inset 0 -12px 20px -8px rgba(0,0,0,.1);

}

.question {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* align text and bubble row to left */
  width: 100%;
  margin-bottom: 10px;
}

.question p {
  font-weight: bold;
  margin-bottom: 5px;
  margin-left: 5px; /* optional: small padding so text isn’t flush to edge */
}

/* Bubbles */
.bubble-row {
  display: flex;
  justify-content: flex-start;  /* aligns left */
  width: 100%;
  gap: 5px;
  height: 20px;
  padding: 5px;
}

.bubble-row label {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  max-width: none;
  padding-top: 10px;
}
input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}
input[type="radio"] + span {
  display: inline-block;
  width: 100%;
  height: 40px;
  line-height: 40px;
  border-radius: 10px;
  border: 2px solid #ccc;
  background: white;
  text-align: center;
  font-weight: bold;
  transition: all 0.2s;
  user-select: none;
}
input[type="radio"]:hover + span {
  border-color: #999;
  background: #f0f0f0;
}
input[type="radio"]:checked + span {
  border-color: #FF9B51;
  background: #F8B259;
  color: white;
}
input[type="radio"]:focus + span {
  outline: 2px solid #2196F3;
  outline-offset: 3px;
}

/* Next Button */
button#nextBtn {
  padding: 14px 30px;
  font-size: 18px;
  border: none;
  border-radius: 10px;
  background: #F8B259;
  color: white;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s;
}
button#nextBtn:disabled {
  background: #aaa;
  cursor: not-allowed;
}
button#nextBtn:hover:enabled {
  outline: 2px solid #2196F3;
}
 .nav-buttons{
  display:flex;
  gap:10px;
  margin-top:10px;
}

#backBtn{
  padding:14px 30px;
  font-size:18px;
  border:none;
  border-radius:10px;
  background: #25343F;
  color: white;
  cursor: pointer;
  width: 33%;
  margin-top: 10px;
  transition: background 0.2s;
}

#backBtn:hover{
  outline: 2px solid #2196F3;
}

/* Player info bubbles */
#player-name {
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.info-bubbles {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.info-bubbles span {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 12px;
  background: #F8B259;
  border: 2px solid #FF9B51;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}


/* Responsive */
@media (max-width: 480px) {
  .card {
    width: 95vw;
    max-height: 95vh;
    padding: 10px;
  }
  #surveyImage {
    height: 200px;
  }
  input[type="radio"] + span {
    font-size: 12px;
    height: 35px;
    line-height: 35px;
  }
  button#nextBtn {
    font-size: 18px;
    padding: 10px;
  }
}


/* 
nice palette:
#EAEFEF
#BFC9D1
#25343F
#FF9B51 
*/