:root {
    --main-text-color: #303440;
}

/* animations */

#close-button-shop {
    position: absolute;
    top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    cursor: pointer;
  }

  .item-content {
    display: flex;
    gap: 20px;
  }

  .item-image {
    width: 200px;
    aspect-ratio: 1 / 1;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    flex-shrink: 0;
    background-repeat: no-repeat;
  background-position:
center;
  background-size: 50px;
  }

  .item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .item-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .tabs {
    margin-top: 10px;
  }

  .tab-buttons {
    display: flex;
    margin-bottom: 10px;
  }

  .tab-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: #ddd;
    cursor: pointer;
  }

  .tab-buttons button.active {
    background-color: #bbb;
  }

  .tab-content {
    display: none;
  }

  .tab-content.active {
    display: block;
  }

  .item-description,
  .item-technical {
    font-size: 16px;
    color: #efefef;
    margin-bottom: 10px;
  }

  .copyright {
    font-size: 14px;
    color: #888;
    margin-top: 5px;
  }

  .purchase-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
    background-color: rgba(0,0,0,0.4);
    border-radius: 12px;
  }

  .item-price {
    font-weight: bold;
    font-size: 20px;
  }

  .quantity-select {
    font-size: 16px;
  }

  .quantity-select select {
    padding: 5px;
    font-size: 16px;
    border-radius: 6px;
  }

  .buy-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .buy-button:hover {
    background-color: #45a049;
  }

@keyframes blowUpContent {
    0% {
      transform: scale(1);
    }
    100% {
        transform: scale(2);
    }
}

@keyframes blowBackContent {
    0% {
      transform: scale(2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes backdropScene1 {
    0% {
        opacity: 0;
        background: rgba(33, 33, 33, 0.25);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
    100% {
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        background: rgba(2, 2, 2, 0.7);
        opacity: 1;
    }
}

@keyframes backdropScene2 {
    
    0% {
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        background: rgba(2, 2, 2, 0.7);
        opacity: 1;
    }
    100% {
        opacity: 0;
        background: rgba(33, 33, 33, 0.25);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

#outcontainer {
    width: 100%;
    height: 100%;
}

.grayed {
    -webkit-filter: grayscale(50%);
    filter: grayscale(50%);
}

/* Revive, disconnect, error screen */
.disconnectwindow {
    width: 640px;
    height: 200px;
    max-width: 100%;
    max-height: 100%;
    text-align: center;
}

/* Popup windows border and background */
/*#newpopup {width: 848px !important; height: 488px !important;}*/
#newpopup:has(#pmcontent) {
    width: 424px !important;
    height: 244px !important;
}

.windowborder {
    background-color: rgba(38, 42, 55, 1);
    border: 24px solid transparent;
    border-radius: 32px;
    padding: 32px 32px;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    font-size: 20pt;
    color: white;
    /*max-width: calc(100% - 128px);*/
}

.windowborder {
    outline: 6px solid #303440;

    box-shadow:
        0 0 0 6px #303440,
        0 0 0 10px #181A1E;
}

#deathscreen .windowborder {
    margin-top: initial;
    margin-bottom: initial;
    top: 50px;
}

.windowborder~.titletext {
    background-color: white !important;
}

/* Popup window title, menu items and close button */

.titletext {
    width: 100%; 
    position: absolute;
    left: 0px;
    top: 0px;
    text-align: center;
    font-size: 32px;
    /*color: #e5ebff;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
    text-shadow: 0 3px 0 #17191c;*/
}

/*background-color: #20232d;
    box-shadow: 
      0 2px 0 0 #2E3035,
      0 4px 0 0 #181A1E inset; */

.menuitem {
    width: 106px;
    height: 96px;
    float: left;
    position: relative;
    margin-top: 10px;
}

.menuitemtext {
    position: absolute;
    width: 100%;
    height: 20px;
    top: 76px;
    font-size: 18px;
    text-align: center;
    pointer-events: none;
}

.menuitemtext2 {
    position: absolute;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

.menuitemsubtitle {
    position: absolute;
    width: 100%;
    height: 14px;
    right: 5px;
    bottom: 5px;
    line-height: 14px;
    font-size: 14px;
    text-align: right;
    pointer-events: none;
}

.menuitemsmall {
    height: 88px;
}

.menuitem.selected {
    border: 4px solid #ffe060;
    border-radius: 12px;
    height: 124px;
}

.menuitemhead {
    clip: rect(48px, 44px, 96px, 0px) !important;
    top: -42px !important;
    left: 8px !important;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.menuitemhat {
    clip: rect(80px, 80px, 160px, 0px) !important;
    top: -82px !important;
    left: 6px !important;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.closebutton {
    position: absolute;
    top: -32px;
    right: -32px;
    width: 80px;
    height: 80px;
    cursor: pointer;
}

.closebuttonimage {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 24px;
    height: 24px;
    background: url(../../files/gui/bbuilder_closebutton.png);
    background-size: contain;
}

.backbutton {
    background: url(../../files/gui/bbuilder_backbutton.png);
    position: absolute;
    top: -8px;
    left: -16px;
    width: 40px;
    height: 40px;
}

.likebutton {
    background: url(../../files/gui/bbuilder_likebutton2.png);
    position: absolute;
    bottom: 5px;
    right: 0px;
    width: 80px;
    height: 32px;
    background-size: contain;
}

.unlikebutton {
    background: url(../../files/gui/bbuilder_unlikebutton.png);
    position: absolute;
    bottom: 5px;
    right: 0px;
    width: 80px;
    height: 32px;
    background-size: contain;
}

.bigmapimage {
    background: url(../../files/gui/bbuilder_bigmap.jpg);
    position: absolute;
    left: 0px;
    top: 0px;
    width: 769px;
    height: 769px;
}


.button[value="Client"] {
    margin-right: -5px;
}

.button[value="Server"] {
    margin-right: -30px;
}

/* Docs button */
.button[value^="📚"] { 
    box-sizing: border-box !important;
    box-shadow: none !important;
    border: none !important;
    font-size: 15px !important;
    width: 120px !important;
    height: 30px !important;
    border-radius: 4px !important;
    right: 130px !important;
    backdrop-filter: blur(4px);
    bottom: 5px !important;
    background: rgba(20, 20, 20, 0.4) !important;
}

/* Save script button */ 
.button[value^="💾"] {
box-sizing: border-box !important;
  box-shadow: none !important;
  border: none !important;
  font-size: 15px !important;
  width: 120px !important;
  height: 30px !important;
  border-radius: 4px !important;
  right: 5px !important;
  backdrop-filter: blur(4px);
  bottom: 5px !important;
  background: rgba(20, 20, 20, 0.4) !important;
}

.button[value="Client"], .button[value="Server"] {
    background: rgba(20, 20, 20, 0.4) !important;
    font-size: 15px !important;
    box-shadow: none !important;
    height: 20px !important;
  border-radius: 4px !important;
  line-height: 0px !important;
  top: -28px !important;
  width: 70px !important;
  box-sizing: border-box;
  height: 20px !important;
    border: none !important;
}

.button {
    position: absolute;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    height: 50px !important;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.button:disabled {
    color: lightgray;
    opacity: 0.5;
}

.statuscontent {
    position: relative;
    left: 2px;
}

/* due to overflow:hidden, divs inside profile status needs to be moved 2px */
#CharacterCustomTypeField {
    color: red;
    background-color: blue;
    width: 100px;
    font-size: 16px;
    border-radius: 3px;
}

label[for="CharacterCustomField"] {
    color: transparent;
    position: relative;
    background-color: black !important;
    width: 100px !important;
    font-size: 16px !important;
    border-radius: 15px !important;
    display: inline-block !important;
    padding: 5px !important;
    text-align: center !important;
    cursor: pointer !important;
}

label[for="CharacterCustomField"]:before {
    content: "Upload File";
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-decoration: none;
}



#ingamedoms {
    position: absolute;
    overflow: hidden;
    left: 0px;
    top: 0px;
    width: 100vw;
  height: 100vh;
}

#ingamedoms iframe {
    overflow: hidden;
}

/* Position of game buttons */
#chatbutton {
    left: 88px;
    top: 12px;
    width: 64px; 
    height: 64px;
    background-size: 64px;
}

#clanchatbutton {
    left: 164px;
    top: 12px; 
    width: 64px; 
    height: 64px;
    background-size: 64px;
    border-radius: 16px;
}

#menubutton {
    left: 12px;
    top: 12px;
    width: 60px;
    height: 60px;
    background-size: 60px; 
}

#homebutton {
    left: 128px;
    top: 8px;
}

