*
{
    margin: 0;
    padding: 0;
}
html{
    width: 100%;
    height: 100%;
}
body
{
    height: 100%;
    overflow: auto;
    justify-content: center;
    align-items: center;
    background: none;
}
button
{
    border-radius: 20px;
    background: rgba(38, 38, 38, 0.5);
    box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25), inset 2px 2px 2px rgba(255, 255, 255, 0.25);
    animation: appear 1s ease;
    animation-iteration-count: 1;
    transition: transform 0.2s;
}
button :hover
{
    transform: none;
}
input, textarea, select
{
    padding: 10px;
    border-radius: 10px;
    border: none;
    margin: 5px;
    max-width: 170px;
}
#blocker {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
#btn-list
{
    position: absolute;
    width: 35px;
    right: 5px;
    top: 0%;
    bottom: 3.88%;
    display: none;
}
#menu-area
{
    position: absolute;
    max-width: 90%;
    max-height: 100%;
    right: 5px;
    top: 52px;
    bottom: 5px;
}
#bg-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    right: 0px;
    bottom: 0px;

    background: rgba(46, 146, 146, 0.5);
    border: 2px solid #167a7a;
    border-radius: 50% 0% 0% 0%;
    animation: appear 1s ease;
    animation-iteration-count: 1;
    transition: transform 0.2s;
}

.marker 
{
    background-image: url('mapbox-icon.png');
    background-size: cover;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.mapboxgl-popup 
{
    max-width: 200px;
}
  
.mapboxgl-popup-content 
{
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

table 
{
    
    font-family: 'Georgia', 'Times New Roman', Times, serif;
    border-collapse: separate;
    border:solid #dddddd 1px;
    width: 100%;
    border-radius: 0px;
    font-size: 12px;
}

td, th 
{
    border-left: 1px solid #dddddd;
    border-top: 1px solid #dddddd;
    text-align: left;
    padding: 5px;
}

th
{
    background-color: rgba(36, 36, 36, 0.575);
    border-top: none;
    border-radius: 5px;
    color: white;
}


td:first-child, th:first-child {
    border-left: none;
}
  
tr
{

    /* background-color: #0000006b; */
    border-radius: 5px;
    /* color: white; */
    
}

a:active
{
    color: rgb(117,189,167);
    text-decoration: none;
}

a:visited
{
    color: #915cb4;
    text-decoration: none;
    
}

#logIn
{
    position: absolute;
    top: 50px;
    margin-left: 0px;
    float: left;
}

#topTab
{
    position: absolute;
    top: 0;
    align-items: left;
}

#topTab button
{
    height: 100%;
    margin: auto;
}

#topButton
{
    position: absolute;
    top: 0;
    margin-left: 60px;
    align-items: left;
    min-width: 1000px;
}

#topButton button
{
    float: left;
    margin-right: 2px;
}
#bottonTab 
{
    position: absolute;
    bottom: 5px;
    text-align: center;
    z-index: 3;
    right: 50px;
    max-width: max-content;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    display: flex;
}

#rightTab
{
    position: absolute;
    right: 0px;
    bottom: 5px;
    text-align: right;
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 30px;
    
}

#rightTab button
{
    width: 100%;
    margin-bottom: 2px;
}

#info 
{
    position: absolute;
    top: 30px;
    left: 0px;
    text-align: left;
    z-index: 1;
    align-self: center;
    display: block;
    margin: auto;
    max-width: 300px;
}

#tablebox_l,#tablebox_r,#tablebox_o,#tablebox_p
{
    position: absolute;
    width: 300px;
    height: 400px;
    right: 40px;
    bottom: 40px;

    background: #D9D9D9;
    border-radius: 12px;
    padding: 5px;
    display: none;
    overflow: auto;

}

#PdThumbnail
{
    float: left;
    min-width: 300px;
}
#pd-detail
{
    max-width: fit-content;
    display: inline-block;
    overflow: auto;
}
#pd-detail tr
{
    height: 50px;
}
#a2cart
{
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 5px;

    /* position: absolute; */
    width: 180px;
    height: 30px;
    /* right: 5px; */
    /* top: 5px; */
}
#a2cart input
{
    margin-bottom: 0px;
}
#color-list
{
    display: flex;
    flex-direction: auto;
    align-items: center;
    padding: 0px;
    gap: 5px;

    /* position: absolute; */
    width: calc(100% - 200px);
    height: 30px;
    /* left: 10px; */
    /* top: 5px; */
}
.color-slot
{
    width: 20px;
    height: 20px;

    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.25), inset -2px -2px 2px rgba(0, 0, 0, 0.25);
    /* Inside auto layout */

    flex: none;
    order: 0;
    flex-grow: 0;

    border-radius: 10px;
}

#checkoutList
{
    position: absolute;
    right: 90px;
    top: 0px;
    width: 300px;
    display: none;
    background-color: #00000050;
    padding: 10px;
}

#itemcommentcontent h4
{
    font-size: 12px;
}
#itemcommentcontent p
{
    font-size: 10px;
}
#NotificationContainer
{
    position: absolute;
    top: 0px;
    right:30px;
    padding: 5px;
    border-radius: 5px;
    display: none;
    margin:auto;
    border: 1px solid grey;
    max-width: 350px;
    background-color: #00000050;
    color: white;
}
#purchaseForm input, textarea
{
    width: 90%;
    margin-bottom: 10px;
}
#map
{
    width: 100%;
    height: 150px;
}
#rate label {
    float: left;
    max-height: 25px;
    font-size: 10px;
    /* padding: 0 10px;
    background-color: #3b986d57; */
}
#rate {
    float: left;
    /* max-height: 40px;
    padding: 0 10px; */
    background-color: #3b986d57;
}
#rate:not(:checked) > input {
    position:absolute;
    top:-9999px;
}
#rate:not(:checked) > label {
    float:left;
    width:1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:30px;
    color:#ccc;
}
#rate:not(:checked) > label:before {
    content: '\2736';
    
}
#rate > input:checked ~ label {
    color: #ffc700;    
}
#rate:not(:checked) > label:hover,
#rate:not(:checked) > label:hover ~ label {
    color: #deb217;  
}
#rate > input:checked + label:hover,
#rate > input:checked + label:hover ~ label,
#rate > input:checked ~ label:hover,
#rate > input:checked ~ label:hover ~ label,
#rate > label:hover ~ input:checked ~ label 
{
    color: #c59b08;
}
#popup,#purchase-panel,#purchaseForm
{
    display: none;
    overflow-y:auto; 
    position: absolute;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
    background: #D9D9D9;
    border-radius: 12px;
}
.color-slot:hover
{
    transform: scale(1.05);
}

