* {
    /*vertical-align: middle;*/
    font-weight: inherit;
    font-family: inherit;
    font-style: inherit;
    font-size: 100%;
    border: 0 none;
    outline: 0;
    padding: 0;
    margin: 0;
}

.top{
	padding: 5px;
	position: relative;
}

.main{
	#margin-top: 20px;
	margin-bottom: 20px;
}
ul{
    list-style: none;padding: 0;
    margin: 0;
	word-wrap: break-word;
}
h1, .h1, h2, .h2, h3, .h3 {
    margin: 0;
    font-weight: normal;
    line-height: normal;
}

h1
{
	text-align:center;
	color: #00315c;
	font-weight: bold;
}

.h1_subject{
	font-size: 16px;
	margin-bottom: 20px;
}

h1.search
{
	font-size:14px;
	display:inline;
	font-weight:bold;
	vertical-align: baseline;
}

h2.similar_answers{
	font-size: 16px;
	margin: 20px 20px 30px 20px;
	text-align: justify;
	line-height: 1.5;
}

p{
    margin: 0;
}
a{color: inherit;}
a:hover{color:inherit; text-decoration: underline;}

img
{
	border:0;
}

body{
    overflow-x: hidden;
    color: #000;
    font-family: Tahoma,Geneva,sans-serif;
    font-size: 14px;
    background-size: cover;
	background-color: #f3f3f3;
}

html,
body {
  height: 100%;
}