#pmbutton {
    left: 208px;
    top: 8px;
}

#pmbubble {
    width: 100%;
    height: 100%;
    background-size: contain;
}

#coinsbutton {
    right: 240px;
    top: 8px;
}

#helpbutton {
    right: 200px;
    top: 8px;
}

#invitebutton {
    right: 200px;
    top: 8px;
}

#furniturebutton {
    right: 200px;
    top: 8px;
}

#postpicturebutton {
    right: 160px;
    top: 8px;
}

#logoutbutton {
    right: 160px;
    top: 48px;
}

#fullscreenbutton {
    right: 160px;
    top: 88px;
    display: none !important;
}

/* Image definitions for game and menu buttons */
#chatbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_chat.png);
}

#clanchatbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_clanchat.png);
}

#menubutton {
    background-image: url(../../files/gui/bbuilder_newbutton_menu.png);
}

#homebutton {
    background-image: url(../../files/gui/bbuilder_newbutton_home.png);
    display: none !important;
}

#pmbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_default.png);
}

#pmbubble {
    background-image: url(../../files/gui/bbuilder_chatbubble_red.png);
}

#helpbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_help.png);
    display: none;
}

#invitebutton {
    background-image: url(../../files/gui/bbuilder_newbutton_invite.png);
    display: none;
}

#coinsbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_buycoins.png);
    display: none;
}

#furniturebutton {
    background-image: url(../../files/gui/bbuilder_newbutton_furniture.png);
}

#postpicturebutton {
    background-image: url(../../files/gui/bbuilder_newbutton_share.png);
    display: none;
}

#logoutbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_logout.png);
    display: none;
}

#fullscreenbutton {
    background-image: url(../../files/gui/bbuilder_newbutton_fullscreen.png);
    display: none;
}

/* Size of game and menu buttons */
.gamebutton {
    background-size: auto 40px;
    position: absolute;
    width: 40px;
    cursor: pointer;
    height: 40px;
}

.gamewidebutton {
    background-size: auto 40px;
    position: absolute;
    cursor: pointer;
    width: 80px;
    height: 40px;
}


.hotkeyimage .menuitemimage {
    background-size: 32px !important;
    background-repeat: no-repeat;
    position: absolute;
    left: 0px !important;
    top: 0px !important;
    width: 64px !important;
    height: 64px !important;
    margin-left: 0px !important;
    margin-right: none !important;
    pointer-events: none;
}

.menuitemimage {
    background-size: auto 64px;
    background-repeat: no-repeat;
    position: absolute;
    left: 16px;
    width: 64px;
    height: 64px;
    margin-left: auto;
    margin-right: auto;
    pointer-events: none;
}

.menuitem.menuitemsmall .menuitemimage {
    height: 160px;
}

.storymenuimage {
    left: 24px;
    top: 36px;
}

#pmcontent hr {
    border: none;
    border-top: 2px solid #303440;
}

.pmtranslate {
    display: none;
}

/* Popups */
#modal_background {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 99;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    left: 0px;
    top: 0px;
    transition: none !important;
}

#likearrow {
    display: none;
}

#coinsarrow {
    display: none;
}

#LocationDisplay {
  box-shadow: inset 0px 0px 0px 1px rgb(86 86 86 / 50%), inset 0 0 8px 4px rgb(50 50 50 / 50%) !important;
  border: 1px solid rgb(33 33 33 / 80%) !important; 
  box-sizing: border-box !important;
  background-color: rgb(33 33 33 / 95%) !important;
  height: 64px !important;
}

/* Map markers */
.pin {
    width: 120px;
    height: 20px;
    position: absolute;
    margin: -48px 0px 0px -68px;

    color: white;
    font: bold 22px Coolvetica;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    text-align: center;
    padding: 8px 8px;
}

.friendpin {
    width: 240px;
    height: 20px;
    position: absolute;
    margin: -52px 0px 0px -128px;

    color: gold;
    font: bold 18px Coolvetica;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    text-align: center;
    padding: 8px 8px;
}

/* Input */
.gamelink {
    color: lime;
}

input[type=text],
input[type=number],
textarea {
    height: 24px;
    font-size: 21px;
}

input[type=submit] {
    -webkit-appearance: button;
    width: 120px;
    height: 30px;
    font-size: 21px;
}

input[type=checkbox] {
    width: 24px;
    height: 24px;
    border-radius: 10px;
}

/* Images in GUI */

.pixelimage {
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

.flipximage {
    -moz-transform: scaleX(-1);
    -o-transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
}

/* Movement help for Facebook version */

#movementhelp {
    display: none;
}

#movementhelpad {
    display: none;
}

/* Short message */

#shortmessage {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 60px;
    height: 30px;
    text-align: center;
    font-size: 20pt;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    color: white;
    display: none;
}

#pinglabel {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 15px;
    height: 20px;
    text-align: center;
    font-size: 15pt;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    color: white;
    pointer-events: none;
    display: none;
}


/* PM blinking */

@-moz-keyframes blink {
    0% {
        opacity: 1;
        filter: none;
    }

    50% {
        opacity: 0;
        filter: alpha(opacity=0);
    }

    100% {
        opacity: 1;
        filter: none;
    }
}

@-webkit-keyframes blink {
    0% {
        opacity: 1;
        filter: none;
    }

    50% {
        opacity: 0;
        filter: alpha(opacity=0);
    }

    100% {
        opacity: 1;
        filter: none;
    }
}

@keyframes blink {
    0% {
        opacity: 1;
        filter: none;
    }

    50% {
        opacity: 0;
        filter: alpha(opacity=0);
    }

    100% {
        opacity: 1;
        filter: none;
    }
}

