:root {
    --bgtop: #73A7FC; /*#73A7FC*/
    --bgbottom: rgba(188,225,255,1); /*rgba(188,225,255,1)*/
    --primary: #44633F;
    --secondary: #F4F1E1;
    --primary: #4c6761;
    --secondary: #dde2e9;
    --tertiary: #84b2a7;
    --primaryDark: #25332f;
}

* {
    font-family: quicksand;
}

#debug {
    z-index: 847810471437801;
    width: 500px;
    height: 500px;
    border-style: solid;
}

body {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    user-select: none;
    margin: 0;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#1390f7+0,bce1ff+100 */
    background: var(--bgtop); /* Old browsers */
    background: -moz-linear-gradient(top, var(--bgtop) 0%, var(--bgbottom) 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top, var(--bgtop) 0%,var(--bgbottom) 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom, var(--bgtop) 0%,var(--bgbottom) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1390f7', endColorstr='#bce1ff',GradientType=0 ); /* IE6-9 */
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background 2s, background-color 2s;
}

.offhandCanvases {
    position: absolute;
    visibility: hidden;
    z-index: -14019410;
    width: 0px;
    height: 0px;
}

#canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    cursor: crosshair;
    height: 100%;
    z-index: -10;
    transition: filter 2s;
}

#shadowCanvas {
    position: absolute;
    left: 0;
    pointer-events: none;
    top: 0;
    z-index: -9;
    width: 100%;
    height: 100%;
}

#guiCanvas {
    pointer-events: none;
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    bottom: 5px;
    z-index: -8;
    margin: auto;
    width: 60%;
}
@media only screen and (max-width: 1000px), only screen and (max-height: 500px) {
    #guiCanvas {
        width: 50%;
        bottom: 0px;
    }
}

h1 {
    text-align: center;
}

right {
    float: right;
    width: max-content;
}

left {
    overflow: hidden;
    width: 100%;
    display: inline-grid;
    grid-template-columns: 1fr max-content;
}

left1 {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

left2 {
    width: max-content;
}

#count {
    position: absolute;
    top: 0px;
    font-size: 12px;
    right: 40px;
    font-family: quicksand;
    font-weight: 700;
    z-index: 100000;
    text-shadow: 0px 0px 2px white;
}

.discord {
    width: 50px;
    height: 50px;
    float right:50px;
}

accountheader {
    width: 500px;
    text-align: center;
    font-size: 40px;
    background-color: var(--primary);
    border-radius: 14px;
    font-face: helvetica;
}

hr {
    height: 10px;
    border: none;
    background-color: var(--primary);
}

#id01 {
    position: absolute;
    width: 250px;
    top: -16px;
    height: 20px;
    font-face: arial;
    text-align: center;
    background-color: var(--primary);
}

#name {
    background-color: #fafafa;
    border-style: solid;
    border-color: var(--primary);
    border-radius: 10px;
    height: 22px;
}

#text {
    margin: 10px;
}

#xpbar {
    visibility: hidden;
    position: absolute;
    background-color: #rbga(255, 255, 255, 0.5);
    text-align: center;
    width: 300px;
    color: black;
    border-style: solid;
    border-color: var(--primary);
    border-radius: 10px;
}




.small {
}

.u_blue {
    background-color: #80abf4;
    border-color: #5470a0;
}

.u_gold {
    background-color: #c3a322;
    border-color: #ffe785;
}

    .u_gold:hover {
        background-color: #a78f2f;
    }

.u_red {
    background-color: #f48080;
    border-color: #a05454;
}

.u_pink {
    background-color: #f480ca;
    border-color: #a05488;
}

.u_purple {
    background-color: #cf80f4;
    border-color: #9054a0;
}

.u_green {
    background-color: #83cd74;
    border-color: #62725f;
}

.u_yellow {
    background-color: #eae686;
    border-color: #9e9c57;
}

.u_orange {
    background-color: #c1b59a;
    border-color: #77705f;
}

.u_blue:hover {
    background-color: #6f91ce;
}

.u_red:hover {
    background-color: #d17171;
}

.u_pink:hover {
    background-color: #d973b3;
}

.u_purple:hover {
    background-color: #a565c3;
}

.u_green:hover {
    background-color: #65a758;
}

.u_yellow:hover {
    background-color: #b5b25e;
}

.u_orange:hover {
    background-color: #a59b83;
}

