body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #333;
}

#jspsych-content {
  max-width: 700px;
  margin: 40px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Buttons used throughout the experiment */
.jspsych-btn {
  display: inline-block;
  margin: 10px 5px;
  padding: 8px 16px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  background-color: #1976d2;
  color: white;
  cursor: pointer;
}

.jspsych-btn:hover {
  background-color: #105aa1;
}

/* Survey styles */
.jspsych-survey-question {
  margin-bottom: 20px;
}

.jspsych-survey-question > label {
  display: block;
  margin-bottom: 6px;
  /*font-weight: bold;*/
}

.jspsych-survey-likert-statement {
  margin-bottom: 8px;
}

.likert-container {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.likert-container label {
  flex: 1;
  text-align: center;
}

/* Chat UI styles */
.chat-log {
  height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #fafafa;
}

.message {
  margin-bottom: 8px;
}

.message.participant {
    background-color: #eef4ff;
  border-left: 4px solid #1a73e8;
}

.message.ai {
    background-color: #fff0f5;
  border-left: 4px solid #d61a5e;
}

.chat-input {
  display: flex;
  gap: 8px;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.chat-input button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background-color: #1976d2;
  color: white;
  cursor: pointer;
}

.chat-input button:disabled {
  background-color: #888;
  cursor: not-allowed;
}

.timer {
  margin-top: 10px;
  font-weight: bold;
}

/*
 PMQ Custom likert scale */
.jspsych-survey-likert-question .jspsych-survey-likert-prompt {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5em;
}

.jspsych-survey-likert-question .jspsych-survey-likert-prompt span {
  max-width: 40%;
  word-break: break-word;
}

.pmq-item {
  margin-bottom: 20px;
}

.pmq-labels {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 4px;
}

.pmq-scale {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pmq-scale label {
  flex: 1;
  text-align: center;
}

.pmq-scale input[type="radio"] {
  display: block;
  margin: 0 auto;
}

.pmq-scale span {
  display: block;
  margin-top: 4px;
}