/* Obur.io — Copyright (c) 2026 kurmay for the Obur.io changes.
   Based on Cigar2 (ISC License, Copyright (c) 2019 Cigar2, see Cigar2/LICENSE). */
html, body {
    padding: 0;
    margin: 0;
    overflow: hidden;
    overflow-x: hidden;
    -webkit-text-size-adjust: none;
    width: 100%;
    height: 100%;
    position: fixed;
}

input[type=checkbox] {
    cursor: pointer;
}

#overlays, #connecting {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 200;
}

#connecting {
    z-index: 100;
}

#connecting-content {
    width: 350px;
    background-color: #fff;
    margin: 100px auto;
    border-radius: 15px;
    padding: 5px 15px;
}

#title {
    padding: 10px;
}

#nick {
    width: 65%;
}

#skin {
    width: 33%;
    float: right;
}

#nick, #skin {
    display: inline;
}

#gamemode {
    margin-top: 5px;
    width: 100%;
}

#helloDialog {
    width: 400px;
    background-color: rgba(255,255,255,0.88);
    margin: 10px auto;
    border-radius: 15px;
    padding: 20px 15px 15px 15px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.30);
    z-index: 250;
}

#chat_textbox {
    transition: all .5s ease-in-out;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    background: rgba(0, 0, 0, .2);
    border: 0;
    outline: none;
    color: #fff;
    height: 30px;
    text-indent: 12px;
    left: 10px;
    width: 300px;
    font-family: "Ubuntu";
}

#chat_textbox:focus {
    background: rgba(0, 0, 0, .5);
}

#footer {
    text-align: center;
    margin-bottom: 10px;
    margin-top: -10px;
}

#play-btn {
    width: 85%;
    margin-bottom: 10px;
}

#spectate-btn {
    width: 13%;
    float: right;
    top: 0;
}

#play-btn, #spectate-button {
    display: inline;
}

#gallery-btn {
    width: 100%;
    margin-bottom: 5px;
    display: none;
}

#touchpad, #touchCircle, #splitBtn, #ejectBtn {
    position: fixed;
}

#touchpad, #splitBtn, #ejectBtn {
    z-index: 2;
}

#touchpad {
    background: #000;
    opacity: 0.3;
    width: 20vw;
    height: 20vh;
    left: 0;
    bottom: 0;
}

#touchCircle {
    width: 4vw;
    height: 4vw;
    border-radius: 2vw;
    background: #f00;
    opacity: 0.3;
    z-index: 3;
}

#splitBtn, #ejectBtn {
    width: 8vw;
    height: 8vw;
    border-radius: 4vw;
    background: #777;
    opacity: 0.5;
}

#splitBtn {
    right: 18vw;
    bottom: 0;
}

#ejectBtn {
    bottom: 18vw;
    right: 0;
}

#playSounds:checked + #soundsVolume {
    display: inline;
}

#soundsVolume {
    display: none;
    width: 100px;
    height: 18px;
    padding: 0;
    vertical-align: middle;
}

#settings label {
    margin-right: 10px;
    user-select: none;
}

/* SOL PROFİL PANELİ */
.left-panel {
    position: fixed;
    left: 50%;
    top: 43%;
    width: 290px;
    z-index: 220;
    transform: translate(-50%, -50%);
    margin-left: -360px;
}

/* AYARLAR */
.modal-content-custom {
    background-color: white;
    margin: 10% auto;
    padding: 25px;
    border-radius: 15px;
    width: 320px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#settings-content-wrapper label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

/* SAĞ MAĞAZA PANELİ */
.right-panel {
    position: fixed;
    left: 50%;
    top: 50%;
    width: 280px;
    max-height: 480px;
    z-index: 9999;
    transform: translate(-50%, -50%);
    margin-left: 360px;
    overflow: hidden;
    display: none;
}

/* SHOP POPUP */
.shop-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    padding: 20px;
    color: white;
    z-index: 1000;
}

.skin-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.skin-item {
    border: 2px solid #444;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.skin-item:hover {
    border-color: #00ff00;
}

.skin-item.owned {
    border-color: #2ecc71;
}

.skin-item.locked {
    opacity: 0.6;
}

.skin-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 5px;
}

/* DISCORD */
#discord-btn:hover {
    background-color: #4752c4 !important;
    transform: translateY(-1px);
}

#discord-btn:active {
    transform: translateY(1px);
}

/* YENİ PROFİL KARTI */
.player-card {
    position: relative;
    background: #e8ebef;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
    font-family: Arial, sans-serif;
}

.player-top-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.player-gold-box {
    background: #bcc1c9;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 56px;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
}

.coin-icon {
    font-size: 18px;
}

.player-plus-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 7px;
    background: #4caf50;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    line-height: 28px;
    cursor: pointer;
    padding: 0;
}

