:root {
	--width: 600px;
	--height: 600px;
	--baseBg: #ECFBFB;
	--percent: calc((var(--width) / 8));
	--columns: 8;
	--hundred: 100%;
	--position: calc((var(--hundred) / 7));
	--rows: 8;
	--boardColorDark: #264C51;
	--boardColorLight: #F7F7D9;
	--boardWood: #fad194;
}
*, *::before, *::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html, body {
	width: 100%;
	height: 100%;
	background-color: var(--baseBg);
	font-family: 'Poppins', sans-serif;
}

.wrap {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
    position: relative;
}

.wrap .base {
	position: relative;
	width: 680px;
	height: 680px;
	display: grid;
	place-items: center;
	background-color: var(--boardWood);
	border-radius: 7px; 
	box-shadow: 2px 2px 2px rgba(255,255,255,0.5) inset,
				-2px -2px 3px rgba(0,0,0,0.6) inset,
				3px 3px 3px rgba(0,0,0,0.5);
    background-image: url(../assets/wood04.png);
    background-size: contain;
}

.base .checker-container {
	width: var(--width);
	background: 
	repeating-conic-gradient(			
		var(--boardColorDark) 0% 25%, 
		var(--boardColorLight) 0% 50%
	) 
        var(--percent) var(--percent) / 
        calc(var(--percent) * 2) calc(var(--percent) * 2);
	height: var(--height);
	display: grid;
	grid-template-columns: repeat(var(--columns), 1fr);
	grid-template-rows: repeat(var(--rows), 1fr);
	box-shadow: 4px 4px 2px rgba(0,0,0,0.6) inset,
				-2px -2px 2px rgba(0,0,0,0.4),
				2px 2px 2px rgba(255,255,255,0.5);
}

.base .checker-container .tile {
	width: 100%;
	height: 100%;
	background-color: transparent;
	grid-column-start: var(--x);
	grid-row-start: var(--y);
}

.base .checker-container .circle-piece,
.wrap .eliminate-container .circle-piece {
	position: relative;
	width: calc(100% - 10px);
	height: calc(100% - 10px);
	background-color: var(--bg);
	border-radius: 50%;
	place-self: center;
	box-shadow: -2px -2px 2px rgba(0,0,0,0.5) inset,
				2px 2px 2px rgba(255,255,255,0.6) inset,
				1px 1px 2px rgba(0,0,0,0.6);
	transition: 200ms ease;
	grid-column-start: var(--x-col);
	grid-row-start: var(--y-row);
	display: grid;
	place-items: center;
	isolation: isolate;
	opacity: 1;
}

.base .checker-container .circle-piece p {
	position: absolute;
	line-height: 1;
	text-align: center;
	font-size: 22px;
}

.base .checker-container .circle-piece[data-king="true"]::before {
	background-color: var(--king);
	animation: rotateBG 4s linear infinite;
}

@keyframes rotateBG {
	100% {
		filter: hue-rotate(360deg);
	}
}

.wrap .eliminate-container {
	position: absolute;
	top: 50px;
	left: 20px;
	max-width: calc(600px / 2 + 20px);
	min-width: calc(600px / 8);
	min-height: calc(600px / 8);
	padding: 20px;
	background-image: url(../assets/wood04.png);
	background-color: var(--boardWood);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 2px;
	border-radius: 7px;
	box-shadow: 2px 2px 2px rgba(255,255,255,0.5) inset,
				-2px -2px 3px rgba(0,0,0,0.6) inset,
				2px 2px 3px rgba(0,0,0,0.5);
}

.wrap .eliminate-container::before {
	position: absolute;
	content: '';
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	top: 10px;
	left: 10px;
	border-radius: 7px;
	box-shadow: 3px 3px 2px rgba(0,0,0,0.5) inset,
				-1px -1px 2px rgba(0,0,0,0.4),
				1px 1px 2px rgba(255,255,255,0.3);
}