#pmbubble {
    -webkit-animation: blink 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: steps(1, end);
    -moz-animation: blink 1s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: steps(1, end);
    -ms-animation: blink 1s;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: steps(1, end);
    animation: blink 1s;
    animation-iteration-count: infinite;
    animation-timing-function: steps(1, end);
}

.pmbadge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 10px;
    padding: 1px 2px 1px 2px;
    background-color: red;
    color: white;
    font-weight: bold;
    font-size: 0.55em;
    border-radius: 30px;
    box-shadow: 1px 1px 1px gray;
    text-shadow: none;
    text-align: center;
}

/* Winner message */

#winnercanvas {
    position: absolute;
    left: 8px;
    top: 90px;
    width: 118px;
    height: 60px;
}

/* Admin Console  specifically designed for Loupe Tribe*/

.chatnick {
    color: red;
    font-weight: 600;
}

.resizablewindowtitle {
    background: rgb(100, 128, 173);
    right: 5px;
    left: 5px;
    top: 5px;
    height: 20px;
    font-size: 14px;
    border-radius: 3px;
    position: absolute;
    padding-left: 10px;
    padding-top: 4px;
    -webkit-user-select: none;
    color: white;
    font-family: CabinetGrotesk;
    cursor: move;
}

.resizablewindowclose {
    background: url(../../files/gui/kala_window-close.png);
    background-size: contain;
    position: absolute;
    top: 9px;
    right: 9px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.adminconsoletext {
    color: #b8c0c9;
    font-size: 16px;
    resize: none;
    overflow: auto;
    user-select: text !important;
    line-height: 21.5px;
    margin-right: 12px;
}

.adminconsoleinputcontainer {
    position: absolute;
    left: 2px;
    bottom: 4px;
    right: 20px;
    height: 24px;
}

input[type=text].adminconsoleinput {
    width: 100%;
    height: 100%;
    padding: 0;
    padding-left: 2px;
    border-width: 0px;
    background-color: #d5d5d54d;
    border-radius: 0px 0px 15px 15px !important;
    color: #ffffff;
    font-family: Verdana;
    font-size: 15px;
    resize: none;
}

.resizablewindowcontent {
    position: absolute;
    background: rgba(100, 128, 173, 0.1);
    top: 35px;
    left: 5px;
    bottom: 5px;
    right: 5px;
    border-radius: 3px;
}

.filebrowserresizer {
    background-color: white !important;
}

.ace_editor * {
    font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

/*.chatnick { color: green; font-weight: 600; }
  
  .resizablewindow { -webkit-user-select: text; user-select: text; position: absolute; left: 10px; top: 15px; width:500px; height: 350px; max-width:100%; max-height:100%; background-color:rgb(48 52 64); border-width: 3px; border-color: rgba(96,104,127,0.5); border-radius: 10px; border-style: solid; z-index: 1000; resize: both; overflow: auto; }
  .resizablewindowtitle { position: absolute; left:15px; top:0px; right:0px; height:100px; padding-left: 5px; padding-top: 5px; -webkit-user-select: none; color: #d8e2ff; font-family: Coolvetica; font-size: 22px; cursor: move; background-image: url(../../files/gui/stafftools/kala_adminconsole_bg.png); background-size: contain; background-repeat: no-repeat; }
  .resizablewindowtitle::after { content:attr(title) ""; }
  .resizablewindowclose { background:url(../../files/gui/stafftools/kala_adminconsole_close.png); background-size:contain; position: absolute; top: 10px; right: 15px; width:20px; height: 20px; cursor: pointer; }
  .adminconsoletext { position: absolute; left: 15px; right: 15px; bottom: 45px; top: 60px; background: linear-gradient(180deg, rgba(48,52,64,1) 0%, rgba(96,104,127,1) 100%); color: #d8e2ff; font-family: Coolvetica; font-size: 13px; letter-spacing: 1px; padding: 5px; resize: none; overflow: auto; border-radius: 10px;}
  .adminconsoleinputcontainer { position: absolute; left: 15px; bottom: 10px; right: 20px; height: 25px; border-radius: 10px; }
  input[type=text].adminconsoleinput { width: 100%; height: 100%; border-width: 0px; border-radius: 10px; background: rgb(96,104,127,1); color: white; font-family: Coolvetica; font-size: 16px; border-style: solid; border-radius: 10px; resize: none; }
  .resizablewindowcontent { position:absolute; left:0px; right:0px; top:28px; bottom:40px; }
  .ace_editor * { font: 14px/normal 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace; }*/


/* Custom uploads */
.uploadstitched {
    position: relative;
    padding: 10px;
    margin: 10px;
    background: #00c000;
    color: #fff;
    font-size: 21px;
    font-weight: bold;
    line-height: 1.3em;
    border: 2px dashed #024001;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #00c000, 2px 1px 6px 4px rgba(10, 10, 0, 0.5);
    font-weight: normal;
}

.uploadstitched:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../../files/gui/kala_uploadtest2.png);
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

#characteruploadtext1 {
    position: relative;
    color: transparent;
}

#characteruploadtext1:before {
    content: "Testing...";
    position: absolute;
    color: #fff;
    font-size: inherit;
    width: 100%;
    height: 100%;
    display: flex;
}

.uploaddroptext {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 10px;
    text-align: center;
    -webkit-user-select: none;
    pointer-events: none;
    display: none;
}

/* Offerwall */
.offer .menuitemimage {
    border-radius: 15px;
}

.itembuybutton {
    background-size: auto 96px;
    background-repeat: no-repeat;
    position: absolute;
    width: 96px;
    height: 96px;
    cursor: pointer;
}

/* Notifications */
#notifications,
.notification {
    -moz-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    -ms-user-select: none;
}

#notifications {
    width: 100%;
    left: 0px;
    top: 10px;
    bottom: 0px;
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

.notification {
    position: relative;
    width: 100%;
    height: auto;
    text-align: center;
    overflow: hidden;
}

.notificationtext {
    position: relative;
    width: auto;
    height: auto;
    max-width: calc(100% - 50%);
    margin-bottom: 5px;
    padding: 5px 15px;
    border-radius: 10px;
    color: white;
    display: inline-block;
    text-align: center;
    font-size: 18px;
    cursor: pointer;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-100%);
    opacity: 0;
    animation: slide-in-blurred-top 0.6s cubic-bezier(0.230, 1.000, 0.320, 1.000) both;
    border: 1px solid rgba(27, 29, 37, .5);
    box-sizing: border-box;
    box-shadow: inset 0px 0px 0px 1.5px rgba(77, 78, 84, .5);
}

.notificationtitle::first-line {
    line-height: 30px;
}

.notificationtext>img.pixelimage:first-child+.notificationtitle,
.notificationtext>img.pixelimage:first-child~.notificationtitle {
    margin-top: 11px;
    margin-bottom: 8px;
}

@keyframes slide-in-blurred-top {
    0% {
        -webkit-transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
        transform: translateY(-1000px) scaleY(2.5) scaleX(0.2);
        -webkit-transform-origin: 50% 0%;
        transform-origin: 50% 0%;
        -webkit-filter: blur(40px);
        filter: blur(40px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0) scaleY(1) scaleX(1);
        transform: translateY(0) scaleY(1) scaleX(1);
        -webkit-transform-origin: 50% 50%;
        transform-origin: 50% 50%;
        -webkit-filter: blur(0);
        filter: blur(0);
        opacity: 1;
    }
}

