@media (max-width: 768px) {
    .profile-btn, .login-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

.nav-item .nav-link {
    transition: color 0.2s ease;
}

.nav-item .nav-link:hover {
    color: var(--text-primary) !important;
}

.header-container{
    height: 56px;
}

.container {
    max-width: 1200px;
}

.paper {
    background: var(--foreground);
    border-radius: 8px;
}

.foreground{
    background-color: var(--foreground);
}

.form-control{
    background: var(--foreground);
}

.form-control:focus{
    background: var(--foreground);
}

.raw {
    display: flex;
    flex-wrap: wrap;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

/* Боковое меню */
.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--background-elevated-1);
    z-index: 1100;
    transition: right 0.3s ease;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    border-bottom: 1px solid var(--border-light);
}

.sidebar-body {
    padding: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1099;
    display: none;
}

.overlay.active {
    display: block;
}

/* Картинки */

.svg-container{
    display:block;
    height: 42px;
}

svg{
  --fill-svg-1: #0b191c;
  --fill-svg-2: rgba(0, 0, 0, 0);
  height: 100%;
}

svg,[data-bs-theme=dark]{
  --fill-svg-1: var(--text-primary);
  --fill-svg-2: #6f50cc;
}

.svg-fill-1{
  fill: var(--fill-svg-1);
}

.svg-fill-2{
  fill: var(--fill-svg-2);
}

/* Стили для карты */
.player-item {
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
}

.player-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #7fff00;
    margin-right: 8px;
}

#dynmap-frame {
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .map-controls, .player-list {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        margin: 10px 0;
        width: 100%;
    }

    #map-container {
        height: 70vh;
    }

    .dimension-btn {
        margin: 0 5px 5px 0;
        width: auto;
        display: inline-block;
    }
}

/* Остальное */

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.text-second {
    color: var(--text-secondary);
}

:root,[data-bs-theme=dark]{
    --header-color: rgb(37, 37, 39);
    --site-primary-5: #7e57c2;
    --site-primary-6: var(--primary-h), var(--primary-s), var(--primary-l);
    --inverse: -1;
    --btn-default-border: rgba(80, 80, 80, .5);
    --btn-default-bg: rgba(255, 255, 255, .1);
    --btn-default-bg-hover: rgba(255, 255, 255, .1);
    --btn-default-text: rgb(176, 179, 184);
    --btn-default-text-hover: #cdcdd4;
    --btn-default-text-active: #cdcdd4;
    --btn-light-border: #3A3A40;
    --btn-light-bg: #2C2C30;
    --btn-light-bg-hover: rgba(0, 0, 0, .025);
    --btn-light-text: #bfbfbf;
    --blue: #79a5d8;
    --blue-h: 212;
    --blue-s: 55%;
    --blue-l: 66%;
    --blue-rgb: 119, 165, 216;
    --green: #4baf50;
    --green-rgb: 75, 175, 80;
    --red-h: 4;
    --red-s: 90%;
    --red-l: 58%;
    --red: #DE7072;
    --red-rgb: 222, 112, 114;
    --orange: #f77519;
    --red-lighten: #f66;
    --purple: #ac83f7;
    --yellow: yellow;
    --white: #fff;
    --white-rgb: 255, 255, 255;
    --border-base: rgba(84, 84, 88, .65);
    --border-light: #292929;
    --border-darker: #C0C4CC;
    --border-opacity: rgba(84, 84, 88, .65);
    --border-primary: rgb(198, 198, 200);
    --text-primary: #bfbfbf;
    --bs-heading-color: var(--text-primary);
    --text-primary-rgb: 191, 191, 191;
    --text-primary-inverse: #000;
    --text-secondary: rgba(235, 235, 245, .5);
    --bs-secondary-rgb: var(--text-secondary);
    --background-color: #0A0A0A;
    --bs-body-bg: #0A0A0A;
    --background-rgb: 10, 10, 10;
    --background-dark: #444;
    --background-hover: rgba(116, 116, 128, .1);
    --background-fill-1: rgba(120, 120, 128, .36);
    --background-fill-2: rgba(120, 120, 128, .32);
    --background-fill-3: rgba(118, 118, 128, .24);
    --background-fill-4: rgba(116, 116, 128, .1);
    --background-elevated-1: rgb(28, 28, 30);
    --background-elevated-2: rgb(37, 37, 39);
    --background-elevated-3: rgb(48, 48, 50);
    --foreground: #1c1c1c;
    --foreground-rgb: 28, 28, 28;
    --foreground-darken: rgba(116, 116, 128, .1);
    --input-border: #3b3d45;
    --input-border-focus: #4b4d55;
    --input-bg: #1a1a1a;
    --placeholder-block-bg: #eee;
    --scrollbar-thumb: #6b6b6b;
    --scrollbar-thumb-hover: #939393;
    --scrollbar: #2c2c2c;
    --comment-highlight: #303335;
    --range-thumb: #fff;
    --range-thumb-border: rgba(0, 0, 0, .04);
    --range-thumb-shadow: rgba(0, 0, 0, .15);
    --spoiler-background: hsl(212, calc(55% / 3), calc(66% / 3));
    --sticky-comment-collapsed-gradient: #252528;
    --skeleton-bg: rgba(120, 120, 128, .32);
    --skeleton-bg-secondary: rgba(118, 118, 128, .24);
    --secondary: #3a3e48;
    --link-border-color: rgba(255, 255, 255, .3);
}

.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}

.abcd{
    display: block;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    left: -5px;
    top: -5px;
    opacity: .6;
    z-index: 5;
    filter: blur(20px);
    -webkit-transition: .5s all;
    -o-transition: .5s all;
    transition: .5s all;
}
.d1 {
    width: 50px;
    height: 50px;
    filter: blur(6px);
    border-radius: 47%;
    animation: blink 1.5s infinite;
}
.d2 {
    width: 60px;
    height: 60px;
    border-radius: 47%;
    animation: blink 1.5s infinite;
}
@keyframes blink {
  80% {
    opacity: .4;
  }
}

.green{
  background: #71e300;
}

.green2{
  background: #7fff00;
}

.red{
  background: #ff3b00;
}

.gray{
  background: #3d3d3d;
}

.col-sm-7-2{
  flex: 0 0 auto;
  width: 60%;
}

.pt-4-5{
    padding-top: 2.25rem!important;
}

.pb-4-5{
    padding-bottom: 2.25rem!important;
}

.mw400px{
    max-width: 400px;
}

.mw800px{
    max-width: 800px;
}

.sign-in{
    max-width: 330px;
}

@media screen and (width > 500px){
    .isnotmobile{}
}

@media screen and (width <= 500px){
    .isnotmobile{
        display: none;
    }
}

#d1{}
#d2{}

.userbuttone:hover:before{
  content: 'Выход';
}
.userbuttone:hover span {
  display:none
}