body {
    background-color: #0a0f0a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

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

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.left-section {
    flex: 1;
}

.back-button {
    background: #003300;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1000;
}

.back-button:hover {
    background: #004400;
    box-shadow: 0 0 10px #00ff00;
}

        .language-switcher {
    position: absolute;
    display: flex;
    gap: 10px;
    top: 20px;
    right: 20px;
    z-index: 1000;
        }

        .lang-btn {
            width: 40px;
            height: 30px;
            cursor: pointer;
            opacity: 0.5;
            transition: opacity 0.3s;
        }

        .lang-btn:hover,
        .lang-btn.active {
            opacity: 1;
        }

        .lang-icon {
            width: 100%;
            height: 100%;
        }


h1, h2 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.rule-section {
    background-color: #001100;
    padding: 15px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #00ff00;
}

.warning {
    color: #ff6b6b;
    font-weight: bold;
}

.command {
    background-color: #001500;
    padding: 5px 10px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.legal-text {
    background-color: #0a0f0a;
    color: #00ff00;
    padding: 20px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
}

.section {
    margin-bottom: 20px;
}

.main-point {
    margin-left: 0;
    margin-bottom: 10px;
    color: #00ff00;
    font-weight: bold;
    text-shadow: 0 0 5px #00ff00;
}

.sub-point {
    margin-left: 30px;
    margin-bottom: 5px;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

@media (max-width: 768px) {
    .lang-btn {
        width: 32px;
        height: 32px;
    }
    .lang-icon {
        width: 20px;
        height: 20px;
    }
}


.telegram-icon {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 9999;
            width: 50px;
            height: 50px;
            background-image: url('../img/telegram-white-icon.png');
            background-size: cover;
            text-indent: -9999px;
            transition: transform 0.3s;
            display: block;
        }
.telegram-icon:hover {
            transform: scale(1.2);
        }

		.support-icon {
			position: fixed;
			bottom: 20px;
			left: 20px;
			z-index: 9999;
			width: 50px;
			height: 50px;
			background-image: url('../img/support_white_icon.png'); /* убедитесь, что файл существует */
			background-size: cover;
			text-indent: -9999px;
			transition: transform 0.3s;
			display: block;
		}
		
		.support-icon:hover {
			transform: scale(1.2);
		}

/* Мобильные стили */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
        margin: 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .left-section {
        width: 100%;
        text-align: center;
    }
    
    .back-button {
        position: relative;
        left: auto;
        top: auto;
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .language-switcher {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        margin-top: 10px;
    }
    
    h1 {
        font-size: 28px;
        margin: 20px 0;
        text-align: center;
        padding: 0 10px;
    }
    
    h2 {
        font-size: 22px;
        margin: 15px 0;
        padding: 0 10px;
    }
    
    .rule-section {
        padding: 20px 15px;
        margin: 15px 0;
        border-radius: 8px;
    }
    
    .rule-section p {
        font-size: 14px;
        line-height: 1.6;
        margin: 10px 0;
    }
    
    .warning {
        font-size: 15px;
        padding: 10px;
        border-radius: 5px;
        background-color: rgba(255, 107, 107, 0.1);
        border: 1px solid #ff6b6b;
    }
    
    .command {
        font-size: 13px;
        padding: 8px 12px;
        margin: 10px 0;
        display: block;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .rule-list {
        padding-left: 20px;
    }
    
    .rule-list li {
        margin: 8px 0;
        font-size: 14px;
    }
    
    .matrix-rain {
        display: none;
    }
    
    .floating-icon {
        display: none;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 24px;
        margin: 15px 0;
    }
    
    h2 {
        font-size: 20px;
        margin: 12px 0;
    }
    
    .rule-section {
        padding: 15px 10px;
        margin: 12px 0;
    }
    
    .rule-section p {
        font-size: 13px;
    }
    
    .warning {
        font-size: 14px;
        padding: 8px;
    }
    
    .command {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .rule-list {
        padding-left: 15px;
    }
    
    .rule-list li {
        font-size: 13px;
        margin: 6px 0;
    }
    
    .back-button {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Стили для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }
    
    .header-container {
        gap: 25px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .rule-section {
        padding: 25px 20px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding: 8px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .rule-section {
        padding: 12px 8px;
    }
    
    .rule-section p {
        font-size: 12px;
    }
    
    .command {
        font-size: 11px;
        padding: 5px 8px;
    }
}
