body {
  width: 1100px;
  margin: auto;
  background-color: white;
  color: black;
  font-size: 18pt;
  padding: 30px 20px 20px 20px;
  border: 5px solid white;
}

/* Show only the consent screen */
#welcome {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  text-align: justify;
}

.welcomeButton {
  width: 230px;
  margin: 0 auto;
  padding: 5px;
  font-weight: bold;
  background: #f4f4f4;
  border: 4px outset #dbdbdb;
}

.startButton {
  padding: 15px 30px;
  border: 2.5px solid lightblue;
  border-radius: 50px;
  background-color: white;
  text-align: center;
  font-size: 16pt;
  display: inline-block;
  margin: 20px auto 0 auto;
  cursor: pointer;
  transition: all 0.3s ease;
}

.startButton:hover {
  background-color: lightblue;
  color: white;
}

/* instruction container */
.alien_unique_opening {
  display: flex;
  flex-direction: row;
}

.landscape_unique_opening {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.instruction-container {
  display: none;
  margin: 0 auto;
  overflow-y: auto;
  position: relative;
}

.instructions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 5px;
}

#posterior2_section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 5px;
}

.instruction-container>button {
  background-color: white;
  border: 2px solid;
  border-color: rgb(187, 193, 196);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 25px;
  cursor: cursor;
  color: black;
}

.instruction-container>button:hover {
  background-color: rgb(236, 238, 238);
}

#instructionButton2 {
  margin-top: 15px;
}

/* social learning simple mean*/
.report-container {
  padding: 200px;
  display: none;
}

.report-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}

.report-transition-container {
  display: none;
  text-align: center;
  padding: 200px;
}

.report-screen p:nth-of-type(2) {
  border: 2px solid #e4667b;
  padding: 10px;
  border-radius: 6px;
  background-color: #f5f9ff;
}

#teammate_report_value {
  font-weight: bold;
}

/* slider */
input[type="range"] {
  -webkit-appearance: none;
  width: 320px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #333;
  border-radius: 50%;
}


.slider {
  display: block;
  width: 200px;
  margin: 20px 0 5px 0;
}

.slider-labels {
  width: 350px;
  display: flex;
  justify-content: space-between;
  font-size: 30px;
  color: #666;
  margin-bottom: 50px;
}

/* double slider */
#prior-slider-range.ui-slider {
  width: 320px;
  height: 5px;
  margin: 40px auto 20px auto;
  background: #e0e0e0;
  border-radius: 4px;
}

#prior-slider-range .ui-slider-range {
  height: 100%;
  background: linear-gradient(90deg, black, black);
}

#prior-slider-range .ui-slider-handle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid black;
  cursor: pointer;
  z-index: 10;
}

/* VERY IMPORTANT: allow dragging */
.slider {
  display: block;
  /* 关键：只有 block 元素才能通过 margin: auto 居中 */
  -webkit-appearance: none;
  /* 必须：隐藏系统默认外观以应用你的样式 */
  appearance: none;
  width: 320px;
  height: 5px;
  margin: 40px auto 20px auto;
  /* 你的原始设置：auto 现在生效了 */
  background: #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}

/* 针对原生 input 的滑块 (Handle) 样式，保留你原始的视觉参数 */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid black;
  cursor: pointer;
  z-index: 10;
}

/* 针对 Firefox 的滑块样式 */
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid black;
  cursor: pointer;
}

.slider-labels {
  width: 320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  font-family: inherit;
}

.slider,
.slider * {
  pointer-events: auto !important;
}

.posterior-q-block {
  text-align: center;
  margin-bottom: 50px;
  width: 100%;
}

.posterior-q-block label {
  display: block;
  margin-bottom: 10px;
  font-family: inherit;
}

/* social learning */
.choice-container-learning {
  display: none;
}

.choice-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

.option-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 50px;
}

.option_learning {
  padding: 20px;
  border-color: #cec8c8;
  border: 2.5px solid lightblue;
  border-radius: 50px;
  background-color: white;
  width: 120px;
  cursor: pointer;
  font-size: 18px;
}

.option_learning:hover {
  background-color: lightblue
}

/* feedback */
.option_learning.selected {
  background-color: lightsalmon;
  border-color: lightsalmon;
}

.option_learning.correct_feedback {
  background-color: #3CB371;
  border-color: #C7BEDC;
}

.option_learning.wrong_feedback {
  background-color: #B22222;
  border-color: #C7BEDC;
}

/*-transition between chains-*/
.chain-transition-container {
  display: none;
  text-align: center;
  padding: 220px;
}

/* mining behavior */
#demo_figure_obs {
  width: 300px;
  height: auto;
}

.info-image-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  gap: 25px;
}

.location-container {
  display: none;
}

.mining-behavior-container {
  display: none;
}

.mining-behavior {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  margin-top: 80px;
}

.mining-figure-grid {
  display: grid;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
}

.mineral-container {
  /* display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px; */
  margin: 20px auto;
  max-width: 300px;

  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 3px;
}

.mineral-box {
  width: 25px;
  height: 25px;
  border: 2px solid #cec8c8;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mining-transition-container {
  display: none;
  text-align: center;
  padding: 220px;
}

/* choice screen */
.choice-instruct-container {
  display: none;
}

.choice-container-mcmc {
  display: none;
}

.choice-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 40px;
}

.option-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 50px;
}

.option {
  padding: 20px;
  border-color: #cec8c8;
  border: 2.5px solid lightblue;
  border-radius: 50px;
  background-color: white;
  width: 120px;
}

.option:hover {
  background-color: lightblue
}

.option.selected {
  background-color: lightblue;
  border-color: #C7BEDC;
}

/* rating screen */
.rating-container-attribution {
  display: none;
}

.rating-container {
  display: flex;
  flex-direction: column;
}

.rating {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
}

/* demographics */
.survey {
  display: none;
}

/* ending screen */
.ending-container {
  display: none;
}

.ending-container.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.ending-screen img {
  margin-top: 150px;
  margin-bottom: 10px;
}

.ending-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ending-text {
  font-size: 22pt;
}