/* Prevent horizontal scrolling on small screens */
body {
  overflow-x: hidden;
}

#phishyPlaceGame {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  text-align: center;
  background: #fafafa;
  border: 1px solid var(--gray-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box; /* include padding within width */
}

.hidden {
  display: none !important;
}

.pp-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 3rem);
  gap: 1rem;
}

.pp-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.pp-btn {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  cursor: pointer;
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.pp-btn.selected {
  background: var(--gray-color);
}

.pp-btn:focus {
  outline: none;
  background: var(--primary-color);
}

#ppQuestion {
  width: 100%;
  white-space: pre-wrap;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--gray-color);
  border-radius: 6px;
  padding: 1rem;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}
#ppQuestion pre {
  white-space: pre-wrap;
}
#ppQuestion * {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pp-media {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.pp-media:fullscreen,
.pp-media:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#ppQuestion audio {
  width: 100%;
}

#ppQuestion audio.pp-media {
  height: 54px;
  max-height: none;
  object-fit: initial;
  cursor: default;
}

#ppSummary {
  margin: 1rem 0;
}

#ppFeedbackForm {
  /* Center the feedback form on larger screens */
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#ppFeedbackForm .pp-field {
  margin: 15px 0;
}

#ppFeedbackForm label {
  display: block;
  margin-bottom: 4px;
}

#ppFeedbackForm select,
#ppFeedbackForm input,
#ppFeedbackForm textarea {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

#ppFeedbackForm input[type="radio"] {
  width: auto;
  padding: 0;
  margin-right: 4px;
}

#ppFeedbackForm .pp-radio {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

#ppFeedbackForm .pp-radio label {
  display: flex;
  align-items: center;
  gap: 4px;
}

#ppFeedbackForm textarea {
  height: 120px;
  resize: none;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .pp-btn {
    flex: 0 1 auto;
  }
}