.player-main-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar-wrap {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #60606f;
    background: #d9dde4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info-wrap {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-size: 17px;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-xp-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-xp-bar {
    width: 100%;
    height: 18px;
    border: 2px solid #63c216;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

.player-xp-fill {
    height: 100%;
    background: linear-gradient(90deg,#ffd54f,#ff9800);
    transition: width .35s ease;
    width: 0%;
}

.player-xp-text {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.player-xp-badge {
    flex-shrink: 0;
    border: none;
    background: transparent;
    font-size: 24px;
    font-weight: 900;
    color: #ff9800;
    cursor: default;
    padding: 0 4px;
}

.player-bottom-buttons {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 10px;
}

.player-btn {
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    padding: 10px 12px;
    cursor: pointer;
    width: 100%;
}

.player-btn-green {
    background: #2e7d32;
}

.player-btn-blue {
    background: #1e5bd8;
}

.player-btn-gold {
    background: #9c6a00;
    width: 100%;
}

.player-btn:hover,
.player-plus-btn:hover {
    opacity: .92;
}
body.theme-default {
    background-color: #0c0c0c;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

body.theme-space {
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('../img/bg-space.jpg') center center / cover no-repeat fixed;
}

body.theme-neon {
    background-color: #050510;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,0,128,0.35), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(0,200,255,0.35), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(0,255,128,0.25), transparent 25%),
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: auto, auto, auto, 40px 40px, 40px 40px;
}

body.theme-ocean {
    background:
        linear-gradient(rgba(0,30,60,0.35), rgba(0,30,60,0.35)),
        url('../img/bg-ocean.jpg') center center / cover no-repeat fixed;
}

body.theme-sunset {
    background:
        linear-gradient(rgba(60,20,0,0.25), rgba(60,20,0,0.25)),
        url('../img/bg-sunset.jpg') center center / cover no-repeat fixed;
}

body.theme-matrix {
    background-color: #000;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(0,255,0,0.10), transparent 20%),
        linear-gradient(rgba(0,255,0,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,0,0.05) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
}

/* paneller biraz daha premium dursun */
#helloDialog,
#rightSidePanel,
.modal-content-custom,
#gallery-content {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.menu-theme-default #helloDialog,
.menu-theme-default .player-card,
.menu-theme-default #rightSidePanel > div,
.menu-theme-default .modal-content-custom,
.menu-theme-default #gallery-content {
    background: rgba(255,255,255,0.88);
    background-image: none;
    color: #222;
}

.menu-theme-space #helloDialog,
.menu-theme-space .player-card,
.menu-theme-space #rightSidePanel > div,
.menu-theme-space .modal-content-custom,
.menu-theme-space #gallery-content {
    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
        url('../img/bg-space.jpg') center center / cover no-repeat;
    color: #fff;
}

.menu-theme-ocean #helloDialog,
.menu-theme-ocean .player-card,
.menu-theme-ocean #rightSidePanel > div,
.menu-theme-ocean .modal-content-custom,
.menu-theme-ocean #gallery-content {
    background:
        linear-gradient(rgba(0,30,60,0.35), rgba(0,30,60,0.35)),
        url('../img/bg-ocean.jpg') center center / cover no-repeat;
    color: #fff;
}

.menu-theme-sunset #helloDialog,
.menu-theme-sunset .player-card,
.menu-theme-sunset #rightSidePanel > div,
.menu-theme-sunset .modal-content-custom,
.menu-theme-sunset #gallery-content {
    background:
        linear-gradient(rgba(60,20,0,0.25), rgba(60,20,0,0.25)),
        url('../img/bg-sunset.jpg') center center / cover no-repeat;
    color: #fff;
}

.menu-theme-neon #helloDialog,
.menu-theme-neon .player-card,
.menu-theme-neon #rightSidePanel > div,
.menu-theme-neon .modal-content-custom,
.menu-theme-neon #gallery-content {
    background:
        linear-gradient(rgba(15,15,25,0.45), rgba(15,15,25,0.45)),
        radial-gradient(circle at 20% 20%, rgba(255,0,128,0.25), transparent 25%),
        radial-gradient(circle at 80% 30%, rgba(0,200,255,0.25), transparent 25%),
        radial-gradient(circle at 50% 80%, rgba(0,255,128,0.15), transparent 25%);
    color: #fff;
}

.menu-theme-space input,
.menu-theme-space select,
.menu-theme-ocean input,
.menu-theme-ocean select,
.menu-theme-sunset input,
.menu-theme-sunset select,
.menu-theme-neon input,
.menu-theme-neon select {
    background: rgba(255,255,255,0.88);
    color: #222;
}

.menu-theme-space #title,
.menu-theme-ocean #title,
.menu-theme-sunset #title,
.menu-theme-neon #title,
.menu-theme-space .player-name,
.menu-theme-ocean .player-name,
.menu-theme-sunset .player-name,
.menu-theme-neon .player-name,
.menu-theme-space .player-xp-text,
.menu-theme-ocean .player-xp-text,
.menu-theme-sunset .player-xp-text,
.menu-theme-neon .player-xp-text {
    color: #fff;
}
.menu-theme-space #settings-content-wrapper label,
.menu-theme-ocean #settings-content-wrapper label,
.menu-theme-sunset #settings-content-wrapper label,
.menu-theme-neon #settings-content-wrapper label {
    color: #fff;
}
.menu-theme-space h3,
.menu-theme-ocean h3,
.menu-theme-sunset h3,
.menu-theme-neon h3,
.menu-theme-space #gallery-header,
.menu-theme-ocean #gallery-header,
.menu-theme-sunset #gallery-header,
.menu-theme-neon #gallery-header {
    color: #fff;
}
#userMailBox {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}