.titleimg {
    position: absolute;
    width: 20%;
    top: 0px;
    left: 0px;
}

#nosee {
    visibility: hidden;
}

#upgradecounttoggle {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    height: 25px;
    margin: 5px;
    color: white;
    z-index: 50;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    font-size: 0.7em;
    font-weight: 1000;
    width: 80px;
    position: absolute;
    bottom: 0;
    left: 0;
}

    #upgradecounttoggle:hover {
        background: rgba(0, 0, 0, 0.55);
    }

#audio {
    display: none
}

.weapon {
    font-family: quicksand;
    user-select: none;
    width: 30%;
    height: 100%;
    color: white;
    text-shadow: 0px 0px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0);
    z-index: 20;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 100%;
    transition: background 0.4s, box-shadow 0.4s;
}

#title {
    width: 100%;
    font-size: 20px;
    background: var(--primary);
    text-shadow: 2px 2px 1px black;
}

#next {
    border-style: solid;
    font-weight: bold;
    border-color: var(--primary);
    border-radius: 5px;
    width: 60%;
    background: #65925d;
    font-family: quicksand;
    color: var(--secondary);
    margin: 4px;
}

#next:hover {
   background: var(--primary);
}

.weapon:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0px 0px 100px rgba(255, 255, 255, 0.5);
}

.weaponSelectorText {
    margin: 0;
    padding: 0;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1vw;
}
.weaponIcon{
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);
    width: 50px;
    height: 50px;
    padding: 5px;
}
#weaponSelector {
    position: absolute;
    text-align: center;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    justify-content: flex-start;
    gap: 5px;
    align-items: center;
    position: absolute;
    padding: 0;
    /*background: rgba(255, 255, 0, 0.4);*/
    width: 50%;
    height: min-content;
    padding-bottom: 10px;
    pointer-events: none;
    margin-left: 25%;
}
#weaponBG{
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#weaponHideButton {
    /*background: var(--secondary);*/
    border-style: solid;
    border-width: 2px;
    border-color: var(--primary);
    pointer-events: all;
    padding: 2px;
    font-family: quicksand;
}

#weaponHideButton:hover {
    background: rgba(255, 255, 255, 0.1);
}

#inner {
    width: 70%;
    display: flex;
    pointer-events: all;
}

#hr1 {
    height: 4px;
    border-style: none;
    background-color: var(--primary);
}

.menuButtonSide {
    position: absolute;
    right: 10px;
    width: 60px;
    height: 60px;
    z-index: 1409;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.menuButton:hover {
    background-color: rgba(0, 0, 0, 0.4);
}



#skins {
    margin: 0;
    position: absolute;
    top: 170px;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 100px;
    height: 50px;
    font-size: 30px;
    border-radius: 20px;
    border-style: solid;
    border-color: var(--secondary);
    font-face: helvetica;
    background-color: var(--primary);
    color: var(--secondary);
}

    #skins:hover {
        background-color: var(--secondary);
        color: var(--primary);
        border-color: #7f8ca4;
        z-index: 309;
    }

#stats {
    margin: 0;
    position: absolute;
    top: 240px;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 150px;
    height: 50px;
    font-size: 30px;
    border-radius: 20px;
    border-style: solid;
    border-color: var(--secondary);
    font-face: helvetica;
    background-color: red; var(--primary);
    color: var(--secondary);
}

    #stats:hover {
        background-color: var(--secondary);
        color: var(--primary);
        border-color: #7f8ca4;
        z-index: 309;
    }



#logout {
    margin: 0;
    position: absolute;
    top: 310px;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    width: 115px;
    height: 50px;
    font-size: 30px;
    border-radius: 20px;
    border-style: solid;
    border-color: var(--secondary);
    font-face: helvetica;
    background-color: var(--primary);
    color: var(--secondary);
}

    #logout:hover {
        background-color: var(--secondary);
        color: var(--primary);
        border-color: #7f8ca4;
        z-index: 309;
    }

/*

aaa


*/

.AAA {
    font-family: arial;
    color: var(--secondary);
    font-size: 20px;
    text-shadow: 1px 1px 1px black;
}



#titleContainer {
    display: flex;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    left: 0;
}

#titleContainer2 {
    display: flex;
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    left: 0;
}

@media only screen and (max-width: 1000px) {
    #joinScreen2 {
        width: 100%;
    }
}

