@charset "UTF-8";

body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.back-button {
    display: inline-block;
    padding: 3px 6px;
	margin-bottom: 10px;
    border: 1px solid black;
    text-decoration: none;
}

#board {
    display: grid;
    grid-template-columns: repeat(5, 65px);
}

#submit{
	display: flex;
}

.card {
    width: 60px;
    height: 60px;
	margin: 5px;
	background-color: white;
}

.selectcard {
    width: 60px;
    height: 60px;
	margin: 5px;
	opacity: 1;
	color: black;
	font-size: 45px;
	border-color: black;
	background-color: white;
}

#selected{
	display: flex;
	margin-top: 10px;
}

.limit{
	background-color: grey;
}

.used {
    opacity: 1;
    color: black;
    background-color: white;
    border-color: red;
	border-width: 3px;
}

.selectedanimation {
    animation: select 0.5s linear infinite;
}

.hitnum{
	opacity: 1;
	color: black;
	background-color: white;
	border-color: gold;
	border-width: 3px;
}

@keyframes select{
	0%{
		border-width: 5px;
	}
	100%{
		border-width: 1px;
	}
}

#reset{
	margin-right: 10px;
}

#solve{
	margin-right: 10px;
}

#historyTable {
    border-collapse: collapse;
    margin-top: 20px;
}

#historyTable th,
#historyTable td {
    border: 1px solid black;
    padding: 8px 16px;
    text-align: center;
}

#restart {
    display: none;
}

#candidateArea {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;

    max-height: 400px;
    overflow-y: auto;
}

#candidateArea span {
    border: 1px solid #aaa;
    text-align: center;
    padding: 3px;
}