/*@charset "utf-8";*/
#leftya {display: none;}

body #page {
	margin-left: 160px;
	margin-right: 160px;
}

@media screen and (max-width: 1236px) {
body #page {
	margin-left: 0px;
}
#leftya {display: none;}
}

@media screen and (max-width: 999px) {
body #page {
	margin-left: 0px;
	margin-right: 0px;
}
#leftya {display: none;}
#rightya {display: none;}
}

@media screen and (min-width: 500px) {
.font2, body, .c2, .l2, .r2 {
	font: 0.82rem/1.42rem Arial, Helvetica, sans-serif;
}
}

@media screen and (max-width: 499px) {
.font2, body, .c2, .l2, .r2 {
	font: 0.6rem/0.82rem Arial, Helvetica, sans-serif;
}
.menu_top_img label i {
	line-height: 7.5px;
	font-size: 7.5px;
}
}

.r1 {
	text-align: right;
	color: black;
	font: 0.6em/0.82em Arial, Helvetica, sans-serif;
}

@keyframes name {
	from { 
		color: black; font-weight: normal; 
	}
	to { 
		color: red; font-weight: bold; 
	}	
}

@keyframes rose {
	from { 
		width: 350px; 
		height: 300px;
		top: -120vh;
		left: -120vw;
		transform: rotate(0deg);
	}
	to { 
		top: -10px;
		left: 70px;
		width: 35px;
		height: 30px;
		transform: rotate(1080deg);
	}	
}

#rose  {
	animation-delay: 5s;
	animation-duration: 10s;
	animation-duration: 0s;
	animation-iteration-count: infinite;
	animation-name: rose;
	animation-timing-function: linear;
	position: absolute;
	display: none;
}

#jane {
	animation-delay: 5s;
	animation-duration: 10s;
	animation-duration: 0s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	animation-name: name;
}

/*.c2, .l2, .r2 {
	color: black;
}*/

.l2 {
	text-align: left;
}

.c2 {
	text-align: center;
}

.r2 {
	text-align: right;
}

#left_title, h1, .h1, #username, #timeleft, .timeleft {
	color: #990000;
	font: bold 1rem/1rem Arial, Helvetica, sans-serif;
	text-align: center;
	padding-bottom: 1em;
}

#timeleft {
	color: #000000;
	font: bold 1rem/1rem Arial, Helvetica, sans-serif;
	text-align: center;
	padding-bottom: 1em;
	padding-top: 1em;
}

.timeleft {
	color: #990000;
	font: bold 1.5rem/1.5rem Arial, Helvetica, sans-serif;
	text-align: center;
	padding-bottom: 1em;
}

.red {
	color: #990000;
	font-weight: bold;
}

h2, .h2 {
	font: bold 0.82rem/0.82rem Arial, Helvetica, sans-serif;
	text-align: center;
}

#register_r h1 {
	margin-top: 1em;
	margin-bottom: 0em;
}

.menu_top_img label i {
	font: bold italic 1.5vw/1.5vw "segoe script", arial, sans-serif;
	text-align: center;
	display: block;
}

@media screen and (max-width: 1023px) and (min-width: 500px){
.menu_top_img label i {
	line-height: 1.5vw;
	font-size: 1.5vw;
}
}

@media screen and (min-width: 1024px) {
.menu_top_img label i {
	line-height: 15.36px;
	font-size: 15.36px;
}
}

#urgent_info p {
	font: 0.9rem/1.3rem "segoe script", arial, sans-serif;
	color: #ffeeee;
	text-align: justify;
	margin-left: 5px;
	margin-right: 5px;
	margin-top: 0.5rem;
}
/*
#main_r .page_used span {
	font-size: 0.6rem;
	line-height: 0.6rem;
}

#main_r .page_used a, #main_r .page_used input[type="image"] {
	font-size: 0.8rem;
	line-height: 0.8rem;
	margin-left: 0.6em;
}
*/
#kopilka_l label, #kopilka_l a, #talk_l label, #talk_l a {
	display: block;
	text-align: left;
}

#talk_l label[for="gb2"] {
	display: none;
}

* {
	margin:0px;
	padding:0px;
}

html {
	height: 100%;
	width: 100%;
	font-family: Arial, Helvetica, sans-serif;
}

body {
	height: 100%;
	width: 100%;
	background-image: url('pics/light_green120x120.jpg');
	text-align: justify;
	overflow-x: hidden;
}

label {
	cursor: pointer;
}

#page {
	height: 99%;
	border-width: 0px;
	text-align: center;
	margin: auto;
	position: relative;
}

#head {
	overflow: hidden;
	position: relative;
	max-width: 1024px;
	min-width: 500px;
	text-align: center;
	margin:auto;
}

#logo, #timeleft {
	float: left;
	width: 16%;
	vertical-align: middle;
}

