@font-face {
    font-family: 'FingerPaint-Regular'; /* Define a name for the font */
    src: url('/assets/fonts/FingerPaint-Regular.ttf') format('truetype'); /* Path to the font file */
    font-weight: bold; /* Define font weight */
    font-style: normal; /* Define font style */
}
@font-face {
    font-family: 'Raleway-Regular'; /* Define a name for the font */
    src: url('/assets/fonts/Raleway-Regular.ttf') format('truetype'); /* Path to the font file */
    font-weight: bold; /* Define font weight */
    font-style: normal; /* Define font style */
}
body {
    font-family: 'Raleway-Regular', sans-serif;
    margin: 0px;
    background-color: #1a2026;
    color: #a9acaf;
}
h1, h2 {
    text-align: center;
}
.slider-container {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}
.slider-container input[type="range"] {
    width: 100%;
}
.output {
    text-align: center;
    margin: 10px 0;
    font-size: 1.2em;
}
.chat-list {
    margin: 20px auto;
    width: 80%;
    padding: 10px;
    background: #212a33;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.chat-item {
    margin: 5px 0;
    padding: 10px;
    border-bottom: 2px solid #1e262e;
}
.chat-item:last-child {
    border-bottom: none;
}
.tip {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin-top: 5px;
}
.lang-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    color: white;
    font-family: 'FingerPaint-Regular', sans-serif; /* Apply the custom font */
}
.logo > a {
    text-decoration: none;
    color: #5aec8c;
}
.logo > a:hover {
    color: white;
}
.lang-container img {
    margin-left: 10px;
    cursor: pointer;
    width: 30px;
    height: 20px;
}
#title {
    text-transform: uppercase;
}
#subtitle, #label-range, #title, #label-duration {
    color: #fff;
}
#audience-count, #total-price, #selected-duration, #selected-chats {
    color: #5aec8c;
}
.chat-item > a {
    text-decoration: none;
    color: #dfdfdf;
}

.chat-item > a:hover {
    color: #0080ff;
}

#discount-tip {
    color: #5aec8c;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    background-color: #203530;
    display: inline-block; /* Makes the width adjust to the content */
    width: auto; /* This is actually default behavior for inline-block */
    border-radius: 10px;
}

#audience-count, #total-price, #selected-chats {
    font-weight: bold;
}

#label-range {
    font-size: 18px;
}
.slider-container label {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
}

#duration-range {
    width: 100%;
    margin-top: 10px;
}

#output-duration {
    text-align: center;
    margin: 10px 0;
    font-size: 1.2em;
}
#label-duration {
    margin-top: 1.5rem;
}

#selected-duration {
    font-weight: bold;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px; /* Track height */
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-moz-range-thumb {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #248bda;
    border: 2px solid #a9d4ff;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

input[type="range"]::-ms-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #248bda;
    border: 2px solid #033c67;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.navigation {
    background: #202832;
    padding: 10px;
}
/* Стили для кнопки, которая парит в правом нижнем углу */
.floating-button {
    position: fixed;
    text-decoration: none;
    color: #fff;
    bottom: 20px; /* Отступ от нижнего края */
    right: 20px;  /* Отступ от правого края */
    background-color: #248bda; /* Цвет фона */
    border-radius: 15px; /* Округлая форма */
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Тень для эффекта "парения" */
    transition: transform 0.3s ease; /* Плавный переход для анимации */
    z-index: 1000; /* Убедимся, что кнопка будет поверх всего */
}

.floating-button:hover {
    transform: scale(1.1); /* Увеличение кнопки при наведении */
}
#telegram-text {
    text-transform: uppercase;
}
/* Анимация для кнопки с паузой */
@keyframes buttonHoverEffect {
    0% {
        transform: scale(1); /* Нормальный размер */
    }
    25% {
        transform: scale(1.2); /* Увеличиваем на 20% */
    }
    50% {
        transform: scale(1); /* Возвращаем к нормальному размеру */
    }
    75% {
        transform: scale(1.2); /* Увеличиваем на 20% */
    }
    100% {
        transform: scale(1); /* Возвращаем к нормальному размеру */
    }
}

/* Стили для кнопки с анимацией */
.floating-button {
    animation: buttonHoverEffect 3s ease-in-out infinite; /* Повторяется каждые 3 секунды */
}

/* Стили для иконки кнопки */
.floating-button img {
    transition: transform 0.3s ease;
}

/* При наведении на кнопку увеличиваем иконку */
.floating-button:hover img {
    transform: scale(1.2); /* Увеличиваем иконку */
}