.container{
   /* border-width: 1px;
    border-style: solid;
    border-color: #ddd;*/
    padding: 0px;
    background-color: #FFF;
	
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.vk_user
{
	clear:both;
}

.vk_user img
{
	float:left;
	padding:10px;
}

.user_info
{
	margin-left:220px;
}

.pagination {
    display: inline-block;
}

.pagination a, .pagination .active {
    color: black;
    float: left;
    padding: 8px 16px;
    text-decoration: none;
}

.pagination .active {
    background-color: #4CAF50;
    color: white;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

footer
{
	display:block;
	max-width: 900px;
}

.vk_url
{
	background: #9b343c;
	color:#FFFFFF;
	padding:3px;
	text-align:right;
	clear: both;
}

.vk_url span
{
	cursor:pointer;
	text-decoration:underline;
}

.vk_url span:hover
{
	text-decoration:none;
}

.top .search
{
	float:right;
	font-family: Verdana;
    font-size: 16px;
	margin:10px 20px 0 0;
}

.search div
{
	float:left;
	padding:3px 5px;
}

.search input
{
	border: 1px solid #4285F4;
	padding:3px;
	width:200px;
}

.search div img
{
	cursor:pointer;
	margin:-1px 0;
}

.search input[type="submit"]
{
	background:url('/img/search.png');
	background-repeat: no-repeat;
	width:32px;
	height:32px;
	border: 0;
}

.user_info h2, .vk_user img
{
	cursor:pointer;
}

.user_info h2:hover
{
	text-decoration:underline;
}

.results_search
{
	margin:5px 10px 10px 10px;
}

.results_search div:first-child
{
	float:left;
}

.results_search div:nth-child(2)
{
	float:right;
}

article#main
{
	display:block;
	max-width:600px;
	margin:20px auto;
	text-align:justify;
}

footer
{
	color:#5F5F5F;
	display:block;
	margin:10px 20px;
	text-align:right;
}

footer a{
	display: inline-block;
	margin-right: 30px;
}

.content {
    flex: 1 0 auto;
}
 
.footer {
     flex: 0 0 auto;
}

#ads_top
{
	margin-bottom:20px;
}

#ads_bottom
{
	margin:15px 0 0 0;
}

.year_overflow {
      height: 200px;
}

.task_block
{
	padding:10px;
	border-bottom:3px #ebf2f7 solid;
	word-break: break-word;
}

.task_title
{
	padding:5px;
	color:#0C1F7A;
}

.task_block .category
{
	font-weight:bold;
	display:inline-block;
	margin:0 10px 0 10px;
}

.views
{
	display:inline-block;
	height:10px;
	width:14px;
	background-image:url(/img/views.png);
	margin:1px 3px 1px 8px;

}

.views_num{
	color: #939393;
}

.task_page
{
	font-size: 22px;
    font-weight: 400;
	vertical-align: baseline;
	color: #111;
    font-family: 'Open Sans', sans-serif;
	padding: 0 20px 30px 20px;
	word-break: break-word;
}

.task_page h1
{
	text-align: left;
	font-size: 22px;
    font-weight: 400;
	display:inline;
	vertical-align: baseline;
	color: #111;
   	font-family: 'Open Sans', sans-serif;
}

.ava {
	display: block;
    border-radius: 50%;
    overflow: hidden;
    font-size: 1px;
    border: 4px solid #ecf0f1;
    background-color: #ecf0f1;
    width: 69px;
    height: 69px;
    cursor: pointer;
	float:left;
	margin:0 15px 0 0;
}

.ava img {
	max-width: 100%;
    max-height: 100%;
    align-self: center;
    display: block;
    margin: auto;
    width: 69px;
    height: 69px;
}

.task_info, .answer_info
{
	font-size:13px;
	min-height: 69px;
	/*margin-bottom: 10px;*/
	color: #7f7f7f;
}

.task_header, .answer_header{
	padding: 0 20px;
}

.answer_block{
	padding: 0 20px 0px 20px;
	font-family: 'Open Sans', sans-serif;
	font-size: 15px;
	white-space: pre-wrap;
	word-break: break-word;
}
#adsense_top
{
	padding:20px 0;
	background-color: #f6f6f6;
	margin-bottom: 20px;
}

.block_show_answer {
    color: transparent;
    text-shadow: 0 0 12px rgba(0,0,0,.6);
    display: block;
    user-select: none;
    font-size: 16px;
}

#answers_block
{
	display:none;
}

#show_answer, #show_similar_answers {
    color: #fff;
    background-color: #5cb85c;
    border-color: #4cae4c;
    cursor: pointer;
    display: block;
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    margin: 15px auto;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    text-size-adjust: 100%;
    touch-action: manipulation;
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    width: 300px;
    border-radius: 6px;
}

.soc_32
{
	background-image:url(/img/soc_providers_32.png);
    /*float: left;*/
    margin-right: 10px;
    cursor: pointer;
	width:32px;
	height:32px;
	display:inline-block;
}

.vk_32
{
	background-position:0 0;
}

.odnoklassniki_32
{
	background-position:0 -32px;
}

.mailru_32
{
	background-position:0 -64px;
}

.facebook_32
{
	background-position:0 -96px;
}

.google_32
{
	background-position:0 -160px;
}

.clear
{
	clear:both;
}

.login_title
{
	margin:0 auto;
	padding:10px;
	text-align:center;
	background-color: #5e98e8;
	color:#FFF;
}

.login_title a, .login_title
{
	color:#fff;
	font-size:18px;
	font-weight:bold;
}

.text_login
{
	text-align:center;
	padding:10px;
}

.adsense_bottom
{
	margin:20px 0;
}

ul.subjects li a img {
    width: 18px;
    margin-right: 10px;
}

.subjects_top
{
	font-weight: 700;
	padding: 10px 10px 10px 20px;
	font-size: 20px;
}

ul.subjects li a {
    padding: 0 0 0 15px;
    display: block;
    border-top: 1px solid #e3e3e3;
    height: 40px;
    line-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    font-size: 16px;
	text-decoration: none;
}

ul.subjects li a:hover
{
	background-color: #f9f9f9;
}

.left_column
{
	padding: 20px;
}

h2{
	text-align: center;
	background-color: #f6f6f6;
	padding: 20px 0;
	color: #8f594f;
	margin-top: 20px;
}

#loader{
	height: 2px;
	width: 0;
	background-color: #ffc107;
	max-width: 500px;
}

#search_gif img{
	width:100%;
	max-width: 500px;
	margin: 0 0 20px;
}

#make_search{
	max-width: 500px;
	margin: 0 auto;
}

.answer_block p{
	margin-bottom: 1.25em;
}

.answer_block ol, .answer_block ul {
	display: flex;
	flex-direction: column;
	padding-left: 1rem;
}

.answer_block ol {
	counter-reset: item;
}

.answer_block td, .answer_block th {
	padding: 5px;
	border: 1px solid grey;
}

#gpt_message {
	/*max-height: 200px;*/
	/*height: 100px;*/
	overflow-y: hidden;
	width: 100%;
	resize: none;
}

div.gpt_for_message{
	border: 1px solid #737373;
	border-radius: 5px;
	margin: 20px;
	padding: 10px 60px 0px 10px;
	position: relative;
}

img.send_message{
	position: absolute;
	right: 15px;
	bottom: 20px;
	width: 40px;
	height: 40px;
	cursor: pointer;
}

