:root {
/*	--boxsize: 50px;
	--itemsize: 44px;
	--fontsize: 30px;
	--boxpadding 10px;*/

	/* assume landscape/laptop - will be overridden later by landscape/portrait */
	--boxsize: 15vh;
	--itemsize: 13vh;
	--fontsize: 9vh;
	--boxpadding: 5vh;	
	
}

.sidepanel  {
  width: 0;
  position: fixed;
  z-index: 90;
  height: 500px;
  top: 0;
  left: 0;
  background-color: darkgrey;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 30px;
}

.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 17px;
  color: lightgrey;
  display: block;
  transition: 0.3s;
  z-index: 90;
}

.sidepanel a:hover {
  color: #f1f1f1;
}

/*.sidepanel */
.closebtn {
  position: absolute;
  top: 0;
  right: 5px;
  font-size: 36px;
}

.openbtn {
  font-size: 20px;	
  cursor: pointer;
  background-color: white;
  color: black;
  /*padding: 10px 15px;*/
  padding-top: 10px;
  padding-left: 10px;
  border: none;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 80;
  opacity: 0.9;

}

.openbtn:hover {
  background-color:#444;
}

.finished {
	position: absolute;
	width: 320px;
	height: 400px;
	font-size: 18px;
	display: flex;
	justify-content: center; /* align horizontal */
	align-items: center; /* align vertical */
}


.target {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);		
	position: absolute;
	z-index: 50;
	width: 300px;
	height: 300px;
	font-size: 12px;
	text-align: center;
	line-height: 300px;	
	vertical-align: middle;
	display: flex;
	justify-content: center; /* align horizontal */
	align-items: center; /* align vertical */
}


.circle1 {
   position: absolute;
   width: 90%;
   height: 90%;
   background-color: #b3ecff;
   border-radius: 50%;
}

.circle2{
  margin-top: 15%;
  margin-left: 15%;
  position: absolute;
  width: 70%;
  height: 70%;
  background-color: #e5e5e5;
  border-radius: 50%;
}

.circle3{
  margin-top: 25%;
  margin-left: 25%;
  position: absolute;
  width: 50%;
  height: 50%;
  background-color: #ffe6e6;
  border-radius: 50%;
}

.circle4{
  margin-top: 35%;
  margin-left: 35%;
  position: absolute;
  width: 30%;
  height: 30%;
  background-color: #e5e5e5;
  border-radius: 50%;
}

/*
  height: 100vh;
  
  padding: 5px;
  justify-content: center;
}*/




.res-wrapper {
	display: grid;
	grid-template-columns: 10% 40% 40% 10%;
	grid-template-rows: 60px 1fr 1fr 1fr 1fr;         
	border: none;
	font-size: 12px;
	align-items: center;	
	text-align: center;	
}



.title { 
	grid-column: 2 / span 2; 
	font-size: 10vw;
}

.title2 { 
	grid-column: 2 / span 2; 
	font-size: 10vw;
}


#hdrgameno { 	background: #00DB4F; grid-column: 2; grid-row: 3; }
#Correct { 	background: #00DB4F; grid-column: 3; grid-row: 3; }
#Moves { 	background: #Ffbf00; grid-column: 2; grid-row: 4; }
#Correct1 { background: #Ffbf00; grid-column: 3; grid-row: 4; }
#Score { 	background: #FfF000; grid-column: 2; grid-row: 5; }
#Correct2 { background: #FfF000; grid-column: 3; grid-row: 5; }



.drop-targets {
    display: grid;
	grid-template-rows: repeat(5, var(--boxsize));
	grid-template-columns: repeat(5, var(--boxsize));
	grid-gap: 10px;
    margin: auto;
    margin-top:10px;
    align-items: stretch;
	place-items: center;
    justify-content: center;
	touch-action: auto;
	
	border-radius: 12px;
    font-size: var(--fontsize);
	text-align: center;	
}

.box {
	border-radius: 15px;
	grid-area: tiles;
	display: grid;
    height: var(--boxsize);
    width: var(--boxsize);
    border: solid 3px #ccc;
    margin: auto;
    align-items: center;
    justify-content: center;
	font-weight: 200;	
}

.sdrop-targets {
/*    display: grid;
	grid-template-rows: repeat(5, 12px);
	grid-template-columns: repeat(5, 12px);
	grid-gap: 2px;*/
	width: 70px;
    margin: auto;
/*    margin-top:2px;
    align-items: stretch;
	place-items: center;
    justify-content: center;*/
	display: flex;
	flex-wrap: wrap;
	border-radius: 2px;
    font-size: 10px;
	text-align: center;	
  
	
}

