/*general style of this library*/

/*hide an element from mobile view*/
.m-hide {
    display: none;
}

/*show an element that hided in pc view */
.p-hide {
    display: block;
}

/* remove pointer from an element */
.no-pointer-event {
    pointer-events: none;
    user-select: none;
}

.no-select-event {
    user-select: none;
}

/*to set the element full width, to the viewport*/
.f-width {
    width: 100%;
    max-width: 100%;
}

/*set an element width in the center of the viewport when expended, so in mobile view will be 100%*/
.c-width {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.c-h-width {
    width: 100%;
    max-width: 100%;
}

/*hide the scrollbar */
.hide-scroll::-webkit-scrollbar {
    height: 0;
    width: 0;
}

/*text style */
/*center text */
.c-text {
    text-align: center;
}

/* left text */
.l-text {
    text-align: left;
}

/* right text */
.r-text {
    text-align: right;
}


/*side style */
.side-n-2 {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
}

/*full side for full background color */
.full-side {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 auto;
    margin-top: 100px;
    width: 100%;
}

/*justify container content to left or right */
.right-flex-justify {
    display: flex;
    align-items: center;
    justify-content: right;
}

.left-flex-justify {
    display: flex;
    align-items: center;
    justify-content: left;
}

.center-flex-justify {
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-grid-justify {
    display: grid;
    align-items: center;
    justify-content: right;
}

.left-grid-justify {
    display: grid;
    align-items: center;
    justify-content: left;
}

.center-grid-justify {
    display: grid;
    align-items: center;
    justify-content: center;
}

/*side 2 child style */
.side-child-1 {
    align-self: center;
}

.side-child-2 {
    align-self: center;
}

/*if container has list */
.list-text {
    margin-top: 25px;
}

.list-text div {
    display: flex;
    gap: 3px;
    margin-top: 20px;
}

/*information side poto*/
.info-photo img {
    width: 100%;
    height: auto;
}

/*full width to set the element at full width or height*/
.full-w-h {
    height: 100%;
    width: 100%;
}

.f-h {
    height: 100%;
}

.f-w {
    width: 100%;
}

.empty-button {
    position: relative;
    outline: none;
    background-color: inherit;
    border: none;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    user-select: none;
}

.set-center {
    margin: 0 auto;
}

.margin-center {
    margin: 0 auto;
}

.margin-center-i {
    margin: 0 auto !important;
}

/*over hiding */
.overflow-hide {
    overflow: hidden;
}

/*display */
.inline-display {
    display: inline;
}

.block-display {
    display: block;
}

/* HTML: <div class="loader"></div> */
.loader-container {
    position: absolute;
    background-color: #f1f1f1;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    overflow: hidden;
}

.loading-no-hover:hover {
    opacity: 1 !important;
}

.circle-primary-loader {
    aspect-ratio: 1;
    border-radius: 100%;
    border: 2px solid var(--primary);
    border-right-color: #dfdfdf;
    animation: loads 0.5s infinite;
    background-color: none;
}

.circle-secondary-loader {
    aspect-ratio: 1;
    border-radius: 100%;
    border: 2px solid var(--secondary);
    border-right-color: #dfdfdf;
    animation: loads 0.5s infinite;
    background-color: none;
}

@keyframes loads {
    to {
        transform: rotate(1turn);
    }
}