/*  */
.suitcase-sec {
    background: url(../assets/bluebg.jpg) repeat;
    object-fit: cover;
    background-attachment: fixed;
}

.suitcaseScene {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stage {
    position: relative;
    width: 620px;
    max-width: 92%;
    margin: auto;
}

/* suitcase */
.bag {
    width: 100%;
    display: block;
}

.layer {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* items */
/* .item{
position:absolute;
z-index:99;
opacity:0;
animation:wobble 1s ease infinite;
cursor:none;
} */
/* .open {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 5;
} */

/* itemSuitcases inside suitcase */
.itemSuitcase {
    position: absolute;
    z-index: 99;
    opacity: 0;
    animation: wobble 1s ease infinite;

    /* transform: scale(.7); */
    /* filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .45)); */
}

.mice {
    position: absolute;
    z-index: 1199999;
    opacity: 0;
    width: 70px;
    left: 50px;
    bottom: 135px;
    animation: none !important;
    cursor: default !important;
    pointer-events: none;
}

.pen {
    position: absolute;
    z-index: 1199999;
    opacity: 0;
    width: 90px;
    left: 35%;
    bottom: 116px;
    animation: none !important;
    cursor: default !important;
    pointer-events: none;
}

/* positions based on your reference */

.postcard {
    width: 250px;
    left: 86px;
    bottom: 165px;
    /* transform: rotate(-19deg) !important; */
}

.papers {
    width: 270px;
    right: 0px;
    bottom: 130px;
    transform: rotate(7deg) scale(.85);
}

.map {
    width: 170px;
    right: 92px;
    bottom: 121px;
}

.cash {
    width: 180px;
    left: 180px;
    bottom: 140px;
}

.z-index {
    z-index: 99999;
}

@keyframes wobble {

    0%,
    100% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
    }

    15% {
        -webkit-transform: translateX(-22px) rotate(-8deg);
        transform: translateX(-22px) rotate(-8deg);
    }

    30% {
        -webkit-transform: translateX(calc(22px / 2)) rotate(8deg);
        transform: translateX(calc(22px / 2)) rotate(8deg);
    }

    45% {
        -webkit-transform: translateX(calc(-22px / 2)) rotate(calc(-8deg / 1.8));
        transform: translateX(calc(-22px / 2)) rotate(calc(-8deg / 1.8));
    }

    60% {
        -webkit-transform: translateX(calc(22px / 3.3)) rotate(calc(8deg / 3));
        transform: translateX(calc(22px / 3.3)) rotate(calc(8deg / 3));
    }

    75% {
        -webkit-transform: translateX(calc(-22px / 5.5)) rotate(calc(-8deg / 5));
        transform: translateX(calc(-22px / 5.5)) rotate(calc(-8deg / 5));
    }
}

/* overlay bg */
.viewer {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 999999999;
}

/* zoomed image */
.viewer img {
    max-width: 80vw;
    max-height: 80vh;
    transform: scale(.6);
    border-radius: 14px;
    /* box-shadow: 0 30px 80px rgba(0, 0, 0, .2); */
    background-color: transparent;
}

/* cursor */
/* hide normal cursor on suitcase itemSuitcases */
.itemSuitcase {
    cursor: none;
}

/* custom cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    font-size: 8px;
    letter-spacing: 0px;
    display: none;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    pointer-events: none;
    /* visibility: hidden; */
    z-index: 1000000;
    transform: translate(-50%, -50%) scale(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1000001;
    user-select: none;
    transition: transform .2s ease, opacity .2s ease;
}

.close-btn:hover {
    transform: scale(1.2);
    opacity: .7;
}

@media (min-width:501px) and (max-width:767px) {
    .stage {
        max-width: 95%;
    }

    .itemSuitcase {
        cursor: none;
        scale: .7 !important;
    }

    .postcard {
        left: 20px;
        bottom: 100px;
    }

    .papers {
        bottom: 60px;
    }

    .map,
    .pen {
        bottom: 80px;
    }

    .cash {
        left: 80px;
        bottom: 90px;
    }

    .mice {
        width: 50px;
        left: 30px;
        bottom: 95px;
    }
}

@media (min-width:400px) and (max-width:500px) {
    .itemSuitcase {
        cursor: none;
        scale: .5 !important;
    }

    .postcard {
        left: 0;
        bottom: 20%;
    }

    .papers {
        bottom: 3%;
        right: -15%;
        width: 320px;
    }

    .map,
    .pen {
        bottom: 18%;
    }

    .map {
        right: 5% !important;
        scale: .6 !important;
    }

    .cash {
        left: 12%;
        bottom: 19%;
    }

    .mice {
        width: 60px;
        left: 7%;
        bottom: 21%;
    }
}

@media (max-width:400px) {
    .postcard {
        width: 130px;
        left: 16%;
        bottom: 30%;
    }

    .papers {
        bottom: 20%;
        right: 0;
        width: 150px;
    }

    .map {
        bottom: 22%;
        right: 10%;
        width: 100px;
    }

    .itemSuitcase {
        cursor: none;
        scale: 1 !important;
    }

    .cash {
        width: 80px;
        left: 20%;
        bottom: 27%;
    }

    .mice {
        width: 30px;
        left: 30px;
        bottom: 20%;
    }

    .pen {
        width: 50px;
        left: 35%;
        bottom: 20%;
    }
}

@media (max-width:767px) {
    .custom-cursor {
        visibility: hidden !important;
    }
}


/*  */

/* .nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px 18px;
    background: rgba(0,0,0,.4);
    border-radius: 50%;
}

.nav.prev { left: 30px; }
.nav.next { right: 30px; }

.nav:hover {
    background: rgba(0,0,0,.7);
} */
