@import url(fonts/clear-sans.css);

.logo {
	display: block;
	width: 480px;
	margin: 0 auto;
	text-align: center;
  }


* {
	margin: 0;
	text-align: center;
	padding: 0;
	list-style: none;
	border: none;
	font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
}

a:link {
	text-align: center;
	text-decoration: none;
}

.header {
	width: 480px;
	position: relative;
}

.container {
	width: 480px;
	height: auto;
	margin: 0 auto;
	position: relative;
}

.headline {
	font-weight: bold;
	color: rgb(119, 110, 101);
	font-size: 3rem;
	padding: 5px 0;
	text-align: center;
}

.description {
	width: 480px;
	font-size: 18px;
	text-align: left;
	color: rgb(121, 113, 106);
	position: relative;
	padding: 10px 0;
}

.bar {
	display: flex;
	justify-content: space-between;
}
.new_game {
	background-color: #8f7a66;
	width: 32%;
	font-size: 1.2rem;
	color: white;
	text-align: center;
	cursor: pointer;
	border-radius: 5px;
	vertical-align: middle;
	position: relative;
}
.new_game span {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: white;
}

.score,
.bestScore {
	width: 32%;
	height: 60px;
	background-color: rgb(187, 173, 160);
	text-align: center;
	box-sizing: border-box;
	padding: 10px;
	color: white;
	border-radius: 5px;
}

.score p,
.bestScore p {
	font-size: 14px;
}

.score span,
.bestScore span {
	font-size: 20px;
}

.content {
	width: 380px;
	height: 380px;
	border-radius: 15px;
	background-color: #bbada0;
	font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
	position: relative;
	box-sizing: border-box;
	margin: auto;
	padding: 15px;
}

.body {
	margin: auto;
	font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
	width: 380px;
	height: 380px;
	
}

.grid_cell {
	width: 21.25%;
	height: 21.25%;
	background-color: #ccc0b3;
	text-align: center;
	line-height: 100px;
	font-size: 2.4rem;
	border-radius: 10px;
	float: left;
	position: absolute;
}

.number_cell {
	width: 21.25%;
	height: 21.25%;
	text-align: center;
	border-radius: 10px;
	line-height: 100px;
	font-weight: bold;
	font-family: KaiTi, SimSun;
	font-size: 2.4rem;
	position: absolute;
}

.over {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
	font-size: 3rem;
	font-family: KaiTi, SimSun;
	color: #776e65;
	font-weight: bold;
	opacity: 0;
	display: none;
	z-index: 99;

}

@media screen and (max-width: 480px) {
	.container {
		width: 90vmin;
	}

	.content {
		height: 90vmin;
	}

	html {
		font-size: 14px;
	}

	.grid_cell,
	.number_cell {
		line-height: 19.116vmin;
		/* line-height: calc(90vmin * 0.2124); */
		font-weight: 500;
	}

	.headline {
		font-weight: 545;
	}
}

hr {
	border: none;  
	border-top: 1px solid gray; 
	text-align: center;

  }

#retry-btn{
	display: block;
	margin: auto;
	border:0;
	border-radius: 30px;
	color: #fff;
	padding: 0px 10px;
	width: 250px;
	background-color: #bbada0;    /* 다시하기 버튼 */
	font-size: 26px;
	line-height: 220%;     
	text-align: center;
}

#share-btn{
	display: block;
	margin: auto;
	border:0;
	border-radius: 30px;
	color: #fff;
	padding: 0px 10px;
	width: 250px;
	background-color: #bbada0;    /* 공유하기 버튼 */
	font-size: 26px;
	line-height: 220%;     
	text-align: center;
}

#end {
	display: block;
	margin: auto;
	width: 480px;
	text-align: center;
	font-size:16px;
	color: orange;             /* end, footer 설정*/
}