/*Style Sheet for Aliens Board Game */

/* root used to declare global variables */
:root {
	--color_hud: #00D100; /* #AAFF00; /* bright green */
	--num_map_cols: 5;
	--num_map_rows: 5;
}

body{
	padding: 20px 20px 20px 20px;
	background-color: black;
	color: dimgray;
	font-family: serif;
	text-align: center;
	-webkit-user-select: none;
  	-ms-user-select: none;
  	user-select: none;
  	opacity: 0;
	animation: fadeIn 4s ease-in-out forwards;
}

h1, h2 {
	color: var(--color_hud);
}

#container {
	position: fixed;
	width: 93vw;
	height: 100vh;
	/* max-width: 1600px;
	 max-height: 800px; */
	margin: 2vmax;
	padding: 0;
	box-sizing: border-box;
	overflow: auto; /*creates scroll bars */
	/*border: 3px solid var(--color_hud);*/
}

#top_holder {
	position: relative;
	width: 90%;
	aspect-ratio: 5 / 1;
	padding: 0;
	margin: auto;
	margin-top: 1%;
	margin-bottom: 2%;
	box-sizing: border-box;
	/* display: flex;
	align-content: center; */

	
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-template-rows: repeat(1, 1fr);
	grid-gap: 1%; 
	/* border: 3px solid yellow; */
}

#alien_soundwave:hover {
  cursor: pointer;
}

#marine_soundwave:hover {
  cursor: pointer;
}

#alien_deck {
	position: relative;
	aspect-ratio: 2.5 / 3.5;
	display: flex;
	justify-content: center;
	align-items: center;
	/* border: 3px solid var(--color_hud); */
}


#alien_deck img{
	width: 100%;
	height: 100%;
	z-index: 2;
	filter: drop-shadow(5px 5px 5px dimgray);
} 

.vp_holder {
	position: relative;
	aspect-ratio: 2.5 / 3.5;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-template-rows: repeat(2, 1fr);
	grid-gap: 1%; 
	place-items: center;
	font-size: 10vh;

}

.vp_holder img {
	width: 50%;
	height: auto;
	z-index: 2;

}

#map_holder {
	position: relative;
	width: 90%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: auto;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(var(--num_map_cols), 1fr);
	grid-template-rows: repeat(var(num_map_rows), 1fr);
	grid-gap: 0px;
	/*border: 3px solid hotpink;*/
}

.map_tile {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	/* border: 3px solid blue; */
}

.tile_image {
	z-index: 1;
}

.hidden img {
	filter: grayscale(100%);
	opacity: 20%;
}

.revealed:hover {
	cursor: crosshair;
}

.map_tile img{
	width: 100%;
	height: 100%;

}

.token {
	position: absolute;
	cursor: move;
	z-index: 100;
}

.modifier {
	position: absolute;
	z-index: 150;
	width:100%;
	aspect-ratio: 1 / 1;
	top: 50%;
	left: 0;
}

.marine {
	width: 15%;
	aspect-ratio: 3 / 5;
}

.alien {
	width:25%;
	aspect-ratio: 1 / 1;
}

.encounter {
	width:17.5%;
	aspect-ratio: 1 / 1;
}

.hdoor {
	width: 75%;
	aspect-ratio: 5 / 1;
}

.vdoor {
	height: 85%;
	aspect-ratio: 1 / 5;
}

.gear {
	width: 25%;
	aspect-ratio: 1 /1;

}

.dice {
	width: 15%;
	aspect-ratio: 1 / 1;
}

.ui-draggable-dragging {
	opacity: 50%;
}

#ap_holder {
	position: relative;
	width: 90%;
	aspect-ratio: 32 / 1;
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	grid-template-rows: repeat(1, 1fr);
	/* grid-gap: 1%; */
	/* border: 3px solid yellow;*/
}

.ap_button {
	position: relative;
	aspect-ratio: 4.5 / 1;
	width: 80%;
	justify-content: center;
	align-items: center;
	border: 3px solid black;
	background: url("images/apready.png");
	background-size: 100%;
	background-repeat: no-repeat;
}

.used {
	background: url("images/apused.png");
	background-size: 100%;
	background-repeat: no-repeat;
}

#char_holder {
	position: relative;
	width: 90%;
	aspect-ratio: 4 / 1;
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(1, 1fr);
	grid-gap: 1%;
	/*border: 3px solid yellow;*/
}

.char_card {
	position: relative;
	aspect-ratio: 2.5 / 3.5;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	/* border: 3px solid var(--color_hud);*/
}

.char_card img{
	width: 100%;
	height: 100%;
	z-index: 2;

}

.unknown_char img {
	filter: grayscale(100%);
	opacity: 50%;
}

.ammo {
	width:17.5%;
	aspect-ratio: 1 / 1;
}

.wound
{
	width:35%;
	aspect-ratio: 1 / 1;
}

.jammed
{
	width:85%;
	aspect-ratio: 5 / 1;
}

.tip {
    display: none; /* Hidden by default */
    position: absolute;
    background-color: white;
    color: black;
    white-space: nowrap;
    padding: 2px 2px;
    border-radius: 4px;
    z-index: 1000;
    width: 90%;
    font-weight: bold;
}

#button_holder {
	position: relative;
	width: 90%;
	height: auto;
	/*aspect-ratio: 1 / 1;*/
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(1, 1fr); 
	grid-gap: 1%;
	/*border: 3px solid yellow;*/
}

.button_box {
	position: relative;
	width: 22.5%;
	height: auto;
	/*aspect-ratio: 1 / 1;*/
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-template-rows: repeat(2, 1fr); 
	grid-gap: 1%;
}

.draw_gear_button {
	background: yellow;
	color: 3px solid black;
	font-weight: 600;
}
.draw_tact_button {
	background: var(--color_hud);
	color: 3px solid black;
	font-weight: 600;
}

#hand_holder {
	position: relative;
	width: 90%;
	height: auto;
	/*aspect-ratio: 1 / 1;*/
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-rows: repeat(1, 1fr); 
	grid-gap: 1%;
	/*border: 3px solid yellow;*/
}

.card_holder {
	position: relative;
	width: 100%;
	height: auto;
	/*aspect-ratio: 1 / 1;*/
	padding: 0;
	margin: auto;
	margin-top: 1%;
	box-sizing: border-box;
	text-align: center;
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	grid-auto-rows: auto;
	/*grid-template-rows: repeat(10, 1fr); */
	grid-gap: 1%;
}

.hand_card {
	position: relative;
	aspect-ratio: 2.5 / 3.5;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	/*border: 3px solid var(--color_hud);*/
}

.hand_card img{
	width: 100%;
	height: 100%;
	z-index: 2;

}

#rules_holder img {
	width: 100%;
	height: auto;
}

a:link {
	color: lightgray;
}

a:visited {
	color: dimgray;
}

@keyframes fadeIn {
	from {opacity: 0;
	}
	to {
		opacity: 1;
	}
}