.notificationtitle {
    position: relative;
    float: left;
    min-height: 30px;
    margin-right: 35px;
}

.notificationbutton,
.notificationbutton[type=submit] {
    position: relative;
    cursor: pointer;
    background: white;
    float: right;
    width: auto;
    min-width: 60px;
    margin: 1px 2px 1px 0px;
    line-height: 100%;
    border-radius: 6px;
}

.dismissnotification {
    background-image: url(../../files/gui/kala_nowtest.png);
    background-repeat: no-repeat;
    position: absolute;
    right: 6px;
    top: 10px;
    width: 30px;
    height: 11.25px;
    margin-left: 8px;
    display: inline-block;
    background-size: 30px 11.25px;
    margin-right: 5px;
}

#pmcontent {
    color: #e5ebff;
    bottom: 80px !important;
}

.pmcontenttext {
    color: white;
}

.pmtranslate {
    text-decoration: underline;
    color: #e5ebff;
    cursor: pointer;
}

.pmtranslated {
    color: lightblue;
}

@keyframes displaySwoosh {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hotkeys */

#hotkeys {
    position: absolute;
    top: 50%; /*calc(64px + 32px + 3 * 12px);*/
    transform: translateY(-50%);
    right: 10px;
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#hotkeys > :last-child {
    margin-bottom: 0px;
}

.hotkey {
    width: 64px;
    /* Keep width the same */
    height: 64px;
    /* Keep height the same */
    background-size: contain;
    cursor: pointer;
    margin-bottom: 12px;
    background-image: none !important;
    /* Optional: Space between hotkeys */
    position: relative;
    /* Ensure positioning context for .hotkeynumber */

    box-shadow: inset 0px 0px 0px 1px rgb(86 86 86 / 50%), inset 0 0 8px 4px rgb(50 50 50 / 50%) !important;
  border:
1px solid rgb(33 33 33 / 80%) !important;
  box-sizing: border-box !important;
  background-color: rgb(33 33 33 / 95%) !important;
}

.hotkeynumber {
    color: white;
    position: absolute;
    display: none;
    right: 15px;
    /* Aligns the number to the right edge of the hotkey */
    top: 10px;
    /* Aligns the number from the top edge of the hotkey */
    font-size: 20px;
    pointer-events: none;
}

.hotkeyimage {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ShowVs spar display */

.showvswindow {
    background: rgba(20, 90, 20, 0.5);
    padding: 0px 12px 0px 12px;
    border-radius: 8px;
    color: white;
    text-align: center;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    margin-bottom: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    font-size: 28px;
    line-height: 28px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    color: white;
    max-width: 100%;
    max-height: 100%;
}

.deathwindow {
    width: 640px;
    height: 220px;
    margin-top: initial;
    margin-bottom: initial;
    top: 50px;
    max-width: 100%;
    max-height: 100%;
    text-align: center;
    padding: 20px;
}

#showvs {
    width: 600px;
    height: 250px;
}

.showvsplayer {
    position: absolute;
    width: 250px;
    height: 100%;
}

.showvshead {
    background-size: 480px 200px;
    position: absolute;
    left: 45px;
    top: 32px;
    width: 160px;
    height: 160px;
}

.showvshat {
    background-size: 480px 280px;
    position: absolute;
    left: 45px;
    top: -16px;
    width: 160px;
    height: 240px;
}

.showvsvs {
    position: absolute;
    left: 250px;
    top: 100px;
    width: 100px;
    height: 100px;
    font-size: 48px;
    line-height: 48px;
}

.showvsname {
    position: absolute;
    left: 0px;
    top: 190px;
    width: 100%;
    height: 60px;
    color: lightgray;
}

#showvsplayer1 {
    left: 0px;
}

#showvsplayer2 {
    left: 350px;
}

#showvsclans {
    width: 360px;
    height: 300px;
    background: rgba(20, 90, 20, 0.8);
}

.showvsclan {
    position: absolute;
    left: 0px;
    width: 100%;
    height: 120px;
    font-size: 48px;
    line-height: 48px;
    color: lightgray;
}

.showvsclansvs {
    position: absolute;
    left: 0px;
    top: 120px;
    width: 100%;
    height: 60px;
    font-size: 48px;
    line-height: 48px;
}

#showvsclan1 {
    top: 30px;
}

#showvsclan2 {
    top: 200px;
}

#showvswinner {
    width: 250px;
    height: 330px;
}

#showvsplayerw {
    left: 10px;
    top: 60px;
    height: 270px;
}

.showvslabel,
.showvsclanlabel {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 60px;
    font-size: 48px;
    line-height: 48px;
}

.showvsstreak {
    position: absolute;
    left: 0px;
    top: 235px;
    width: 100%;
    height: 20px;
    font-size: 20px;
    line-height: 20px;
    font-style: italic;
}

#showvsclanwinner {
    width: 360px;
    height: 200px;
}

#showvsclanw {
    top: 80px;
}

/* Story interface */

#recordinterface {
    position: absolute;
    margin-left: auto;
    margin-top: auto;
    margin-right: auto;
    margin-bottom: auto;
    left: 0px;
    right: 0;
    top: 0px !important;
    bottom: 0;
    width: 256px;
    height: 326px;
}

#recordborder {
    background: url(../../files/gui/bbuilder_recordborder.png);
    background-size: contain;
    position: absolute;
    width: 256px;
    height: 256px;
    left: 0px;
    top: 35px;
}

#recordclosebutton {
    right: -24px;
    top: -24px;
}

#recordstartbutton {
    background: url(../../files/gui/bbuilder_recordbutton.png);
    background-size: contain;
    position: absolute;
    left: 88px;
    bottom: 0px;
    width: 80px;
    height: 32px;
    cursor: pointer;
}

#recordstopbutton {
    background: url(../../files/gui/bbuilder_recordstopbutton.png);
    background-size: contain;
    position: absolute;
    left: 88px;
    bottom: 0px;
    width: 80px;
    height: 32px;
    cursor: pointer;
    display: none;
}

#recordborder.recording {
    -webkit-animation: blink 1s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -moz-animation: blink 1s;
    -moz-animation-iteration-count: infinite;
    -moz-animation-timing-function: linear;
    -ms-animation: blink 1s;
    -ms-animation-iteration-count: infinite;
    -ms-animation-timing-function: linear;
    animation: blink 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

