@import url('https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap');

html, body {width: 100%; height:100%; margin: 0 ;padding: 0; font-family: 'Old Standard TT', serif;}
* {box-sizing: border-box;}

a {text-decoration:none; color: inherit; cursor:pointer;}

h2{
	font-size: 1.2em;
}

.clear {clear:both;}
.only_mobile{display: none !important;}

input[type="button"],input[type="submit"] {color:#000;background-color: rgb(240, 240, 240);}

input, textarea{
	width: 100%;
	padding: 5px;
	font-size: 1em;
	margin: 5px;
	font-family: 'Old Standard TT', serif;
}
textarea{
	height: 200px;
}

.form{
	width:90%;
	max-width:500px;
	margin: auto;
	background: rgba(255, 255, 255, 85%);
    padding: 20px 30px 20px 20px;
    border: 1px solid rgb(43, 43, 43);
	border-radius:20px;
}

.form label {
	display: block;
}

.form label::after {
	content: ":";
}

.form .button{
	width: 100%;
	margin: 5px;
}

.req {
	color: red;
	position: relative;
	top: -0.2em;
}

.button {
    border: 1px solid rgb(43, 43, 43);
    border-radius: 999px;
	padding:15px 30px;
    display: block;
    text-align: center;
    width: fit-content;
    margin: 10px auto;
	background-color: rgb(240, 240, 240);
}

.button:hover {
	background: rgb(43, 43, 43);
	color: rgb(238, 238, 238);
	cursor: pointer;
}


#messages {}
#messages ul {color:#444; text-align:center; list-style:none; background:rgb(239, 239, 239); width:fit-content; width:-moz-fit-content; left:0; right:0; margin:auto; padding: 25px; margin-bottom:15px; border-radius:25px; min-width: 500px; max-width: 100%;}
#messages ul li {}
#m_success {color: #339900;}
#m_notification {color:#3366CC;}
#m_error {color:#FF0000;}

#body {
	width: 100%;
	max-width: 1200px;
	margin: auto;
	color: #424242;
}

#head_logo_link{
	text-align: center;
	font-style: italic;
	display: inline-block;
	width:fit-content;
	margin:25px 0 35px 10px;
	font-size: 1.2em;
}

#head_links {
	width:fit-content;
	text-align:center;
	text-transform: uppercase;
    float: right;
    top: 40px;
    position: relative;
}

#header {
    position: relative;
}

#head_links a {display:inline-block; margin:0 10px; padding:15px 10px;}

#head_links a.active {
	font-weight: bold;
	border-bottom:5px solid #444;
}

#content {margin:50px 0; min-height: calc(100vh - 450px);}
.content {padding:0 20px;}
.ccontent {text-align:center;}

.your_games {width:fit-content; width:-moz-fit-content; margin:25px auto; padding:10px 25px; max-width: 500px;
    width: 95%;
    border: 1px solid rgb(43, 43, 43);
    border-radius: 20px;}
.your_games .button{
	display: inline-block;
	width: 100%;
}

.share_link {margin:25px 0;}
	.share_link span {display:block; margin:10px 0;}
	.share_link a {color:blue;}

h1 {
    text-align: center;
	font-family: 'Old Standard TT', serif;
}

.how_title {
    font-style: italic;
    font-size: 1.2em;
	text-decoration: underline;
}

.game_box{
	border-radius: 5px;
	border: solid 2px #898989;/*#EEE;*/
	padding: 10px;
	margin: 10px 0;
	background-color:#FAFAFA;
}

.title {
	font-weight: bold;
    font-size: 1.1em;
    text-align: left;
	border-bottom: 1px solid #aaa;
    margin-bottom: 5px;
}

.title::after {
    content: ":";
}


#full_message {
    z-index: 1;
    text-align: center;
}

#full_message > div {
    max-width: 400px;
    margin: 200px auto !important;
}




#game {position:relative; margin:0 10px;}

#game_left{
    position: absolute;
    left: 0;
    top: 0;
	margin: 0;
	width:290px;
	z-index: 1;
}

#game_history {
    margin-top: 0;
}

#game_history_data{
	max-height: 60vh;
	overflow: auto;
}

.round {
    border: 1px solid #bbb;
    margin: 2px 0;
		padding:10px;
		background-color:#FEFEFE;
}

.round img {
	max-height: 1.5em;
    max-width: 1.5em;
    vertical-align: middle;
}

.round_round {
    font-weight: bold;
}

#game_center {
	margin:0 300px;
    position: relative;
}

#game_right{
    position: absolute;
    right: 0;
    top: 0;
	margin: 0;
	z-index: 1;
	width:290px;
}

#game_chat {
	margin-top: 0;
}

