body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #000000, #0f0f0f);
    color: #fff;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 20px;
        height: auto;
        min-height: 100vh;
    }
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.script-list a {
    display: block;
    background: #ff4757;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    margin: 10px 0;
    transition: all 0.3s ease-in-out;
}

.script-list a:hover {
    background: #ff6b81;
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 71, 87, 0.6);
}

.submenu {
    margin-left: 20px;
    margin-top: 10px;
}

.submenu a {
    background: #ff4757;
    margin: 5px 0;
    padding: 12px;
    font-size: 1rem;
}

.submenu a:hover {
    background: #ff6b81;
    transform: scale(1.03);
    box-shadow: 0px 4px 10px rgba(255, 71, 87, 0.6);
}

.back-button {
    display: block;
    background: #1e90ff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    margin-top: 20px;
    transition: all 0.3s ease-in-out;
}

.back-button:hover {
    background: #4fa3ff;
    transform: scale(1.05);
}

.hidden {
    display: none;
}

.instruction-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    padding: 12px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.instruction-btn:hover {
    background: #ddd;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    color: #333;
    text-align: center;
    transform: scale(0.8);
    opacity: 0;
    animation: popUp 0.3s forwards ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes popUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.copy-btn {
    cursor: pointer;
    background: #1e90ff;
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
    transition: 0.3s;
}

.copy-btn:hover {
    background: #4fa3ff;
    transform: scale(1.1);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.feedback-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.feedback-form button {
    background: #ff4757;
    color: white;
    padding: 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.feedback-form button:hover {
    background: #ff6b81;
    transform: scale(1.05);
}

.easter-egg {
    color: #00bcd4;
    cursor: pointer;
}

.contact-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    padding: 12px;
    border-radius: 50%;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.contact-btn:hover {
    background: #ddd;
}

.download-button {
    padding: 10px 20px;
    background-color: #4fa3ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.download-button:hover {
    background-color: #0076f5;
    text-decoration: none;
}

.footer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    color: #666;
    font-size: 14px;
    z-index: 1000;
}

#yandex_rtb_R-A-15526498-1 {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 100px;
    height: 100px;
    z-index: 1000;
}



#feedback-text {
    width: 100%;
    min-height: 120px;
    max-height: 200px;
    padding: 12px;
    border: 2px solid #444;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #000000;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

#feedback-text:focus {
    outline: none;
    border-color: #4fa3ff;
    box-shadow: 0 0 10px rgba(79, 163, 255, 0.3);
}

.char-counter {
    margin: 8px 0;
    font-size: 12px;
    color: #ccc;
}

.char-limit-warning {
    color: #ff4757 !important;
    font-weight: bold;
    animation: pulse 1s infinite;
    text-align: right;
    margin: 4px 0;
    font-size: 12px;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

#send-button {
    width: 100%;
    padding: 12px;
    background: #4fa3ff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

#send-button:hover:not(:disabled) {
    background: #0076f5;
}

#send-button:disabled {
    background: #666;
    cursor: not-allowed;
}