.storycanvas {
    border: 4px solid #006000;
    border-radius: 24px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.storymenu .menuitem {
    border: 4px solid #006000;
    border-radius: 24px;
    margin-right: 8px;
    width: 114px;
    height: 114px;
}

.storymenu .menuitem.selectedstory {
    border: 4px solid #ffe060;
}

.storymenu .menuitemtext {
    font-size: 18px;
    padding: 4px;
    width: calc(100% - 8px);
    height: auto;
    top: 0px;
    bottom: initial;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.storymenu .menuitemhead {
    left: 32px !important;
    top: 52px !important;
}

.storymenu .menuitemhat {
    left: 32px !important;
    top: 36px !important;
}

#playlistcontainer {
    margin-left: -8px;
}

.storysmallcontainer {
    border: 4px solid #006000;
    border-radius: 6px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    margin: -4px;
    overflow: hidden;
    position: absolute;
    width: 144px;
    height: 144px;
}

/* New profile */

.profilefieldlabel {
    position: absolute;
    font-size: 16px;
}


.profilefield {
    position: absolute;
    left: 97px;
    top: 10px;
    text-align: center;
    font-style: bold;
    color: white;
    display: flex;
    align-items: left;
    justify-content: left;
    text-align: left;
}

.profilebuttons {
    position: absolute;
    left: -18px;
    bottom: -18px;
    width: 100%;
    width: calc(100% + 36px);
    height: 44px;
}

.profilebutton {
    position: absolute;
    height: 100%;
    text-align: center;
    cursor: pointer;
}

.profilebutton.selected:before {
    display: none;
    border: solid;
    border-color: #5a462f99 transparent;
    border-width: 0px 8px 8px 8px;
    top: 0px;
    margin-top: -11px;
    content: "";
    left: 50%;
    margin-left: -8px;
    position: absolute;
    z-index: 99;
}

#profilebuttonsocial {
    left: 0px;
    width: 33%;
}

#profilebuttonprofile {
    left: 33%;
    right: 33%;
    display: none;
}

#profilebuttonmore {
    position: absolute;
    right: 20px;
    bottom: 170px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    height: 50px;
    width: 160px;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.profilehpback {
    position: absolute;
    left: 0px;
    top: 20px;
    width: 180px;
    height: 22px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
    border-radius: 15px;
}

.profilehp {
    position: absolute;
    left: 0px;
    top: 20px;
    height: 22px;
    background: white;
    border: solid 2px #ffffff;
    box-sizing: border-box;
    border-radius: 15px;
}

#profilecharacter {
    pointer-events: none;
}

.profile_specialtitle {
    position: absolute;
    font-size: 16px;
    right: 0px;
    top: 60px;
    text-align: center;
    font-style: bold;
    color: white;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_specialtitle_level {
    font-size: 12px;
}

.profile_specialtitle_id {
    position: absolute;
    right: 0px;
    top: 100px;
    text-align: center;
    font-style: bold;
    color: white;
    background-color: #20232d;
    border-radius: 15px;
    width: 160px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow:
        0 2px 0 0 #2E3035,
        /* Outer shadow */
        0 4px 0 0 #181A1E inset;
    /* Inner shadow */
}

.profile_specialtitle_id .profile_value {
    font-size: 16px !important;
    transform: translateY(1px);
}

.profile_achievementtitle {
    position: absolute;
    left: 0px;
    top: 4px;
    width: 100%;
    font-size: 22px;
    text-align: center;
    font-style: bold;
    color: #e0e0e0;
    display: block;
    line-height: 18px;
}

.profile_achievementexp {
    font-size: 16px;
}

.profile_value {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.profile_id {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    text-align: center;
    color: white;
}

.profile_offlinetime {
    position: absolute;
    left: 0px;
    top: 100px;
    text-align: center;
    font-style: bold;
    color: white;
    background-color: #20232d;
    padding: 10px 20px;
    border-radius: 15px;
    width: 120px;
    display: flex;
    align-items: left;
    justify-content: left;
    text-align: left;
    box-shadow:
        0 2px 0 0 #2E3035,
        /* Outer shadow */
        0 4px 0 0 #181A1E inset;
    /* Inner shadow */
}

.profile_online {
    position: absolute;
    left: 0px;
    top: 100px;
    text-align: center;
    font-style: bold;
    color: white;
    background-color: #20232d;
    padding: 10px 20px;
    border-radius: 15px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow:
        0 2px 0 0 #2E3035,
        /* Outer shadow */
        0 4px 0 0 #181A1E inset;
    /* Inner shadow */
}

.profile_onlinetime {
    position: absolute;
    left: 141px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_gendertext,
.profile_hourstext,
.profile_socialranktext,
.profile_careerranktext,
.profile_combatranktext,
.profile_koinstext,
.profile_relationshiptext {
    position: absolute;
    bottom: 60px;
    height: 66px;
    width: 99px;
    font-size: 16px !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_gendertext {
    left: 22px;
}

.profile_hourstext {
    left: 141px;
}

.profile_socialranktext {
    left: 260px;
}

.profile_careerranktext {
    left: 50%;
    transform: translateX(-50%);
}

.profile_combatranktext {
    right: 260px;
}

.profile_koinstext {
    right: 141px;
}

.profile_relationshiptext {
    right: 22px;
}

.profile_bombs {
    position: absolute;
    left: 165px;
    top: 60px;
    display: none;
}

.profile_coins {
    position: absolute;
    right: 141px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_arrows {
    position: absolute;
    left: 165px;
    top: 95px;
    display: none;
}

.profile_eventcoin {
    position: absolute;
    left: 260px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_nitrocoin {
    position: absolute;
    left: 50%;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: translateX(-50%);
}

.profile_eggs {
    position: absolute;
    left: 0px;
    top: 197px;
}

.profile_spar {
    position: absolute;
    right: 260px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/*.profile_kills       {    
    position: absolute;
    left: 22px;
    bottom: 3px;
    height: 66px; 
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
  }*/

.profile_gender {
    position: absolute;
    left: 22px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_deaths {
    position: absolute;
    left: 0px;
    top: 235px;
    display: none;
}

.profile_mobkills {
    display: none;
    position: absolute;
    right: 22px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_relationship {
    position: absolute;
    right: 22px;
    bottom: 3px;
    height: 66px;
    width: 99px;
    font-size: 18px !important;
    border-radius: 20px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 4px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile_holidayloot {
    position: absolute;
    left: 0px;
    top: 270px;
    display: none;
}

.profile_holidayloot2 {
    position: absolute;
    left: 80px;
    top: 270px;
    display: none;
}

.profile_holidayloot3 {
    position: absolute;
    left: 160px;
    top: 270px;
    display: none;
}

.profile_status {
    position: absolute;
    left: 50%;
    height: 20px;
    font-size: 18px !important;
    top: 15px;
    padding: 10px 20px;
    border-radius: 15px;
    transform: translateX(-50%);
    bottom: 16px;
    overflow: hidden;
    background-color: #20232d;
    background-image: url(../../files/gui/general/kala_status-tooltip.png);
    background-repeat: no-repeat;
    background-position: bottom center;
    /* Adjust as needed */
    background-size: contain;
    /* Ensure the image is scaled appropriately */
    z-index: 10;
    /* Ensure it is above other elements */
}

.profile_status::before {
    content: "";
    position: absolute;
    bottom: -20px;
    /* Position the image properly if it's a separate arrow */
    left: 50%;
    overflow: hidden;
    transform: translateX(-50%);
    width: 20px;
    /* Adjust to match the image dimensions */
    height: 20px;
    /* Adjust to match the image dimensions */
    background-image: url(../../files/gui/general/kala_status-tooltip.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: -1;
    /* Ensure it's below the text */
}

/*.profile_kills .profile_value { color:#ffffff; }
  .profile_streak      { font-style:italic; font-size:18px; }*/
.profile_addfriend,
.profile_removefriend {
    position: absolute;
    left: 0px;
    bottom: 135px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    height: 50px;
    width: 160px;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.profile_addfriend,
.profile_removefriend .profile_value {
    transform: translateY(1px);
}

.profile_addmessage {
    position: absolute;
    left: 0px;
    bottom: 205px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    height: 50px;
    width: 160px;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.profile_addmessage .profile_value {
    transform: translateY(1px);
}

.profile_editstatus {
    font-size: 18px !important;
    position: absolute;
    cursor: pointer;
    z-index: 1;
    height: 50px !important;
    width: 160px !important;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.profile_viewclan {
    position: absolute;
    right: 2px;
    bottom: 205px;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    height: 50px;
    width: 160px;
    border-radius: 15px;
    box-sizing: border-box;
    /* Ensures padding and border are included in width and height */
    background: #20232d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #17191c;
    box-shadow: inset 0 0 0 4px #303440, 0 4px 0 #17191c;
}

.profile_ping {
    position: absolute;
    left: 0px;
    top: 305px;
    display: none;
}

.profile_like {
    position: absolute;
    vertical-align: middle;
    left: 78px;
    top: -350px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
}

/* Clan menu */

.clan_news {
    position: absolute;
    left: 325px;
    top: 0px;
    width: 300px;
    height: 270px;
    overflow: hidden;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    padding: 5px 5px;
}

.clan_logo {
    position: absolute;
    left: 55px;
    top: 0px;
    width: 200px;
    height: 200px;
}

.clan_leader {
    position: absolute;
    left: 5px;
    top: 205px;
    width: 300px;
}

.clan_founded {
    position: absolute;
    left: 5px;
    top: 245px;
    width: 300px;
}

.clan_jointime {
    position: absolute;
    left: 5px;
    top: 76px;
    width: 300px;
    display: none;
}

.clan_basetime {
    position: absolute;
    left: 5px;
    top: 285px;
    width: 300px;
}

.clan_kills {
    position: absolute;
    left: 5px;
    top: 325px;
    width: 300px;
}

.clan_spar {
    position: absolute;
    left: 5px;
    top: 190px;
    width: 300px;
    display: none;
}

.clan_members {
    position: absolute;
    left: 5px;
    top: 365px;
    width: 180px;
}

.clan_value {
    position: absolute;
    top: 0px;
    right: 0px;
}

.clan_editnews {
    position: absolute;
    left: 550px;
    top: 238px;
    width: 80px !important;
    height: 40px !important;
}

.clan_settag {
    position: absolute;
    right: 0px;
    top: 7px;
    width: 145px !important;
    height: 40px !important;
}

.clan_showmembers {
    position: absolute;
    left: 200px;
    top: 360px;
    width: 105px !important;
    height: 40px !important;
}

/* Identify */
#identifyscreen {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 99;
}

#identifybuttons {
    position: absolute;
    width: 240px;
    height: 120px;
    left: 50%;
    margin-left: -120px;
    top: 50%;
    margin-top: -60px;
}

#identifyscreen .windowborder {
    display: none;
    position: absolute;
    width: 320px;
    height: 100px;
    left: 50%;
    margin-left: -224px;
    top: 50%;
    margin-top: -104px;
}

#identifyscreen .backbutton {
    position: absolute;
    left: -10px;
    width: 160px;
    top: -10px;
    height: 40px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
}

#identifyscreen .menuitem:hover,
#identifyscreen .backbutton:hover,
#identifyscreen input[type=submit]:hover {
    -webkit-filter: brightness(1.4);
    filter: brightness(1.4);
}

#identifybuttons .menuitem {
    position: absolute;
    top: 0px;
    margin-top: 0px;
    height: 120px;
    cursor: pointer;
    background: rgba(0, 64, 0, 0.5);
    border-radius: 8px;
    text-align: center;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
    color: white;
}

.identifybuttonimage {
    position: absolute;
    left: 5px;
    width: 96px;
    height: 96px;
    background-size: contain;
}

#identifydevicebutton.menuitem {
    left: 0px;
}

#identifydevicebutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_logindevice.png);
}

#identifyfacebookbutton.menuitem {
    left: 56px;
}

#identifyfacebookbutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_loginfacebook.png);
}

#identifygooglebutton.menuitem {
    left: 0px;
    top: 0px;
}

#identifygooglebutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_logingoogle.png);
}

#identifycognitobutton.menuitem {
    left: 56px;
}

#identifycognitobutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_loginnewuser.png);
}

