/* CSS by Gramkraxor */

#footer {
	font-family: 'Ubuntu Mono', 'Roboto Mono', 'Droid Sans Mono', 'Consolas', monospace;
	font-weight: 400;
	position: absolute;
	bottom: 8px;
	left: 0;
	right: 0;
	opacity: 0.5;
	font-size: 12px;
	line-height: 12px;
	text-align: center;
}

html {
	height: 100%;
	box-sizing: border-box;
}

* {
	font-family: 'Ubuntu Mono', 'Roboto Mono', 'Droid Sans Mono', 'Consolas', monospace;
	color: inherit;
	border-color: inherit;
	font-size: 20px;
	line-height: 20px;
}

body {
	position: relative;
	min-height: 100%;
	margin: 64px;
	margin-bottom: 0;
	background: #FFFFFF;
	color: #000000;
	border-color: #000000;
	font-weight: 700;
}

body.dark {
	background: #000000;
	color: #C0C0C0;
	border-color: #C0C0C0;
}

a {
	color: inherit;
	/*text-decoration: none;*/
}

::selection {
	color: inherit;
	background: #C0C0C0;
}

:focus {
	outline: 0;
}

input {
	box-sizing: border-box;
	border: 0;
	display: inline;
	margin: 0;
	padding: 8px;
	background: 0;
}

#wrapper {
	width: 75vw;
	max-width: 100vh;
	margin: auto;
}

#board {
	cursor: pointer;
	display: flex;
	flex-direction: row;
	/*
	background: #004080;
	*/
	border-style: solid;
	border-width: 3px;
	border-radius: 6px;
}

/*
.col:hover {
	background: #0060C0;
}
*/
body.turn-1:not(.won) .col:hover .p1 + :not(.p1):not(.p2) span,
body.turn-1:not(.won) .col:hover .p2 + :not(.p1):not(.p2) span,
body.turn-1:not(.won) .col:hover :first-child:not(.p1):not(.p2) span {
	background-color: #C0000080;
}
body.turn-2:not(.won) .col:hover .p1 + :not(.p1):not(.p2) span,
body.turn-2:not(.won) .col:hover .p2 + :not(.p1):not(.p2) span,
body.turn-2:not(.won) .col:hover :first-child:not(.p1):not(.p2) span {
	background-color: #FFC00080;
}

.col {
	display: flex;
	flex-direction: column-reverse;
	height: 75vh;
}

.col, .cell {
	width: 100%;
}

.cell {
	height: 100%;
}

.cell span {
	display: block;
	margin: auto;
	border-radius: 1024px;
	/*
	background: #FFFFFF;
	*/
	width:  9.375vh;
	height: 9.375vh;
	margin-top: 1.5625vh;
	/*
	border: 0px solid #FFC000;
	*/
	border-style: solid;
	border-width: 3px;
}

/* Cell occupation */
.red .p1 span, .black .p2 span {
	background: #C00000;
}

.red .p2 span, .black .p1 span {
	background: #FFC000;
}

.p1 span, .p2 span {
	animation: 0.125s ease-in move;
}

.select span {
	border-width: 0.78125vh;
	margin-top: 0.78125vh;
}

@keyframes move {
	0%, 100% {
		border-width: 1.5625vh;
		margin-top: 0;
	}
}

#options {
	text-align: center;
	margin-top: 8px;
	display: flex;
	flex-direction: row;
}

#options > * {
	cursor: pointer;
	padding: 8px;
	display: block;
	width: 100%;
	/*
	background: #C09000;
	*/
	border-style: solid;
	border-width: 3px;
	border-radius: 6px;
}

#options > :not(:first-child) {
	margin-left: 8px;
}

#options > :hover {
	/*
	background: #FFC000;
	*/
	background: #0060C080;
}

#turn {
	margin-bottom: 6px;
}