.statscont {
	display: flex;
	gap:10px 10px;
	justify-content: space-evenly;
	
}

.statscol {
	display: flex;
	flex-direction: column;
}


.statsconta {
	width: 20%;
}


.statscontinner {
	display: flex;
	/*width: 20%;*/
	flex-wrap: wrap;
	
}



.fbox {
	border-radius: 2px;
	/*grid-area: tiles;
	display: grid;*/
    height: 12px;
    width: 12px;
    border: solid 1px #ccc;
    margin: auto;
    align-items: center;
    justify-content: center;
	font-weight: 200;	
}


.sbox {
	border-radius: 2px;
	/*grid-area: tiles;
	display: grid;*/
    height: 12px;
    width: 12px;
    border: solid 1px #ccc;
    margin: auto;
    align-items: center;
    justify-content: center;
	font-weight: 200;	
}

.sitem {
	border-radius: 1px;
    height: 9px;
	width: 9px;
    margin: auto;
    font-size: 8px;
	background-color: WhiteSmoke;
	text-align: center;
}




#b11 {grid-column: 1; grid-row: 1; }
#b12 {grid-column: 1; grid-row: 2; }
#b13 {grid-column: 1; grid-row: 3; }
#b14 {grid-column: 1; grid-row: 4; }
#b15 {grid-column: 1; grid-row: 5; }

#b21 {grid-column: 2; grid-row: 1; }
#b22 {grid-column: 2; grid-row: 2; }
#b23 {grid-column: 2; grid-row: 3; }
#b24 {grid-column: 2; grid-row: 4; }
#b25 {grid-column: 2; grid-row: 5; }

#b31 {grid-column: 3; grid-row: 1; }
#b32 {grid-column: 3; grid-row: 2; }
#b33 {grid-column: 3; grid-row: 3; }
#b34 {grid-column: 3; grid-row: 4; }
#b35 {grid-column: 3; grid-row: 5; }

#b41 {grid-column: 4; grid-row: 1; }
#b42 {grid-column: 4; grid-row: 2; }
#b43 {grid-column: 4; grid-row: 3; }
#b44 {grid-column: 4; grid-row: 4; }
#b45 {grid-column: 4; grid-row: 5; }

#b51 {grid-column: 5; grid-row: 1; }
#b52 {grid-column: 5; grid-row: 2; }
#b53 {grid-column: 5; grid-row: 3; }
#b54 {grid-column: 5; grid-row: 4; }
#b55 {grid-column: 5; grid-row: 5; }


#sb11 {grid-column: 1; grid-row: 1; }
#sb12 {grid-column: 1; grid-row: 2; }
#sb13 {grid-column: 1; grid-row: 3; }
#sb14 {grid-column: 1; grid-row: 4; }
#sb15 {grid-column: 1; grid-row: 5; }

#sb21 {grid-column: 2; grid-row: 1; }
#sb22 {grid-column: 2; grid-row: 2; }
#sb23 {grid-column: 2; grid-row: 3; }
#sb24 {grid-column: 2; grid-row: 4; }
#sb25 {grid-column: 2; grid-row: 5; }

#sb31 {grid-column: 3; grid-row: 1; }
#sb32 {grid-column: 3; grid-row: 2; }
#sb33 {grid-column: 3; grid-row: 3; }
#sb34 {grid-column: 3; grid-row: 4; }
#sb35 {grid-column: 3; grid-row: 5; }

#sb41 {grid-column: 4; grid-row: 1; }
#sb42 {grid-column: 4; grid-row: 2; }
#sb43 {grid-column: 4; grid-row: 3; }
#sb44 {grid-column: 4; grid-row: 4; }
#sb45 {grid-column: 4; grid-row: 5; }

#sb51 {grid-column: 5; grid-row: 1; }
#sb52 {grid-column: 5; grid-row: 2; }
#sb53 {grid-column: 5; grid-row: 3; }
#sb54 {grid-column: 5; grid-row: 4; }
#sb55 {grid-column: 5; grid-row: 5; }




* { margin: 0; padding: 0;}

.res-wrapper > div {
  font-size: 1.0em; display: flex; align-items: center; justify-content: center; 
}
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 40px;
    background-color: #fff;
    overflow: hidden;
	/*min-height: 100svh;*/
	max-height: 100svh;
	height: 100svh;
	max-width: 100svw;
	width: 100svw;
	margin: 0;
	min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom);
}


html {
  height: -webkit-fill-available;
  touch-action: none;
}
h1 {
    color: #323330;
    font-size: 40px;
	text-align: center;	
}

