body {
    margin: 0px;
    padding: 0px;
    overflow: hidden;
    color: #FFFFFF;
    background: #000000
}

div {
    display: block;
    unicode-bidi: isolate;
}

#game {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%
}

#huds {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Leaderboard */

#leaderboard {
    position: fixed;
    top: 10px;
    right: 10px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-family: 'Noto Sans', sans-serif;
    transform-origin: top right;
    user-select: none
}

#leaderboard .slot {
    font-size: 14px;
    display: none;
    flex-direction: row;
    justify-content: flex-end;
    align-self: flex-end;
    line-height: 16px;
    background: rgba(0, 0, 0, 0.6);
    margin-top: 2px;
    padding: 2px 4px;
    border-radius: 2px
}

#leaderboard .slot .name {
    font-weight: 400;
    white-space: nowrap
}

#leaderboard .slot .position {
    font-weight: 600;
    margin-left: 5px
}

#player-count-hud {
    position: fixed;
    right: 10px;
    top: 240px;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 12px;
    font-family: "Noto Sans", sans-serif;
    display: none;
    align-items: center;
    transform-origin: right top;
    user-select: none;
    opacity: 1;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: pre;
}

#stats {
    position: fixed;
    left: 10px;
    bottom: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    transform-origin: left bottom;
    white-space: pre;
}

#stats .stats-box {
    user-select: none;
    padding: 3px 8px;
    border-radius: 4px;
    color: rgb(255, 255, 255);
    background-color: rgba(0, 0, 0, 0.6);
    font-size: 16px;
    font-family: "Noto Sans", sans-serif;
}

#stats .stats-box i {
    margin-right: 3px;
}

/* Menu */

#menu {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: opacity 0.5s;
}

.top-bar {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    color: #ffffff;
    background-color: rgb(0, 0, 0, 0.6);
    padding: 5px;
    z-index: 0;
}

.top-bar .reconnect {
    border: none;
    outline: none;
    background-color: #2b2b2b;
    color: #888888;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.4s;
    cursor: pointer
}

.top-bar .reconnect i {
    font-size: 16px;
    line-height: 20px;
    pointer-events: none;
    margin-right: 1px
}

.top-bar .reconnect[owner="2"] {
    margin-left: 5px;
    margin-right: 5px
}

.top-bar .reconnect.disconnected {
    background-color: #ffffff;
    color: #555555
}

.top-bar #socket-ip {
    border: none;
    outline: none;
    background-color: #1313139c;
    color: #888888;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-size: 14px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    padding: 0px 5px;
    border-radius: 1px
}

.top-bar #socket-ip i {
    font-size: 16px;
    line-height: 20px;
    pointer-events: none;
    margin-right: 2px
}

/* Control bar */
.control-bar-container {
    background: rgba(36, 36, 36, 0.2);
    position: absolute;
    width: 100%;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0px;
    z-index: 1;
}

.control-bar {
    position: fixed;
    top: 50%;
    left: 0%;
    transform: translateY(-50%);
    width: 100%;
    height: 100px;
    background: hsl(0, 0%, 8%);
    display: flex;
    justify-content: center;
    user-select: none;
    z-index: 2;
}

.control-bar .buttons {
    display: flex;
    flex-direction: row;
    transform: scale(1.06)
}