@media only screen and (min-width: 1000px) {
    #joinScreen2 {
        width: 80%;
    }
}

@media only screen and (max-height: 600px) {
    .titleScreenbox {
        height: 100vh;
    }
}

@media only screen and (min-height: 600px) {
    .titleScreenbox {
        height: 70vh;
    }
}

#joinScreen2 {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#joinScreen3 {
    height: 100%;
    width: 90%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.titleScreenbox {
    width: 30%;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    /* backdrop-filter: blur(10px); */
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
}

.blurbg {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

.titleScreenbox3 {
    width: 25%;
    border-radius: 10px;
    background: rgba(132, 178, 167, 0.2);
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 5px;
    min-height: 40%;
    overflow: hidden;
    align-items: center;
    box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.4);
}

.titleScreenbox2 {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    overflow: hidden;
    align-items: center;
}

#titleTop {
    width: 100%;
    height: 30%;
    font-family: quicksand;
    font-size: 1em;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

#titleButtons {
    height: 40%;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-family: quicksand;
}

#name {
    width: 60%;
    height: 20%;
}

.input {
    border-style: solid;
    border-color: var(--secondary);
    border-radius: 5px;
    font-family: roboto;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
}

.SVG {
    height: 70%;
    fill: #CCC;
    width: auto;
    transition: fill 2s;
}

    .SVG:hover {
        fill: #AAA;
        transition: fill: 0.5s;
    }

.buttonPanel {
    display: flex;
    flex-direction: row;
}

.menuButton {
    background: var(--secondary);
    width: 100%;
    height: 100%;
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transition: background 2s;
}

    .menuButton:hover {
        background: #c5d3c5;
        transition: background 0.3s;
    }

.titleBox1 {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.6);
}

.blueTheme {
    background: var(--primary);
    color: var(--secondary);
}

.blueTheme2 {
    background: var(--tertiary);
    color: black;
}

.whiteTheme {
    color: var(--primary);
    background: var(--secondary);
}

#serverSelect {
    border-style: solid;
    border-width: 3px;
    font-family: quicksand;
    border-color: var(--primary);
    width: 62%;
    background: var(--secondary);
    height: 20%;
}

#changeLogBox {
    width: 80%;
    background: var(--secondary);
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#changeLog {
    margin: 10px;
    color: #111;
    font-family: quicksand;
    width: 80%;
    font-size: 0.8em;
    height: 95%;
    overflow-wrap: break-word;
}

#changeLogFooter {
    background: var(--primary);
    width: 100%;
    height: 5%;
}

#accountTitle {
    height: 10%;
    width: 50%;
}

#accountTitleText {
    height: 80%;
    width: 100%;
    float: left;
    font-family: quicksand;
    text-align: center;
    font-size: 3vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.accountInputBox {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    gap: 5px;
}

    .accountInputBox input {
        width: 86%;
        height: 10%;
    }

#accountButtons {
    height: 15%;
    width: 86%;
    display: flex;
    font-family: quicksand;
    justify-content: center;
    gap: 5px;
}

    #accountButtons button {
        font-family: quicksand;
        border-radius: 5px;
        font-weight: 700;
        border-style: solid;
        border-color: var(--secondary);
        width: 50%;
        font-size: 2vh;
        box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
        height: 100%;
    }

        #accountButtons button:hover {
            background: var(--secondary);
            color: var(--primary);
        }

#cosmeticTitle {
    width: 100%;
    height: 10%;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0px 2px 5px black;
    text-align: center;
    display: flex;
    font-size: 5vh;
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
    align-items: center;
}

    #cosmeticTitle button {
        height: 100%;
        background: transparent;
        border-radius: 0px;
        border: none;
        width: 20%;
        font-family: quicksand;
        color: var(--secondary);
        overflow: hidden;
        font-size: .6em;
        font-weight: 1000;
        border-right: 2px solid;
        border-color: #749e95;
    }

        #cosmeticTitle button:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

#COSMETICS {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cosmeticArea {
    width: 50%;
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

#skinSelector {
    width: 90%;
    height: 50%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    z-index: 41703437098437018904173;
    overflow: auto;
}

#skinBox {
    width: 10vh;
    text-align: center;
    height: 10vh;
    background: red;
}


.grid-item {
    width: 8vw;
    height: 8vw;
    font-family: quicksand;
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: center;
    text-align: center;
    font-weight: 1000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
}