.rescol{
	float: left;
	width: 50%;
	text-align: left;	

}
.titlecol{
	float: left;
	width: 50%;
	text-align: right;	
}

.resrow:after {
  content: "";
  display: table;
  clear: both;
}

.flex-row {
    flex-direction: row;
    display: flex;
    font-size: 10px;
	text-align: center;
	vertical-align: middle
}

.flex-column {
    flex-direction: column;
    display: flex;
    font-size: 18px;
	text-align: center;
	vertical-align: middle
}

.flex-body {
    display: flex;
    font-size: 18px;
	text-align: center;
	vertical-align: middle
}

/*
.flex-body div:not([class*="flex"]) {
    border: 1px solid white;
    flex: 1 1 200px;
}*/

.container {
    height: 50vh;
    display: flex;
    flex-direction: column;
	flex-flow: row wrap;	
    justify-content: center;
    align-items: center;
	list-style: none;
    margin: 5px;
}

.flex-item {
	padding 5:px
}

.flex-message {
    position: absolute;	
	top: 0px;
	left: 50%;
	transform: translate(-50%, 0);
    display: none;
	flex-direction: column;	
	z-index: 90;
    font-size: 18px;
	text-align: center;
	vertical-align: middle;
    background-color: #F0F0F0;
	margin: 5px auto;
    width : 90%;
    min-height: 0px;
    flex: 1 1 auto;
    height: calc(100% - 10px);	
    width: calc(100% - 30px);	
}

/*
.flex-message {
    position: absolute;	
	top: 0px;
	left: 50%;
	transform: translate(-50%, 0);
    display: none;
	flex-direction: column;	
	z-index: 90;
    font-size: 18px;
	text-align: center;
	vertical-align: middle;
    background-color: #F0F0F0;
	margin: 20px auto;
    width : 90%;
    min-height: 0px;
    flex: 1 1 auto;
    height: calc(100% - 10px);	
    width: calc(100% - 30px);	
}*/



.helpHdr{font-size:16px;}
.helpBdy{font-size:12px;}
.helpImg{width:120px;}



.flex-message img {
    margin-left: auto;         /*  push it to right  */
   align-self: flex-end;	
}

.sflex-message img {
    margin-left: auto;         /*  push it to right  */
   align-self: flex-end;	
}


.drag-selected {
    border: dashed 3px green;
}


.drag-over {
    border: dashed 3px red;
}

.drag-possible {
    border: dashed 3px blue;
}

.item {
	border-radius: 12px;
    height: var(--itemsize);
	width: var(--itemsize);
    font-size: var(--fontsize);
	background-color: WhiteSmoke;
	text-align: center;
}



.tbox {
	border-radius: 6px;
    height: 25px;
    width: 25px;
    border: solid 3px #ccc;
    margin: 1px;
    align-items: center;
    justify-content: center;
	font-weight: 400;	
    background-color: #00DB4F;
	height:17pt;
	font-size: 10pt;
}

.cbox {
	border-radius: 6px;
    height: 48px;
    width: 48px;
    border: solid 3px #ccc;
    margin: 1px;
    align-items: center;
    justify-content: center;
	font-weight: 400;	
    background-color: #00DB4F;
	font-size: 32px;
	align-items: center;	
	text-align: center;		
}



.tboxa {
	border-radius: 6px;
    height: 23px;
    width: 23px;
    border: solid 3px #ccc;
    margin: 1px;
    align-items: center;
    justify-content: center;
	font-weight: 400;	
    background-color: #00DB4F;
	/*height:17pt;*/
	font-size: 10pt;
}

/*
.tboxa {
	border-radius: 6px;
    height: 25px;
    width: 25px;
    border: solid 3px #ccc;
    margin: 1px;
    align-items: center;
    justify-content: center;
	font-weight: 400;	
    background-color: #00DB4F;
	height:17pt;
	font-size: 10pt;
}*/



.hdrel{
	font-size: 9pt !important;
}	

.titlediv{
	display: flex;
}

.titlediva{
	display: flex;
	flex-direction: column;
    margin-bottom: 2px;
    align-items: center;
	font-size: 3vw;
}

.titledivb{
	display: flex;
	flex-direction: row;
    margin: 5px;
    align-items: center;
}



.itemnearlycorrect1 {
    background-color: #Ffbf00;
    height: var(--itemsize);
    width: var(--itemsize);
	border-radius: 12px;
}

.itemnearlycorrect2 {
    background-color: #FfF000;
	border-radius: 12px;
    height: var(--itemsize);
    width: var(--itemsize);
}


.itemcorrect {
    background-color: #00DB4F;
	border-radius: 12px;
    height: var(--itemsize);
    width: var(--itemsize);
}

