<!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 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>
		<details id="subsidy_menu">
			<summary>
				<img src="images/shaking-hands.svg">
			</summary>
			<menu>
				<li id="propose_subsidy_menu" onclick="send_action('propose_subsidy')">Propose subsidy contract
				<li id="cancel_subsidy_menu" onclick="send_action('cancel_subsidy')">Cancel subsidy contract
			</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>
</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="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 style="display:flex;flex-wrap:wrap;gap:18px;margin:18px;">
			<div id="pc_deck" class="card_pile"></div>
			<div id="pc_show" style="display:flex;flex-wrap:wrap;gap:18px;">
			</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>

</body>