.control-bar .buttons .button {
    width: 130px;
    height: 100px;
    background: linear-gradient(90deg, #333, #333, #6442ca, #6442ca);
    transform: skewX(-10deg) scaleX(1);
    transition: transform 0.2s ease-out;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    position: relative;
    overflow: hidden
}

.control-bar .buttons .button .inner {
    transform: skewX(10deg) scaleX(1);
    transition: transform 0.2s ease-out;
    color: #ffffff;
    text-align: center;
    text-shadow: 0px 1px 5px rgba(0, 0, 0, 0.5);
    pointer-events: none
}

.control-bar .buttons .button .inner .icon i {
    font-size: 36px
}

.control-bar .buttons .button .inner .label {
    font-family: 'Noto Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase
}

.control-bar .buttons .button.left {
    margin-right: -10px;
    z-index: 4;
    transform-origin: right;
    background: #333333;
    box-shadow: -1px 0px 1px rgba(0, 0, 0, 0.5)
}

.control-bar .buttons .button.left .inner {
    transform: skewX(10deg) scaleX(1) translateX(-6px)
}

.control-bar .buttons .button.left:hover {
    transform: skewX(-10deg) scaleX(1.15)
}

.control-bar .buttons .button.left:hover .inner {
    transform: skewX(10deg) scaleX(0.87) translateX(-8px)
}

.control-bar .buttons .button.dummy {
    width: 120px;
    z-index: 4;
}

.control-bar .buttons .button.right {
    margin-left: -10px;
    transform-origin: left;
    box-shadow: 4px 0px 4px rgba(0, 0, 0, 0.2)
}

.control-bar .buttons .button.right .inner {
    transform: skewX(10deg) scaleX(1) translateX(2px)
}

.control-bar .buttons .button.right:hover {
    transform: skewX(-10deg) scaleX(1.15)
}

.control-bar .buttons .button.right:hover .inner {
    transform: skewX(10deg) scaleX(0.87) translateX(3px)
}

.control-bar .buttons .button.right.one {
    z-index: 4;
    background: linear-gradient(90deg, #6442ca, #9C27B0);
}

.control-bar .buttons .button.right.one:hover~.button.right.two,
.control-bar .buttons .button.right.one:hover~.button.right.three,
.control-bar .buttons .button.right.one:hover~.button.right.four {
    transform: skewX(-10deg) translateX(7px)
}

.control-bar .buttons .button.right.two {
    z-index: 3;
    background: linear-gradient(50deg, #ecef10, #ffa730);
}

.control-bar .buttons .button.right.two:hover~.button.right.three,
.control-bar .buttons .button.right.two:hover~.button.right.four {
    transform: skewX(-10deg) translateX(14px)
}

.control-bar .buttons .button.right.three {
    z-index: 2;
    background: linear-gradient(45deg, #8fd80d, #00d81e);
}

.control-bar .buttons .button.right.three:hover~.button.right.four {
    transform: skewX(-10deg) translateX(20px)
}

.control-bar .buttons .button.right.four {
    z-index: 1;
    background: linear-gradient(45deg, #EC3098, #dc0);
}

.control-bar .buttons .button.right.four .icon.on {
    display: none
}

.control-bar .buttons .button.right.four .icon.off {
    display: block
}

.control-bar .skin-preview-circle {
    position: absolute;
    left: 50%;
    z-index: 10;
    width: 100px;
    height: 100px;
    margin-left: -50px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translateX(-195px) scale(1.5);
    transition: all 0.3s;
    cursor: pointer
}

.control-bar .skin-preview-circle .container {
    width: 92px;
    height: 92px;
    margin: 4px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    padding: 3px;
    box-sizing: border-box;
    position: relative
}

@keyframes rainbow_background {

    100%,
    0% {
        background-color: #ff4242
    }

    8% {
        background-color: #ffa74f
    }

    16% {
        background-color: #ffff67
    }

    25% {
        background-color: #a3ff48
    }

    33% {
        background-color: #46ff46
    }

    41% {
        background-color: #50fda6
    }

    50% {
        background-color: #55fcfc
    }

    58% {
        background-color: #4aa3fc
    }

    66% {
        background-color: #4242ff
    }

    75% {
        background-color: #a54dfd
    }

    83% {
        background-color: #ff4dff
    }

    91% {
        background-color: #ff4ba5
    }
}

.control-bar .skin-preview-circle .container .preview {
    background-size: cover
}

.control-bar .skin-preview-circle .container #skin-preview-1 {
    width: 86px;
    height: 86px;
    background-color: #999999;
    border-radius: 42px;
    background-image: url(https://i.imgur.com/S2Gu3R2.png);
    animation: rainbow_background 20s infinite;
    background-position-x: left
}

.control-bar .skin-preview-circle .container .divider {
    width: 2px;
    position: absolute;
    left: 45px;
    transform: scaleY(1.05);
    height: 86px;
    background-color: #ffffff;
    opacity: 0;
    z-index: 1;
    transition: all 0.5s
}

.control-bar .skin-preview-circle .container #skin-preview-2 {
    width: 43px;
    position: absolute;
    right: 3px;
    height: 86px;
    background-color: #999999;
    border-radius: 0px 42px 42px 0px;
    background-image: url(https://i.imgur.com/S2Gu3R2.png);
    animation: rainbow_background 20s infinite;
    background-position-x: right;
    opacity: 0;
    transition: all 0.5s
}

.control-bar .skin-preview-circle:hover {
    transform: translateX(-195px) scale(1.6)
}

.control-bar .buttons .button.right.four .inner .icon.on {
    display: block
}

.control-bar .buttons .button.right.four .inner .icon.off {
    display: none
}

.control-bar .skin-preview-circle .container .divider,
.control-bar .skin-preview-circle .container #skin-preview-2 {
    opacity: 1
}

.button .ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.player-data-box {
    position: fixed;
    top: 50%;
    left: 50%;
    padding: 15px;
    background-color: #2c2c2c;
    transform: translate(-50%, 105px);
    border-radius: 2px;
    user-select: none;
    z-index: 3;
}

.player-data-box #toggle-streammode {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: -16px;
    right: 0px;
    width: 40px;
    height: 24px;
    background-color: #161616;
    color: #555;
    cursor: pointer
}

.player-data-box #toggle-streammode i {
    font-size: 20px
}

.player-data-box .stream-mode {
    color: transparent !important
}

.player-data-box .stream-mode::selection {
    color: transparent !important;
    background-color: #ffffff
}

.player-data-box .input-row {
    display: flex;
    margin-bottom: 5px
}

.player-data-box .input-row .input-field {
    border: none;
    outline: none;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    background-color: #222222;
    color: #ffffff;
    height: 32px;
    padding: 9px 7px;
    box-sizing: border-box;
    box-shadow: 0px 0px 1px #000000
}

.player-data-box #tag {
    width: 55px;
    transition: all 0.5s
}

.player-data-box #nick1 {
    width: 110px;
    margin-left: 5px;
    transition: all 0.5s
}