#identifysteambutton.menuitem {
    left: 240px;
    display: none;
}

#identifysteambutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_loginsteam.png);
}

#identifyemailbutton.menuitem {
    left: 168px;
}

#identifyemailbutton.menuitem {
    left: 168px;
}

#identifyemailbutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_loginemail.png);
}

#identifynewuserbutton.menuitem {
    left: 280px;
}

#identifynewuserbutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_loginnewuser.png);
}

#identifyforumsbutton.menuitem {
    left: 168px;
    top: 128px;
}

#identifyforumsbutton .identifybuttonimage {
    background-image: url(../../files/gui/bbuilder_newbutton_forum.png);
}

#identifyscreen label {
    position: absolute;
    left: 20px;
    top: 50px;
}

#identifyscreen label#identifynewuserdesc {
    right: 20px;
    top: 80px;
    font-size: 20px;
    text-align: center;
}

#identifyscreen input[type=text],
#identifyscreen input[type=password] {
    position: absolute;
    left: 160px;
    right: 20px;
    top: 50px;
    height: 24px;
    font-size: 21px;
}

#identifyscreen input[type=submit] {
    position: absolute;
    width: 160px;
    left: 50%;
    margin-left: -80px;
    bottom: 0px;
    height: 32px;
}

#identifyscreen input[type=submit]#identifynewusersendbutton {
    width: 240px;
    margin-left: -120px;
}

#identifywait {
    display: none;
    position: absolute;
    width: 64px;
    height: 64px;
    left: 50%;
    margin-left: -32px;
    top: 50%;
    margin-top: -32px;
}

#identifylinks {
    position: absolute;
    left: 4px;
    bottom: 4px;
    font-size: 21px;
    color: #C0C0C0;
}

#identifylinks a:link {
    color: white;
}

#identifylinks a:visited {
    color: white;
}

/* Trading */
.tradeitem {
    border: 4px solid #006000;
    border-radius: 24px;
    margin-top: 4px;
    margin-left: 4px;
    height: 88px;
}

.tradeitem .menuitemtext {
    top: 68px;
    font-size: 16px;
    line-height: 14px;
}

.tradeplayername {
    position: absolute;
    text-align: center;
    width: 100%;
    top: 105px;
    font-style: italic;
    opacity: 0.5;
}

#tradechattext {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 36px;
    top: 0px;
    background-color: white;
    color: black;
    font-family: Verdana;
    font-size: 14px;
    padding: 2px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    resize: none;
    overflow: auto;
    text-shadow: none;
}

#tradechatinputcontainer {
    position: absolute;
    left: 0px;
    bottom: 4px;
    right: 4px;
    height: 30px;
}

