
body {
    background-image: url(/img/bg.png);
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-color: #151515;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 20px;
}

h2 {
    font-size: 28px;
    color: #00aaff;
    text-shadow: 0 0 8px #00aaff;
    text-align: center;
    margin-bottom: 40px;
}

.character-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.character-card {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 20px;
    border-radius: 12px;
    width: 280px;
    border-width: 1px;
    border-style: solid;
    border-color: #00aaff98;
    transition: transform 0.3s ease;
}

.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0,170,255,0.4);
}

.character-card p {
    margin: 5px 0;
    font-size: 15px;
}

a {
    color: #00aaff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.logout {
    text-align: center;
    margin-top: 40px;
}

.logout a {
    color: red;
    font-weight: bold;
}



header {
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    color: white;
    text-shadow: 0 0 8px #00aaff;
    margin: 0;
}

.navbar {
    margin-top: 20px;
}

.navbar a {
    color: #ccc;
    margin: 0 15px;
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding-bottom: 5px;
}

.navbar a:hover,
.navbar a.active {
    color: #00aaff;
}

.navbar a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: #00aaff;
    box-shadow: 0 0 6px #00aaff;
    border-radius: 2px;
}



.character-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    padding: 10px;
}

.character-card {
    margin-top: 2%;
    background-color: rgba(30, 30, 30, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 220px;
    min-height: 300px;
    text-align: center;
    box-shadow: #00aaff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.character-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.character-card button {
    background-color: #00b0fc;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.3s ease;
}

.character-card button:hover {
    background-color: #0cb6ff;
}


.character-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px #00aaff;
}



.character-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    margin: 30px auto;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
}

.character-card {
    background-color: rgba(30, 30, 30, 0.7);
    padding: 20px;
    border-radius: 10px;
    width: 200px;
    min-height: 200px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0,170,255,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0,170,255,0.5);
}

.character-card p {
    font-size: 15px;
    margin: 8px 0;
}

.block-title {
    font-size: 18px;
    color: #00aaff;
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Контейнер всех блоков персонажа */
.character-details-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Общий стиль секций */
.character-section {
    background-color: #1a1a1a6c;
    padding: 20px;
    border-radius: 12px;
    border-width: 1px;
    border-style: solid;
    border-color: #00b0fc62;

}

/* Большой аватар */
.character-avatar-large {
    width: 60%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,170,255,0.3);
}

/* Текстовые элементы */
.character-section p {
    margin: 8px 0;
    font-size: 15px;
}

/* Ссылка-кнопка */
.button-link {
    display: inline-block;
    background-color: #00aaff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease;
    margin-top: 15px;
}

.button-link:hover {
    background-color: #008ecc;
}

.flex-badges {
    display: flex;
    flex-wrap: wrap;       /* позволяет элементам переноситься */
    justify-content: center; /* центрирует по горизонтали */
    gap: 10px;              /* расстояние между элементами (опционально) */
}

.badge {
    background-color: #111;
    color: #00aaff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.lic-auto     { background-color: #007bff; } /* синий */
.lic-gun      { background-color: #dc3545; } /* красный */
.lic-army     { background-color: #28a745; } /* зелёный */
.lic-advokat  { background-color: #ffc107; } /* жёлтый */
.lic-medic    { background-color: #17a2b8; } /* бирюзовый */
.lic-fishing  { background-color: #6f42c1; } /* фиолетовый */

.vehicle-block {
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
    position: relative;
}

.vehicle-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vehicle-scroll-wrapper {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
    scrollbar-width: none; /* Firefox */
}
.vehicle-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome */
}

.vehicle-card {
    background-color: #1a1a1acc;
    border-radius: 12px;
    text-align: center;
    padding: 10px;
    flex: 0 0 200px;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.25);
    transition: transform 0.2s;
}
.vehicle-card:hover {
    transform: translateY(-4px);
}

.vehicle-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    margin-bottom: 5px;
}

.vehicle-name {
    font-weight: bold;
    color: #00aaff;
    font-size: 14px;
}

.vehicle-plate {
    font-size: 13px;
    color: #000000;
    background: #ffffff;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: #000000;
}



.scroll-btn {
    background: #00aaff;
    color: white;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    margin: 0 5px;
    transition: background 0.2s ease;
}

.scroll-btn:hover {
    background: #0077cc;
}

.scroll-btn.left {
    margin-right: 5px;
}

.scroll-btn.right {
    margin-left: 5px;
}


        .login-box {
            background:rgba(30, 30, 30, 0.7);
            padding: 30px;
            border-radius: 10px;
            width: 300px;
            box-shadow: 0 0 15px #00aaff;
        }
        .login-box h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #00aaff;
        }
        .login-box input[type="text"],
        .login-box input[type="password"] {
            width: 93%;
            padding: 10px;
            margin-bottom: 15px;
            border: none;
            border-radius: 5px;
        }
        .login-box input[type="submit"] {
            width: 100%;
            padding: 10px;
            border: none;
            background: #00aaff;
            color: white;
            border-radius: 5px;
            cursor: pointer;
        }
        .login-box .error {
            color: red;
            text-align: center;
        }
        .login-box .recover-link {
            text-align: center;
            margin-top: 10px;
            display: block;
            color: #aaa;
        }
        .login-box .recover-link:hover {
            color: #fff;
        }

        .login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url('img/bg.png') no-repeat center center fixed;
    background-size: cover;
}

.login-box {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.2);
}

.input-style {
    width: 93%;
    padding: 10px;
    border-radius: 8px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #444;
    background-color: #111;
    color: #fff;
}

.login-button {
    background-color: #00aaff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    width: 100%;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.login-button:hover {
    background-color: #008ecc;
}

.success-msg {
    color: #28a745;
    margin-top: 10px;
    font-weight: bold;
}

.error-msg {
    color: #dc3545;
    margin-top: 10px;
    font-weight: bold;
}

.house-background {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    border-radius: 10px;
    padding: 20px;
    color: white;
    width: 400%;
    height: 94%; /* Фиксированная высота */
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}
.house-text {
    max-width: 50%;
    z-index: 1;
}


.business-background {
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    border-radius: 10px;
    padding: 20px;
    color: white;
    width: 91%;
    height: 84%; /* Фиксированная высота */
    box-shadow: 0 0 10px rgba(0, 170, 255, 0.3);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}
.business-text {
    max-width: 50%;
    z-index: 1;
}


@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700;800&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}