/* Brilliant.org Neo-Brutalism Theme */
#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #FFF5F0;
    z-index: 99999;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #000;
    overflow: hidden;
    transition: opacity 0.5s ease-in-out;
}

#onboarding-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.onboarding-progress {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    position: absolute;
    top: 0;
    left: 0;
}

.onboarding-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #E8500A;
    transition: width 0.4s ease-in-out;
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: #000;
    display: none;
    transition: transform 0.2s;
}

.back-btn:hover {
    transform: translateX(-4px);
}

.onboarding-container {
    width: 100%;
    max-width: 800px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 20px;
}

.steps-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.step-container {
    position: absolute;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(50px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-container.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.step-container.exit-left {
    opacity: 0;
    transform: translateX(-50px);
}

.step-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #000;
    line-height: 1.3;
}

.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    width: 100%;
}

.pill-btn {
    background-color: #FFFFFF;
    color: #000;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 4px 4px 0px #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pill-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.pill-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #000;
}

.pill-btn.selected, .pill-btn.primary-btn {
    background-color: #E8500A;
    color: #FFFFFF;
    border-color: #1A1A1A; /* Keeps the black border on primary */
}

.pill-btn.primary-btn {
    padding: 16px 48px;
    font-size: 18px;
}

.nav-actions {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

#robot-container {
    width: 180px;
    height: 160px;
    margin-top: 80px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

@keyframes robotWave {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    50% { transform: translateY(0px) rotate(3deg); }
    75% { transform: translateY(-5px) rotate(-5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes robotFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes robotJump {
    0% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-40px) scale(1.05); }
    50% { transform: translateY(-50px) scale(1); }
    70% { transform: translateY(-40px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

.robot-wave {
    animation: robotWave 4s ease-in-out infinite;
}

.robot-float {
    animation: robotFloat 3s ease-in-out infinite;
}

.robot-jump {
    animation: robotJump 1.5s cubic-bezier(0.28, 0.84, 0.42, 1) infinite;
}

.primary-btn.shine {
    position: relative;
    overflow: hidden;
}

.primary-btn.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.primary-btn.shine:hover::before {
    left: 150%;
    transition: 0.7s ease;
}

.onboarding-left {
    width: 40%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.onboarding-right {
    width: 60%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
}

@media (max-width: 768px) {
    #onboarding-overlay {
        flex-direction: column;
    }
    .onboarding-left {
        display: none;
    }
    .onboarding-right {
        width: 100%;
        height: 100vh;
        flex: 1;
        justify-content: center;
    }
}
