@font-face {
    font-family: 'Noto Sans';
    src: url('biblioteki/fonts/NotoSans-Regular.woff2') format('woff2'),
        url('biblioteki/fonts/NotoSans-Regular.woff') format('woff'),
        url('biblioteki/fonts/NotoSans-Bold.woff2') format('woff2'),
        url('biblioteki/fonts/NotoSans-Bold.woff') format('woff');
    font-weight: 400;
    /* Regular */
    font-style: normal;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('biblioteki/fonts/NotoSans-Bold.woff2') format('woff2'),
        url('biblioteki/fonts/NotoSans-Bold.woff') format('woff');
    font-weight: 700;
    /* Bold */
    font-style: normal;
}
body {
    margin: 20px;
    text-align: center;
    background-image: url(../img/bg.webp);
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Noto Sans', sans-serif; /* Используйте Noto Sans как основной шрифт */
}

/* BACKGROUND */

#bg {
    position: fixed;
    top: -20px;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#bg canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.tabs button {
    background: #ffb00000;
        padding: 12px;
        margin: 10px;
        border: 0px;
}

.container {
    width: 90%; /* Задает ширину 100% */
    height: 600px; /* Задает высоту 800 пикселей */
    position: relative; /* Убедитесь, что контейнер имеет позиционирование */
    margin: auto;
    background: white;
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 124px;
    color: #5a6283;
    border-radius: 20px;
    border: 2px #c2ceff;
    border-style: solid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #ffffff85;
    backdrop-filter: blur(5px);
}

canvas {
    width: 100%; /* Ширина 100% от контейнера */
    height: 100%; /* Высота 100% от контейнера */
    display: block; /* Убирает пробелы под графиками */
    margin-top: 20px;
}

.chart-container {
    width: 100%; /* Ширина 100% от родительского контейнера */
    height: 535px; /* Фиксированная высота */
    position: relative; /* Для позиционирования */
}

.table {
	width: 100%;
    border-collapse: collapse;
    background-color: #ffffff85;
    backdrop-filter: blur(5px);
}
.table thead th {
	font-weight: bold;
	text-align: left;
	border: none;
	padding: 10px 15px;
	background: #EDEDED;
	font-size: 14px;
	border-top: 1px solid #ddd;
}
.table tr th:first-child, .table tr td:first-child {
	border-left: 1px solid #ddd;
}
.table tr th:last-child, .table tr td:last-child {
	border-right: 1px solid #ddd;
}
.table thead tr th:first-child {
	border-radius: 20px 0 0 0;
}
.table thead tr th:last-child {
	border-radius: 0 20px 0 0;
}
.table tbody td {
	text-align: left;
	border: none;
	padding: 10px 15px;
	font-size: 14px;
	vertical-align: top;
}
.table tbody tr:nth-child(even) {
	background: #F8F8F8;
}
.table tbody tr:last-child td{
	border-bottom: 1px solid #ddd;
}
.table tbody tr:last-child td:first-child {
	border-radius: 0 0 0 20px;
}
.table tbody tr:last-child td:last-child {
	border-radius: 0 0 20px 0;
}

th, td {
    border: 2px #5a6283;
    border-style: solid;
    padding: 8px;
}