.grid-item-up {
    width: 8vw;
    height: 8vw;
    font-family: quicksand;
    display: flex;
    flex-direction: column;
    color: white;
    justify-content: center;
    text-align: center;
    font-weight: 1000;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    position: absolute;
    bottom: 0vh;
    left: 80vw;
}

#fullscreen {
    position: absolute;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    top: 3px;
    z-index: 14898104010481;
    right: 3px;
    width: 25px;
    height: 25px;
}

    #fullscreen:hover {
        background: rgba(0, 0, 0, 0.7);
    }

.submenu {
    position: absolute;
    width: calc(100vw - 40vw);
    left: 20vw;
    visibility: hidden;
    border-radius: 10px;
    height: calc(100vh - 40vh);
    top: 20vh;
    background: var(--secondary);
    box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.4);
    z-index: 70851329758132;
    font-family: quicksand;
    padding: 10px;
    font-size: 6vh;
    text-align: center;
    text-indent: 10px;
    display: flex;
    flex-direction: column;
}

    .submenu x {
        font-weight: 800;
        position: absolute;
        right: 10px;
        top: 10px;
        gap: 3px;
        color: black;
        font-size: 3vh;
    }

#keybindsbox {
    border-style: solid;
    border-color: #d6d3c7;
    font-family: quicksand;
    font-size: 6vh;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    #keybindsbox button {
        width: max-content;
        border-color: #555;
        background: #BBB;
    }

        #keybindsbox button:hover {
            background: #AAA;
        }

    #keybindsbox div {
        height: 100%;
        font-size: 0.35em;
        width: 100%;
        padding: 0;
        margin: 0;
    }

.submenu x:hover {
    color: gray;
}

#thesettings {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: start;
    height: 100%;
}


#statusscreen {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1032;
    font-family: quicksand;
    color: white;
    text-align: center;
    font-size: 10vh;
    pointer-events: none;
    background-color: rgba(0, 0, 0, 0.12);
}

#accountErrorBox {
    color: #af0808;
    font-family: quicksand;
    text-align: center;
    background: var(--secondary);
    margin: 4px;
    font-weight: 900;
}

#accountLogginText {
    overflow-x: hidden;
    overflow-y: scroll;
    display: block;
}

.statsbox {
    width: 100%;
    height: min-content;
    padding: 5px;
    font-family: quicksand;
    display: flex;
    flex-direction: column;
}

.statsButton{
    border: 1.5px solid  var(--primary);
    border-radius: 5px;
    align-self: center;
    width: 90%;
    padding: 5px;
}

#cosmeticContainer {
    display: flex;
    width: 100%;
    height: 90%;
    background: var(--primary);
    gap: 6px;
    justify-content: center;
}

#skinselector {
    display: block;
    overflow-x: hidden;
    overflow-y: scroll;
}

#why {
    font-family: quicksand;
    border-radius: 5px;
    color: var(--secondary);
    font-weight: 900;
    border-style: solid;
    width: 20%;
    border-color: #bcb9a9;
}

    #why:hover {
        background: var(--secondary);
        border-color: var(--primary);
        color: var(--primary);
        width: 20%;
    }

#cratesArea {
    height: 50%;
    width: 10%;
    flex-wrap: wrap;
    overflow: auto;
    display: flex;
    gap: 0px;
}

#cratesAreaInner {
    background: red;
    height: 100%;
    width: min-content;
    display: table-row;
    gap: 4px;
}

    #cratesAreaInner za {
        position: absolute;
        top: 4px;
        left: 4px;
    }

.cratething {
    width: 25%;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1/1;
    align-items: center;
    background: #d3d0c0;
}

.skin1 {
}

    .skin1:hover {
        background: rgba(0, 0, 0, 0.1);
    }

.defaultbutton {
    font-family: quicksand;
    background: var(--secondary);
    border-radius: 10px;
    border-style: solid;
    border-color: #b2b0a4;
}

    .defaultbutton:hover {
        background: #d3d0c0;
    }

#shop {
    display: inline-block;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 90%;
    background: red;
    width: 100%;
    background: #d3d0c0;
}

