:root {
    --bg-color: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-color: #ffffff;
    --accent-color: #00d2be;
    --cube-white: #ffffff;
    --cube-yellow: #ffd500;
    --cube-red: #b90000;
    --cube-orange: #ff5900;
    --cube-blue: #0045ad;
    --cube-green: #009b48;
    --cube-gray: #444444;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    background-color: var(--card-bg);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-link {
    color: var(--text-color);
    text-decoration: none;
    margin-right: 2rem;
    font-weight: 600;
}

.container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.step {
    display: none;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.step-number {
    background: var(--accent-color);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: 1.8rem;
}

.instructions {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.algorithm {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.4rem;
    text-align: center;
    margin: 1rem 0;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    letter-spacing: 2px;
}

/* Visuals */
.visual-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
}

.cube-grid {
    display: grid;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
    gap: 4px;
    background: #000;
    padding: 4px;
    border-radius: 4px;
}

.sticker {
    width: 100%;
    height: 100%;
    border-radius: 2px;
}

.white {
    background-color: var(--cube-white);
}

.yellow {
    background-color: var(--cube-yellow);
}

.red {
    background-color: var(--cube-red);
}

.orange {
    background-color: var(--cube-orange);
}

.blue {
    background-color: var(--cube-blue);
}

.green {
    background-color: var(--cube-green);
}

.gray {
    background-color: var(--cube-gray);
}

.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.next-btn {
    background-color: var(--accent-color);
    color: #000;
}

.prev-btn {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.step-list {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.step-list li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}