@font-face {
    font-family: 'Poppins';
    src: url('/ui/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/ui/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/ui/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    overflow: hidden;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.mainmenu {
    box-sizing: border-box;
    position: relative;
    width: 1250px;
    height: 750px;
    background: linear-gradient(109.28deg, #1E2123 0.45%, #131619 56.68%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 30px;


    opacity: 0;
    animation: fadeInScale 0.7s ease-in-out 0.4s forwards;
}

.close-button {
    position: absolute;
    top: 5px;
    right: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    color: #95979b;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.close-button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

.fade-scale-enter-active, .fade-scale-leave-active {
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

.fade-scale-enter {
    opacity: 0;
    transform: scale(0.8);
}

.fade-scale-leave-to {
    opacity: 0;
    transform: scale(0.8);
}

.nav {
    box-sizing: border-box;
    position: absolute;
    width: 904px;
    height: 59px;
    left: 32px;
    top: 34px;
    background: linear-gradient(180deg, rgba(54, 62, 81, 0.1) 0%, rgba(25, 30, 38, 0.1) 100%);
    backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px 15px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1;
}

.nav.duplicate {
    z-index: 0;
    opacity: 0.8;
    transform: translate(-3px, 3px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border: none;
    pointer-events: none;
}

.defaultavatar {
    width: 42px;
    height: 42px;
    background-size: cover;
    border-radius: 50%;
    position: absolute;
    left: 20px;
    top: 9px;
    border: 1px solid white;
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.defaultavatar img.avatar-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    left: 0;
    top: 0;
}

.defaultplayername {
    position: absolute;
    width: 100px;
    height: 30px;
    left: 8%;
    top: 15px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 10px;
    line-height: 15px;
    text-align: left;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.searchframe {
    box-sizing: border-box;
    position: relative;
    width: 399px;
    height: 25px;
    margin-left: 200px;
    border: 1px solid #424856;
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.013);
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #FFFFFF;
    letter-spacing: -0.3px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-icon {
    position: absolute;
    right: 10px;
    width: 18px;
    height: 20px;
    background: url('images/search.svg') no-repeat center center;
    background-size: contain;
    pointer-events: none;
    opacity: 0.5;
}

.slotmenu {
    box-sizing: border-box;
    position: absolute;
    width: 904px;
    height: 572px;
    left: 32px;
    top: 131px;
    background: linear-gradient(167.4deg, rgba(54, 62, 81, 0.0) 25.94%, rgba(25, 30, 38, 0.0) 68.26%);
    backdrop-filter: blur(35px);
    border: 1px solid #424856;
    border-radius: 30px;
    padding: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.slotmenu.duplicate {
    z-index: 1;
    opacity: 0.5;
    transform: translate(-3px, 3px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border: none;
}

.slot-container-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    justify-items: center;
    align-items: start;
}

.slot-container-wrapper::-webkit-scrollbar {
    width: 6px;
}

.slot-container-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.slot-container-wrapper::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.slot-container-wrapper::-webkit-scrollbar-track {
    background: rgba(54, 62, 81, 0.3);
}

.slot-container {
    position: relative;
    display: inline-block;
    width: 165px;
    height: 241px;
    margin: 10px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.slot-container:hover {
    transform: translateY(-10px);

}

.slot-container:hover .slot {
    transition: background 0.3s ease-in-out;
}

.slot {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px;
    overflow: hidden;
}

.slot-container img.slot-image {
    width: 90%;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}

.slot-container .item-image {
    width: 50%;
    height: auto;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.slot-container .item-info {
    position: absolute;
    top: 50%;
    left: 13%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 3;
}

.item-label, .item-price {
    color: #ffffff;
    text-align: left;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.item-label {
    font-size: 16px;
    font-weight: 600;
}

.item-price {
    font-size: 14px;
    font-weight: 400;
    margin-top: 5px;
}

.item-price-wrapper {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.1);
    padding: 3px 8px;
    border-radius: 50px 20px 20px 50px;
    text-align: center;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.add-button {
    position: absolute;
    min-width: 58.86px;
    height: 22.59px;
    bottom: 45px;
    left: 30%;
    transform: translateX(-50%) rotate(-10.62deg);
    background: #D9D9D9;
    border-radius: 35px 11px 46px 19px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    box-sizing: border-box;
    overflow: hidden;
}

.add-button:hover {
    background-color: #b8b8b8;
}

.productlisting {
    box-sizing: border-box;
    position: absolute;
    width: 252px;
    height: 669px;
    left: 962px;
    top: 34px;
    background: linear-gradient(167.4deg, rgba(54, 62, 81, 0.1) 25.94%, rgba(25, 30, 38, 0.1) 68.26%);
    border: 1px solid #424856;
    backdrop-filter: blur(35px);
    border-radius: 30px;
    padding-top: 120px;
    padding-bottom: 12%;
    z-index: 2;
}

.productlisting-title {
    position: absolute;
    width: 100%;
    height: auto;
    top: 17px;
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    text-align: center;
}

.productlisting.duplicate {
    z-index: 1;
    opacity: 0.8;
    transform: translate(-3px, 3px);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    border: none;
}

.productlisting-frame {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-right: 10px;
    overflow-x: hidden;
}

.productslot {
    position: relative;
    width: 252px;
    height: 99px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.productslot {
    animation: none;
}

.productslot.adding {
    animation: fadeInUp 0.5s ease-out;
}

.productlisting-frame::-webkit-scrollbar {
    width: 6px;
}

.productlisting-frame::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.productlisting-frame::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.productlisting-frame::-webkit-scrollbar-track {
    background: rgba(54, 62, 81, 0.3);
}

.dynamic-item-info {
    position: relative;
    top: 25%;
    margin-left: 85px;
    max-width: 95px;
}

.dynamic-item-name {
    font-family: 'Poppins';
    font-weight: 700;
    font-size: 14px;
    color: #FFFFFF;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
    margin-bottom: 5px;
}

.dynamic-item-price {
    font-family: 'Poppins';
    font-weight: 400;
    font-size: 13px;
    color: #FFFFFF;
}

.separator-top {
    position: absolute;
    width: 215px;
    height: 0px;
    left: 18px;
    top: 1px;
    border: 0.1px solid rgba(255, 255, 255, 0.1);
}

.separator-bottom {
    position: absolute;
    width: 215px;
    height: 0px;
    left: 18px;
    top: 99px;
    border: 0.1px solid rgba(255, 255, 255, 0.1);
}


.item-photo-frame {
    box-sizing: border-box;
    position: absolute;
    width: 50px;
    height: 50px;
    left: 25px;
    top: 25px;
    background: linear-gradient(167.4deg, rgba(54, 62, 81, 0.57) 25.94%, rgba(25, 30, 38, 0.57) 68.26%);
    border-radius: 15px;
}

.item-photo {
    position: absolute;
    width: 75%;
    height: 75%;
    border-radius: 15px;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.increment-decrement {
    position: absolute;
    width: 50px;
    height: 21px;
    right: 20px;
    top: 35px;
    background: #242C3B;
    box-shadow: inset -2px -2px 4px #273041, inset 2px 2px 4px #1D2531;
    border-radius: 5px;
}

.increment-decrement .plus-btn {
    position: absolute;
    width: 14px;
    height: 14px;
    left: 4px;
    top: 4px;
    background: linear-gradient(151.1deg, #34C8E8 1.78%, #4E4AF2 95.56%);
    border-radius: 5px;
    cursor: pointer;
}

.increment-decrement .plus-btn::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 0;
    left: 0;
    background: url('images/plus.svg') no-repeat center center;
    background-size: 12px 12px;
}

.increment-decrement .minus-btn {
    position: absolute;
    width: 14px;
    height: 14px;
    left: 32px;
    top: 4px;
    background: #353F54;
    border-radius: 5px;
    cursor: pointer;
}

.increment-decrement .minus-btn::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    top: 0;
    left: 0;
    background: url('images/remove.svg') no-repeat center center;
    background-size: 12px 12px;
}

.item-count-container {
    position: absolute;
    width: 50px;
    height: 21px;
    right: 20px;
    top: 60px;
    background: #242C3B;
    box-shadow: inset -2px -2px 4px #273041, inset 2px 2px 4px #1D2531;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-count-container input {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.7);
    outline: none;
    -moz-appearance: textfield;
}

.item-count-container input::-webkit-outer-spin-button,
.item-count-container input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.textui-container {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) translateX(-200px);
    opacity: 0;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.textui-container.show {
    animation: slideInFromLeft 0.4s ease-out forwards;
}

.textui-container.hide {
    animation: slideOutToLeft 0.4s ease-out forwards;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateY(-50%) translateX(-200px);
        opacity: 0;
    }
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    0% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(-200px);
        opacity: 0;
    }
}

.textui-box {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(167.4deg, rgba(30, 33, 35, 0.8) 25.94%, rgba(19, 22, 25, 0.8) 68.26%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 14px 8px 14px;
    padding-right: 50px;
    max-width: 5000px;
    box-sizing: border-box;
}

.textui-keyframe {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(167.4deg, rgba(54, 62, 81, 0.57) 25.94%, rgba(25, 30, 38, 0.57) 68.26%);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.textui-key {
    font-weight: 700;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}

.textui-label-text {
    font-weight: 700;
    font-size: 17px;
    line-height: 26px;
    letter-spacing: -0.3px;
    color: #FFFFFF;
    white-space: nowrap;
}

.remove-btn {
    position: absolute;
    top: 12px;
    right: 20px;
    width: 15px;
    height: 15px;
    background: url('images/close.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
}

.sellmenu {
    position: absolute;
    width: 252px;
    height: 100px;
    left: 0px;
    top: 80%;
    background: none;
    overflow: hidden;
    border: none;
}

.sellmenu .total-label {
    position: absolute;
    width: 143px;
    height: 20px;
    left: 21px;
    top: 20px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, 0.87);
    background: none;
}

.sellmenu .total-value {
    position: absolute;
    width: auto;
    height: 20px;
    left: auto;
    right: 20px;
    top: 20px;
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #38B8EA;
    background: none;
}

.sellmenu .sellbutton {
    box-sizing: border-box;
    position: absolute;
    width: 112px;
    height: 31px;
    left: 70px;
    top: 60px;
    background: linear-gradient(6.49deg, #363E51 32.87%, #191E26 86.84%);
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.sellmenu .sellbutton-text {
    font-family: 'Poppins', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: -0.3px;
    color: #FFFFFF;
}