@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Для мобильных — 100% ширины */
@media (max-width: 768px) {
    .description {
        width: 95%;
    }

    body,
    p,
    label,
    input,
    select,
    button,
    .description,
    #error-message {
        font-size: 11px;
    }
}

/* Адаптив */
@media (max-width: 400px) {
    form {
        width: 95vw;
        padding: 20px;
    }

    header h1 {
        font-size: 0.9rem;
        /* или 1rem, если нужно ещё меньше */
    }
}

@media (max-width: 720px) {
    form {
        width: 95vw;
        padding: 20px;
    }

    header h1 {
        font-size: 0.9rem;
        /* или 1rem, если нужно ещё меньше */
    }
}

#loading-status {
    display: none;
    flex-direction: column;
    align-items: center;
}

#funny-text {
    margin-bottom: 10px;
    font-family: monospace;
    font-size: 16px;
    color: #c6ffc6;
}

#progress-bar {
    transition: width 0.3s ease-in-out;
}

/* Базовый стиль для всех текстов кроме h1 */
body,
p,
label,
input,
select,
button,
.description,
#error-message {
    font-size: 14px;
    line-height: 1.5;
}

#error-message {
    display: none;
    width: 320px;
    margin: 20px auto 0 auto;
    /* Отступ сверху и центрирование */
    color: rgb(214, 46, 46);
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.5;
    /* или любое другое значение, например 1.6, 2 */
}

/* Стили для модального окна */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.modal-body {
    padding: 25px;
    color: #e0e0e0;
    text-align: center;
    line-height: 1.6;
}

.modal-body p {
    margin: 0;
    font-size: 14px;
}

.modal-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #4a4a4a;
}

.modal-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, #5dd5cc 0%, #4fb09d 100%);
}

.modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
}

.description {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto 40px;
    /* по центру */
    color: #ffffff;
    line-height: 1.5;
    text-align: center;
    /* опционально */
}

.form-wrapper {
    /* Новый контейнер для формы и ошибки */
    display: inline-block;
    /* Чтобы форма была по центру и контент ошибки шел под ней */
    text-align: center;
    /* Чтобы внутри формы и ошибки текст был слева */
    max-width: 95vw;
    /* не больше 95% ширины экрана */
    width: 320px;
    /* но не меньше 320px для больших экранов */
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #0d0d0d;
    color: #00ff00;
    font-family: 'Press Start 2P', cursive, monospace;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: #111;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-bottom: 4px solid #00ff00;
    user-select: none;
    box-shadow: 0 0 10px #00ff00;
}

header h1 {
    margin: 0;
    font-size: 0.9rem;
    text-shadow: 2px 2px 0 #008000;
}

main {
    flex: 1;
    /* Сделаем блочным контейнером, чтобы дети не располагались в строку */
    display: block;
    /* Заменили flex на block */
    padding: 0px 0px;
    text-align: center;
    /* По желанию центрируем содержимое */
}

form {
    background: #222;
    display: block;
    border: 4px solid #00ff00;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.24);
    /* менее яркое и более размытое */
}

input[type="text"],
select {
    width: 100%;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    padding: 12px;
    margin: 10px auto 20px;
    border: 3px solid #00ff00;
    border-radius: 0;
    background: #0d0d0d;
    color: #63ff63;
    box-sizing: border-box;
    outline: none;
}

input[type="text"]:focus,
select:focus {
    border-color: #00ff99;
    box-shadow: 0 0 10px #00ff99;
}

button {
    width: 100%;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 14px 0;
    background: #00ff00;
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px #00ff00;
    transition: background 0.3s;
    user-select: none;
}

button:hover {
    background: #00cc00;
    box-shadow: 0 0 25px #00cc00;
}

label {
    letter-spacing: 1px;
    display: block;
    margin-bottom: 6px;
    color: #00cc00;
    text-shadow: 1px 1px 0 #006600;
    user-select: none;
}

.field-group {
    margin-bottom: 0px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(128, 128, 128, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: bold;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 10px #000;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px dotted darkgreen;
    border-radius: 50%;
    animation: spinDots 3s linear infinite;
    box-sizing: border-box;
}

@keyframes spinDots {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: rotate(360deg);
        opacity: 1;
    }
}

/* кружок загрузки*/
.dot-spinner {
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.dot {
    opacity: 0.3;
    transition: opacity 0.2s;
    stroke: #006400;
    /* Темно-зеленый насыщенный цвет */
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.1;
    }
}

