body{
	background:#666;
	margin:0;
}
#gamebox{
	background:#fff;
	margin:50px auto;
	width:1000px;
	box-shadow:5px 5px 5px #000;
	overflow: auto;
	padding: 30px;
}
#scorebox{
	width:50%;
	float:left;
}
#scorebox table{
	margin:0 auto;
	border-collapse:collapse;
}
#scorebox td{
	border:1px solid #000;
	text-align:center;
	font-weight:bold;
}
#scorebox tr td:first-child{
	width:130px;
}
#scorebox tr td:nth-child(2){
	width:200px;
}
#scorebox tr td:last-child,
#scorebox tr td:last-child input{
	width:60px;
	height:30px;
}
#scorebox input{
	border:none;
	text-align:center;
	font-size:20px;
	font-weight:bold;
}
#scorebox input:focus{
	background:#aaa;
	border:none;
}
#scorebox img{
	width:30px;
	vertical-align:middle;
}
#scorebox img.arrow{
	width:40%;
}


#gameboard{
	width:50%;
	float:right;
}

#safeZone{
	padding:10px 0 20px 0;
	background-image:url(../images/background.jpg);
	border-radius:10px 10px 0 0;
	border: 10px solid #000;
	width: 90%;
	margin: 0 auto;
}
#safeZone h3 {
	color: #fff;
	margin: 0;
	padding: 0;
	text-align: center;
}

#savedDice, #rolledDice {
	margin: 0 auto;
	width: 90%;
	height: 75px;
}
#savedDice {
	display: flex;
	flex-wrap: wrap;
/*	justify-content: center;*/
}
#rolledDice{
	height:340px;
	background-image:url(../images/yahtzee_images/woodbg.jpg);
	background-size:cover;
	background-position:-100px 0;
	border:10px solid #0B7D1C;
	padding: 40px 0;
	border-radius:0 0 10px 10px;
	position: relative;
	z-index: 1;
}

#rolledDice .die {
	position: absolute;
	top: 20px;
}

#rolledDice .die:nth-child(1) { left: 0; }
.rolled:nth-child(1){ animation: rolldice1 .5s; }

#rolledDice .die:nth-child(2) { left: 20%; }
.rolled:nth-child(2){ animation: rolldice2 .55s; }

#rolledDice .die:nth-child(3) { left: 40%; }
.rolled:nth-child(3){ animation: rolldice3 .6s; }

#rolledDice .die:nth-child(4) { left: 60%; }
.rolled:nth-child(4){ animation: rolldice4 .65s; }

#rolledDice .die:nth-child(5) { left: 80%; }
.rolled:nth-child(5){ animation: rolldice5 .7s; }

@keyframes rolldice1 {
	0% { top: 300px; left: 0px; }
	100% { top: 20px; left: 0%; }
}
@keyframes rolldice2 {
	0% { top: 300px; left: 0px; }
	100% { top: 20px; left: 20%; }
}
@keyframes rolldice3 {
	0% { top: 300px; left: 0px; }
	100% { top: 20px; left: 40%; }
}
@keyframes rolldice4 {
	0% { top: 300px; left: 0px; }
	100% { top: 20px; left: 60%; }
}
@keyframes rolldice5 {
	0% { top: 300px; left: 0px; }
	100% { top: 20px; left: 80%; }
}



#cup{
	cursor: pointer;
	width: 200px;
	text-align: center;
	background: #000;
	color: #fff;
	font-weight: bold;
	border-radius: 5px;
	margin: 20px auto;
	border: 5px solid #000;
	font-size: 26px;
	padding: 10px;
	display: block;
}
#cup:hover{
	background:#fff;
	color:#000;
	transition:all .3s;
}

.die {
	width: 12%;
	max-width: 50px;
	max-height: 50px;
	display:block;
	margin:15px;
	cursor: pointer;
}



