html {
    font-size: 62.5%;
}

body {
    font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
    line-height: 1.6;
    font-weight: 400;
    font-family: "Arial";
    background-color: rebeccapurple;
    text-align: center;
    color: #111;
    margin: 0 8px 8px 8px;
}

a {
    color:#990066;
	text-decoration: none;
}

a:hover {
    color:#990066;
	text-decoration: underline;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}


#game-container {
    position: relative;
    width: 100%;
}

#game-col {
    position: relative;
    z-index: 1; /* Lower z-index to ensure it’s behind the video player */
    width: 70%; /* Match game width */
    margin-left: 15%;
    margin-right: 15%;
}

#theVideoPlayer {
    position: absolute; /* Position on top of the game */
    top: 0;
    left: 0;
    width: 100%; /* Cover the game div */
    height: 100%; /* Cover the game div */
    z-index: 10; /* Higher z-index to ensure it’s on top of the game */
    display: none; /* Initially hidden */
    /*pointer-events: none; Allows clicks to pass through if necessary */
}

#header_container {
    margin: 20px auto 10px auto;
	background-color:#FFFFFF;
    padding: 0px;
    position: relative;
}

#header_container2 {
	margin: 20px auto 20px auto;

}

#header_container_bottom {
    
	margin: 40px auto 10px auto;

}
/*
.top-leader {
    margin: 10px auto 30px auto;
	min-height: 90px;
}

#bottom {
    display: block;
}
*/

.top-leader {
    margin: 30px auto 30px auto;
	min-height: 90px;
	display: flex;
	flex-direction: column;
	align-content: center;
	flex-wrap: wrap;
}

/*
#top {
	display: flex;
    flex-direction:column;
    align-content: center;
    flex-wrap: wrap;
}
*/
.bottom-leader {
    margin: 10px auto 20px auto;
	min-height: 90px;
	display: flex;
	flex-direction: column;
	align-content: center;
	flex-wrap: wrap;
}

.col-aDD-big-new {
	display:flex;
	flex-direction: column;
	align-content: center;
	flex-wrap: wrap;
	float: right;
	/*background-color:aqua;*/
}
	
.col-aDD-thin3-new {
	display:flex;
	flex-direction: column;
	align-content: center;
	flex-wrap: wrap;
	float: right;
}
	
#bottom {
	display: flex;
    flex-direction:column;
    align-content: center;
    flex-wrap: wrap;
}

.parent-header {
	display: block;
	align-items: center;
	justify-content: center;
	min-height: 270px;
	position: relative;
}

.child-header {
	display: block;
	align-items: center;
	justify-content: center;
	margin: 0px auto auto auto;
	width:100%;
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);  
	transform: translate(-50%, -50%);   
}

.horizontal-container {
	display: block;
	float: left;
	width:90%;
	margin-left: 5%;
	margin-right: 5%;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	position: relative;
	margin-top:20px;
	margin-bottom:20px;
	background-color: white;
}

#message_nav {
	text-align:center;
	background-color: #663399;
    padding-top: 26px;
	padding-bottom: 0px;
	border: none;
	position: relative;
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#message_nav2 {
	text-align:center;
    padding-top: 26px;
	padding-bottom: 0px;
	border: none;
	position: relative;
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.container {
    margin-right: auto;
    margin-left: auto;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #FFFFFF;
	border:solid;
	border-width:medium;
	border-color: #FFFFFF;
}

.container b, .container strong { font-weight: 700; }

.row {
    margin-left: -15px;
    margin-right: -15px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 2rem;
    font-weight: 300;
}

h1 {
    font-size: 4.0rem;
    line-height: 1.2;
    letter-spacing: -.1rem;
}

h2 {
    font-size: 3.6rem;
    line-height: 1.25;
    letter-spacing: -.1rem;
}

h3 {
    font-size: 3.0rem;
    line-height: 1.3;
    letter-spacing: -.1rem;
}

