/* ============ CHALLENGE BEGINNING PAGE STYLES ============ */

.info-icon-header {
    width: 119px;
    height: 117px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-header .info-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.challenge-container {
    position: absolute;
    top: 170px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 170px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    background-color: #FFFFFF;
}

.info-icon {
    position: absolute;
    top: 25px;
    left: 49px;
    width: 119px;
    height: 117px;
    z-index: 10;
}

.info-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.challenge-text-section {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    pointer-events: none;
}

.challenge-main-text {
    font-family: 'Limelight', serif;
    font-size: 151.203px;
    font-weight: normal;
    color: #2b2b2b;
    margin: 0;
    line-height: 1;
    text-align: left;
}

.challenge-main-text.challenge-right {
    text-align: right;
    align-self: flex-end;
}

.challenge-center-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
}

.challenge-info {
    position: absolute;
    bottom: 60px;
    left: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 5;
}

.play-circle {
    width: 296px;
    height: 296px;
    border-radius: 50%;
    background-color: #a3b18a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.play-button {
    background: none;
    border: none;
    cursor: pointer;
    width: 176px;
    height: 189px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
}

.play-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.unlock-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 35.424px;
    color: #2b2b2b;
    margin: 0;
    line-height: 1.2;
    text-align: left;
}

.arrow-icon {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

/* ============ ASSESSMENT PAGE STYLES ============ */

.assessment-container {
    position: absolute;
    top: 170px;
    left: 0;
    width: 1440px;
    min-height: 950px;
    background-color: #FFFFFF;
    padding: 0;
    margin: 0;
}

/* ============ DOTTED CURVE LINES ============ */

.dotted-curve {
    position: absolute;
    top: 348px;
    left: 298px;
    width: 820px;
    height: 337px;
}

/* ============ STEP BOXES ============ */

.step-box {
    position: absolute;
    width: 216px;
    height: 200px;
    background-color: #ede0d4;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    transition: all 0.3s ease;
    z-index: 10;
    border: 2px solid #2b2b2b;
}

.step-box:hover:not(.filled) {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-box.error {
    border: 4px solid #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8), inset 0 0 10px rgba(255, 0, 0, 0.3);
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.step-box.correct {
    border: 4px solid #4CAF50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.8), inset 0 0 10px rgba(76, 175, 80, 0.3);
}

.step-box.filled {
    cursor: default;
}

.step-box-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.step-item-image {
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: none;
    cursor: grab;
    user-select: none;
    transition: all 0.2s ease;
    padding: 12px;
    background-color: transparent;
    border-radius: 8px;
}

.step-item-image.visible {
    display: block;
    position: relative;
    z-index: 5;
    background-color: #EDE0D4;
    border-radius: 8px;
}

.step-item-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-item-image.dragging {
    opacity: 0.85;
    transform: scale(1);
    background-color: #EDE0D4;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background-image: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
}

.step-item-image:active {
    cursor: grabbing;
}

.step-box-outline {
    position: absolute;
    width: 248px;
    height: 230px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: transparent;
    top: -15px;
    left: -16px;
    pointer-events: none;
}

/* ============ DRAG INSTRUCTION ============ */

.drag-instruction {
    position: absolute;
    top: 491px;
    left: 525px;
    width: 389px;
    height: 59px;
    background-color: #a2b19f;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
}

.drag-instruction p {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #2b2b2b;
    margin: 0;
}

/* ============ DRAGGABLE ITEMS ============ */

.draggable-items {
    display: none;
}

.draggable-item {
    display: none;
}

/* ============ BUTTON STYLES ============ */

.button-group-assessment {
    position: absolute;
    bottom: 30px;
    left: 64px;
    width: 1312px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    z-index: 20;
    margin-top: 90px;
}

.btn-secondary,
.btn-primary {
    flex: 0 0 307px;
    height: 91px;
    border: none;
    border-radius: 60px;
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 25px;
    color: #2b2b2b;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #a3b18a;
    top: 930px;
    margin-top: 50px;
}

.btn-secondary:hover,
.btn-primary:hover {
    background-color: #94a478;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active,
.btn-primary:active {
    transform: translateY(0);
}

/* ============ RESPONSIVE DESIGN ============ */

@media (max-width: 1200px) {
    .challenge-main-text {
        font-size: 100px;
    }

    .steps-grid {
        gap: 60px;
    }

    .draggable-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .challenge-container {
        padding: 20px;
    }

    .challenge-text-section {
        flex-direction: column;
        text-align: center;
    }

    .challenge-main-text {
        font-size: 60px;
    }

    .play-circle {
        width: 200px;
        height: 200px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .draggable-items {
        grid-template-columns: 1fr;
    }

    .btn-secondary,
    .btn-primary {
        max-width: none;
        font-size: 24px;
        border-radius: 60px;
    }
}