.shopitem {
    height: 14vh;
    margin-bottom: 4px;
    background: var(--secondary);
    width: 100%;
    display: grid;
    grid-template-areas: "main sidebar" "main header";
    grid-template-rows: 70% 30%;
    grid-template-columns: min-content 1fr;
}

    .shopitem img {
        grid-area: main;
        height: 100%;
        aspect-ratio: 4/3;
    }

    .shopitem button {
        grid-area: header;
        width: 90%;
        margin: auto;
        border-radius: 10px;
        font-size: calc(1vh * 1vw);
        height: 80%;
        font-family: quicksand;
        background: #59d99d;
        border-color: #55544e;
        font-weight: 800;
        border-style: solid;
    }

        .shopitem button:hover {
            background: #9bfdcf;
        }

    .shopitem p {
        font-size: 2vh;
        text-align: center;
        grid-area: sidebar;
    }

#leaderboard {
    gap: 5px;
    background: #c6cbd1;
}

    #leaderboard div {
        height: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        background: #c6cbd1;
        flex-direction: column;
    }

        #leaderboard div div {
            display: flex;
            flex-direction: column;
            gap: 3px;
            height: 95%;
        }

        #leaderboard div j {
            height: 10%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 0;
            font-size: 1.2em;
            background: #c6cbd1;
            font-weight: 900;
        }

        #leaderboard div div div {
            height: 10%;
            color: var(--primary);
            font-weight: 900;
            background: var(--secondary);
            width: 100%;
        }

#advertisement {
    width: 80vw;
    height: 60vh;
    z-index: 102938471039847120398712;
    background: var(--secondary);
    border-radius: 10px;
    position: absolute;
    left: 10vw;
    padding: 10px;
    border-style: solid;
    border-color: #C6C4B8;
    overflow-y: scroll;
    border-width: 3px;
    top: 20vh;
}

#startingMessage {
    width: 80vw;
    height: 60vh;
    z-index: 102938471039847120398712;
    background: var(--secondary);
    border-radius: 10px;
    position: absolute;
    left: 10vw;
    padding: 10px;
    border-style: solid;
    border-color: #C6C4B8;
    overflow-y: scroll;
    border-width: 3px;
    top: 20vh;
}

    #startingMessage button {
        margin: auto;
    }

#statusthing {
    position: absolute;
    top: 0;
    margin: 0;
    font-size: 1.3em;
    color: white;
    text-shadow: 0px 0px 5px black;
    font-weight: 1000;
    text-align: center;
    left: 50vw;
    transform: translateX(-50%);
}

#global-chat {
    font-family: quicksand;
    width: 20vw;
    height: 30vh;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 4px;
    bottom: 204px;
}

#messages {
    overflow-x: hidden;
    overflow-y: scroll;
}

    #messages p {
        color: white;
        padding: 4px;
        margin: 0;
    }

#shopContainer {
    background: #c6cbd1;
}

#console {
    width: 30vw;
    height: 60vh;
    position: absolute;
    top: 20px;
    visibility: hidden;
    left: 20px;
    z-index: 1290310941;
    background: rgba(230, 230, 255, 0.7);
    font-size: 0.7em;
    overflow: scroll;
    padding: 10px;
}

#missionsContainer {
    text-align: center;
    background: var(--secondary) url("../images/campaignbg1.png");
    background-size: cover;
}
#eventContainer{
    background: var(--secondary);
    display: flex;
}

#missionCanvas {
    margin: auto;
    width: 75%;
    aspect-ratio: 1160/70;  
}

.newshopcontainer {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.shopitem2 {
    background: var(--secondary);
    border-style: solid;
    border-width: 2px;
    margin: 5px;
    border-color: #b3b7bc;
    aspect-ratio: 1/1;
    width: 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .shopitem2 img {
        width: 60%;
    }

    .shopitem2 button {
        width: max-content;
        margin: auto;
        padding: 4px;
        border-radius: 10px;
        font-family: quicksand;
        height: min-content;
        display: flex;
        align-items: center;
        background: #59d99d;
        border-color: #55544e;
        font-weight: 500;
        border-style: solid;
    }

        .shopitem2 button:hover {
            background: #9bfdcf;
        }

#stickyCurrencyInfo {
    position: absolute;
    background: var(--secondary);
    border-style: solid;
    border-width: 2px;
    padding: 5px;
    display: flex;
    align-items: center;
    box-shadow: 0px 0px 14px rgba(0, 0, 0, 0.3);
    border-color: #b3b7bc;
}

.icon {
    height: 25px;
    width: 25px;
}

.iconbig {
    height: 40px;
    width: 40px;
}

#missionInfo {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mainhr {
    width: 50%;
    background: var(--tertiary);
    height: 2px;
}