#top_ref {
	margin-left: 16%;
	max-height: 32px;
	position: relative;
	margin-right: 10px;
}

#title {
	margin-left: 16%;
	max-height: 85px;
	margin-right: 10px;
	vertical-align: top;
	position: relative;
}

#over_title {
	margin-left: 16%;
	max-height: 85px;
	margin-right: 10px;
	vertical-align: top;
	position: relative;
	display: none;
}

#menu_top {
	margin-left: 16%;
/*	height: 100%;*/
	vertical-align: top;
	position: relative;
	width: 84%;
	overflow: hidden;
}

@media screen and (max-width: 499px) {
#if_menu {
	width: 100%;
	height: 9vw;
	border: none;
	overflow: hidden;
	clear: left;
}
#main_place {
	border-width: 0px;
	text-align: center;
	width: 100%;
	height: calc(100vh - 68px - 10.4vw);
	margin: auto;
}
#page_middle {
	height: calc(100vh - 68px - 10.4vw);
}
#gf:checked ~ div #page_middle, #gf:checked ~ div #main_place {
	height: calc(100vh  - 68px);
}

#bottom_place {
	display: none;
}
}

@media screen and (max-width: 1023px) and (min-width: 500px){
#if_menu {
	width: 100%;
	height: 9vw;
	border: none;
	overflow: hidden;
	clear: left;
}
#main_place {
	border-width: 0px;
	text-align: center;
	width: 100%;
	margin: auto;
}
}

never #main_place {
	border: solid 1px red;
}

@media screen and (max-width: 1023px) and (min-width: 600px){
#main_place, #page_middle {
	height: calc(100vh - 51px - 101.5px - 6.75vw + 43px);
}
#gf:checked ~ div #main_place, #gf:checked ~ div #page_middle {
	height: calc(100vh - 42px - 6.75vw);
}
}

@media screen and (max-width: 599px) and (min-width: 500px){
#main_place, #page_middle {
	height: calc(100vh - 51px - 34px - 18vw + 43px);
}
#gf:checked ~ div #main_place, #gf:checked ~ div #page_middle {
	height: calc(100vh - 42px - 6.75vw);
}
}

div p.authfld {
	display: none;
}

#auth:checked ~ div p.authfld {
	display: block;
}

@media screen and (min-width: 1024px) {
#if_menu {
	width: 100%;
	height: 92px;
	border: none;
	overflow: hidden;
	clear: left;
}
#main_place {
	text-align: center;
	width: 100%;
	margin: auto;
}
#page_middle, #main_place {
	height: calc(100vh - 51px - 101.5px - 69.12px + 43px);
}
#gf:checked ~ div #main_place, #gf:checked ~ div #page_middle {
	height: calc(100vh - 110px);
}
}

.menu_top_img {
	float: left;
	max-height: 100px;
	width: 14%;
	margin-bottom: 8px;
}

#register_l .page_used {
	text-align: justify;
}

#register_l .page_used p {
	padding-bottom: 1em;
}

#register_r .page_used div {
	padding-bottom: 1em;
}

#main_r h2 {
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

#main_r .page_used div h2, #poigraem_l h2, #poigraem_r h2 {
	margin-top:0em;
}

h2 {
	margin-bottom: 1em;
}

#news_r p, #news_l p {
	text-align: justify;
	margin-bottom: 0.5em;
}

#poigraem_r p {
	margin-top: 1em;
	display: none;
}

#main_r .page_used div img, #register_r .page_used div img {
	max-width: 40%;
}

#main_l .page_used a img {
	max-width: 42%;
}

.imgcont:hover:after {
	content: attr(imgalt);
/*	background-color: white;*/
	color: blue;
	left: 20%;
	top: 4em;
	padding: 5px 15px;
	position: absolute;
	white-space: nowrap;
	display: none;
}
               
.hovurg:hover:after {
	content: attr(hovtext);
	background-color: white;
	color: red;
/*	right: 20%;*/
	top: 1em;
	right: 1em;
	padding: 5px 15px;
	font-size: 0.9rem;
	position: absolute;
	white-space: nowrap;
	display: block;
}

#form_fr {
	max-width:60vw;
	border: 2px solid black;
	margin:auto;
}

form {
	border: 1px solid black;
	margin: 3px;
	padding: 1em;
}

form p, form div, form ul {
	margin-left:10%;
	margin-right:10%;
}

#left1:checked ~ div #pages_place {
	overflow-y: scroll;
}
               
#top1:checked ~ div #menu_top > :nth-child(1) > label > i,
#top2:checked ~ div #menu_top > :nth-child(2) > label > i,
#top3:checked ~ div #menu_top > :nth-child(3) > label > i,
#top4:checked ~ div #menu_top > :nth-child(4) > label > i,
#top5:checked ~ div #menu_top > :nth-child(5) > label > i,
#top6:checked ~ div #menu_top > :nth-child(6) > label > i,
#top7:checked ~ div #menu_top > :nth-child(7) > label > i {
	background-color: lightgreen ;
}