th {
    border: 2px #5a6283;
    border-style: solid;
    border-radius: 20px 20px 0px 0px;
    background-color: #ffffff;
}
.auth {
    display: inline-block;
    text-align: center;
    color: #5a6283;
    border-radius: 20px;
    border: 2px #c2ceff;
    border-style: solid;
    backdrop-filter: blur(5px);
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    font-size: 20px;
    width: 40%;
    margin: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.auth h1 {
    margin: 0px;
    margin-left: -20px;
    margin-right: -20px;
}

.login {
    color: #ffffff;
    background: #aec6f9;
    padding: 16px;
    border-radius: 0px 0px 18px 18px;
    margin-left: -20px;
    margin-right: -20px;
}

a {
    text-decoration: none;
    color: #f2f8fd;
    font-size: 33px;
}

.menu {
    color: #c2ceff;
    background-color: #ffffff;
    margin-top: -20px;
    margin-left: -20px;
    margin-right: -20px;
    padding-top: 0px;
    border: 2px;
    border-style: solid;
    border-top: 0px;
    border-left: 0px;
    border-right: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.menu2 {
    display: inline-block;
    color: #5a6283;
    backdrop-filter: blur(5px);
    padding: 20px;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 22px;
}

.menu2:hover {
    background-color: #c2ceff; /* Цвет фона при наведении */
    color: #ffffff; /* Цвет текста при наведении */
}

.menu2 a {
    text-decoration: none;
    color: #5a6283;
    font-size: 33px;
}

.menu2 a:hover {
    color: #3a3f50; /* Цвет текста при наведении */
}

.link {
    text-decoration: none;
    color: #f2f8fd;
    font-size: 33px;
}

.current-rates {
    text-align: center;
    background: white;
    background-color: #ffffff85;
    color: #5a6283;
    border-radius: 20px;
    border: 2px;
    border-style: solid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin: auto;
    margin-left: 30%;
    margin-right: 30%;
    margin-bottom: 20px;
    padding-top: 1px;
    padding-bottom: 1px;
}

.bstatus {
    display: inline-block;
    text-align: center;
    color: #5a6283;
    border-radius: 20px;
    border: 2px #c2ceff;
    border-style: solid;
    background-color: #ffffff85;
    backdrop-filter: blur(5px);
    padding: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 20px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.container-block {
    display: grid;
    /* Используем Grid для контейнера */
    grid-template-columns: 1fr 1fr;
    /* Две колонки одинаковой ширины */
}

.box {
    padding: 20px 0px 20px 0px;
    box-sizing: border-box; /* Учитывает padding в ширине */
}

button {
    color: #5a6283;
    border: 2px #5a6283;
    border-style: solid;
    padding: 10px;
    border-radius: 10px;
    background-color: #f8faff;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

select {
    font-size: 18px;
    width: 46%;
    padding: 16px 20px;
    border: 2px;
    border-style: solid;
    border-radius: 16px;
    background-color: #e3e3ff5e;
    text-align: center;
}

input {
    text-shadow: 0px 0px 1px rgb(0 0 0 / 38%);
    text-align: center;
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.5;
    color: #5a6283;
    background-color: #fff;
    background-clip: padding-box;
    border: 2px solid #c2ceff;
    border-radius: 18px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input::placeholder,
textarea::placeholder {
    color: #c2ceff;
    /* Задайте нужный цвет */
    opacity: 1;
    /* Установите непрозрачность, если необходимо */
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

hr {
    margin: 20px 0;
    margin-left: 40px;
    margin-right: 40px;
    padding: 0;
    height: 3px;
    border: none;
    background: #c2ceff;
    border-radius: 20px;
}

#qrcode {
    position: relative;
}

#qrcode img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Центрирование */
    width: 50px;
    /* Укажите желаемый размер иконки */
    height: 50px;
    /* Укажите желаемый размер иконки */
}

h1 {
    font-size: 34px;
    background-color: white;
    padding: 10px;
    margin: 1px;
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 19px 19px 1px 1px;
    border: 2px #c2ceff;
    border-style: solid;
    border-left: none;
    border-right: none;
    border-top: none;
}

.tabs {
    margin-top: 12px;
}

h2 {
    text-align: center;
    font-size: 26px;
}

table {
    text-align: center;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.ud {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
}
.ud hr {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
}
.udt {
    display: flex;
    justify-content: space-between; /* Разделяет элементы по краям */
    padding: 0px 20px 0px 20px;
}
.udt b {
    font-size: 21px;
    border-radius: 11px;
    border: 2px solid #5a6283;
    padding: 4px 10px 4px 10px;
    color: #5a6283;
    background: #ffffffbd;
    display: block;
    margin-block-start: 0.79em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
}
.label {
    font-size: 22px;
    font-weight: bold;
    text-align: left; /* Выравнивание текста по левому краю */
}

.value {
    text-align: right; /* Выравнивание текста по правому краю */
}

.amount-positive {
    color: green; /* Цвет для пополнений */
}

.amount-negative {
    color: red; /* Цвет для снятий */
}

.alert {
    text-align: center;
    margin: 10px 20% 0px 20%;
    color: #5a6283;
    border-radius: 20px;
    border: 2px #c2ceff;
    border-style: solid;
    background-color: #ffffff85;
    backdrop-filter: blur(5px);
    padding: 20px;
    font-size: 20px;
    position: fixed;
    top: 40%;
    left: 22%;
    z-index: 1000;
}