#gpt_ask{
	/*border: 1px solid #737373;*/
	/*border-radius: 5px;
	/*padding: 10px;*/
	/*width: 100%;
	text-align: center;*/

}

#gpt_ask_outer{
	margin: 20px;
}

p.you_gpt_ask, div#result{
	margin: 20px;
}

.gpt_promo_btn a{
	display: block;
	text-align: center;
	font-size: 30px;
	width: 100%;
	border: 1px solid #737373;
	border-radius: 5px;
	padding: 10px;
	color: white;
	background-color: green;
}

.gpt_promo_btn{
	padding: 20px;
}

.preloader_overlay{
	position: fixed;
	background-color: #000;
	opacity: 0.3;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3000;
}

.preloader {
	position: fixed;
	top: 50%;
	left: 50%;
	margin-right: -50%;
	transform: translate(-50%, -50%);
	z-index: 10000;
}

.preloader40 {
	text-align: center;
}

.preloader_show{
	display: block;
}

.preloader_hide{
	display: none;
}

.pre_next_tasks_links{
	padding: 20px;
	font-size: 20px;
	font-weight: bold;
	color: #48494d;
}

.next_task{
	float: right;
}

.pre_task{
	float: left;
}

.count_answers{
	padding: 5px 10px;
	background: #60d399;
	border-radius: 6px;
	display: inline-block;
	color: #FFF;
	margin-top: 5px;
	font-weight: bold;
	font-size: 12px;
}

.count_answers:hover{
	color: #FFF;
	text-decoration: none;
	background-color: #46c183;
}

.task_author{
	color: #939393;
}

.task_datetime{
	color: #939393;
}

.task_votes{
	white-space: normal;
}

.thumb_up, .thumb_down{
	cursor: pointer;
}

.nav-wrapper {
	position: absolute;
	right: 20px;
	top: 15px;
	text-align: right;
	display: table;
}

.ask_question_block{
	position: fixed;
	bottom: 40px;
	right: 15px;
}

.ask_question_block span{
	display: inline-block;
	background-color: #014a82;
	color: #FFF;
	padding: 5px 10px;
	border-radius: 5px;
}
.ask_question_block img{
	width: 35px;
	height: 35px;
}

.ask_question_block_until_video{
	position: sticky;
	top: 275px;
	margin-top: 10px;
}

.ask_question_block_until_video img{
	width: 45px;
	height: 45px;
	margin-bottom: 10px;
	margin-left: 5px;
}

.ask_question_block_until_video span{
	display: inline-block;
	background-color: #014a82;
	color: #FFF;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 24px;
	margin-left: 50px;
}

.ask_question_block_until_video a:hover{
	text-decoration: none;
}

.display_block{
	display: block;
}

.display_none{
	display: none;
}

.tasks_more{
	padding: 10px;
	text-align: center;
	background-color: #2c5171;
	color: white;
	font-size: 20px;
	cursor: pointer;
	width: 100%;
}

.katex-html, span[data-state="closed"] {
	display: none;
}

.abuse_task{
	color: #ce8483;
	text-decoration: none;
	font-size: 10px;
	float: right;
	display: block;
	padding: 15px 5px;
}

.search_div_input{
	margin-right: 80px;
}

input[name="q"]{
	border: 1px solid #999;
	padding: 2px 5px;
	width: 100%;
	margin: 2px 0;
}

.submit_search{
	position: absolute;
	top: 0;
	right: 0;
	background-color: #014a82;
	color: #FFF;
	padding: 5px 10px;
	border-radius: 5px;
	font-size: 14px;
}

form#search{
	position: relative;
	margin: 10px;
}

#rules{
	padding: 20px;
	text-align: justify;
	color: rgba(9, 21, 38, 0.85);
}

#rules h1, #rules h2{
	background-color: #FFF;
}

#rules p{
	margin: 10px 0;
}

#rules h2{
	font-size: 18px;
	color: rgba(9, 21, 38, 0.85);
	margin: 0;
	padding: 10px 0;
}

#rules ol {
	padding-left: 20px; /* Отступ для всего списка */
	margin-left: 0; /* Убедитесь, что нет отрицательного поля */
}

#rules h1{
	font-size: 30px;
}

#result span[data-state="closed"]{
	display: block;
}

#result span[data-state="closed"] button{
	background-color: #FFF;
	margin: 10px;
	color: #666;
}
