/* !---------- Chess Board Styles ---------- */

.square {
	display: flex;
	justify-content: center;
	position: relative;
	align-items: center;
}

.darkSquare {
	background-color: var(--board-dark);
	color: var(--board-light);
}

.lightSquare {
	background-color: var(--board-light);
	color: var(--board-dark);
}

.clickedSquare {
	background-color: #f5f67b;
}

.highlightCircle {
	position: absolute;
	width: 30%;
	height: 30%;
	background-color: rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	pointer-events: none;
}

.highlightRing {
	position: absolute;
	border: 0.4rem solid rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	height: 80%;
	width: 80%;
	pointer-events: none;
}

.square img {
	width: 100%;
	height: 100%;
	position: relative;
	z-index: -1;
}

.piece {
	position: relative;
	z-index: 1;
}

/* !---------- Pawn Promotion Options ---------- */

.options {
	display: none;
	position: fixed;
	z-index: 100;
	background-color: rgba(0, 0, 0, 0.8);
	padding: 1.3rem;
	border-radius: 2rem;
}

.option-content {
	display: grid;
	justify-content: space-around;
	align-content: space-around;
	grid-template-columns: repeat(4, 20%);
	grid-template-rows: repeat(2, 45%);
}

.piece-option {
	cursor: pointer;
	border: 0.1rem solid #fff;
	border-radius: 15%;
	text-align: center;
	color: white;
}

.piece-option img {
	width: 100%;
	height: 100%;
}

.piece-option:hover {
	background-color: #444;
}

#turnDisplay {
	background: var(--bg-primary);
	padding: 8px 7px;
	text-align: center;
	font-weight: 600;
	letter-spacing: 0.5px;
	border-radius: 10px;
}

/* !---------- Media Queries ---------- */

/* Small screens */
@media only screen and (max-width: 790px) {
	.chessboard {
		display: grid;
		grid-template-columns: repeat(8, 12vw);
		grid-template-rows: repeat(8, 12vw);
	}

	.options {
		width: 60vw;
		height: 24vw;
	}
}

/* Large screens */
@media only screen and (min-width: 790px) {
	.chessboard {
		display: grid;
		grid-template-columns: repeat(8, 10vh);
		grid-template-rows: repeat(8, 10vh);
	}

	.options {
		width: 60vh;
		height: 24vh;
	}
}
