:root {
    --primary: #29ABE2;
    --secondary: #F2994A;
    --success: #27AE60;
    --bg-light: #F5F5F5;
    --text-dark: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

.font-geist-mono {
    font-family: monospace;
}

.animation-container {
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f9f9f9;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.rl-process {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    margin: 2rem 0;
    gap: 0.5rem;
}

.rl-step {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem 1rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rl-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.rl-step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.rl-step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
    padding: 0 0.5rem;
}

@media (max-width: 768px) {
    .rl-process {
        flex-direction: column;
        align-items: center;
    }
    
    .rl-step {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1rem;
    }
    
    .rl-step-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

#maze-canvas {
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: #ddd;
    border-radius: 5px;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    background-size: 70% 100%;
    background-repeat: no-repeat;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 2px 0 rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Animation classes */
.step-highlight {
    border: 2px solid var(--primary);
    box-shadow: 0 0 0 4px rgba(41, 171, 226, 0.2);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 171, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(41, 171, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 171, 226, 0);
    }
}

.pulse {
    animation: pulse 1.5s infinite;
}
