@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap");

@font-face {
    font-family: "Brothership";
    src: url(./fonts/Brothership.ttf);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    user-select: none;
    overflow: hidden;
    background-size: 187%;
}

.wrapper {
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Black Background */
    display: none;
    justify-content: center;
    position: relative;
    background-image: url("image/background.png");
    background-repeat: no-repeat;
    background-size: 100% 100vh;
}

.container {
    height: 55%;
    width: 83%;
    position: absolute;
    top: 15vh;
    display: flex;
    justify-content: space-between;
}

.right-container {
    height: 100%;
    width: 72%;
    display: flex;
    flex-direction: column;
}

.left-container {
    height: 100%;
    width: 27%;
    display: flex;
    flex-direction: column;
}

.left-heading {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.right-heading {
    height: 20%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shopping-cart-title-cont {
    height: 100%;
    width: 55%;
    margin-bottom: 3vh;
    text-shadow: rgba(224, 224, 224, 1) 0px 0px 39px;
}

.exit-container {
    height: 100%;
    width: 45%;
    display: flex;
    justify-content: end;
}

.shopping-title {
    color: #e0e0e0;
    font-size: 3vh;
}

.cart-title {
    color: #e0e0e0;
    font-family: "Brothership";
    font-size: 4vh;
}

.main-title-container {
    height: 100%;
    width: 100%;
    margin-top: -1vh;
}

.shop-name-title,
.shop-word-title {
    color: #e0e0e0;
    font-family: "Brothership";
    font-size: 4vh;
    display: flex;
    align-items: center;
    height: 50%;
    padding-top: -3vh;
    text-shadow: rgba(224, 224, 224, 1) 0px 0px 39px;
}

.exit-buttons {
    height: 35%;
    width: 15vh;
    border: 1px solid rgba(255, 255, 255, 0.096);
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.exit-btn {
    height: 100%;
    width: 40%;
    display: flex;
    align-items: center;
    font-size: 1.5vh;
    justify-content: center;
    color: #ffffffab;
}

.escape-btn {
    height: 100%;
    width: 60%;
    background-color: rgba(255, 255, 255, 0.096);
    display: flex;
    align-items: center;
    border-radius: 0vh 7px 7px 0vh;
    font-size: 1.5vh;
    justify-content: center;
    color: rgba(255, 255, 255, 0.788);
}

.right-middle-box,
.left-middle-box {
    height: 80%;
    width: 100%;
    display: flex;
}

.left-middle-box {
    flex-direction: column;
    height: 80%;
}

.category-container {
    height: 104%;
    width: 14%;
    overflow: scroll;
    overflow-x: hidden;
}

.category-container::-webkit-scrollbar {
    display: none;
}

.category-box {
    height: 13.5vh;
    width: 12vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2vh;
    border-radius: 2vh;
    background-color: #ffffff14;
    color: rgba(255, 255, 255, 0.692);
}

.category-icon {
    height: 50%;
    width: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5vh;
    margin-bottom: 5px;
}

.category-info-icon:hover {
    cursor: pointer;
    color: #e0e0e0;
    background-color: rgba(224, 224, 224, 0.36);
}

.category-name {
    width: 80%;
    display: flex;
    align-items: end;
    justify-content: center;
    font-size: 1.4vh;
    overflow: hidden;
    font-weight: 900;
    text-overflow: ellipsis;
    text-align: center;
}

.category-box:hover {
    cursor: pointer;
    color: #e0e0e0;
    background: radial-gradient(
        circle,
        rgba(224, 224, 224, 0.137) 0%,
        rgba(224, 224, 224, 0.116) 100%
    );
}

.selected-category {
    color: #e0e0e0;
    background: radial-gradient(
        circle,
        rgba(224, 224, 224, 0.137) 0%,
        rgba(224, 224, 224, 0.116) 100%
    );
}

.category-items-container,
.player-inventory-container {
    height: 101%;
    width: 100%;
    overflow: scroll;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    overflow-x: hidden;
    padding-left: 1vw;
}

.player-inventory-container::-webkit-scrollbar,
.category-items-container::-webkit-scrollbar {
    width: 2px;
}
.player-inventory-container::-webkit-scrollbar-track,
.category-items-container::-webkit-scrollbar-track {
    background-color: transparent;
    margin-top: 10px;
}
.player-inventory-container::-webkit-scrollbar-thumb,
.category-items-container::-webkit-scrollbar-thumb {
    background-color: rgba(224, 224, 224, 0.44);
}

.cart-items-container {
    height: 71%;
    width: 100%;
    overflow: scroll;
}

.category-items-inner {
    position: relative;
    height: 21.5vh;
    width: 21.5vh;
    transform: rotate(90deg);
}

.category-items {
    height: 21.5vh;
    width: 21.5vh;
    border-radius: 2vh;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgb(255 255 255 / 5%) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(-90deg);
}

.category-items::before,
.category-items::after,
.category-items-inner::before,
.category-items-inner::after {
    content: "";
    position: absolute;
    left: 3vh;
    width: 70%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 0%) 0%,
        rgba(255, 255, 255, 0.294) 50%,
        rgb(255 255 255 / 0%) 100%
    );
}

.category-items::before { top: 0; }
.category-items::after { bottom: 0; }
.category-items-inner::before { top: 0; }
.category-items-inner::after { bottom: 0; }

.cart-items-container::-webkit-scrollbar {
    display: none;
}

.cart-total-container {
    height: 15%;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 0.5%) 0%,
        rgb(255 255 255 / 4%) 50%,
        rgb(255 255 255 / 0.5%) 100%
    );
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 2vh;
    padding-right: 2vh;
}

