@import url('https://fonts.googleapis.com/css2?family=Paytone+One&display=block');
@import url('https://fonts.googleapis.com/css2?family=Sarabun&display=block');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Scrip&display=swap');

:root {
  --link: #00aaeb;
  --hover: #0087d0;

  --special-font: 'Paytone One';

 	--footer: #757575;
	}

/* PRINT ONLY */
.print-only{
	display: none !important;
	}			

html{
	scroll-behavior: smooth;
	}

/* ZEROING OUT STYLES ------------------*/
*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	}
body, input, button, select, option, textarea {
  font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
	text-align: center;
	}

/* LINKS -----------------------*/
a, a:link, a:visited, a:focus, .link{
	color: var( --link );
	text-decoration: none;
	cursor: pointer;
	font-weight: bold;
	}
a:hover, .link:hover{
	color: var( --hover );
	}

div{ font-size: 100%; }


#top{
	padding: 1rem .5rem;
	background-color: #00A3E0;
	color: #fff;
	position: relative;
	}
#top::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  bottom: -15px;
  height: 15px;
  background-image: url("../images/wave-border.svg");
  background-repeat: repeat-x;
	}
h1{
	margin: 0;
	padding: 1rem 0;
	font-family: var(--special-font);
	font-size: 2.5rem;
	line-height: 2.5rem;
	letter-spacing: .1rem;
	word-spacing: 0.25rem;
	font-weight: normal;
	}

p{ padding: .75rem 0; }



.item-grid{
	display: flex;
	flex-wrap: wrap;
	gap: 3rem 1.75rem;
	margin: 4rem .5rem 2rem .5rem;
	justify-content: center;
	line-height: 1.25rem;
	}
.item-grid .title{ 
	font-size: 1.25rem; 
	padding: .5rem 0;
	}
.item-grid div{ width: 10rem; }
.item-grid img{ width: 90%; }	

#more-games{
	background-color: #00A3E0;
	color: #fff;
	cursor: pointer;
	padding: 1rem;
	border-radius: 1rem;
	display: inline-block;
	margin: 0 auto;
	min-width: 18rem;
	font-size: 1.4rem;
	}
#more-games:hover{ background-color: #1c97bc; }
#more-games a, #more-games a:link, #more-games a:visited, #more-games a:hover, #more-games a:focus{ color: #fff; }


/* BACK TO TOP --------------------- */
#back-to-top{
	position: fixed;
	width: 3rem;
	height: 3rem;
	background-color: rgba( 0, 0, 0, .4);
	right: 0;
	bottom: 0;
	border-radius: 50%;
	text-align: center;
	margin-right: 1rem;
	margin-bottom: 2rem;
	padding-top: 0;
	z-index: 500;
	cursor: pointer;
	transition: all 300ms ease-in-out;
	transform: rotate( 240deg) scale(0, 0);
	}	
#tri {
	width: 0;
    height: 0;
    border-left: 1rem solid transparent;
    border-right: 1rem solid transparent;
    border-bottom: 1.6rem solid #fff;
    margin: auto;
    padding-top: .5rem;
	}
#back-to-top.show{
	transform: scale(1, 1);
	transform: rotate(0deg);
	}



/* FOOTER --------------------- */
footer{
	padding:0;
	margin: 3rem 0 4rem 0;
	}
footer ul{
	justify-content: center;
	border-top: solid 1px #ccc;
	list-style: none;
	padding: 1rem .5rem 0 .5rem;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	}
footer li{
	padding: 0;
	font-size: .9rem;
	color: #757575;
	cursor: pointer;
	}
footer li::before{
	content: '|';
	margin: 0 .25rem;
	color: #757575;
	}	
footer li:first-child::before{ 
	content: ''; 
	margin: 0; 
	}				
footer a:link, footer a:visited, footer a:hover{
	color: #757575;
	font-weight: normal;
	}		



/* REMOVES BLUE HIGHLIGHT WHEN ELEMENT IS CLICKED --------------------- */
a:active, img:active, #back-to-top, .link:active, .item-grid>div a:active, .item-grid>div a:active > *{
	-webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
	}	


@media print, (min-width:450px) {
	h1{
		font-size: 3rem;
		line-height: 3rem;
		}
}

@media print, (min-width:650px) {


	#top{ padding: 3rem 1rem; }
	#watersimmersive-title{ font-size: 2.5rem; }
	h1{
		font-size: 4rem;
		line-height: 4rem;
		}

	.item-grid{
		gap: 2.5rem;
		margin: 4rem 4rem;
		line-height: 1.5rem;
		}
	.item-grid div{ width: 13.75rem; }		


	#more-games { min-width: min(90%, 40rem); }

	#back-to-top{ margin-bottom: 1rem; }	

	footer { margin: 5rem auto 4rem auto; }
	footer li{ 
		font-size: .85rem; 
		line-height: 1rem;
		}

}



@media print {

	#back-to-top, 
	#more-games { display:none; }

	/* FOOTER */ 
	footer li{
		padding:0;
		line-height: 1rem;
		}
	footer{
		padding-top: .5rem;
		font-size: .8rem;
		margin: 1rem 0 0 0;
		}	
	footer a::after { content: " (" attr(data-shorturl) ")"; }

}