.slide {
}

#slideShowContainer {
    top: calc(50% - 170px);
    left: calc(50% - 240px);
    width: 480px;
    height: 340px;
}

.window {
    position: absolute;
    min-width: 100px;
    min-height: 100px;
    display: flex;
    border-radius: 6px;
    background: var(--primary);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    z-index: 100000;
    overflow: hidden;
}

.window-top {
    width: 100%;
    display: flex;
    align-items: center;
    height: 20px;
}

.window-close {
    border-radius: 100%;
    aspect-ratio: 1/1;
    height: 80%;
    background: #ff5757;
    margin-right: 8px;
}

    .window-close:hover {
        background: #ff1a1a;
    }

.window-title {
    color: white;
    margin-left: 8px;
}

#gravestoneButton {
    height: 10%;
    min-height: 30px;
    width: 40%;
    font-size: 1.5em;
    background: #b8b8b8;
    margin-bottom: 5px;
}

    #gravestoneButton:hover {
        background: #dedede;
    }

#escapeScreen {
    background: rgba(0, 0, 0, 0.6);
    width: 100%;
    height: 100%;
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    top: 0;
    left: 0;
    gap: 10px;
    color: white;
}

    #escapeScreen button {
        width: 20%;
        padding: 5px;
        border-style: solid;
        border-radius: 5px;
        border-color: white;
        font-size: 1.2em;
    }

.shopnav {
    padding: 5px;
    border-width: 0px 0px 2px;
    border-color: rgba(0, 0, 0, 0.5);
    width: 15%;
    background: none;
    font-size: 1.5em;
    transition: all 0.2s;
}

    .shopnav:hover {
        background: rgba(255, 255, 255, 0.3);
    }

.erth2-party {
    background: white url("../images/blockbanner.png");
}

#inventory {
    display: flex;
    width: 100%;
    overflow: auto;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    height: 100%;
    flex-wrap: wrap;
    background: var(--primary);
    flex-wrap: wrap;
    align-content: flex-start;
}

    #inventory::-webkit-scrollbar {
        display: none;
    }

    #inventory canvas {
        border: 1px solid var(--secondary);
        margin: 1px;
        border-radius: 5px;
        width: 50px;
        height: 50px;
        background-color: var(--primaryDark);
        /*background-image: url("../images/itemmap.png");*/
        transition: background-color 0.2s;
    }

        #inventory canvas:hover {
            background-color: var(--primary);
        }

#inventoryInfo {
    color: white;
    background-color: var(--primaryDark);
    margin: 0;
    padding: 2px;
    font-size: 0.8em;
    text-align: center;
    font-weight: 1000;
}

#minimap {
    position: absolute;
    right: 5px;
    padding: 10px;
    bottom: 15px;
    width: 17%;
    background: rgba(158, 154, 132, 0.7);
    background-image: url("../images/minimap.png");
    background-size: cover;
    background-repeat: no-repeat;
}

#notificationCenter {
    position: absolute;
    right: 5px;
    gap: 2px;
    bottom: 50%;
    width: 10%;
    display: flex;
    flex-direction: column-reverse;
}

    #notificationCenter div {
        width: 100%;
        padding: 5px;
        border-radius: 5px;
        font-size: 0.7em;
        font-weight: bold;
        height: min-content;
        background: #DDE2E9;
        border-style: solid;
        border-width: 2px;
        border-color: #a6aab0;
    }

#notificationCenterTop {
    position: absolute;
    right: 5px;
    gap: 2px;
    flex-direction: column;
    display: flex;
    width: 15%;
    top: 50px;
}

    #notificationCenterTop div {
        width: 100%;
        padding: 5px;
        border-radius: 5px;
        font-size: 0.8em;
        font-weight: bold;
        height: min-content;
        background: rgba(0, 0, 0, 0.5);
    }

#mapname {
    position: absolute;
    bottom: 1px;
    right: 10px;
    color: white;
    padding: 0;
    margin: 0;
    font-weight: 1000;
    font-size: 0.8em;
    text-shadow: 0px 0px 5px black;
}

#infoText {
    pointer-events: none;
    user-select: none;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 70%;
    color: white;
    font-size: 1.6em;
    font-weight: bold;
    text-shadow: 0px 0px 5px black;
}