.cart-item-box {
    height: 9vh;
    width: 100%;
    background-color: rgb(255 255 255 / 7%);
    margin-bottom: 1.5vh;
    border-radius: 5px;
    display: flex;
    background: linear-gradient(
        90deg,
        rgb(255 255 255 / 0.5%) 0%,
        rgb(255 255 255 / 4%) 50%,
        rgb(255 255 255 / 0.5%) 100%
    );
}

.lines-design {
    height: 100%;
    width: 5%;
    display: flex;
    align-items: center;
}

.lines-image {
    height: 45%;
    width: 100%;
    object-fit: contain;
}

.cart-item-icon-box {
    height: 100%;
    width: 18%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-icon {
    height: 60%;
    width: 75%;
    background-color: #ffffff1c;
    border-radius: 1vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image {
    height: 75%;
}

.cart-items-name-container {
    height: 100%;
    width: 46%;
    margin-left: 3px;
}

.cart-items-title-cont {
    height: 50%;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: end;
    font-size: 1.5vh;
    color: #e0e6eeeb;
}

.cart-items-amount-cont {
    height: 50%;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 1.6vh;
    color: #ffffff;
    display: flex;
    align-items: baseline;
    padding-top: 2px;
}

.cart-amount-box {
    height: 50%;
    width: 70%;
    display: flex;
    align-items: center;
    gap: 1vh;
}

.cart-item-amount {
    color: #e0e0e0;
}

.inputAmount {
    background-color: rgba(255, 255, 255, 0.212);
    height: 2vh;
    border: 1px solid white;
    font-size: 1.4vh;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    width: auto;
    min-width: 2vh;
    max-width: 10vh;
    padding: 0;
    transition: width 0.2s;
}

.cart-item-amount-hidden {
    visibility: hidden;
    position: absolute;
    white-space: nowrap;
    font-size: 1.4vh;
    padding: 0;
}

.cart-amount-minus,
.cart-amount-plus {
    height: 2vh;
    width: 2vh;
    background-color: rgba(224, 224, 224, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    font-size: 1vh;
}

.cart-amount-minus:hover,
.cart-amount-plus:hover {
    cursor: pointer;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.123);
}

.cart-item-price-container {
    height: 100%;
    width: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-price {
    height: 3.2vh;
    width: 7vh;
    background-color: rgba(224, 224, 224, 0.2);
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4vh;
    font-weight: 900;
    border-radius: 5px;
}

.remove-cart-item-container {
    height: 100%;
    width: 12%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn {
    height: 3vh;
    width: 3vh;
    border: 1px solid #f851517e;
    border-radius: 4px;
    color: #ff525283;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 81, 81, 0.082);
    font-size: 1.2vh;
}

.cart-total-price-title {
    font-size: 1.5vh;
    color: #e0e6eeeb;
}

.cart-total-price-amount {
    height: 3.5vh;
    width: auto;
    min-width: 8vh;
    padding: 0 1vh;
    background-color: rgba(224, 224, 224, 0.2);
    color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5vh;
    font-weight: 900;
    border-radius: 5px;
}

.cart-pay-btns-container {
    height: 11%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 1vh;
}

.pay-with-bank-btn,
.pay-with-cash-btn {
    height: 100%;
    width: 49%;
    background-color: #616161;
    border-radius: 6px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 1.8vh;
    color: #ffffffda;
    justify-content: center;
}

.sell-items-btn {
    height: 100%;
    width: 100%;
    background-color: #be5f5f;
    border-radius: 6px;
    display: none;
    align-items: center;
    font-size: 1.8vh;
    color: #ffffffda;
    justify-content: center;
}
.sell-items-btn:hover {
    background-color: rgba(190, 95, 95, 0.7);
    color: #ffffff;
    cursor: pointer;
}

.category-items-heading {
    height: 30%;
    width: 100%;
    display: flex;
}

.category-item-name {
    height: 100%;
    width: 50%;
    font-size: 1.3vh;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    color: #e0e6eeeb;
    padding-left: 1vh;
    padding-top: 1vh;
}

.category-quantity-amount {
    height: 100%;
    width: 35%;
    display: flex;
    justify-content: center;
    padding-top: 1.1vh;
}

.category-quantity-amount-value {
    height: 3vh;
    width: 6vh;
    font-size: 1.2vh;
    background-color: #ffffff17;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    overflow: hidden;
    color: #cbcbcb;
}
.category-item-info {
    height: 100%;
    width: 15%;
    display: flex;
    padding-top: 1.1vh;
}

.category-info-icon {
    height: 3vh;
    width: 2.5vh;
    background-color: #ffffff17;
    font-size: 1.2vh;
    border-radius: 3px;
    color: #cbcbcb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-middle-image {
    height: 42%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image-icon {
    height: 80%;
}

.category-buttons-box {
    height: 28%;
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: baseline;
    padding-top: 1vh;
}

.category-addtocart-btn {
    height: 3.5vh;
    width: 40%;
    background-color: rgba(224, 224, 224, 0.2);
    border: 1px solid rgba(224, 224, 224, 0.4);
    border-radius: 5px;
    font-size: 1.2vh;
    color: rgba(255, 255, 255, 0.747);
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-item-amount-btn {
    border-radius: 5px;
    height: 3.5vh;
    font-size: 1.2vh;
    color: rgba(255, 255, 255, 0.747);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.233) 100%
    );
}

.category-addtocart-btn:hover {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.185);
    border: 1px solid white;
}

.remove-item-btn:hover {
    cursor: pointer;
    background-color: rgba(253, 53, 53, 0.603);
    color: white;
}

.pay-with-bank-btn:hover,
.pay-with-cash-btn:hover {
    background-color: rgba(224, 224, 224, 0.2);
    color: #ffffff;
    cursor: pointer;
}

.exit-btn:hover {
    color: rgb(255, 255, 255);
    cursor: pointer;
    background-color: rgba(253, 53, 53, 0.603);
    border-radius: 6px 0vh 0vh 6px;
}

.notification-container {
    display: none;
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    background: radial-gradient(circle, rgba(40, 40, 40, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 10px;
    border: 1px solid rgba(224, 224, 224, 0.15);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    z-index: 999;
    opacity: 0;
    transform: translate(-50%, -150%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease;
}

.notification-container.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.notification-icon {
    font-size: 24px;
    margin-right: 15px;
}

.notification-icon .fa-check-circle { color: #e0e0e0; }

.notification-title {
    font-weight: 600;
    font-size: 1.6vh;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-message {
    font-size: 1.4vh;
    margin: 2px 0 0 0;
    color: #c7c7c7;
}

.qtip-light {
    background-color: rgba(224, 224, 224, 0.2);
    font-size: 1vh;
    color: white;
    border: none;
    padding: 1px;
    border-radius: 3px;
    text-transform: capitalize;
}

.controls-container {
    display: flex;
    align-items: center;
    position: absolute;
    top: 5vh;
    left: 15vh;
    gap: 2vh;
}

.search-container {
    height: 3.5vh;
    width: 22vh;
    background-color: #ffffff14;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 1.5vh;
    gap: 1.5vh;
}

#searchInput {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.6vh;
    width: 100%;
    height: 100%;
    font-family: "Poppins", sans-serif;
}

#searchInput::placeholder {
    color: #ffffff90;
}

.search-container .fa-magnifying-glass {
    color: #ffffff90;
    font-size: 1.6vh;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 1vh;
    font-size: 1.6vh;
    color: #ffffff90;
}

.switch {
    position: relative;
    display: inline-block;
    width: 6vh;
    height: 3vh;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff14;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 2.2vh;
    width: 2.2vh;
    left: 0.4vh;
    bottom: 0.4vh;
    background-color: #e0e0e0;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #ffffff14;
}

input:checked + .slider:before {
    -webkit-transform: translateX(3vh);
    -ms-transform: translateX(3vh);
    transform: translateX(3vh);
    background-color: #be5f5f;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.buy-label {
    color: #e0e0e0;
    font-weight: 500;
}

.sell-label {
    color: #ffffff90;
    font-weight: 500;
}

.tabs-container {
    display: none;
}
.buy-view-container, .sell-view-container {
    display: none;
    width: 100%;
    height: 100%;
}

.buy-view-container.active, .sell-view-container.active {
    display: flex;
}

@keyframes slideInDown {
    from {
        transform: translate3d(0, -100%, 0);
        visibility: visible;
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.animate__slideInDown {
    animation: slideInDown 0.5s forwards;
}

@keyframes slideOutUp {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        visibility: hidden;
        transform: translate3d(0, -100%, 0);
    }
}

.animate__slideOutUp {
    animation: slideOutUp 0.5s forwards;
}