.wrap .eliminate-container h3 {
	position: absolute;
	width: fit-content;
	translate: 0 -100%;
	top: 0;
	left: 0;
}

.wrap .eliminate-container .circle-piece {
	grid-row-start: unset;
	grid-column-start: unset;
	place-self: unset;
	width: calc((600px / 8) - 10px);
	height: calc((600px / 8) - 10px);
	position: relative;
}

#player-1 .circle-piece {
	background-color: crimson;
}

#player-2 .circle-piece {
	background-color: #ddd;
}

#player-2 {
	top: unset;
	bottom: 50px;
}


.base .checker-container .circle-piece::before,
.wrap .eliminate-container .circle-piece::before {
	position: absolute;
	content: '';
	width: calc(100% - 20px);
	height: calc(100% - 20px);
	top: 10px;
	left: 10px;
	border-radius: 50%;
	box-shadow: -1px -1px 1px rgba(0,0,0,0.4),
				1px 1px 1px rgba(255,255,255,0.4),
				2px 2px 2px rgba(0,0,0,0.6) inset;
	background-color: inherit;
	z-index: -1;
}

.base .checker-container .circle-piece input.radio {
	width: 100%;
	height: 100%;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	z-index: 10
}

.base .checker-container .circle-piece:has(input.radio:checked) {
	width: calc(100% );
	height: calc(100% );
	transition: .2s ease!important;
}

.base .checker-container .circle-piece:has(input.radio:not(:checked)) {
	width: calc(100% - 10px);
	height: calc(100% - 10px);
}

.wrap .base .move-count {
    position: absolute;
	min-width: 200px;
    min-height: 60px;
    background: #dad7aa;
    border-radius: 7px;
    display: grid;
    place-items: center;
    /*padding: 10px 0;*/
    top: 0px;
    left: calc(100% + 10px);
    box-shadow: 1px 1px 2px rgba(255,255,255,0.5) inset,
				-1px -1px 3px rgba(0,0,0,0.6) inset,
				2px 2px 3px rgba(0,0,0,0.5);
}

.wrap .base .move-count h3 {
	line-height: 2;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -2px -2px 1px rgb(255 255 255 / 70%);
    color: #333;
    margin-top: 20px;
}

.wrap .base .move-count label {
	font-size: 14px;
}

.wrap .base .move-count select {
	background: crimson;
    padding: 5px 10px;
    border-radius: 5px;
    border: 0;
    outline: none;
    min-width: 100px;
    font-weight: bold;
    color: white;
    font-size: 16px;
    box-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -1px -1px 1px rgb(255 255 255 / 50%);
}

.wrap .base .move-count select#option-player1 {
	background-color: #ddd;
	color: black;
}
.wrap .base .move-count.move-player2 {
	top: unset;
	bottom: 0px;
	left: calc(100% + 10px);
	translate: 0 calc(-50%);
}

.wrap .base .move-count button {
	position: absolute;
	min-width: 100px;
	padding:20px;
	border: 0;
	outline: none;
	background-color: #555555;
	border-radius: 7px;
	isolation: isolate;
	bottom: 0;
	left: 50%;
	translate: -50% calc(100% + 10px);
	box-shadow: -1px -1px 2px rgba(0,0,0,0.4),
				 2px 2px 2px rgba(0,0,0,0.5) inset,
				-1px -1px 2px rgba(255,255,255,0.6);
	text-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -1px -1px 1px rgb(255 255 255 / 70%);
	cursor: pointer;
}

.wrap .base .move-count button:not(:disabled):active::before{
	scale: 0.93;
}

