﻿.wrap {
    min-height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    padding: 0px;
    background: var(--bg);
    box-sizing: border-box;
    direction: rtl;
}

/* بوم و ناحیه هدف */
.stage {
    /*width:40%; /*900px;*/
    top:0%;
    height: 720px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(16,24,40,0.08);
    position: relative;
    overflow: hidden;
    padding: 0px;
}

/* ناحیه هدف (جای خاص) */
.target {
    position: absolute;
    width: 75%; /*350px*/
    height: 4%;
    right: 12%; /*141px; /* قابل تغییر برای تعیین مکان جای خاص */
    border-radius: 10px;
    border: 3px dashed rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, box-shadow .18s ease, background .18s;
    background: linear-gradient(180deg, rgba(255,107,107,0.12), rgba(255,107,107,0.05));
    box-shadow: 0 0 0 rgba(255,107,107,0);
}

    .target.active {
        transform: scale(1.03);
        box-shadow: 0 8px 24px rgba(255,107,107,0.12);
        border-style: solid;
    }

.targetAI {
    top: 8%;
}

.target0 {
    top: 13.3%;
}

.target1 {
    top: 18.6%;
}

.target2 {
    top: 23.9%;
}

.target3 {
    top: 29.2%;
}

.target4 {
    top: 34.5%;
}

.target5 {
    top: 39.8%;
}

.target6 {
    top: 45.1%;
}

.target7 {
    top: 50.4%;
}

.target8 {
    top: 55.7%;
}

.target9 {
    top: 61%;
}

.target10 {
    top: 66.3%;
}

.target11 {
    top: 71.6%;
}

.ResultL {
    position: absolute;
    display: flex;
    align-items: left;
    justify-content: left;
    left: 2%;
    margin-top: 1%;
    direction: ltr;
}
.ResultR {
    position: absolute;
    display: flex;
    align-items: left;
    justify-content: left;
    right: 2%;
    margin-top: 1%;
    direction: ltr;
}

.target-label {
    font-weight: 700;
    color: #8b1f1f
}

/* شی که کشیده می‌شود */
.draggable {
    position: absolute;
    width: 73%; /*340px;*/
    height: 4%; /*28px;*/
    left: 13%; /*36px; /* موقعیت اولیه */
    top: 1.5%; /*48px; /* موقعیت اولیه */
    border-radius: 12px;
    background: var(--item);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    user-select: none;
    touch-action: none; /* برای pointer events تاچ */
    box-shadow: 0 8px 20px rgba(45,156,219,0.18);
    transition: transform .12s ease, left .18s ease, top .18s ease;
    will-change: transform, left, top;
    cursor: grab;
}

    .draggable:active {
        cursor: grabbing;
    }

    .draggableShake:hover {
        /* Start the shake animation and make the animation last for 0.5 seconds */
        animation: shake 0.5s;
        /* When the animation is finished, start again 
        animation-iteration-count: infinite;*/
    }
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
}


.toos {
    width: 0%;
    top: 2%;
    left: 6%;
}

.DivSel:hover {
    background-color: gray;
    padding: 1%;
}

.iWinner {
    animation: wiggle 2s infinite ease-in-out;
}

/* ریسپانسیو */
/*@media (max-width:760px) {
    .wrap {
        flex-direction: column;
        padding: 12px
    }

    .stage {
        width: 100%;
        height: 520px
    }

    .target {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px
    }
}*/

/* Modal Select AI ************************************************************************************************************/
.btn-cat {
    background-color: #d9cbbd;
    color: #4b3f37;
    border-radius: 25px;
    border: none;
    padding: 0.6rem 1.6rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .btn-cat:hover {
        background-color: #c2b19f;
        transform: scale(1.05);
    }

.modal-content000 {
    border-radius: 20px;
    border: none;
    background: linear-gradient(145deg, #fffaf6, #f9f3ec);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.modal-header {
    background-color: #f2e3d5;
    color: #4b3f37;
    border-bottom: none;
    text-align: center;
    justify-content: center;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
}

    .modal-header::before {
        content: "👮";
        position: absolute;
        left: 15px;
        top: 10px;
        font-size: 1rem;
    }

.modal-bodyAIType {
    text-align: center;
    color: #5a4a3c;
    padding: 0.5rem;
    font-size: 0.8rem;
}

    .modal-bodyAIType .imgAIType {
        width: 60px;
        margin-bottom: 15px;
        animation: wiggle 2s infinite ease-in-out;
    }

.modal-footer {
    border-top: none;
    justify-content: center;
    background-color: #f9f3ec;
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(3deg);
    }

    75% {
        transform: rotate(-3deg);
    }
}

/* Smooth modal slide animation */
.modal.fade .modal-dialog {
    transform: translateY(-40px);
    transition: all 0.4s ease-out;
}

.modal.show .modal-dialog {
    transform: translateY(0);
}