#tradechatinput {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0;
    padding-left: 2px;
    border-width: 0px;
    background-color: white;
    color: black;
    font-family: Verdana;
    font-size: 21px;
    border-width: 1px;
    border-style: solid;
    border-color: gray;
    resize: none;
}

.tradebutton {
    width: 70px;
    height: 70px;
    margin: 0 16px 0 -16px;
}

.tradehistoryitem {
    height: 88px;
}

.tradehistoryitem .menuitemtext {
    font-size: 18px;
    line-height: 16px;
    top: 64px;
}

/* FileBrowser */

:root {
    --background: rgb(67, 69, 73);
    --foreground: rgb(55, 58, 62);
    --text_normal: #b9c0c9;
    --text_hover: #ffb357;
}

#filebrowserresizer {
    background-color: transparent !important;
}

#filebrowserview {
    background: var(--foreground) !important;
    border-radius: 20px;
    margin-right: 15px;
    box-shadow: rgb(80, 83, 87) 0px 3px 0px 0px, rgb(41, 43, 48) 0px 3px 0px 0px inset;
}

#filebrowserview textarea.scrollable {
    background: var(--foreground) !important;
    border-radius: 20px;
    color: var(--text_normal) !important;
    box-sizing: border-box;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

#filebrowsersave {
    background: var(--background);
    border: none;
    color: var(--text_normal);
    box-shadow: 0 3px 0 #292b30;
    bottom: 9px !important;
}

#filebrowseradd {
    background: var(--background);
    border: none;
    right: 24px !important;
    left: auto !important;
    color: var(--text_normal);
    box-shadow: 0 3px 0 #292b30;
    bottom: 69px !important;
}

div[title^="File Browser"] {
    color: var(--text_hover) !important;
    left: 10px !important;
}

div:has(> div[title^="File Browser"]) {
    background: var(--background) !important;
    border: none !important;
    color: var(--text_normal);
}

div[title^="File Browser"] + div.resizablewindowclose {
    background-image: url(https://files.iappsbeats.com/Servers/server_4/Files/gui/kala_ac-close-bg.png);
    background-size: cover;
    right: 16px;
    aspect-ratio: 1/1;
    width: 24px;
}

div.resizablewindowcontent:has(> #filebrowserresizer) {
    background: rgba(0,0,0,0) !important;
    bottom: 15px !important;
}

ul.tree,
ul.tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.tree {
    display: none;
}

ul.tree.active {
    display: block;
}

ul.tree ul {
    margin-left: 1.0em;
}

ul.tree li {
    margin-left: 0.35em;
    /* border-left: thin solid #000; */
    
}

ul.tree li:last-child {
    border-left: none;
}

ul.tree li:before {
    width: 0.9em;
    height: 0.6em;
    margin-right: 0.1em;
    vertical-align: top;
    /* border-bottom: thin solid #000; */
    content: "";
    display: inline-block;
    opacity: 0;
}

ul.tree li:last-child:before {
    /* border-left: thin solid #000; */
    opacity: 0;
}

ul.tree .foldertitle,
ul.tree li {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    color: var(--text_normal) !important;
}

ul.tree li:hover { color: var(--text_hover) !important; }

ul.tree .foldertitle::before {
    content: "";
    display: inline-block;
    margin: 0 4px 0 0;
    width: 1em;
    height: 1em;
    background: url(../../files/gui/kala_folder-grey.png);
    background-size: contain;
    color: var(--text_normal) !important;
}

ul.tree .foldertitle:hover::before {
    background: url(../../files/gui/kala_folder-orange.png);
    background-size: contain;
}

ul.tree .foldertitle:hover { color: var(--text_hover) !important; }

ul.tree .foldertitle.active::before {
    background-image: url(../../files/gui/kala_openfolder-grey.png);
    color: white !important;
}

ul.tree .foldertitle.active::before,
ul.tree .foldertitle.active:hover::before {
    background: url(../../files/gui/kala_openfolder-orange.png);
    background-size: contain;
    color: var(--text_hover);
}

ul.tree .filetitle:hover,
ul.tree .foldertitle.active,
ul.tree .foldertitle.active:hover {color: var(--text_hover) !important; }

ul.tree .filetitle {
    background-image: url(../../files/gui/bbuilder_fileicon_default.png);
    background-size: 0; 
    color: var(--text_normal) !important;
}

ul.tree .filetitle:before {
    content: "";
    display: inline-block;
    margin: 0 4px 0 0;
    width: 1em;
    height: 1em;
    background-image: inherit;
    background-size: contain;
    color: white !important;
}

/* Right-click menu */

.contextmenu_background {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 200;
}

.contextmenucontainer {
    background: rgba(0, 255, 85, 0.6);
    border-radius: 5px;
    position: absolute;
    line-height: 40px;
    z-index: 201;
    color: white;
    font-size: 20px;
    padding: 5px 15px;
    cursor: pointer;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 2px 0 #000, 1px 2px 0 #000;
}

.contextmenu {
    float: left;
    clear: left;
    width: 100%;
}

/* New Console */
.resizablewindowtitle {
    text-indent: -9999px;
    line-height: 0;
    /* Collapse the original line */
}

.resizablewindowtitle::after {
    content: attr(title); 
    font-weight: bold;
    text-indent: 0;
    display: block;
    line-height: initial;
}

.resizablewindowtitle[title="Database Explorer"]::after {
    content: attr(title); 
    font-weight: normal !important;
    text-indent: 0;
    display: block;
    font-family: 'Arial' !important;
    font-size: 10pt !important;
    line-height: initial;
}

.resizablewindow {
    -webkit-user-select: none;
    backdrop-filter: blur(4px);
    user-select: none;
    position: absolute;
    left: 10px;
    top: 10px;
    width: 500px;
    height: 350px;
    min-width: 400px;
    min-height: 240px;
    max-width: 100%;
    max-height: 100%;
    z-index: 1000;
    resize: both;
    overflow: auto;

    border: 2px solid black;
  background: rgba(20, 20, 20, 0.9);
  border-radius: 8px;
  box-sizing: border-box;
}

#files .resizablewindow {
    left: 10px;
    top: 10px;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"] {
    appearance: none !important;
    background-color: #303440 !important;
    border-radius: 72px !important;
    border-style: none !important;
    flex-shrink: 0 !important;
    height: 20px !important;
    margin: 0 15px 0 0 !important;
    position: relative !important;
    width: 30px !important;
    cursor: pointer !important;
    transition: all 100ms ease-out !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]::before {
    bottom: -6px !important;
    content: "" !important;
    left: -6px !important;
    position: absolute !important;
    right: -6px !important;
    top: -6px !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]::after {
    background-color: #fff !important;
    border-radius: 50% !important;
    content: "" !important;
    height: 14px !important;
    left: 3px !important;
    position: absolute !important;
    top: 3px !important;
    width: 14px !important;
    transition: all 100ms ease-out !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]:hover {
    background-color: #303440 !important;
    transition-duration: 0s !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]:checked {
    background-color: #4CAF50 !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]:checked::after {
    background-color: #fff !important;
    left: 13px !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]:focus:not(.focus-visible) {
    outline: 0 !important;
}