#if_left {
	width: 100%;
	height: 100%;
	border: none;
	overflow: hidden;
}

.menu_left_img {
	max-height: 80px;
	max-width: 100%;
}

#left1:checked ~ div #menu_left > :nth-child(1),
#left2:checked ~ div #menu_left > :nth-child(2),
#left3:checked ~ div #menu_left > :nth-child(3)
 {
	max-height: 100px;
	max-width: 100%;
	position: relative;
	left: 10px;
}

#main, #bottom {
	border-width: 0px;
	max-width: 1024px;
	min-width: 500px;
	text-align: center;
	margin:auto;
	position: relative;
	height:100%;
}

#menu_left {
	float: left;
	width: 12%;
	height: 100%;
	min-height: 30px;
	vertical-align: top;
}

#licounter {
	position: absolute;
	bottom: 6px;
	height: 31px;
}

#pages {
	display: table-row;
}

ul {
	list-style-position: inside;
	padding-bottom: 1em;
	padding-top: 1em;
	font-weight: bold;
}

li {
	font-weight: normal;
}

#pages_place, #bottom_center {
	float: left;
	height: 100%;
	width: 75%;
	overflow-y: auto;
}

#bottom_center {
	margin-left: 12%;
	font-size: 0.5rem;
	line-height: 0.5rem;
}

#bottom_center p {
	font-size: 0.9rem;
	line-height: 0.9rem;
	margin-top: 5px;
}

#lbottom_center {
	font-size: 0.5rem;
	line-height: 0.5rem;
}

#lbottom_center p {
	font-size: 0.7rem;
	line-height: 0.7rem;
}

#contacts_r p {
	text-align: left;
	margin-bottom:1.5em;
}

#pages_cont {
	display: table;
	width: 100%;
	table-layout: fixed;
} 

#kopilka_l a, talk_l a {
	display: block;
	margin-bottom: 0.3em;
}

#kopilka_l p, talk_l p {
	margin-top: 1em;
	text-align: justify;
}

.page_left {
	float: left;
	width: 46%;
	height: inherit;
	vertical-align: top;
	background-image: url('pics/kletki.jpg');
	background-color: #e2fed6;
	display: none;
}

#afor_b, #confirmation {
	background-image: url('pics/kletki.jpg');
	background-color: #e2fed6;
}

#kopilka_l label, a, #talk_l label, #opisanie_r span.content label, /*#main_l div p label, */ #news_l label, .authfail label {
	text-decoration: underline;
	color: blue;
	cursor: pointer;
}

#page_middle {
	width: 8%;
	background-image: url('pics/spiral.jpg');
	background-size: contain;
	background-repeat: repeat-y;
	display: table-cell;
	float: none;
}

.page_right {
	float: left;
	width: 46%;
	vertical-align: top;
	margin-top: 0px;
	height: inherit;
	background-color: #e2fed6;
	background-image: url('pics/kletki.jpg');
	display: none;
}

#opisanie_l,#opisanie_r,#register_l,#register_r,#archive_l,#archive_r,#main_l,#main_r,
#news_l,#news_r,#turnir_l,#turnir_r,#poigraem_l,#poigraem_r,#kopilka_l,#kopilka_r,
#talk_l,#talk_r,#contacts_l,#contacts_r,#guest,#thanks,#gform,#gb1:checked ~ div #page_middle,#gb2:checked ~ div #page_middle,
#kop1:checked ~ div #page_middle, #afor_b, #ill_b, #kop2:checked ~ div #page_middle,#hash:checked ~ div #page_middle,
#gf:checked ~ div #page_middle, #gf:checked ~ #bottom_place, #confirmation,
#stereo_b, #kop3:checked ~ div #page_middle, .authorized, .auth, .noauth, .authfail, #gf:checked ~ div .menu_top_img img, #gf:checked ~ div .menu_top_img br,
#gf:checked ~ div #logo, #timeleft, .evreg_0, .evreg_1, .evreg_2, .evreg_3, .evreg_4, .evreg_5, .evreg_allowed, .cl1, .cl2, .cl3, .cl4, .cl5, .ios  {
	display: none;
}

#evreg_0:checked ~ div .evreg_0, #evreg_1:checked ~ div .evreg_1, #evreg_2:checked ~ div .evreg_2, #evreg_3:checked ~ div .evreg_3, 
#evreg_4:checked ~ div .evreg_4, #evreg_5:checked ~ div .evreg_5, #evreg_allowed:checked ~ div .evreg_allowed, #cl1:checked ~ div .cl1,
#cl2:checked ~ div .cl2, #cl3:checked ~ div .cl3, #cl4:checked ~ div .cl4, #cl5:checked ~ div .cl5, #ios:checked ~ div .ios {
	display: block;
}  