#ControllerGroup
{
    position: absolute;
    right: 10px;
    bottom: 30px;
    min-width: 200px;
    max-width: 80%;
    display: none;
    padding: 5px;
    margin: 0px auto;
    overflow: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#skuproperties, #teleport-prop, #iobj-prop
{
    position: absolute;
    display: none; 
    max-width:400px; 
    top:85px;
    left:5px;
    padding: 5px;
    background-color: #DEDEDE;
    max-height: 70%;
    z-index: 10;
    overflow: auto;
    border-radius: 12px;
}

#skuproperties button
{
    float:right;
    padding: 5px;
    background-color: rgb(145, 92, 180);
    margin-left: 5px;
}

#skuproperties input
{
    width: 70px;
    display: inline;
}

#skuproperties th
{
    width: 100px;
}



#applyForm
{
    display:none; 
    position:absolute; 
    padding:10px; 
    background-color: #000000a8; 
    top: 10%;
    left: 10%; 
    min-width: 400px;
}

#joystick 
{
    height: 200px;
    width: 200px;
    border-radius: 200px;
    -moz-border-radius: 200px;
    -webkit-border-radius: 200px;
    text-align: center;
    background-color: #0000001f;
    font: 24px/200px Helvetica, Arial, sans-serif;
    cursor: all-scroll;
    user-select: none;
    z-index: 2;
}
#loadingpanel
{
    display: block;
    background-color: rgb(145, 92, 180);
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 100;
}
#loadingpanel h1
{
    position: absolute;
    top: 100px;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
}
#loadingpanel p
{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}
#Message-send-panel
{
    position: absolute;
    bottom: 0px;
    text-align: center;
    z-index: 20;
    padding: 10px;
    left:50%;
    transform: translate(-50%);
}
#warehousePanel
{
    max-width:350px; 
    background-color: #DEDEDE; 
    padding: 10px;
    display: none; 
    position: absolute; 
    right:5px; 
    top:30px; 
    height:500px; 
    overflow:auto;
    border-radius: 12px;
}

#ctrl-btn-group
{
    position: absolute;
    left: 0px;
    bottom: 0px;
    display: none;
}
.instru-btn
{
    padding: 3%;
    background-color: #00000050;
    border-radius: 10%;
    color: white;
}
.rightbottom
{
    position: absolute;
    bottom: 0px;
    right: 0px;
    padding: 5px;
    display: flex;
    gap: 5px;
    animation: appear 1s ease-in ;

}
.rightbottom button
{
    width: 30px;
    height: 30px;
}
.rightpanel
{
    position: absolute;
    bottom: 40px;
    right: 5px;
    border-radius: 10px;
    /* height: 300px; */
    width: 300px;
    overflow: auto;
    padding: 10px;
}
.msgslot
{
    padding: 10px;
    width: calc(100% - 20px);
    border-radius: 10px;
    background-color: #915cb4;
    color: white;
}
.labeltext
{
    color: white;
    text-shadow: -1px 1px 0 #000,1px 1px 0 #000,1px -1px 0 #000,-1px -1px 0 #000;
    font-size: 12px;
}

.right-bottom
{
    position: absolute;
    right: 0px;
    bottom: 0px;
    display: flex;
    gap: 5px;
    padding: 5px;
    width: 30px;
    flex-direction: column;
    z-index: 5;
}

.right-bottom button
{
    border-radius: 50%;
    background-color: #1a002b5d;
    color: #D9D9D9;
    border: 1px solid #D9D9D9;
    width: 30px;
    height: 30px;
}

.rb-panel
{
    position: absolute;
    right: 50px;
    bottom: 5px;
    width: 200px;
    height: 400px;
    overflow: auto;
    background-color: #1a002b5d;
    border-radius: 10px;
    border: 1px solid #D9D9D9;
    color: #D9D9D9;
}

.product-btn
{
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid white;
    background-color: #7500c4;
    pointer-events: auto;
    cursor: pointer;
}

.product-btn:hover
{
    transform: scale(1.05);
}

#labelinner{
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
#labelinner h3{
    padding: 20px;
}
#labelinner p,#labelinner ul {
    padding: 5px;
}
#labelinner button{
    padding: 5px 20px 5px 20px;
}
#labelinner a{
    padding: 5px 20px 5px 20px;
    color: #167a7a;
    border: 1px solid violet;
    border-radius: 10px;
}