h4 {
    font-size: 2.4rem;
    line-height: 1.35;
    letter-spacing: -.08rem;
}

h5 {
    font-size: 1.8rem;
    line-height: 1.5;
    letter-spacing: -.05rem;
}

h6 {
    font-size: 1.4rem;
    line-height: 1.6;
    letter-spacing: 0;
}

#gameTitleImage {
  margin: 10px 0;
  color: #663399;
}

.centerImageTextHP {
    position: relative;
    float: left;
    padding-right: 15px;
    padding-left: 15px;
    display: block;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    background-color: rebeccapurple;
}

.centerImageTextTitle {
    min-height: 20px;
    font-weight: 400;
    position: relative;
    float: left;
    padding-right: 10px;
    padding-left: 10px;
    display: block;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left;
    color: #333399;
    font-size: 2.4rem;
    line-height: 2.4;
    letter-spacing: 0;
    background-color: #FFFFFF;
}

.centerImageTextTitle2, .centerImageTextTitle2-new {
    font-weight: 400;
    position: relative;
    float: left;
    padding-right: 8px;
    padding-left: 8px;
    width: 100%;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: left;
    color: #333399;
    font-size: 2.4rem;
    background-color: #FFFFFF;
}

#home1 {
	display:block;
	}

#square {
    display: block;
}

#thinsky {
    display: block;
}
/*
#bottom {
    display: block;
}*/

/***************AD CAPTION***************/

.ad-caption {
  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 1em;
  margin: 5px auto;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ad-caption-b {

  display: block;
  text-align: center;
  font-size: 14px;
  line-height: 1em;
  margin: 5px auto;
  letter-spacing: 0.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/***************AD CAPTION***************/
/*
.img-game-index {
    max-width: 160px;
    height: auto;
}
*/
.img-game-title {
    width: 100%;
    height: auto;
    padding-bottom: 5px;
}

.img-game {
    max-width: 180px;
    height: auto;
    margin-bottom: 10px;
}

.img-puzzle-message {
    width: 100%;
    height: auto;
    padding-bottom: 0px;
}

.col-xs-12 {
    position: relative;
    min-height: 1px;
    display: block;
    float: left;
    width: 100%;
}

.break-dir {
    position: relative;
    min-height: 1px;
    display: block;
    float: left;
    width: 10%;
}

.col-dir {
    float: left;
    width: 100%;
}

.game-dir {
	margin-left:0px;
    text-align: left;
	color: deeppink;
	font-size: 20px;
}

.col-index-game {
    float: right;
    width: 100%;
    height: 130px;
	color:#333399;
}
/*
.col-game-directory {
    position: relative;
    display: inline-block;
	text-align: center;
	margin-top: 10px;
	padding: 10px, 10px, 0px, 10px;
}
*/
.col-index-game h6 {
  margin-bottom: 0px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-index-game h6 .fa-mobile-alt,
.game-tile h6 .fa-mobile-alt {
  color: #2c62ff;
  margin-right: 2px;
}

.col-aDD-big {
    float: right;
    width: 100%;
	padding-top: 0px;
	margin-bottom: 20px;
	position: relative;
    min-height: 600px;
    padding-right: 0px;
    text-align: center;
	display: block;
}
/*
.col-game-wide-2 {
    position: relative;
    width: 100%;
    float: left;
	margin-right: 0px;
	
}

.col-aDD-big-2 {
    float: right;
    width: 100%;
	padding-top: 0px;
	padding-right: 0px;
	margin-bottom: 20px;
	position: relative;
    min-height: 600px;
    text-align: center;
	display: block;
	margin-left: 0px;
}
*/
.col-sky {
    float: right;
    width: 30%;
	margin-bottom: 20px;
    text-align: center;
	display: block;
}

.col-game-wide {
    position: relative;
    width: 100%;
    float: left;
}

.col-game-image, .col-game-image-new {
	position: relative;
    width: 100%;
	float: left;
	margin-left:10px;
}

.col-game-home {
	position: relative;
    width: 100%;
	float: left;
	padding-left:5px;
	padding-right: 5px;
	padding-top: 5px;
	padding-bottom: 5px;
}
/*
.playwire_report_ad_link {
  display: none !important;
}
*/
.clearfix:before,
.clearfix:after,
.container:before,
.container:after,
.row:before,
.row:after {
    content: " ";
    display: table;
}

.clearfix:after,
.container:after,
.row:after {
    clear: both;
}

/***************MATH PLAYGROUND LOGO AT TOP OF PAGE***************/

.logo-header {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  margin-bottom: 0px;
}

.logo-header2 {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/***************MAIN HEADER NAVIGATION***************/
/*
#header_nav {
	text-align:center;
	background-color: #cc99ff;
  	padding-top: 10px;
	padding-bottom: 0px;
	border: none;
	position: relative;
  	justify-content: center;
  	display: flex;
  	flex-direction: row;
  	flex-wrap: wrap;
}

#header_nav:before,
#header_nav:after {
  display: none;
}

#header_nav a {
  display: block;
  margin: 0px;
}

#header_nav img {
  display: block;
  max-width: 160px;
  box-shadow: 0px 1px 3px rgba(0,0,0,0.3);
}
*/
#header_nav2 {
	text-align:center;
	background-color: #330044;
  	padding-top: 4px;
	padding-bottom: 4px;
	border: none;
	position: relative;
  	justify-content: center;
  	display: flex;
  	flex-direction: row;
  	flex-wrap: wrap;
}

#header_nav2:before,
#header_nav2:after {
  display: none;
}

#header_nav2 a {
  display: block;
  margin: 0px;
}

#header_nav2 img {
  display: block;
  max-width: 160px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 4px;
  padding-right: 4px;
}