.wrap .base .move-count button::before {
	transition: .1s ease;
	position: absolute;
	content: 'End Turn';
	font-weight: 600;
	font-size: 16px;
	display: grid;
	place-items: center;
	width: calc(100% - 12px);
	height: calc(100% - 12px);
	background-color: var(--boardWood);
	background-image: url(../assets/wood04.png);
	top: 6px;
	left: 6px;
	border-radius: 5px;
	box-shadow: -2px -2px 2px rgba(0,0,0,0.5) inset,
				2px 2px 2px rgba(255,255,255,0.5) inset,
				2px 2px 2px rgba(0,0,0,0.6);
}

.wrap .base .move-count .remaining-piece {
	padding: 15px 0;
	margin-top: 20px;
	width: 100%;
	display: grid;
	place-items: center;
	border-top: 1px solid rgba(0,0,0,0.2);
}

.wrap .base .move-count .remaining-piece p {
	font-size: 13px;
	font-weight: 600;
}

.wrap .base .move-count .remaining-piece p code.remaining-count-player1,
.wrap .base .move-count .remaining-piece p code.remaining-count-player2 {
	width: 20px;
	height: auto;
	font-size: 16px;
	background-color: #ddd;
	padding: 5px 10px;
	font-weight: 500;
	border-radius: 7px;
	color: black;
	text-align: center;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.5) inset,
				-1px -1px 1px rgba(0,0,0,0.3),
				1px 1px 1px rgba(255,255,255,0.4);
	text-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -1px -1px 1px rgb(255 255 255 / 70%);
}

.wrap .base .move-count .remaining-piece p code.remaining-count-player2 {
	background-color: crimson;
	color: white;
}

.wrap .base .players-notify {
	position: absolute;
	min-width: 150px;
	min-width: 100px;
	background-color: var(--boardWood);
	background-image: url(../assets/wood04.png);
	border-radius: 10px;
	padding: 0 20px 20px;
	top: 50%;
	left:  0;
	transform: translate(calc(-100% + -10px), -50%);
	box-shadow: -2px -2px 2px rgba(0,0,0,0.5) inset,
				2px 2px 2px rgba(255,255,255,0.5) inset,
				2px 2px 3px rgba(0,0,0,0.5);
}

.wrap .base .players-notify .header {
	width: 150px;
	padding: 10px 0;
	display: flex;
	align-items: center;
	font-weight: 500;
	color: #333;
	position: relative;
	text-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -1px -1px 1px rgb(255 255 255 / 70%);
}

.wrap .base .players-notify .header::before, 
.wrap .base .players-notify .header::after {
	position: absolute;
	content: '';
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: var(--color);
	top: 50%;
	right: 0%;
	transform: translate(0, -50%);
	box-shadow: -1px -1px 1px rgba(0,0,0,0.4) inset,
				1px 1px 1px rgba(255,255,255,0.4) inset,
				1px 1px 1px rgba(0,0,0,0.7);
}

.wrap .base .players-notify .header::after {
	width:  20px;
	height:  20px;
	right: 5px;
	box-shadow: 1px 1px 1px rgba(0,0,0,0.6) inset,
				1px 1px 1px rgba(255,255,255,0.4),
				-1px -1px 2px rgba(0,0,0,0.4);
}

.wrap .base .players-notify .players {
	width: 150px;
	padding: 10px 30px;
	border-radius: 10px;
	/*background-color: var(--boardColorDark);*/
	background-color: var(--bgColor);
	box-shadow: -1px -1px 2px rgba(0,0,0,0.4),
				 2px 2px 2px rgba(0,0,0,0.5) inset,
				1px 1px 2px rgba(255,255,255,0.6);
}

.wrap .base .players-notify .players p {
	font-weight: 600;
	text-align: center;
	color: var(--color);
	font-size: 18px;
	text-shadow: 1px 1px 1px rgb(0 0 0 / 60%), -1px -1px 1px rgb(255 255 255 / 70%);
}

.float {
	z-index: 10!important;
}

.eliminate {
	transition: .3s .2s ease!important;
	opacity:  0!important;
}

.elim {
	animation: eliminatePiece .7 ease-in-out forwards;
}


