body {
	margin: 0;
	padding: 0;
	width: 100%;
}

h1 {
	text-align: center;
	color: #FF9966;
	font-family: Georgia, serif;
}

p {
	color: #333366;
	font-weight: 800;
	font-family; Georgia, serif;
}

.board {
	position: relative;
	height: 320px;
	width: 100%;
	max-width: 320px;
}

.box {
/*	position: relative; */
	font-family: Arial, sans-serif;
	font-size: 40px;
	font-weight: 800;
	color: #000000;
	background-color: #ffffff;
	height: 80px;
	width: 80px;
	max-width: 80px;
	max-height: 80px;
	background-image: url("boggle-cube-80-80.png");
	background-repeat: no repeat;
	background-position: top left;
	text-align: center;
}

.box p {
	position: relative;
	padding: 0;
	margin: 0;
}

.norm {
	top: 20px;
	left: 0px;
}

.cw {
	-webkit-transform: rotate(90deg); 
	-moz-transform: rotate(90deg);
	left: 0px;
	top: 20px;
}

.ccw {
	-webkit-transform: rotate(-90deg); 
	-moz-transform: rotate(-90deg);
	top: 20px;
	left: 2px;
}

.ud {
	-webkit-transform: rotate(-180deg); 
	-moz-transform: rotate(-180deg);
	left: 0;
	top: 20px;
}

table {
	margin: 0 auto;
	border: 4px solid #ee7700;
	background-color: #ff8800;
}

.solve {
	margin: 4em auto 0 auto;
	text-align: center;
	width: 100%;
	max-width: 800px;
	border: 1px solid #CC9999;
	border-radius: 5px;
	padding: 0;
}

.solvestring {
	font-size: 2em;
	background-color: #CC9999;
	padding-bottom: 0;
	margin-bottom: 0;
}

.header {
	margin: 0 auto 4em auto;
	text-align: center;
	width: 100%;
	max-width: 800px;
	border: 1px solid #CC9999;
	border-radius: 5px;
	padding: 0;
}

.board {
	margin: 0 auto;
	padding: 0;
	text-align: center;
}

#box1, #box2, #box3, #box4, #box5, #box6, #box7, #box8, #box9, #box10, #box11, #box12, #box13, #box14, #box15, #box16 {
	position: absolute;
}

#box1, #box5, #box9, #box13 {
	left: 0;
}

#box2, #box6, #box10, #box14 {
	left: 80px;
}

#box3, #box7, #box11, #box15 {
	left: 160px;
}

#box4, #box8, #box12, #box16 {
	left: 240px;
}

#box1, #box2, #box3, #box4 {
	top: 0;
}

#box5, #box6, #box7, #box8 {
	top: 80px;
}

#box9, #box10, #box11, #box12 {
	top: 160px;
}

#box13, #box14, #box15, #box16 {
	top: 240px;
}

@media screen and (max-width: 360px) {

body {
	width: 95%;
	margin: 0.5em auto 0.5em auto;
}

.board {
	margin-top: -2em;
	margin-bottom: -2em;
}

h1 {
	font-size: 1.5em;
	padding: 0;
	margin: 0;
	margin-bottom: -0.5em;
}

#box1, #box5, #box9, #box13 {
        left: 0;
}

#box2, #box6, #box10, #box14 {
        left: 25%;
}

#box3, #box7, #box11, #box15 {
        left: 50%;
}

#box4, #box8, #box12, #box16 {
        left: 75%;
}

#box1, #box2, #box3, #box4 {
        top: 0;
}

#box5, #box6, #box7, #box8 {
        top: 80px;
}
 
#box9, #box10, #box11, #box12 {
        top: 160px;
}

#box13, #box14, #box15, #box16 {
        top: 240px;
}

.solvestring {
	font-size: 1.4em;
}

}

.refresh {
	text-align: center;
	margin-top: 2em;
}

.refresh button {
	background-color: #ff99cc;
	color: #ffffff;
	font-size: 1em;
	padding: 0.5em;
	border: 0;
	border-radius: 10px;

}

.refresh button:hover {
	background-color: #cc6699;
	cursor: pointer;
}

.linkad {
	height: 25px;
	margin: 1em auto;
	max-width: 768px;
}

.ad {
	margin: 1em auto;
	max-width: 768px;
}