#gf:checked ~ div #timeleft {
	display: block;
}

.cond a {
	margin-left: 1rem;
	margin-right: 1rem;
}
/*#gf:checked ~ div .menu_top_img {
	max-height: 20px;
}
*/
#authorized:checked ~ div .authorized  {
	display: inline;
}
#authorized:checked ~ iframe.authorized  {
	display: block;
}
#authorized:checked ~ div form.authorized  {
	display: block;
}

#authfail:checked ~ div.authfail, #authfail:checked ~ div div.authfail  {
	display: block;
}

#auth:checked ~ div .auth  {
	display: inline;
}

#noauth:checked ~ div .noauth  {
	display: inline;
}

#guest, #thanks, #gform {
	height: 99%;
	width: 99%;
	overflow: hidden;
	border: 0px;
}

#afor_b p i {
    text-align: right;
    font-family: "segoe script";
    display: block;
    /* float: right; */
}
#afor_b p {
    text-align: left;
    /* float: left; */
    margin-bottom: 0.4em;
    margin-left: 2em;
    margin-right: 2em;
}

#ill_b img {
	height: 82px;
	width: 100px;
	border: 1px solid blue;
	margin: 6px;
}

#stereo_b h2, #ill_b h2, #afor_b h2 {
	margin-top: 1.5em;
}

#stereo_b, #ill_b {
	background-image: url('pics/kletki.jpg');
	background-color: #e2fed6;
}

#stereo_b div {
	width: 140px;
	min-height: 126px;
	float: left;
	padding-left: 10px;
}

#stereo_b p {
	float: none;
	clear: both;
	text-align: left;
	padding-left: 10px;
}

#stereo_b p i {
	display: inline;
	color: #e2fed6;
	background-color: #e2fed6;
}

#left1:checked ~ div #opisanie_l,#left1:checked ~ div #opisanie_r,  
#left2:checked ~ div #register_l, #left2:checked ~ div #register_r,
#left3:checked ~ div #archive_l,#left3:checked ~ div #archive_r, 
#top1:checked ~ div #main_l,#top1:checked ~ div #main_r,
#top2:checked ~ div #news_l,#top2:checked ~ div #news_r,
#top3:checked ~ div #turnir_l,#top3:checked ~ div #turnir_r,
#top4:checked ~ div #poigraem_l,#top4:checked ~ div #poigraem_r,
#top5:checked ~ div #kopilka_l,#top5:checked ~ div #kopilka_r,
#top6:checked ~ div #talk_l,#top6:checked ~ div #talk_r,
#top7:checked ~ div #contacts_l,#top7:checked ~ div #contacts_r,
#kop1:checked ~ div #afor_b, #kop2:checked ~ div #ill_b, #kop3:checked ~ div #stereo_b,
#hash:checked ~ div #confirmation,
#gb1:checked ~ div #guest, #gb2:checked ~ div #thanks,
#gf:checked ~ div #gform
{                                                      
	display: table-cell;
	float: none;
}

#contacts_l h1 {
	margin-bottom:0em;
}

#turnir_l h2 {
  margin-bottom: 0em;
}

#contacts_l h2 {
	margin-top:1.5em;
}

.page_used {
	width: 90.9%;                                                                  
	position: relative;
	padding-top: 1.2em;
	bottom: 0px;
	margin: auto;
	text-align: center;
}

.content {
	display: none;
	margin-left:2em;
}

.hide, .open {
	display: none;
}

.hide:checked ~ .closed {
	display: none;
}

.hide:checked ~ .content {
	display: block;
}

.hide:checked ~ .open {
	display: inline;
	font-weight:bold;
}

.always {
	font-weight:bold;
}

.closed {
	display: inline;
	font-weight:bold;
}

#urgent_info {
	width: 12%;
	vertical-align: top;
	float: left;
}

#urgent_info div {
	background-color: #006633;
	border: 1px solid #330000;
}

#authors {
	width: 12%;
	vertical-align: bottom;
	float: left;
	position: absolute;
	bottom: 0px;
	right: 0px;
}

#bottom_place {
	height: 43px;
	position: absolute;
	left: 0px;
	bottom: 0px;
	right: 0px;
/*	overflow: hidden;*/
}

#poigraem_r a {
	display: block;
	margin-bottom: 1em;
}

#poigraem_r p a {
	display: inline;
}

#poigraem_r a.hide {
	display: none;
}

.fit {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
}

#opisanie_l .c2 {
	margin:2em;
}

#urgent_info p i {
	text-align: right;
	display: block;
}
