/* --- Tiled Question Styles --- */

/* The container for tiled questions (full width of its parent) */
.tile-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

/* Each option is wrapped in a flex item; by default, each takes equal share */
.tile-item {
  flex: 1;
  transition: flex 0.2s ease-in-out;
}

/* When a tile is selected, increase its flex value so it grows proportionally */
.tile-item.selected {
  flex: 1.15;
}

/* The actual tile element uses available space and remains square */
.tile {
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease-in-out;
}

/* For tiles with text below */
.tile-below-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.tile-below-label {
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
  font-size: 30px;
}

/* --- Full-Screen Quiz and Navigation --- */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

#brand-generator-app {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.quiz-container {
  width: 100vw;
  height: calc(100vh - 70px); /* leave space for fixed nav */
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: hidden;  /* no vertical scrolling */
}

/* Center the progress text ("Question X of Y") */
.progress {
  text-align: center;
  margin-bottom: 15px;
  font-size: 16px;
}

/* --- Question Title Styling --- */
.question-text {
  text-align: center;
  font-weight: bold;
  font-size: 50px;
  margin-bottom: 15px;
}

/* --- Slider Styles --- */
.question-container {
  width: 100%;
  box-sizing: border-box;
}

.question-container input[type="range"] {
  display: block;
  width: 100%;
  margin: 10px 0;
}

/* Slider Thumb (for WebKit browsers) */
.question-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: #a04ef2;
  transform: scale(2); /* 200% larger */
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  margin-top: -5px; /* Adjust to center thumb on track */
}

/* Slider Track (for WebKit browsers) */
.question-container input[type="range"]::-webkit-slider-runnable-track {
  background: #ddbffb;
  height: 20px; /* 100% thicker than a default 10px track */
  border-radius: 10px;
}

/* Slider number indicators */
.slider-labels span {
  font-weight: bold;
  font-size: 30px;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 10px;  /* Optional: adjust padding to add extra spacing on the sides */
}

.slider-labels span {
  font-weight: bold;
  font-size: 30px;
}


/* --- Navigation Buttons --- */
.navigation-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 20px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 1000;
}

button {
  background-color: #a04ef2;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
  font-size: 25px;
  padding: 10px 30px;
  cursor: pointer;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}s

/* --- Generated Brand Name Styling --- */
.quiz-container h2 {
  text-align: center;
  font-size: 100px;
  margin: 40px 0;
}

/* --- Spinner Animation --- */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

/* --- Force Custom Slider Appearance --- */
input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  background: transparent;
}

/* WebKit (Chrome, Safari) Slider Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #a04ef2 !important;
  border: none !important;
  height: 20px !important;
  width: 20px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  margin-top: 0px !important; /* Adjust as needed to center thumb on the track */
}

/* Firefox Slider Thumb */
input[type="range"]::-moz-range-thumb {
  -moz-appearance: none !important;
  background: #a04ef2 !important;
  border: none !important;
  height: 20px !important;
  width: 20px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
}

/* Final Page Buttons Container */
.final-buttons {
  display: flex;
  justify-content: center;  /* Centers the buttons horizontally */
  gap: 20px;                /* Space between buttons */
  margin-top: 20px;
}

.quiz-container h2{
    font-size:100px;
}

.name-container {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New layout for splitting the question container into two halves */
.question-container {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%; /* Adjust if needed */
}

/* Left side: question text and info */
.question-left {
  width: 50%;
  background-color: #a04ef2;
  color: #fff;  /* Adjust text color for contrast */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Right side: answer options */
.question-right {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Ensure content in both sides is centered */
.question-left, .question-right {
  text-align: center;
}