/***************MOBILE***************/
#mobile-game-overlay {
    display: none;
}

/***************IMAGES***************/

.img-game-index {
    max-width: 160px;
    height: auto;
}

.img-game-title {
    width: 100%;
    height: auto;
    padding-bottom: 5px;
}

/***************LINKS AT BOTTOM OF PAGES***************/

.centerImageLinks {
  max-width: 100%;
  height: auto;
  margin-top: 20px;
  margin-bottom: 20px;
}

/***************FOOTER***************/

.site-footer-separator {
  	display: block;
  	border: 6px solid #333399;
  	border-radius: 0px;
}

.site-footer-links {
  	display:inline-flex;
  	text-align: center;
	margin-top: 10px;
	margin-bottom: 10px;
}

.site-footer-link {
	font-size: 1.1em;
	margin-top: 20px;
  	margin-left: 25px;
	margin-right: 25px;
}
  
.site-footer-link-big {
  	font-size: 1.2em;
  	font-weight: bold;
}

.site-footer-copyright {
	margin-top: 00px;
	margin-bottom: 110px;
}

/***************PRIVACY AND TERMS***************/

.business-text {
	margin-top: 50px;
	margin-bottom: 50px;
	margin-left: 80px;
	margin-right: 80px;
	text-align: left;
}

.business-heading {
	margin-top: 20px;
	font-size: 18px;
}

.business-print {
	font-size: 16px;
}

/***************FULLSCREEN GAMES***************/

.btnFullscreen {
	border: none;
	color: white;
	background-color:#663399; 
	padding: 10px 20px;
	font-size: 18px;
	cursor: pointer;
}

.fullscreen-view {
	margin-bottom:20px; 
	margin-top: 20px;
	display:block;
}

#fsbutton {
  	margin-bottom:20px; 
	margin-top: 20px;
	display:block;
}

 /***************FULLSCREEN GAMES NEW***************/