.itemtemp {
    background-color: #ff8000;
	border-radius: 12px;
    height: var(--itemsize);
    width: var(--itemsize);
}



.sitemnearlycorrect1 {
    background-color: #Ffbf00;
	border-radius: 1px;
    height: 9px;
	width: 9px;
    margin: auto;
    font-size: 8px;
	text-align: center;
/*	border-radius: 2px;
    height: 16px;
    width: 16px;*/
}

.sitemnearlycorrect2 {
    background-color: #FfF000;
	border-radius: 1px;
    height: 9px;
	width: 9px;
    margin: auto;
    font-size: 8px;
	text-align: center;
/*	border-radius: 2px;
    height: 16px;
    width: 16px;*/
}

.easyStats {background-color: #00DB4F;}
.hardStats {background-color: #Ffbf00;}
.fiendishStats {background-color: #FfF000;}


.sitemcorrect {
    background-color: #00DB4F;
	border-radius: 1px;
    height: 9px;
	width: 9px;
    margin: auto;
    font-size: 8px;
	text-align: center;
/*	border-radius: 2px;
    height: 16px;
    width: 16px;*/
}

.sitemtemp {
    background-color: #ff8000;
	border-radius: 1px;
    height: 9px;
	width: 9px;
    margin: auto;
    font-size: 8px;
	text-align: center;
/*	border-radius: 2px;
    height: 16px;
    width: 16px;*/
}

.hide {
    display: none;
}

#customTable {
	height: 10px;
    display: flex;
	overflow: hidden;	
    flex: 1 1 auto;
	flex-direction: column;	
    min-height: 0px;
}
	
/*
Be VERY careful about changing custom table, above, or scrollable belwo 
been an absolute pain trying to get them to scroll on android devices
*/

.scrollable {
    width: 100%;
    height: 10px;
    min-height: 0px;
    flex: 1 1 auto;
    overflow-y: auto;
	flex-shrink: 0;
	flex-basis: auto;
    margin: 0;
    padding: 0;
	text-align: center;
}

/* draga and drop research with jquery */
.dragdrop {
background:red;
margin:15px;
width:100px;

}
.ui-state-hover {
background:lightyellow;   
}
.ui-state-active {
background:lightgray   
}

#dicttab{
	overflow:auto;
	/*height:290px;
	display:block;
	justify-content: center;
	font-size:10px; 
	text-align:left; 
	overflow-y: scroll;	  */

}

#resmovestitle
{
	transform: rotate(3);
}

#stats {
	height: 380px;
	width: 300px;
	top: 0px;
	display:none; 
	background-color:#F0F0F0;
	z-index: 89;
}

.statsTable{
	width: 300px;
	height: 20px;
}

.statsTable2{
	width: 300px;
	height: 20px;
    font-size: 10px;
}

#statsHeader {margin-bottom: 14px;}
#gameurl {font-size: 12px;}
.statsHdr {font-size: 12px;}
#GameMod {font-size: 14px;}
.resgrid {width: 70px;}
.resgrid2 {width: 50px;}
#shareBTN {height: 24px;}

.easyStats {background-color: #00DB4F; border-color: white;border-style: solid;border-width: thin;}
.hardStats {background-color: #Ffbf00; border-color: white;border-style: solid;border-width: thin;}
.fiendishStats {background-color: #FfF000; border-color: white;border-style: solid;border-width: thin;}



.MsgCloseBtn{
/*	float: right;*/
	height: 20px;
}

.CloseBtnDiv{
	display: block;
	background-color:#F0F0F0; 
	text-align:right;
	align: right;
	float: right;
}

#cookieBtn{
	/*display: block;*/
	margin: auto;
	text-align: center;
}

#cookies{
	height: 300px;
}

#dextBox {
}

#DextBtn {
  width: 200px;
  height: 200px;
}

.msgHdr{}
.msgFooter{}
.msgBody{}

.resbox {
	/*min-width: 320px;*/
	order: 1;
}

.tilebox { 
	order: 2;
}

.dexterity { 
    position: absolute;	
	order: 3;
	justify-content: center;
	justify-content: space-around; 
	align-items: center;  
}

.box-wrapper {
  
	display: flex;
	flex-direction: column;	
	align-items: center;
/*	justify-content: flex-start;*/
		justify-content: space-around;
	gap: 10px;
    min-height: 0px;
    flex: 1 1 auto;
	overflow: hidden;
	top: 0;
	right: 0;
	left: 0;
/*	height: 0px;*/
}	  

.fiver{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8; 
    z-index: 9;
    margin: 20px; 
}

#Titlespan {height:17pt;}