/* Основные стили кнопки */
.floating-button {
    position: fixed;
    text-decoration: none;
    color: #fff;
    bottom: 20px;
    right: 20px;
    background-color: #248bda;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Убираем анимацию и меняем стили на маленьких устройствах */
@media (max-width: 768px) {
    .floating-button {
        left: 20px; /* Отступ слева */
        right: 20px; /* Отступ справа */
        border-radius: 10px; /* Немного уменьшаем скругление */
        animation: none; /* Убираем анимацию */
    }
    .floating-button:hover {
        transform: none; /* Убираем увеличение при наведении */
    }
}

/* Стили текста и иконки остаются */
.floating-button img {
    transition: transform 0.3s ease;
}

.floating-button:hover img {
    transform: scale(1.2);
}

.floating-button span {
    margin-left: 10px;
    font-size: 14px;
    color: white;
    font-weight: bold;
}
/* === range theme and appearance === */
input[type="range"] {
    font-size: 1.5rem;
    width: 12.5em;
}

input[type="range"] {
    color: #248bda;
    --thumb-height: 1.125em;
    --track-height: 0.125em;
    --track-color: rgba(0, 0, 0, 0.2);
    --brightness-hover: 180%;
    --brightness-down: 80%;
    --clip-edges: 0.125em;
}

input[type="range"].win10-thumb {
    color: #2b2d42;

    --thumb-height: 1.375em;
    --thumb-width: 0.5em;
    --clip-edges: 0.0125em;
}

@media (prefers-color-scheme: dark) {
    input[type="range"] {
        color: #f07167;
        --track-color: rgba(255, 255, 255, 0.1);
    }

    input[type="range"].win10-thumb {
        color: #3a86ff;
    }
}

/* === range commons === */
input[type="range"] {
    position: relative;
    background: #fff0;
    overflow: hidden;
}

input[type="range"]:active {
    cursor: grabbing;
}

input[type="range"]:disabled {
    filter: grayscale(1);
    opacity: 0.3;
    cursor: not-allowed;
}

/* === WebKit specific styles === */
input[type="range"],
input[type="range"]::-webkit-slider-runnable-track,
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    transition: all ease 100ms;
    height: var(--thumb-height);
}

input[type="range"]::-webkit-slider-runnable-track,
input[type="range"]::-webkit-slider-thumb {
    position: relative;
}

input[type="range"]::-webkit-slider-thumb {
    --thumb-radius: calc((var(--thumb-height) * 0.5) - 1px);
    --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5 - 0.5px);
    --clip-bottom: calc(var(--thumb-height) - var(--clip-top));
    --clip-further: calc(100% + 1px);
    --box-fill: calc(-100vmax - var(--thumb-width, var(--thumb-height))) 0 0
    100vmax currentColor;

    width: var(--thumb-width, var(--thumb-height));
    background: linear-gradient(currentColor 0 0) scroll no-repeat left center /
		50% calc(var(--track-height) + 1px);
    background-color: currentColor;
    box-shadow: var(--box-fill);
    border-radius: var(--thumb-width, var(--thumb-height));

    filter: brightness(100%);
    clip-path: polygon(
            100% -1px,
            var(--clip-edges) -1px,
            0 var(--clip-top),
            -100vmax var(--clip-top),
            -100vmax var(--clip-bottom),
            0 var(--clip-bottom),
            var(--clip-edges) 100%,
            var(--clip-further) var(--clip-further)
    );
}

input[type="range"]:hover::-webkit-slider-thumb {
    filter: brightness(var(--brightness-hover));
    cursor: grab;
}

input[type="range"]:active::-webkit-slider-thumb {
    filter: brightness(var(--brightness-down));
    cursor: grabbing;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center /
		100% calc(var(--track-height) + 1px);
}

input[type="range"]:disabled::-webkit-slider-thumb {
    cursor: not-allowed;
}

/* === Firefox specific styles === */
input[type="range"],
input[type="range"]::-moz-range-track,
input[type="range"]::-moz-range-thumb {
    appearance: none;
    transition: all ease 100ms;
    height: var(--thumb-height);
}

input[type="range"]::-moz-range-track,
input[type="range"]::-moz-range-thumb,
input[type="range"]::-moz-range-progress {
    background: #fff0;
}

input[type="range"]::-moz-range-thumb {
    background: currentColor;
    border: 0;
    width: var(--thumb-width, var(--thumb-height));
    border-radius: var(--thumb-width, var(--thumb-height));
    cursor: grab;
}

input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;
}

input[type="range"]::-moz-range-track {
    width: 100%;
    background: var(--track-color);
}

input[type="range"]::-moz-range-progress {
    appearance: none;
    background: currentColor;
    transition-delay: 30ms;
}

input[type="range"]::-moz-range-track,
input[type="range"]::-moz-range-progress {
    height: calc(var(--track-height) + 1px);
    border-radius: var(--track-height);
}

input[type="range"]::-moz-range-thumb,
input[type="range"]::-moz-range-progress {
    filter: brightness(100%);
}

input[type="range"]:hover::-moz-range-thumb,
input[type="range"]:hover::-moz-range-progress {
    filter: brightness(var(--brightness-hover));
}

input[type="range"]:active::-moz-range-thumb,
input[type="range"]:active::-moz-range-progress {
    filter: brightness(var(--brightness-down));
}

input[type="range"]:disabled::-moz-range-thumb {
    cursor: not-allowed;
}

