<!DOCTYPE html>
<!-- vim:set nowrap: -->
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, interactive-widget=resizes-content, viewport-fit=cover">
<meta name="theme-color" content="#444">
<meta charset="utf-8">
<title>MARIA</title>
<link rel="icon" href="favicon/maria.png">
<link rel="stylesheet" href="/fonts/fonts.css">
<link rel="stylesheet" href="/common/client.css">
<link rel="stylesheet" href="play.css">
<script defer src="/common/client.js"></script>
<script defer src="data.js"></script>
<script defer src="cards.js"></script>
<script defer src="play.js"></script>
</head>
<body>

<div id="tooltip" class="hide"></div>

<header>
	<div id="toolbar">
		<details>
			<summary><img src="/images/cog.svg"></summary>
			<menu>
				<li><a target="_blank" href="/maria/info/readme.html">Read me!</a>
				<li><a target="_blank" href="/maria/info/diplomacy.html">Diplomacy!</a>
				<li class="separator">
				<li><a target="_blank" href="/maria/info/MariaRules.pdf">Rules</a>
				<li><a target="_blank" href="/maria/info/aid.html">Playing Aid</a>
				<li><a target="_blank" href="/maria/info/cards.html">Political Cards</a>
			</menu>
		</details>
		<button onclick="toggle_pieces()"><img src="/images/earth-africa-europe.svg"></button>
		<button id="shift_button" onclick="toggle_shift()"><img src="/images/all-seeing-eye.svg"></button>
		<details id="subsidy_menu">
			<summary>
				<img src="images/shaking-hands.svg">
			</summary>
			<menu>
				<li id="propose_subsidy_menu" onclick="propose_subsidy()">Propose subsidy
				<li id="cancel_subsidy_menu" onclick="cancel_subsidy()">Cancel subsidy
				<li class="separator">
				<li id="propose_deal_menu" onclick="propose_deal()">Propose deal
				<li class="separator">
				<li id="ping_menu" onclick="send_action('ping')">Ping player
			</menu>
		</details>
	</div>
</header>

<aside>
	<div id="roles"></div>
	<div id="log"></div>
</aside>

<main>

<div id="mapwrap">
	<div id="map">
		<svg id="roads" width="2485" height="1654" style="position:absolute;z-index:1;pointer-events:none;"></svg>
		<div id="spaces"></div>
		<div id="markers"></div>
		<div id="pieces"></div>
		<div id="missing_france" class="hide"></div>
		<div id="missing_prussia" class="hide"></div>
		<div id="missing_pragmatic" class="hide"></div>
		<div id="missing_austria" class="hide"></div>
	</div>
</div>

<div id="power_panel_list">

	<!-- Louis XV -->

	<div id="hand_france_panel" class="panel">
	<div id="hand_france_header" class="panel_header">France</div>
	<div id="hand_france" class="panel_body">
	</div>
	</div>

	<div id="hand_bavaria_panel" class="panel">
	<div id="hand_bavaria_header" class="panel_header">Bavaria</div>
	<div id="hand_bavaria" class="panel_body">
	</div>
	</div>

	<!-- Frederick -->

	<div id="hand_prussia_panel" class="panel">
	<div id="hand_prussia_header" class="panel_header">Prussia</div>
	<div id="hand_prussia" class="panel_body">
	</div>
	</div>

	<div id="hand_saxony_panel" class="panel">
	<div id="hand_saxony_header" class="panel_header">Saxony</div>
	<div id="hand_saxony" class="panel_body">
	</div>
	</div>

	<div id="hand_pragmatic_panel" class="panel">
	<div id="hand_pragmatic_header" class="panel_header">Pragmatic Army</div>
	<div id="hand_pragmatic" class="panel_body">
	</div>
	</div>

	<!-- Maria Theresa -->

	<div id="hand_austria_panel" class="panel">
	<div id="hand_austria_header" class="panel_header">Austria</div>
	<div id="hand_austria" class="panel_body">
	</div>
	</div>

	<!-- Political Display -->

	<div id="political_panel" class="panel">
	<div id="political_header" class="panel_header">Political Display</div>
	<div id="political_body">
		<div id="pd_main">
			<div id="political_display">
				<div id="pol_tracks"></div>
				<div class="pc_pile card_pile" id="placed_prussia"></div>
				<div class="pc_pile card_pile" id="placed_france"></div>
				<div class="pc_pile card_pile" id="placed_pragmatic"></div>
				<div class="pc_pile card_pile" id="placed_austria"></div>
			</div>
		</div>
		<div id="pd_deals">
			<div class="deal" id="subsidy_list"></div>
			<div class="deal" id="active_deal_list"></div>
			<div class="deal" id="proposed_deal_list"></div>
		</div>
		<div id="pd_cards">
			<div id="pc_deck" class="card_pile"></div>
			<div id="pc_show_1"></div>
			<div id="pc_show_2"></div>
		</div>
	</div>
	</div>