.dot1 {
    animation: pulse 1.6s infinite;
    animation-delay: 0s;
}

.dot2 {
    animation: pulse 1.6s infinite;
    animation-delay: 0.2s;
}

.dot3 {
    animation: pulse 1.6s infinite;
    animation-delay: 0.4s;
}

.dot4 {
    animation: pulse 1.6s infinite;
    animation-delay: 0.6s;
}

.dot5 {
    animation: pulse 1.6s infinite;
    animation-delay: 0.8s;
}

.dot6 {
    animation: pulse 1.6s infinite;
    animation-delay: 1s;
}

.dot7 {
    animation: pulse 1.6s infinite;
    animation-delay: 1.2s;
}

.dot8 {
    animation: pulse 1.6s infinite;
    animation-delay: 1.4s;
}

/* ---- */

/* Кол-во загрузки*/
.progress-info {
    font-size: 12px;
}

/*---*/

.share-buttons {
    display: flex;
    justify-content: center;
    /* Центрирует по горизонтали */
    align-items: center;
    /* Центрирует по вертикали (если нужно) */
    gap: 12px;
    /* Расстояние между кнопками */
    flex-wrap: wrap;
    /* Чтобы не ломалось на узких экранах */
    margin-top: 20px;
}

.share-buttons h2 {
    margin-right: 10px;
    font-size: 0.8rem;
    color: #ffffff;
}

.share-button {
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    text-decoration: none;
    /* Убираем подчеркивание */
}

.share-button img {
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.share-button:hover {
    transform: scale(1.5);
}

.share-button:active .share-icon {
    transform: scale(1.1);
    /* Увеличиваем иконку */
    filter: brightness(1.5);
    /* Делаем иконку ярче */
}

.disclaimer {
    margin-top: 20px;
    /* Отступ сверху */
    font-family: 'Press Start 2P', cursive, monospace;
    /* Шрифт как на сайте */
    font-size: 10px;
    /* Размер шрифта */
    color: #888;
    /* Серый цвет текста */
    text-align: center;
    /* Центрирование текста */
    line-height: 1.5;
    /* Интервал между строками */
    max-width: 600px;
    /* Ограничение ширины текста */
    margin-left: auto;
    /* Центрирование блока */
    margin-right: auto;
    /* Центрирование блока */
}

/* для бота*/


.telegram-bot-promo {
    margin: 40px auto 0;
    text-align: center;
    padding: 30px 0;
    /* background-color: #000000; */
    /* Светлый голубой фон, сочетается с Telegram */
    border-radius: 8px;
    /* border-color: #006400; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 80%;
    line-height: 1.5em;
    border: 2px solid darkgreen
}

.telegram-bot-promo h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: #12d43c;
    /* Цвет, вдохновлённый Telegram */
}

.telegram-bot-promo p {
    margin: 0 0 10px;
    font-size: 1em;
    color: #ffffff;
}

.telegram-bot-promo a {
    /* color: #0088cc; */
    color: #0088cc;
    text-decoration: underline;
    font-weight: bold;
}

.telegram-bot-promo a:hover {
    text-decoration: underline;
    color: #00ff26;
}

/**/

/* .blinking-link {
    animation: blink-color 1s steps(1) infinite;
  }

  @keyframes blink-color {
    0%   { color: #0088cc; }
    50%  { color: #12d43c; }
    100% { color: #0088cc; }
  } */

footer {
    font-size: 10px;
    margin: 20px auto;
}

footer p {
    font-size: 10px;
}

footer .copyright {
    text-align: center;
    color: #ffffff;
}

.faq-section {
    /* background-color: #f2f2f2; */
    margin-top: 40px;
    padding: 0;
    /* border-top: 1px solid #ddd; */
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-title {
    margin: 0 auto 40px;
    font-size: 28px;
    font-weight: bold;
    /* margin-bottom: 30px; */
    color: #12d43c;
    text-align: center;
}

.faq-item {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #000000be;
    border-left: 2px solid #ededed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 15px;
    color: #12d43c;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.6;
}

#faq a {
    /* color: #0088cc; */
    color: #0088cc;
    text-decoration: underline;
    font-weight: bold;
}

nav {
    text-align: center;
}

.seo-text {
    padding: 0;
    max-width: 900px;
    margin: 40px auto 0;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
}

.seo-text p {
    color: #ffffff;
    font-size: 10px;
}

.seo-text li {
    font-size: 10px;
}

.seo-text h2 {
    margin-bottom: 20px;
}