/*
.btnFullscreenOff {
	border: none;
	color: white;
	background-color:#663399; 
	padding: 10px 20px;
	font-size: 18px;
	cursor: pointer;
	display:none;
}
*/
/*
.btnFullscreenOn {
	border: none;
	color: white;
	background-color:mediumseagreen; 
	padding: 10px 20px;
	font-size: 28px;
	cursor: pointer;
	display:block;
	width: 60%;
	margin: 0;
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
*/
/*
.btnFullscreenOnD {
	border: none;
	color: white;
	background-color:#663399; 
	padding: 10px 20px;
	font-size: 18px;
	cursor: pointer;
	display:block;
}
*/
/*
#mobile {
	position: relative;
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
	height: 200px;
	background-color: rebeccapurple;
  	margin-bottom:20px; 
	margin-top: 20px;
	display:none;
}
*/
/*
.centered-image {
    max-width: 100%;
    max-height: 100%;
}
*/
/*
#fulldesk {
	position: relative;
	width: 80%;
	margin-left: 10%;
	margin-right: 10%;
	height: 400px;
	background-color: rebeccapurple;
  	margin-bottom:20px; 
	margin-top: 20px;
	display:block;
}
*/	
		
.btnFullscreen:hover {background:darkorchid;}

@media only screen and (max-width: 767px) { /*screens that are 767 or smaller*/
  
	.col-index-game {
    	padding: 0 5px;
    	height: 80px;
    	margin-bottom: 20px;
  	}

  	.col-index-game > a,
  	.col-index-game img {
    	display: block;
   	 	width: 100%;
  	}
	
  	#message_nav {
		display: none;
  	}
	
  	.game-dir {
		margin-left:0px;
    	text-align: left;
		color: deeppink;
		font-size: 18px;
  	}
	
  	.col-index-game h6 {
    	margin-top: 5px;
    	text-align: left;
  	}
	
	.col-index-game{
		width: 33.33333333%;
    }

  	.centerImageLinks {
    	display: none;
  	}
 
  	.parent-header {
		display: block;
		align-items: center;
		justify-content: center;
		min-height: 120px;
		position: relative;  
  	}
	
  	.site-footer-link {
	  	margin-top: 0px;
	  	margin-right: 15px;
	  	margin-left: 15px;
	}
	
  	.business-text {
		margin-bottom: 20px;
		margin-left: 20px;
		margin-right: 20px;
	}
	
	.horizontal-container {
		display: none;
	}
	
	.parent-header {
		min-height: 100px;

	}
	
	.ad-caption {

	  font-size: 12px;
	}
	
	#square {
		display: none;
	}
	
	#thinsky {
		display: none;
	}
	
	.col-game-image-new /*don't show the hero image*/
	{
		display:none;
	}
	
	.centerImageTextTitle2-new 
	{
		display:none;
	}
	
	#bottom {
		display: none;
	}
	
	#home1 {
		display:none;
	}
	
}

@media (max-width: 1024px) {
	
}


@media (min-width: 240px) { /*screens that are 240 or larger*/
	.col-index-game {
        width: 50%;
    }
}

@media (min-width: 600px) { /*screens that are 600 or larger*/
	 .container {
        width: 580px;
    }
	 #header_container {
        width: 580px;
    }

    .col-index-game {
        width: 33.33333333%;
    }
}

@media (min-width: 768px) {	/*screens that are 768 or larger*/
    .container {
        width: 750px;
    }
	
	 #header_container {
        width: 750px;
    }

	
	.col-index-game {
        width: 25%;
        text-align: center;
    }
	
	.col-dir {
        width: 45%;
    }
	
	#square {
		display: none;
	}
	
	#thinsky {
		display: none;
	}
	/*
	
	.col-game-image-new 
	{
		display:none;
	}
	*/
	.col-game-image-new {
		width: 60%;
		float: left;
	}
	/*
	.col-aDD-big-new  {
        width: 35%;
    }
	*/
	.centerImageTextTitle2-new 
	{
		display:block;
	}
	/*
	#bottom {
		display: none;
	}
	*/
	
}