.player-data-box #nick2 {
    width: 110px;
    margin-left: 5px;
    transition: all 0.5s
}

.player-data-box #skin1 {
    width: 140px;
    transition: all 0.5s
}

.player-data-box #skin2 {
    width: 140px;
    margin-left: 5px;
    transition: all 0.5s
}

.player-data-box .room-box {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center
}

.player-data-box .room-box .btn {
    margin: 2px;
    width: 60px;
    height: 24px;
    outline: none;
    border: none;
    border-radius: 12px;
    background-color: #333333;
    color: #ffffff;
    cursor: pointer
}

.player-data-box .room-box #create-room {
    background-color: #6442ca
}

.player-data-box .room-box #room-id {
    margin: 2px;
    width: 100px;
    height: 24px;
    outline: none;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    background-color: #333333;
    color: #ffffff;
    text-align: center;
    padding: 0px 8px;
    transition: all 0.5s
}

.player-data-box #join-room {
    background-color: #EC3098
}

.player-data-box .room-type-box {
    display: flex;
    margin-top: 4px
}

.player-data-box #gamemode {
    width: 85px
}

.player-data-box #region {
    width: 195px;
    margin-left: 5px
}

.player-data-box .decorator {
    width: 100%;
    height: 60px;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background-color: #222222;
    border-radius: 0px 0px 2px 2px;
    z-index: -1
}

.select {
    width: 100%;
    flex-direction: row;
    font-family: "Noto Sans", sans-serif;
    color: rgb(230, 230, 230);
    height: 32px;
    box-sizing: border-box;
    cursor: pointer;
    background: rgb(21, 21, 21);
    padding: 4px 4px 4px 10px;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='14' viewBox='0 0 24 24' width='14' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
}

.select.mode {
    width: 30%;
    margin-right: 10px;
}

/* Settings menu */
#settings-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 550px;
    background: #000;
    box-shadow: 0px 0px 10px #000000;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: row;
    opacity: 0;
    transition: opacity 0.5s;
    user-select: none;
    z-index: 4;
    border-radius: 3px;
    border: 1px solid #242424;
}

#settings-menu #close-settings-menu {
    color: #ffffff;
    position: absolute;
    z-index: 500;
    right: 0px;
    top: -30px;
    background: #303030;
    padding: 2px 24px;
    display: flex;
    cursor: pointer;
    border-radius: 3px;
}

#settings-menu #close-settings-menu i {
    pointer-events: none;
    font-size: 20px
}

#settings-menu .navigation {
    display: flex;
    flex-grow: 0;
    flex-basis: 140px;
    flex-direction: column
}

#settings-menu .navigation .tab {
    display: flex;
    padding: 9px 18px;
    font-size: 15px;
    font-family: 'Noto Sans', sans-serif;
    text-transform: uppercase;
    color: #e0e0e0;
    background-color: #000;
    cursor: pointer;
    transition: all 0.5s
}

