@import url("/style_body.css");
@import url("/style_text.css");
@import url("/style_popup.css");
@import url("/style_forum.css?version=1");
@import url("/style_game.css");
@import url("/style_menu.css");

/*=============== Default ====================================================*/

i, a, ul, li, ol, p, form, img, table{
	border: 0px;
	margin: 0px;
	padding: 0px;
    list-style: none;
}

table, td.grand {
	width: 100%;
}

td {
	border: 0px;
	padding: 5px;
}

input, textarea, select, .border_inset  {
	border: 2px solid #888;
	border-radius: 4px;
	background-color: #fff;
}

/*=============== Common ====================================================*/

.invisible {
	display: none;
}
.selectable_list_item {
	border-radius: 6px;
	cursor: pointer;
}
.selectable_list_item:hover {
	background-color: #ddd;
	box-shadow: 0px 0px 3px #000;
}

.indicated_list_item:hover{
    border-radius: 6px;
    cursor: not-allowed;
    background-color: #eee;
    box-shadow: 0px 0px 3px #333;
}

/*=============== Левый экран с пользователями и играми ======================*/

	#user_top {
		position: relative;
        -webkit-transition: all 2s;
        transition: all 2s;
        height: 500px;
		min-width: 250px;
	}
		#user_top_middle {
			-webkit-transition: all 2s;
			transition: all 2s;
			display: block;
			overflow: auto;
			scroll-behavior: smooth;
			height: 480px;
			padding: 20px 10px 0px 6px;
		}

		.selected_layout_item {
			border-radius: 6px;
			background-color: #ccc;
			box-shadow: 0px 0px 3px #000;
		}

    #gameCheckboxScrollContainer {
        display: inline-flex;
        flex-direction: column;
        position: absolute;
        padding: 3px;
		top: 0px;
        right: 0px;
		width: 22px;
        height: 100%;
    }
	#gameCheckboxScrollContainer .gameCheckbox {
        position: absolute;
		transition: left 0.5s;
    }
	#user_top .messageLists .openedGameCheckbox{
		opacity: 0.2;
	}
    .gameCheckboxContainer{
		width: 100%;
		display: flex;
        flex-direction: row-reverse;
		}
        .gameCheckbox{
        	margin: 2px;
			padding: 2px;
        	border: 2px solid #555;
        	background-color: #bbb;
        	border-radius: 4px;
            display: inline-flex;
        }
            .gameCheckbox li{
                width: 10px;
                height: 6px;
				margin: 0px;
				padding: 0px;
                box-shadow: 0px 0px 3px #222;
                border-radius: 3px;
				display: inline-block;
            }
            .gameCheckbox .openedGameCheckbox{
                background-color: rgb(0,254,12);
            }
            .gameCheckbox .wonGameCheckbox{
                background-color: rgb(63,72,204);
            }
            .gameCheckbox .deletedGameCheckbox{
                background-color: rgb(255, 0, 0);
            }