@media (min-width: 992px) { /*screens that are 992 or larger*/
    .container {
        width: 972px;
    }
	
	#header_container {
        width: 972px;
    }

	.col-index-game {
        text-align: center;
        width: 20%;
    }
	
	#square {
		display: block;
	}
	
	#thinsky {
		display: block;
	}
	
	/*
	
	.col-game-image-new 
	{
		display:block;
	}
	*/
	.col-game-image-new {
		width: 60%;
		float: left;
	}
	/*
	.col-aDD-big-new  {
        width: 35%;
    }
	*/
	.centerImageTextTitle2-new 
	{
		display:block;
	}
	
	/*
	#bottom {
		display: block;
	}
	*/

}

@media (min-width: 1100px) { /*screens that are 1100 or larger*/
    .container {
        width: 1080px;
    }
	
    #header_container {
        width: 1080px;
    }

	/*
    .col-aDD-big {
        width: 30%;
		text-align: center;
    }
	*/
	/*
	.col-aDD-big-2 {
        width: 30%;
    }
	
	.col-game-wide-2 {
        width: 60%;
    }
	*/
	.col-game-image, .col-game-image-new {
        width: 65%;
        text-align: center;
    }
	/*
	.centerImageTextTitle2-new 
	{
		display:block;
	}
*/
    .col-index-game {
        width: 16.66666667%;
    }
	
	/*
	#bottom {
		display: block;
	}
	*/
	/*
	#thinsky {
		display: block;
	}
*/
}

@media (min-width: 1200px) { /*screens that are 1100 or larger*/
    .container {
        width: 1180px;
    }
	
    #header_container {
        width: 1180px;
    }

	/*
    .col-aDD-big {
        width: 30%;
		text-align: center;
    }
	^/
	/*
	.col-aDD-big-2 {
        width: 30%;
    }
	
	.col-game-wide-2 {
        width: 60%;
    }
	*/
	.col-game-image, .col-game-image-new {
        width: 65%;
        text-align: center;
    }

    .col-index-game {
        width: 16.66666667%;
    }
	
	.centerImageLinks {
	  width: 1180px;
	  height: 10px;
	}
	
	#header_nav2 {

		justify-content:space-evenly;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}
	
	/*
	#bottom {
		display: block;
	}
	*/
	/*
	#thinsky {
		display: block;
	}
*/
}

@media (min-width: 1400px) { /*screens that are 1400 or larger*/
    .container {
        width: 1280px;
    }
	
    #header_container {
        width: 1280px;
    }

	/*
    .col-aDD-big {
        width: 30%;
		padding-left:15px;
    }
	*/
	/*
	.col-aDD-big-2 {
        width: 30%;
		padding-left:0px;
    }
	
	.col-game-wide-2 {
        width: 60%;
    }
	*/
	.col-game-image, .col-game-image-new {
        width: 65%;
        text-align: center;
    }

    .col-index-game {
        width: 16.66666667%;
    }
	
	.centerImageLinks {
	  width: 1280px;
	  height: 10px;
	}
	
	#header_nav2 {

		justify-content:space-evenly;
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}
	
	/*
	#bottom {
		display: block;
	}
	*/
	/*
	#thinsky {
		display: block;
	}
*/
}


@media only screen and (max-width: 1099px) { /*screens that are 1099 or smaller*/
/*
	.col-game-image 
	{
		display:none;
	}
	*/
	/*
	.centerImageTextTitle2 
	{
		display:none;
	}
	*/
	/*
	.col-aDD-big
	{
		display:none;
	}
	*/
	/*
	#bottom {
		display: none;
	}
	*/
	/*
	#square {
		display: none;
	}
	
	.col-game-image-new 
	{
		display:none;
	}
	*/
	/*
	.col-aDD-big-2 
	{
		display:none;
	}
	*/
	/*
	.col-sky
	{
		display:none;
	}
	*/
	/*
   
	
	
	.horizontal-container {
		display: none;
	}
*/
}