</div>

<div id="discard_pile_panel" class="panel">
<div id="discard_pile_header" class="panel_header">Decks &amp; Discard Piles</div>
<div id="discard_pile_body" class="panel_body">
	<div class="card_pile" id="discard_1"></div>
	<div class="card_pile" id="discard_2"></div>
	<div class="card_pile" id="discard_3"></div>
	<div class="card_pile" id="discard_4"></div>
</div>
</div>

</main>

<footer id="status"></footer>

<dialog id="propose_deal_dlog">
	<form id="propose_deal_form">
		<select name="a_power" onchange="update_deal_options()">
			<option value="0">France</option>
			<option value="1">Prussia</option>
			<option value="2">Pragmatic Army</option>
			<option value="3">Austria</option>
			<option value="4">Bavaria</option>
			<option value="5">Saxony</option>
		</select>
		<select name="a_turn">
			<option value="1">Turn 1</option>
			<option value="2">Turn 2</option>
			<option value="3">Turn 3</option>
			<option value="5">Turn 4</option>
			<option value="6">Turn 5</option>
			<option value="7">Turn 6</option>
			<option value="9">Turn 7</option>
			<option value="10">Turn 8</option>
			<option value="11">Turn 9</option>
			<option value="13">Turn 10</option>
			<option value="14">Turn 11</option>
			<option value="15">Turn 12</option>
		</select>
		<p>
		<label id="a_politics_label"><input type="checkbox" name="a_phase" value="1" id="a_phase_politics">Politics</label>
		<label><input type="checkbox" name="a_phase" value="4" id="a_phase_movement">Movement</label>
		<label><input type="checkbox" name="a_phase" value="16" id="a_phase_combat">Combat</label>
		<label><input type="checkbox" name="a_phase" value="8" id="a_phase_retreat">Retreat</label>
		<label id="a_hussars_label"><br><input type="checkbox" name="a_phase" value="2" id="a_phase_hussars">Hussars</label>
		<p>
		<textarea name="a_promise" placeholder="Promise..." rows=3 cols=40></textarea>

		<p style="text-align:center">
		- &#x2766; -

		<p>
		<select name="b_power" onchange="update_deal_options()">
			<option value="0">France</option>
			<option value="1">Prussia</option>
			<option value="2">Pragmatic Army</option>
			<option value="3">Austria</option>
			<option value="4">Bavaria</option>
			<option value="5">Saxony</option>
		</select>
		<select name="b_turn">
			<option value="1">Turn 1</option>
			<option value="2">Turn 2</option>
			<option value="3">Turn 3</option>
			<option value="5">Turn 4</option>
			<option value="6">Turn 5</option>
			<option value="7">Turn 6</option>
			<option value="9">Turn 7</option>
			<option value="10">Turn 8</option>
			<option value="11">Turn 9</option>
			<option value="13">Turn 10</option>
			<option value="14">Turn 11</option>
			<option value="15">Turn 12</option>
		</select>
		<p>
		<label id="b_politics_label"><input type="checkbox" name="b_phase" value="1" id="b_phase_politics">Politics</label>
		<label><input type="checkbox" name="b_phase" value="4" id="b_phase_movement">Movement</label>
		<label><input type="checkbox" name="b_phase" value="16" id="b_phase_combat">Combat</label>
		<label><input type="checkbox" name="b_phase" value="8" id="b_phase_retreat">Retreat</label>
		<label id="b_hussars_label"><br><input type="checkbox" name="b_phase" value="2" id="b_phase_hussars">Hussars</label>
		<p>
		<textarea name="b_promise" placeholder="Promise..." rows=3 cols=40></textarea>

		<br>
		<br>
		<div style="text-align:right">
			<button onclick="propose_deal_cancel(event)">Cancel</button>
			<button onclick="propose_deal_submit(event)">Submit</button>
		</div>

	</form>
</dialog>

</body>