#mobile {
    position: absolute;
    z-index: 290;
    left: 1vw;
    width: 98%;
    height: min-content;
    /* visibility: hidden; */
    pointer-events: none;
    /* gap: 5px 5px; */
    bottom: 5vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

    #mobile div {
        display: flex;
        /* gap: 4px; */
    }

        #mobile div div {
            pointer-events: auto;
            background-color: rgba(0, 0, 0, 0.5);
            border-radius: 15px;
            aspect-ratio: 1/1;
            display: flex;
            justify-content: center;
            align-items: center;
            border: solid 1px #787878;
        }

.mobilesmall {
    height: min-content;
    align-self: flex-end;
    color: white;
    user-select: none;
}

.mobilebig {
    height: 100%;
    max-width: 80px;
    max-height: 80px;
    width: 10vw;
    height: 10vw;
    aspect-ratio: 1/1;
    display: flex;
    user-select: none;
    justify-content: center;
    align-items: center;
}
.mobileInvis{
    visibility: hidden;   
}

.mobileControlLeft {
    background: url("/images/mobile_arrow.svg");
    background-size: cover;
    transform: rotate(-90deg);
}

.mobileControlAttack {
    background: url("/images/mobile_sword.svg");
    background-size: cover;
    margin-left: 4px;
}

.mobileControlDash {
    background: url("/images/mobile_circle.svg");
    background-size: cover;
}

.mobileControlRight {
    background: url("/images/mobile_arrow.svg");
    background-size: cover;
    transform: rotate(90deg);
}

.mobileControlLeftup {
    background: url("/images/mobile_arrow.svg");
    background-size: cover;
    background-image: url("/images/mobile_arrow.svg");
    background-size: cover;
    /* Only rotate the background image */
    background-repeat: no-repeat;
    background-position: center;
    /* Use a pseudo-element to rotate the background image */
    position: relative;
}
.mobileControlLeftup::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/mobile_arrow.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(-45deg);
    z-index: 1;
    pointer-events: none;
}
.mobileControlLeftup {
    background-image: none;
}

.mobileControlRightup {
    background-image: none;
    position: relative;
}
.mobileControlRightup::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("/images/mobile_arrow.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(45deg);
    z-index: 1;
    pointer-events: none;
}

.mobileControlUp {
    background: url("/images/mobile_arrow.svg");
    background-size: cover;
    transform: rotate(0deg);
}

#gamemodeInfo {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px;
}

#notificationCenterMiddle{
    pointer-events: none;
    width: 100%;
    /*background: red;*/
    padding: 5px;
    bottom: 20%;
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.mainNotification{
    color: white;
    background: var(--primary);
    font-size: 1.3em;
    border: solid 3px var(--primaryDark);
    text-align: center;
    padding: 7px;
    width: max-content;
}
#weaponTree {
    /* z-index: 200; */
    pointer-events: none;
    width: 50%;
}

#weaponTreeWrapper {
    pointer-events: none;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}
.starProgress{
    width: 500px;
    height: 40px;
    background-color: rgb(226, 226, 159);
    border: 2px solid rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: flex-end;
}
.starProgressDark{
    height: 100%;
    background-color: rgb(43, 42, 70);
    color: white;
    position: relative;
    display: flex;
    align-items: center;
}
.starProgressDark p{
    position: absolute;
    padding: 5px;
}

/*SHINE*/
/* Main shine effect class - just add this to any div */
.shine-effect {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

/* Animated shine overlay */
.shine-effect::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shine-sweep 3s ease-in-out infinite;
}

/* Animated gradient background */
.shine-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1)
    );
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    z-index: 0;
}

/* Ensure content stays on top */
.shine-effect > * {
    position: relative;
    z-index: 1;
}

@keyframes shine-sweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(30deg);
    }
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Alternative shine effects - use these class names for different styles */

/* Subtle shine - more understated */
.shine-subtle {
    position: relative;
    overflow: hidden;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
}

.shine-subtle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(218, 255, 253, 0.4),
        transparent
    );
    animation: shine-slide 3s ease-in-out infinite;
}

.shine-subtle > * {
    position: relative;
    z-index: 1;
}

@keyframes shine-slide {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

#joystick{
    position: fixed;
    left: 20px;
    user-select: none;
    pointer-events: auto;
    bottom: 5vh;
    width: 20%;
    z-index: 1000;
}
