:root {
    --primary: #0693e3;
    --secondary: #EDE6DC;
    --font-family: 'Playfair Display';
    --radius-lg: 2%;
    --success: #0f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--neutral-800);
    background: url('../public/coolbackgrounds-topography-micron.svg');
    background-attachment: fixed;
	max-width: 100%;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

header {
    padding: 16px 0;
}

.header-content {
    text-align: center;
    background-color: rgba(0,0,0,0.5);
	/*background-color: rgba(246,223,166, 0.5);*/
    color: white;
	/*color: black;*/
    border-radius: var(--radius-lg);
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 24px;
    line-height: 1.2;
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}

.survey-container {
    width: 100%;
    margin: 0 auto;
}

footer {
    padding: 24px 0;
}

.progress-container {
    margin: 24px auto;
    max-width: 500px;
}

.progress-bar {
    height: 8px;
    background-color: var(--neutral);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width var(--transition-normal);
}

.progress-text {
    font-size: 0.875rem;
    color: var(--neutral);
    margin-top: 8px;
    text-align: center;
}

.question-card,
.results-card {
    background-color: rgba(0, 0, 0, 0.5);
	/*background-color: rgba(246,223,166, 0.5);*/
    color: white;
	/*color: black;*/
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    min-height: 400px;
}

#intro-text {
    background-color: rgba(0,0,0,0.5);
	/*background-color: rgba(246,223,166, 0.5);*/
    color: white;
	font-size: 18px;
	/*color: black;*/
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    backdrop-filter: blur(5px); /* <-- Blur effect */
    background-color: rgba(255, 255, 255, 0.3); /* Optional light overlay */
    z-index: 1050; /* Higher than most Bootstrap elements */
    display: flex;
    justify-content: center;
    align-items: center;
  }

.question-view,
.results-view {
    width: 100%;
}

.hidden {
    display: none !important;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neutral);
    margin-bottom: 32px;
    line-height: 1.3;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-option {
    background-color: var(--neutral-50);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    border: solid #000;
}

.answer-option:hover {
    border-color: var(--primary-300);
    background-color: var(--primary-100);
    transform: scale(101%);
}

.answer-option.selected {
    border-color: var(--success);
    background-color: var(--primary-100);
    transform: scale(100%);
}

.answer-option.selected:hover {
    border-color: var(--success);
    background-color: var(--primary-100);
    transform: scale(101%);
}

.answer-text {
    font-size: 1rem;
    color: var(--neutral-800);
    position: relative;
    z-index: 2;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    font-weight: normal;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-color: var(--primary-500);
    color: white;
}

.btn:hover {
    background-color: var(--primary-600);
    transform: translateY(-2px);
}

.btn.active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--neutral-100);
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-secondary:hover {
    background-color: var(--neutral-200);
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.results-intro {
    margin-bottom: var(--space-24);
    color: var(--neutral-600);
}

#question-text {
    opacity: 1;
}

.legible {
    color: aliceblue
}