﻿/* ==========================================================================
   QuestLevelL1.css
   Shared styles for QuestTwoSumL1 and QuestContainsDuplicateL1
   (renamed to avoid clashing with the L2-L4 shared CSS)
   ========================================================================== */

/* ==========================================================================
   1. PRIMARY LAYOUT CONTAINERS
   ========================================================================== */

/* Two-column grid layout (Contains Duplicate) */
.level-container-l1 {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef5ff, #ffffff);
    display: grid;
    grid-template-columns: 750px 380px;
    justify-content: center;
    gap: 25px;
    padding: 30px;
    box-sizing: border-box;
    align-items: start;
}

/* Centered single-column layout (Two Sum) */
.level-container-l1-centered {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
}

.main-column,
.sidebar-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.lion-l1 {
    font-size: 70px;
}


/* ==========================================================================
   2. LESSON / STORY CARDS & HEADERS
   ========================================================================== */
.lesson-card-l1 {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.story-card {
    margin-top: 30px;
    width: 950px;
    max-width: 100%;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    text-align: center;
    box-sizing: border-box;
}
.main-problem-card {
    text-align: center;
}

    .main-problem-card h1 {
        color: #23408e;
        font-size: 36px;
        margin-bottom: 5px;
    }

    .main-problem-card h2 {
        color: #2d5be3;
        font-size: 22px;
        margin-top: 0;
    }

    .main-problem-card .description {
        color: #4a5568;
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

.target-l1 {
    margin-top: 20px;
    font-size: 32px;
    font-weight: bold;
}


/* ==========================================================================
   3. SECTIONS & NUMBER/STONE DISPLAYS
   ========================================================================== */
.example-section {
    padding: 20px 0;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 15px 0;
}

/* Contains Duplicate: circular number bubbles */
.numbers {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

    .numbers span {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        background: #2d5be3;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 26px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

        .numbers span:hover {
            transform: scale(1.1);
        }

        .numbers span.duplicate {
            background: #ffb300;
            transform: scale(1.1);
        }

/* Two Sum: circular stone bubbles */
.stones-l1 {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 35px;
}

.stone-l1 {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: .2s;
}

    .stone-l1:hover {
        transform: scale(1.08);
    }

    .stone-l1.selected {
        transform: scale(1.1);
    }

.answer {
    font-size: 22px;
    font-weight: bold;
    color: #28a745;
    margin-top: 15px;
}


/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.check-button {
    margin-top: 30px;
    padding: 14px 35px;
    border: none;
    border-radius: 15px;
    background: #28a745;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}


/* ==========================================================================
   5. SIDEBAR CALLOUT BANNER
   ========================================================================== */
.question-box {
    background: #fff9db;
    border-left: 5px solid #fcc419;
    padding: 15px 25px;
    border-radius: 4px 12px 12px 4px;
    color: #665400;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin: 20px auto;
    width: fit-content;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(252, 196, 25, 0.15);
}

.letter.selected {
    background: #ffb300;
    transform: scale(1.15);
    box-shadow: 0 0 15px gold;
}
/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1200px) {
    .level-container-l1 {
        grid-template-columns: minmax(0, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
}
