@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

:root {
	--background: #7ae;
	--hover: #15a7;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	background-color: var(--background);
	font-family: Rubik Mono One, sans-serif;
	font-size: 14pt;
	height: 100vh;
}

.board {
	position: relative;
	width: 91vmin;
	height: 91vmin;
}

#grid {
	position: absolute;
	z-index: 0;
	display: grid;
	margin-top: 13vmin;
	grid-template-columns: repeat(7, 1fr);
}

.chip {
	width: 13vmin;
	height: 13vmin;
	background-size: cover;
}

@keyframes fall-1{from{transform:translateY(-13vmin);}to{transform:none;}}
@keyframes fall-2{from{transform:translateY(-26vmin);}to{transform:none;}}
@keyframes fall-3{from{transform:translateY(-39vmin);}to{transform:none;}}
@keyframes fall-4{from{transform:translateY(-52vmin);}to{transform:none;}}
@keyframes fall-5{from{transform:translateY(-65vmin);}to{transform:none;}}
@keyframes fall-6{from{transform:translateY(-78vmin);}to{transform:none;}}

#board-image {
	position: absolute;
	z-index: 1;
	margin-top: 13vmin;
	width: 100%;
	height: 78vmin;
}

.overlay {
	position: absolute;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
}

.overlay button {
	width: 13vmin;
	height: 100%;
	border: none;
	border-radius: 7.5vmin;
	background-color: transparent;
	padding: 0;
}

.overlay button:hover:enabled {
	background-color: var(--hover);
}

.overlay button .chip {
	display: none;
	border-radius: 50%;
	width: 10vmin;
	height: 10vmin;
	margin: 1.5vmin;
}

.overlay button:hover:enabled .chip {
	position: absolute;
	top: 0;
	display: block;
}

.player-color {
	background-image: url("chip_red.svg");
}

.bot-color {
	background-image: url("chip_yellow.svg");
}

.popup {
	position: absolute;
	z-index: 100;
	left: 0;
	right: 0;
	top: 40%;
	bottom: 40%;
	background-color: #000a;
	color: white;
	padding: 2%;
}

.popup > * {
	display: flex;
	height: 50%;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.popup button {
	width: 10%;
	margin: 10px;
	border: 2px solid white;
	color: inherit;
	background-color: transparent;
	padding: 5px;
	font-family: inherit;
	font-size: inherit;
}

.popup button:hover {
	background-color: white;
	color: black;
}

#popup-start button {
	min-width: 150px;
}

#popup-end button {
	min-width: 200px;
}

.highlighted {
	animation: blink 1s infinite;
}

@keyframes blink {
	0% {
		filter: none;
	}
	45% {
		filter: none;
	}
	50% {
		filter: brightness(50);
	}
	95% {
		filter: brightness(50);
	}
	100% {
		filter: none;
	}
}