@media screen and (orientation: landscape) {

	.res-wrapper {
		grid-template-columns: 10% 45% 45%;
	}

	.box-wrapper {
		flex-direction: row;	
/*		align-items: flex-start;*/
		align-items: stretch;
		flex-wrap: wrap;1
		justify-content: space-around;
/*		justify-content: space-between;*/
		gap: 5px;
	}

	.tilebox { 
		grid-column: 2; 
		grid-row: 1 / span 2;
		margin: 5px;
		align-items: center;
		justify-content: center;
	}
	.dexterity { 
		/*order: 1;*/
		align-self: flex-start;
		position: absolute;
		left: 100px;
		top: 200px;
	}
	:root {
		--boxsize: 14vh;
		--itemsize: 12vh;
		--fontsize: 8vh;
		--boxpadding: 5vh;	
	}
	.resbox {
		width: 40vw;
	}
	.tbox {
		height: 3.4vw;
		width: 3.4vw;
		font-size: 1.8vw;
	}
	.hdrel{
		font-size: 2vw !important;
		font-weight: 200;	

	}	
	#titlespan {font-size: 20pt};
}



@media screen and (orientation: portrait) {

	.res-wrapper {
		grid-template-columns: 10% 40% 40% 10%;
	}
	.tilebox {
		grid-column : 1 / span 2; 
		grid-row: 2;
		margin: 5px;
		align-items: center;
		justify-content: center;
	}
	.drop-targets{ 
		margin-top: 0px;
		/*height: 70vw;*/
	}
	:root {
		--boxsize: 14vw;
		--itemsize: 12vw;
		--fontsize: 8vw;
		--boxpadding: 5vw;	
	}
	.resbox {
		width: 90vw;
	}
	.tbox {
		height: 7vw;
		width: 7vw;
		font-size: 3.5vw;
	}
	.hdrel{
		font-size: 3.5vw !important;
	}	
	.sdrop-targets {display: flex;}

	#titlespan {font-size: 18pt};
	
}

/*

@media screen and (orientation: portrait) and (min-width: 320px){
	.resbox {
		min-width: 320px;
	}
}


@media screen and (orientation: portrait) and (min-width: 375px){
	.resbox {
		min-width: 375px;
	}
	.tbox {
		height: 27px;
		width: 27px;
		font-size: 11pt;
	}
	.hdrel{
		font-size: 10pt !important;
	}	
}

@media screen and (orientation: portrait) and (min-width: 414px){
	.resbox {
		min-width: 414px;
	}
	.tbox {
		height: 29px;
		width: 29px;
		font-size: 12pt;
	}
	.hdrel{
		font-size: 10.5pt !important;
	}	
}

@media screen and (orientation: portrait) and (min-width: 750px){
	.resbox {
		min-width: 740px;
	}
	.tbox {
		height: 40px;
		width: 40px;
		font-size: 18pt;
	}
	.hdrel{
		font-size: 13pt !important;
	}	
}


@media screen and (orientation: landscape) and (min-width: 1024px){
	.resbox {
		min-width: 800x;
	}
	.tbox {
		height: 32px;
		width: 32px;
		font-size: 12pt;
	}
	.hdrel{
		font-size: 12pt !important;
	}	
}

*/

@media screen and (min-width: 500px){
	.flex-message {width : 450px;}	
	.sflex-message {width : 450px;}	
}



@media screen and (orientation: landscape) and (max-width: 568px){
	.box-wrapper {
		gap: 5px;
	}	
}

@media screen and (min-height: 500px){
		.helpImg{width: 250px;}
}


@media screen and (min-height: 600px) {
		.helpImg{width: 300px;}
}



@media screen and (orientation: landscape) and (max-height: 428px){
	:root {
		--boxsize: 12.5vh;
	}
	
	.drop-targets{ 
		grid-gap: 7px;
	}
	.resgrid {
		font-size: 10px;
	}
	.sidepanel a {
		font-size: 16px;
		height: 28px;
	}
	.openbtn {
		padding-top: 10px;
		padding-left: 25px;
	}
}

@media screen and (max-height: 428px){
	.sdrop-targets {display: none;}
	#stats{height:280px}
}

@media screen and (min-height: 850px) and (min-width: 850px){
	h1 {font-size: 40pt}
	.flex-message {height : 700px;}	
	.sflex-message {height : 700px;}	
	.resgrid {
		font-size: 12px;
		width : 120px;
	}
	.statsTable{height: 32px;}
	
	#statsHeader {margin-bottom: 20px;}
	#customTable {height: 600px;}

	.helpImg{width:200px;}
	#stats {scale: 1.6;
			transform-origin: center top;}
}