#settings-menu .navigation .tab i {
    font-size: 18px;
    margin-right: 5px;
    pointer-events: none;
    line-height: 22px
}

#settings-menu .navigation .tab:first-child {
    margin-top: 0px
}

#settings-menu .navigation .tab:hover {
    background-color: #191919
}

#settings-menu .navigation .tab.active {
    background-color: #191919
}

#settings-menu .options-list {
    flex-grow: 0;
    flex-basis: 360px;
    display: flex;
    flex-direction: column;
    background-color: #1f1f1f;
    overflow-y: auto;
    overflow-x: hidden;
}

/* WebKit (Chrome, Safari, Edge) */
#settings-menu .options-list::-webkit-scrollbar {
    width: 6px;
}

#settings-menu .options-list::-webkit-scrollbar-track {
    background: #000;
}

#settings-menu .options-list::-webkit-scrollbar-thumb {
    background-color: #3a3a3a;
    border-radius: 0;
    /* Square edges */
}

#settings-menu .options-list::-webkit-scrollbar-button {
    display: none;
    /* Remove arrows */
    height: 0;
    width: 0;
}

#settings-menu .options-list .seperator {
    background: #000;
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

#settings-menu .options-list .option {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px 12px;
    transition: all 0.4s
}

#settings-menu .options-list .option:hover {
    background-color: #111111
}

#settings-menu .options-list .option .name {
    flex-grow: 1;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #ffffff;
    align-items: center;
}

#settings-menu .options-list .option .toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

#settings-menu .options-list .option .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

#settings-menu .options-list .option .toggle-switch .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444444;
    transition: 0.4s;
    border-radius: 20px;
    cursor: pointer;
}

#settings-menu .options-list .option .toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #111111;
    transition: 0.4s;
    border-radius: 50%;
}

#settings-menu .options-list .option .toggle-switch input:checked+.slider {
    background-color: #ff8b09;
}

#settings-menu .options-list .option .toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
}

#settings-menu .options-list .range-value {
    margin-left: 8px;
    padding: 0px 6px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #dddddd;
    background-color: #555555;
    border-radius: 9px;
}

#settings-menu .options-list .option.has-range {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#settings-menu .options-list .option.has-range .top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#settings-menu .options-list .option.has-big-input {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

#settings-menu .options-list .option.has-big-input .top-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#settings-menu .options-list .option .range-slider {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    height: 10px;
    background-color: #444;
    outline: none;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

#settings-menu .options-list .option .range-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
}

#settings-menu .options-list .option .range-slider::-moz-range-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
}

/**/

#settings-menu .options-list .color-picker {
    display: flex;
    align-items: center;
    background: #444444;
    padding: 4px 6px;
    border-radius: 4px;
    width: fit-content;
    gap: 6px;
}

#settings-menu .options-list .color-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#settings-menu .options-list .color-container input[type="color"] {
    appearance: none;
    border: none;
    width: 15px;
    height: 15px;
    padding: 0;
    background: none;
    cursor: pointer;
}

#settings-menu .options-list .color-container input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

#settings-menu .options-list .color-container input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

#settings-menu .options-list .color-container input[type="color"]::-moz-color-swatch {
    border: none;
    border-radius: 2px;
}

#settings-menu .options-list .color-picker input[type="text"] {
    font-family: 'Noto Sans', sans-serif;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    outline: none;
    width: 60px;
}

#settings-menu .options-list .large-input {
    outline: none;
    border: none;
    border-radius: 2px;
    background-color: #444444;
    color: #ffffff;
    padding: 6px;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 14px
}

#settings-menu .options-list .hotkey-input {
    width: 80px;
    outline: none;
    border: 2px solid #444;
    border-radius: 1px;
    background-color: #333333;
    color: transparent;
    text-shadow: 0 0 0 #999999;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.4s
}

#settings-menu .options-list .hotkey-input:focus {
    border: 2px solid #888888
}


/* Toastr */

#toast-container {
    position: fixed;
    left: 10px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    background: #444;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-family: 'Noto Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    max-width: 280px;
    word-break: break-word;
    line-height: 1.4;
    cursor: pointer;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideIn 0.3s forwards, fadeOut 0.4s forwards ease-in-out 4s;
  }

.toast.info {
    background: #ffffff;
    color: #1b1b1b;
}

.toast.success {
    background: #28a745;
}

.toast.warning {
    background: #a77028;
}

.toast.error {
    background: #dc3545;
}

.toast i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
  }

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}