/*=============== Список игр =================================================*/

  #box_game {
		min-width: 750px;
		display: flex;
		flex-direction: column;
	}
			.winPreshowGameItem {
					width: 65%;
					margin-bottom: -20px;
			}
			.winPreshowGameItem:last-child {
					margin-bottom: 5px;
			}
			.winPreshowGameItem:hover {
					z-index: 1111;
			}
			.winPreshowGameItem a > img {
				width: 240px;
				height: 160px;
				margin: 5px;
				border: 2px solid #ccc;
				border-radius: 4px;
			}
			.winPreshowGameItem.chet   {text-align: left; padding-right: 25px; align-self: flex-start;}
			.winPreshowGameItem.nechet {text-align: right; padding-left: 25px; align-self: flex-end;}
			.winPreshowGameItem a      {display: inline-block;}
			.winPreshowGameItem.chet img.border_inset   {float: left;}
			.winPreshowGameItem.nechet img.border_inset {float: right;}
			.winPreshowGameItem.chet .list   {position: absolute; right: -170px;}
			.winPreshowGameItem.nechet .list {position: absolute; left: -170px;}
			.list {
				top: 10px;
				width: 170px;
				text-align: left;
			}
			div.winPreshowGameItem div.list ul:hover {
				color: #fff;
				text-shadow: #000 0px 0px 8px;
				cursor: pointer;
			}
			div.winPreshowGameItem ul.line_game_nechet {
				margin-left: 20px;
			}
			div.winPreshowGameItem ul li {
				margin-top: -4px;
				vertical-align: middle;
				display: inline-block;
			}
			.record {
				position: absolute;
				max-width: 210px;
				text-align: left;
				font-size: 10pt;
				top: -3px;
				border: 3px solid #fff; border-top: 0px;
				background-color: #eee;
				padding: 4px;
				border-radius: 0px 0px 7px 7px;
				cursor: default;
			}
			.record.chet {
				left: 20px;
			}
			.record.nechet {
				right: 20px;
			}
				.record div {
					-webkit-transition: all 1s ease;
					transition: all 1s ease;
					border: 2px solid #555;
					background-color: #bbb;
					margin: -10px 0px 0px 0px;
					padding: 6px;
					overflow: hidden;
					height: 10px;
					cursor: default;
					border-radius: 4px;
				}
				.record div:hover {
					height: 180px;
				}
				.record:first-of-type ul:first-of-type img{
					position: absolute;
					top: -15px;
					left: 10px;
				}
				.record:first-of-type ul:first-of-type {
					font-weight: bold;
					margin-left: 10px;
					margin-bottom: 13px;
				}
				.record ul:nth-child(even) {
					margin-left: 20px;
				}
				.record ul {
					margin-top: -5px;
					margin-bottom: -5px;
				}

/*=============== Настройки пользователя =====================================*/

	#windowSettingsProfile {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: repeat(2, 1fr);
		grid-gap: 10px 10px;
	}
		#windowSettingsProfile form {
			display: grid;
			grid-template-columns: 8fr 1fr;
			grid-template-rows: repeat(3, 1fr);
			grid-gap: 4px 4px;
			grid-template-areas: "first ."
			                     "second vk"
								 "third enter";
		}
		#windowSettingsProfile form .k_vk           {grid-area: vk;}
		#windowSettingsProfile form .k_enter        {grid-area: enter;}
		#windowSettingsProfile form :nth-of-type(1) {grid-area: first;}
		#windowSettingsProfile form :nth-of-type(2) {grid-area: second;}
		#windowSettingsProfile form :nth-of-type(3) {grid-area: third;}

/*=============== Окно регистрации пользователя ==============================*/

	#windowRegistration {
		padding: 40px 0px;
		display: grid;
		grid-template-columns: 1fr 2fr 2fr;
		grid-gap: 40px 10px;
	}
		#windowRegistration .k_enter {
			grid-column: 3 / 4;
			grid-row: 6 / 7;
		}
		#windowRegistrationText {
			grid-column: 1 / 4;
			grid-row: 1 / 2;
		}

/*=============== Кнопки дополнительные ==================================================*/

.k_smile, .k_enter, .k_close, .k_vk, .k_reg {
	display: block;
	height: 20px;
    width: 20px;
    padding: 2px;
	margin: 2px;
	border: 2px solid #555;
	background-color: #bbb;
	border-radius: 4px;
	float: right;
}
.k_reg {
	height: 52px;
}
.k_vk{
	float: right;
	background: #bbb url('img/k_vk.png') 2px 2px no-repeat;
}
.k_smile {
	background: #bbb url('img/k_smile.png') 2px 2px no-repeat;
}
.k_enter {
	background: #bbb url('img/k_enter.png') 2px 2px no-repeat;
}
.k_close {
	background: #bbb url('img/k_close.png') 2px 2px no-repeat;
}

.k_enter:hover, .k_close:hover, .k_smile:hover, .k_vk:hover, .key:hover {
	background-color: #ddd;
	cursor: pointer;
}

#k_pauseGame, #k_endGame, #k_sound, #k_revert{
	display: none;
}
.submit {
	filter: alpha(Opacity=0);
	cursor: pointer;
	opacity: 0;
	width: 25px;
}

::-webkit-file-upload-button {
  display: none;
}
