@import url(../style/colorVariables.css);

:root{
    --item-image: 150px;
}
.category-item-container{
    /*overflow-x: auto;*/
    white-space: nowrap;
}



#category-item-container{
    scroll-padding: 0 0 0 0;
    scroll-snap-type: x mandatory;
    transition: 250ms left, 250ms right;
    position: relative;
    left: 0;

}
#category-item-container::-webkit-scrollbar {
    width: 0;
    display: none;
}


.category-item{
    width: 160px;
    margin: 0 1px 0 1px ;
    cursor: pointer;
    /*scroll-snap-align: center;*/
    scroll-snap-stop: normal;
    /*scroll-padding: 0 50px 0 50px;*/
}

/*.category-item-container .wrapper{*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    display: grid;*/
/*    grid-template-columns: repeat(auto-fit, 180px);*/
/*    grid-template-rows: 100%;*/
/*    grid-gap: 10px;*/
/*    padding: 100px 100px 400px 100px; !* To give more space to scroll *!*/
/*}*/

.category-image{
    width: 110px;
    height: 70px;
    top: 25%;
    left: 50%;
    /*margin: 0 10px 0 10px ;*/
}
.category-word{
    width: 150px;
    height: 90px;
    top: 60%;
    left: 50%;
}

.category-item:active .category-word{
    width: 130px;
    height: 80px;
}


.category-item:active .category-image{
    width: 90px;
    height: 50px;
}


.category-word, .category-image{
    transform: translate(-50%, -50%);
    transition: 250ms width, 250ms height, 250ms color, 250ms background-color;
}

.category-item-delete-button{
    transform: translate(-50%, -50%);
    top: 5px;
    left: 5px;
}



.item-details-container{
    width: calc(100% - (var(--item-image)));
}

.item-button .item-container{
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    transition: 250ms width, 250ms height, 250ms background-color ;
    cursor: pointer;
}

.item-button .item-container:active{
    width: 98%;
    height: 95%;
    background-color: var(--lok-menu-primary);
}

.item-button .item-container .item-words{
    transition: 250ms color;
    color: var(--lok-menu-tertiary-first-der)

}

.item-button .item-container:active .item-details-container .item-words{
    color: var(--lok-menu-tertiary-first-der)

}
.item-image-container{
    width: var(--item-image);
}

#item-details-container-modal{
    top: -100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.50);
    width: 100%;
    height: 100%;
    transition: 250ms top, 250ms opacity;
    z-index: 100;
}

.reveal{
    opacity: 0;
}
.reveal.active{
    opacity: 1;
}

.modal-image-animation, .modal-word-animation{
    transform: translate(-50%, -50%);
}


.modal-image-animation{
    top: 55%;
    left: 50%;
}
.modal-word-animation{
    top: 45%;
    left: 50%;
}

.guide-animation{
    bottom: 50px;
    left: 100px;
}



.active.modal-word-animation{
    animation: going_left 1200ms;
}
.active.modal-image-animation{
    animation: going_right 1200ms;
}
.active.guide-animation{
    animation: guide_modal 3s 5s infinite;
    opacity: 0;
}

@media screen and (min-width: 0) and (max-width: 768px){
    .modal-image-animation{
        width: 280px;
        height: 180px;
    }
    .modal-word-animation{
        width: 380px;
        height: 280px;
    }

    .item-title-cost-container{
        height: 100%;

        padding: 0 5px 0 5px !important;
    }

    .item-words{
        display: none;
    }
    .item-title{
        width: 100% !important;
    }
    .item-cost{
        width: 100% !important;
        padding: 0 5px 0 5px !important;
    }
    .item-title, .item-cost{
        font-size: calc(.3em + .5vw);
    }


}

@media screen and (min-height: 0) and (max-height: 500px){
    .modal-image-animation{
        width: 380px;
        height: 280px;
        left: 70%;
        top: 60%;

    }
    .modal-word-animation{
        width: 380px;
        height: 280px;
        left: 30%;
        top: 40%;
    }
    .active.modal-word-animation{
        animation: going_left_media 1200ms;
    }
    .active.modal-image-animation{
        animation: going_right_media 1200ms;
    }
}


@keyframes guide_modal {
    0%{
        bottom: 50px;
        opacity: 0;
    }25%{
         opacity: 1;
     }50%{
          bottom: 300px;
            opacity: 0;
      }100%{
          bottom: 50px;
          opacity: 0;
       }
}

@keyframes going_left {
    0%{
        left: 20%;
        opacity: 0;
    }100% {
         left: 50%;
         opacity: 1;
     }
}


@keyframes going_right {
    0%{
        left: 80%;
        opacity: 0;

    }100%{
         right: 50%;
         opacity: 1;
     }
}

@keyframes going_left_media {
    0%{
        left: 0;
        opacity: 0;
    }100% {
         left: 30%;
         opacity: 1;
     }
}


@keyframes going_right_media {
    0%{
        left: 0;
        opacity: 0;

    }100%{
         right: 70%;
         opacity: 1;
     }
}