#game_chats {
	max-height: 500px;
	overflow-y: auto;
}

.chat_user {
    border-bottom: 1px solid #bbb;
    padding: 0 2px;
}

.chat {
    margin-bottom: 5px;
}

#game_cats {
    text-align: center;
}

.game_cats {
    margin: 0 1vw;
    border: 1px solid black;
    width: 48px;
    height: 48px;
    padding: 4px;
    border-radius: 5px;
    display: inline-block;
    vertical-align: middle;
}

.game_cats.active {
	border-color: #339900;
	background-color: #33990022;
}

.game_cats.used {
	opacity: 0.2;
}

.game_cats.used.active {
	border-color: #990000;
	background-color: #99000022;
}

.game_cats img{
	width: 40px;
}

#game_inventory{
	width: 100%;
	display: inline-block;
}

#game_inventory img {
    width: 60px;
	display: inline-block;
}

.inventory_type {
    vertical-align: text-top;
    border: 1px solid #bbb;
	margin: 2px 0;
	padding:10px;
}

.inventory_tiers{
	display: inline-block;
	vertical-align: top;
}

.inventory_tier{
}

.game_button{
	border: solid 1px black;
	background: rgb(202, 202, 202);
	border-radius: 2px;
	margin: 10px;
	padding: 10px;
	width: fit-content;
	display: inline-block;
	cursor:pointer;
}

.game_button.used{
	opacity: 0.2;
}

.game_button.active{
    border-color: #339900;
    background-color: #33990022;
}

#game_proposal{
}

.game_prompt img {
	max-height: 1.5em;
    max-width: 1.5em;
    vertical-align: middle;
}

#game_status{
}

.game_player {
    display: inline-block;
    border: 1px solid lightgray;
    padding: 5px;
	background-color:#FEFEFE;
}

#game_leaderboard .game_player {
    display: block;
}

.has_played .player_status {
	color: green;
}

#game_bid{
	margin-top: 10px;
	margin-bottom: 10px;
}

#game_bid.made_bid{
	opacity: 0.5;
}

.bid_item{
	display: inline-block;
}

.bid_item img {
	max-height: 1.5em;
    max-width: 1.5em;
    vertical-align: middle;
}

#bid_message {
    color: red;
    /*font-size: 1.2em;*/
    font-weight: bold;
}

.valid_check::after{
	content: "X";
	color: red;
}

.valid_check.valid::after{
	content: " ✓";
	color: green;
}

.overlay{
	display: none;
}

.overlay.active{
	display: block;
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.overlay > div{
	margin: 150px 40px;	
    position: sticky;
    top: 100px;
}

#paused{
	z-index: 1000;
}

#paused div{
	/*background: white;
    width: 50%;
    margin: auto;
    top: 200px;
    position: relative;
    text-align: center;
    padding: 40px;
    color: red;
    font-size: 2em;*/
}

#round_info{
	z-index: 100;
}

.dock_tab {
	display: none;
    position: absolute;
    top: 0;
    background: #FAFAFA;
    z-index: 1;
    padding: 3px 3px 0px;
    border: solid 2px #898989;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
	top: -20px;
	white-space: nowrap;
}

#game_right .dock_tab {
	right: calc(100% - 2px);
	transform-origin: bottom right;
	transform: rotate(270deg);
}

#game_left .dock_tab {
	left: calc(100% - 2px);
	transform-origin: bottom left;
	transform: rotate(90deg);
}

.chat_notice {
    color: red;
}




.round_report {
    display: inline-block;
    padding: 10px;
    border: 1px #444 solid;
	vertical-align: top;
}

.round_report > div {
	border-bottom: 1px solid #eee;
}

.detail {
    display: none;
    position: absolute;
}

.detail.active {
    display: block;
}






#footer{
	text-align: center;
	padding:80px 20px;
}


@media (max-width: 1000px){
	html {-webkit-text-size-adjust:100%;}

	.only_mobile{display: inherit !important;}
	.hide_mobile{display: none !important;}

	#head_logo_link{
		width:100%;
	}

	#head_links {
		width:100%;
		float: none;
		top: 0;
	}

	#game_center {margin:auto;}
	.game_box {width:100% !important; position:relative;}
	.inventory_type {
	}

	.overlay > div {
		margin: 150px 0;
	}
	
	#game_left{
		transform: translate(calc(-100% - 10px), 0);
		transition: 0.5s;
	}
	
	#game_left.active{
		transform: translate(0, 0);
	}
	
	#game_right{
		transform: translate(calc(100% + 10px), 0);
		transition: 0.5s;
	}
	
	#game_right.active{
		transform: translate(0, 0);
	}
	
	.dock_tab {
		display: block;
	}
}