#newpopup_dialog form[name="settingsform"] input[type="checkbox"]:checked:hover {
    background-color: #4CAF50 !important;
}

#newpopup_dialog form[name="settingsform"] {
    position: absolute !important;
    top: 10px !important;
}

/*#newpopup_dialog input[type="submit"][value="Graphics"],
  #newpopup_dialog input[type="submit"][value="Grafik"] {
    background-color: #4CAF50 !important;
    color: white !important;
  }*/

#newpopup input[type="submit"][value="Admin"] {
    bottom: 5px !important;
}

#profilecanvas {
    width: 480px !important;
    height: 480px !important;
    top: -90px !important;
    left: 28px !important;
}

/* Target the dialog container */
div[style*="position: absolute"][style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"] {
    overflow-y: scroll !important;
    max-height: calc(100% - 132px) !important;
    top: 60px !important;
}

#newpopup_dialog:has(.menuitemsmall) {
    overflow-y: scroll !important;
}

#newpopup_dialog:has(.menuitemsmall)[style*="top: 60px"] {
    max-height: calc(100% - 66px) !important;
}

#newpopup_dialog:has(.menuitemsmall)::-webkit-scrollbar {
    width: 10px !important;
}

#newpopup_dialog:has(.menuitemsmall)::-webkit-scrollbar-track {
    background: transparent !important;
}

#newpopup_dialog:has(.menuitemsmall)::-webkit-scrollbar-thumb {
    background: #17191c !important;
    border-radius: 10px !important;
}


/* Style the scrollbar */
div[style*="position: absolute"][style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"]::-webkit-scrollbar {
    width: 10px !important;
}

div[style*="position: absolute"][style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"]::-webkit-scrollbar-track {
    background: transparent !important;
}

div[style*="position: absolute"][style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"]::-webkit-scrollbar-thumb {
    background: #17191c !important;
    border-radius: 10px !important;
}

div[style*="position: absolute"][style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"] input[type="submit"][value="Suche"] {
    background: #17191c !important;
    border-radius: 10px !important;
}

/* Style for menuitemsmall */
.menuitemsmall {
    height: 60px !important;
    width: 560px !important;
    background: #303440 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 15px !important;
    top: -9px !important;
}

/* Style for menuitemtext */
div[style*="left: 0px"][style*="top: 30px"][style*="width: 100%"][style*="height: 100%"] .menuitemsmall .menuitemtext {
    top: 18px !important;
    font-size: 22px !important;
}

#newpopup[style*="width: 400px"][style*="height: 240px"] .pixelimage {
    left: 0px !important;
    clip: rect(48px, 44px, 96px, 0px) !important;
    top: -54px !important;
    height: 88px !important;
}

.menuitemsmall:first-child {
    margin: none !important;
}

input[type="submit"].button[style*="right: 0px"][style*="bottom: -18px"][style*="width: 145px"][style*="height: 40px"] {
    position: absolute;
    bottom: 5px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 145px;
    height: 40px;
    line-height: 34px;
    z-index: 101;
}

#newpopup:has(.menuitemsmall) .menuitemhat {
    display: none;
}

#newpopup:has(.menuitemsmall) .menuitemtext {
    top: 18px !important;
    font-size: 22px !important;
}

input[type="submit"].button[style*="right: 0px"][style*="top: -8px"][style*="width: 80px"][style*="height: 40px"] {
    top: none !important;
    left: 422px !important;
    width: 145px !important;
    bottom: 5px !important;
    top: auto !important;
}

input[type="submit"].button[style*="right: 80px"][style*="top: -8px"][style*="width: 80px"][style*="height: 40px"] {
    top: none !important;
    left: 94px !important;
    width: 145px !important;
    bottom: 5px !important;
    top: auto !important;
}

#newpopup_dialog:has(.menuitemsmall) {
    overflow-y: scroll !important;
}

label[for="KeySettingMoveDown"] {
    position: absolute;
    left: 325px;
    top: 8px;
    width: 80px;
    display: inline-block;
    font-size: 14px;
}

label[for="KeySettingMoveDown"]::before {
    content: "New Text";
    white-space: nowrap;
}

label[for="KeySettingMoveDown"]::after {
    font-size: 10px;
}

.menubadge {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    right: 20px !important;
    position: absolute;
    top: 20px;
    display: inline-block;
    background: #4CAF50;
    z-index: 101;
}

.menubadge:before {
    content: "";
    display: block;
    position: absolute;
    left: -5px;
    top: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in;
    background: #4CAF50;
    z-index: 100;
}

@keyframes pulse {
    from {
        transform: scale(0.5);
        opacity: 1;
    }

    to {
        transform: scale(1.5);
        opacity: 0;
    }
}

.stat-box {
    width: 120px;
    border-radius: 24px;
    background-color: #20232d;
    box-shadow: 0 2px 0 0 #2E3035, 0 3px 0 0 #181A1E inset;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

#STAFF_NEWS::-webkit-scrollbar {
    width: 10px !important;
}

#STAFF_NEWS::-webkit-scrollbar-track {
    background: transparent !important;
}

#STAFF_NEWS::-webkit-scrollbar-thumb {
    background: #17191c !important;
    border-radius: 10px !important;
}

@keyframes terminal {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(0, -4%);
    }
}

.menuitemstats {
    position: absolute;
    width: 100%;
    height: 16px;
    right: 10px;
    top: 55px;
    line-height: 16px;
    font-size: 16px;
    text-align: right;
    pointer-events: none;
}

/* Notification head */
.notificationtext>img.pixelimage:nth-child(1) {
    /*  rect( <top> , <right> , <bottom> , <left> )   */
    clip: rect(0px 48px 96px 0px) !important;
    left: 10px !important;
    top: -44px !important;
}

#newpopup[style*="width: 600px"][style*="height: 400px"] {
    outline: none;
    box-shadow: none;
    background: #404040; 
}

/*
ul.tree.active[data-path="/Config/"] > li:has(span.filetitle) {
    display: none;
}*/

ul.tree[data-path="/Scripts/"] > li:nth-child(2) > .foldertitle {
    color: transparent !important;
    position: relative;
}

ul.tree[data-path="/Scripts/"] > li:nth-child(2) > .foldertitle::after {
    content: "Client";
    color: #b8c0c9;
    position: absolute;
    left: 20px;
    top: 0px;
}

ul.tree[data-path="/Scripts/"] > li:nth-child(3) > .foldertitle {
    color: transparent !important;
    position: relative;
}

ul.tree[data-path="/Scripts/"] > li:nth-child(3) > .foldertitle::after {
    content: "Server";
    color: #b8c0c9;
    position: absolute;
    left: 20px;
    top: 0px;
}

ul.tree[data-path="/Config/"] > li:first-child {
  display: none;
}

ul.tree[data-path="/Files/"] > li:first-child {
  display: none;
}

ul.tree[data-path="/Scripts/"] > li:first-child {
  display: none;
}

ul.tree[data-path="/Maps/"] > li:first-child {
  display: none;
}

@keyframes noop {
  from { opacity: 1; }
  to   { opacity: 1; }
}