.nipple-zone{
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 150px;
    height: 150px;
    z-index: 999;
    pointer-events: auto;
}
.wasd-grid{
    position: absolute;
    left: 0;
    bottom: 0;
    pointer-events: none;
    flex-direction: column;
}
.joystick-btn{
    padding: 5px 10px;
}

.wasd-grid button{
    padding: 10px;
}

.popup-profile {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;

    /* Drop shadow for floating effect */
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35);

    /* Position inside text container */
    position: relative;

    /* Smooth entrance animation */
    animation: popIn 0.25s ease-out forwards;
    pointer-events: auto;
}

/* Inverted droplet shape using pseudo-element */
.popup-profile::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);

    width: 12px;
    height: 12px;

    background: white;
    border-radius: 50%;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35);

    /* Creates the inverted droplet tail */
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: white;
}

.active-users-label {
    padding: 4px 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, #7B20F3, #F9DE71);
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    text-shadow: 0 0 4px rgba(0,0,0,0.6);
    box-shadow: 0 0 8px rgba(249, 222, 113, 0.6);
}
.mp-label-card {
max-width: 300px;
background: #ffffffcc;
border-radius: 12px;
padding: 12px;
backdrop-filter: blur(4px);
line-height: 1.4;
color: #1f2937;
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
border: 1px solid rgba(0,0,0,0.05);
box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.mp-label-title {
margin: 0 0 6px 0;
font-size: 14px;
font-weight: 700;
color: #0f172a;
}

.mp-label-text {
margin: 0;
font-size: 12px;
color: #374151;
}



/* Pop animation */
@keyframes popIn {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes appear
{
    0%{
        transform: scale(0);
        opacity: 0;
    }
    100%{
        transform: scale(1);
        opacity: 1;
    }
}
@media only screen and (max-width : 800px) 
{
    #ControllerGroup
    {
        display: none;

    }
    #warehousePanel
    {
        width:100px; 
    }
    #ctrl-btn-group
    {
        display: block;
    }
}