@font-face {
	font-family: Inter;
	src: url("./assets/fonts/Inter-VariableFont_slnt\,wght.ttf");
}
/* Null style------------------------------------------- */
:root {
	--first-color: #4b224b;
	--second-color: #5f3769;
}
*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	border: 0;
	box-sizing: border-box;
}
a {
	text-decoration: none;
}
ul,
ol,
li {
	list-style: none;
}
img {
	vertical-align: top;
}
h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: inherit;
	font-size: inherit;
}
html,
body {
	height: 100%;
	background:var(--first-color);
	font-size: 20px;
	line-height: 2em;
	color: #fff;
	font-weight: 400;
	font-family: Inter;
	scroll-behavior: smooth;
}
.wrapper {
	min-height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Header------------------------------------------- */

.header {
	position:relative;
	padding: 1rem;
	display: flex;
	justify-content: space-around;
	background-color: var(--second-color);
}
.header__title {
	font-size: 1.5rem;
	font-weight: bold;
	margin: 0.5rem auto 0.5rem auto;
	text-align: center;
}
@media (max-width: 320px) {
	.header__title {
	font-size: 1rem;
	}
}

/* Main------------------------------------------- */

.main {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}
.main__message {
	color:yellow;
	font-weight: 700;
	height: 50px;
	margin-top: 20px;
}
.main__start {
	color: red;
}
.main__game {
	width:300px;
	height: 300px;
	display: flex;
	flex-wrap: wrap;
	margin: 20px 0;
	outline: 3px solid var(--first-color);

}
.main__cell {
	width: 100px;
	height: 100px;
	border: 2px solid var(--first-color);
	cursor: pointer;
	background-color: #fff;
}
.button {
	border: 1px solid #fff;
	color:#fff;
	padding: 10px 16px;
	margin-bottom: 20px;
	font-size: 20px;
	border-radius: 10px;
	cursor: pointer;
	transition: 0.5s;
	box-shadow: 0px 4px 2px 0px #000;
	transform: translateY(-2px);
}
.button:hover,
.button:active {
	transform: translateY(2px);
	box-shadow: none;
}

.main__button {
	background-color: darkgreen;
}

.main__records-button {
	background-color: blue;
}

.active {
	background-color: lawngreen;
}
.circle {
	width: 100%;
	height: 100%;
	stroke-dasharray: 283;
	stroke-dashoffset: 283;
	animation: draw 1s forwards;
}
.cross {
	width: 100%;
	height: 100%;
}
.first {
	stroke-dasharray: 125;
	stroke-dashoffset: 125;
	animation: draw 0.6s forwards;
}
.second {
	stroke-dasharray: 125;
	stroke-dashoffset: 125;
	animation: draw 0.6s 0.6s forwards;
}
@keyframes draw {
	100% {
		stroke-dashoffset: 0;
	}
}
.red {
	color: red;
}
.blue {
	color: blue;
}
.main__records-container{
	position: absolute;
	z-index: 3;
	top: 5%;
	left: -100%;
	transition: 0.5s;
	background-color: var(--first-color); 
	outline: 3px solid var(--first-color);
}
.main__records-container.open{
	left: 10vw;
}
@media (max-width: 1040px) {
	.main__records-container.open{
	left: 50%;
   margin-right: -50%;
	transform: translate(-50%, 0);
	box-shadow: 0 0 0 10000px rgba(0,0,0,0.5);
	}
}
.main__records-table {
	border-collapse: collapse;
}
.table-head,
.table-data {
	min-width: 250px;
	height: 35px;
	border: 2px solid var(--first-color);
	cursor: pointer;
}
.table-head {
	height: 40px;
	background-color: var(--second-color);
	color: #fff;
	display: flex;
}
.table-data {
	background-color: #fff;
	color: var(--first-color);
	text-align: left;
	padding: 0px 5px;
	font-size: 16px;
	line-height: 1.4em;
}
.close {
	margin: 3px 20px 0px 3px;
	transition: 0.3s;
	
	filter: invert(0%) sepia(0%) saturate(700%) hue-rotate(90deg) brightness(92%) contrast(10%); 
}

.close:hover,
.close:active {
	filter: invert(26%) sepia(15%) saturate(638%) hue-rotate(5deg) brightness(100%) contrast(100%); 
	cursor: pointer;
	transform: scale(1.1);
}
.main__clear-button {
	width: 100px;
	height: 30px;
	margin: 10px 75px 0px 75px;
	padding: 5px 0px;
	font-size: 1rem;
	background-color: var(--second-color);
	box-shadow: 0px 2px 2px 0px #000;
}

/* Footer------------------------------------------ */

.footer {
	background-color: var(--second-color);
}
.footer__list {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
}
.footer__item {
	flex: 0 1 33.3333%;
	text-align: center;
	font-size: 1.5rem;
}
@media (max-width: 768px) {
	.footer__item {
	flex: 1 1 100%;
	}
}
.footer__link-author {
	color: #fff;
}



