body {
    font-family: Arial, sans-serif;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.container {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 800px;
    text-align: center;
}
h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===================== Answer Tiles ===================== */
#question-content.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
}

.answer-tile {
    aspect-ratio: 1 / 1; /* Makes it square */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #43b0b3;
    color: white;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.answer-tile.has-image {
    padding: 0.75rem;
    gap: 0.5rem;
}

.answer-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: #ff914d;
}

.answer-tile:active {
    transform: translateY(-1px);
}

/* Selected state for multiple choice */
.answer-tile.selected {
    background-color: #7589d5;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Tile image */
.tile-image {
    width: 80%;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

/* Tile text (answer) */
.tile-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Tile description */
.tile-description {
    font-size: 0.75rem;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.2;
}


button {
    background-color: #43b0b3;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
button:hover {
    background-color: #7589d5;
}
.loading {
    color: #6b7280;
}
/* === Slider Styling === */
.noUi-target {
    background: #e5e7eb; /* light gray background */
    border-radius: 9999px;
    height: 10px;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.noUi-connect {
    background: #10b981; /* emerald green (matches Send button) */
    border-radius: 9999px;
}

.noUi-handle {
    background: #2563eb; /* blue handle color */
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    top: -7px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none; /* hide the default inner bars */
}

/* Tooltip styling */
.noUi-tooltip {
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 3px 6px;
}