:root {
	--bg-main: #040b1e;
	--bg-secondary: #0a102a;
	
	--color-main: #F7F7F7;
	--color-secondary: #474F6D;
	--color-border: #30376c;
}

html,
body {
  height: 100%;
  min-width: 320px;
}

h1, h2, h3, h4, h5, h6 {
	margin-bottom: 0;
}

body {
	background-color: var(--bg-main);
	font-family: 'BebasRegular';
	color: var(--color-main);
}

/** LOADING **/

#loading {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	color: var(--color-main);
	overflow: hidden;
	
	z-index: 9999;	
}

#loading > div {
	height: 100%;
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;	
}

.loader {
    margin: auto;
    display: block;
    width: auto;
	padding: 15px;
	text-align: center;
}

/*
--- Button Point ---
*/

.btn {
	border-radius: 3px;
	font-family: 'BebasRegular';
	color: var(--color-main);
	padding: 0.313rem 2rem;
	line-height: normal;
	font-size: 1.125rem;
	text-decoration: none !important;
	
	-webkit-box-shadow: none !important;
			box-shadow: none !important;
}

header, 
main, 
footer {
	float: left;
	width: 100%;
	position: relative;		
}

/** HEADER **/

header {
	background-color: var(--bg-secondary);
	padding: 1rem 0;
	border-bottom: 5px solid var(--color-border);
}

header a {
	display: table;
	margin: auto;
}

header .img-logo {
	height: 65px;
}

/** FUN DEMO GAMES **/

.main-fun-demo-games, 
.title-fun-demo-games, 
.search-fun-demo-games, 
.content-fun-demo-games, 
.loadmore-fun-demo-games, 
.item-fun-demo-game, 
.inner-fun-demo-game, 
.item-fun-demo-game .content, 
.item-fun-demo-game .subtitle {
	float: left;
	width: 100%;
	position: relative;		
}

.main-fun-demo-games {
	padding: 2rem 0;
}

.search-fun-demo-games {
	margin-bottom: 1.5rem;
}

.search-fun-demo-games .input-group-text {
	background-color: #141533;
	border-color: var(--color-border);
	color: var(--color-secondary);	
}

.search-fun-demo-games .form-control {
	background-color: #141533;
	border-color: var(--color-border);
	color: var(--color-main);
}

.search-fun-demo-games .form-control::placeholder {
	color: var(--color-secondary);
}

.content-fun-demo-games {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	grid-column-gap: 0.625rem;
	grid-row-gap: 1rem;
	grid-auto-flow: dense;
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	position: relative;
	min-height: 5rem;
	border-bottom: 2px solid var(--color-border);
}

.content-fun-demo-games .loader, 
.content-fun-demo-games .no-results {
	height: 24px;
	position: absolute;
	left: 0;
	right: 0;
	text-align: center;
	color: var(--color-secondary);
}

.item-fun-demo-game {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 0.4375rem;
	border: 2px solid var(--color-border);
}

.item-fun-demo-game .content {
	
}

.item-fun-demo-game .content img {
	width: 100%;
	height: auto;
}

.item-fun-demo-game .subtitle {
	padding: .625rem;
}

.item-fun-demo-game .subtitle h5, 
.item-fun-demo-game .play-fun-demo-game h5 {
	font-family: 'BebasRegular';
	font-size: .875rem;
	line-height: normal;
	color: var(--color-main);
	text-overflow: ellipsis !important;
	overflow: hidden !important;
	white-space: nowrap !important;
	text-align: center;
}

.item-fun-demo-game .content,
.item-fun-demo-game .subtitle {
    transition: all 0.3s ease-in-out;
}

.item-fun-demo-game:hover .content, 
.item-fun-demo-game:hover .subtitle {
	filter: blur(.313rem);
}
/*
.item-fun-demo-game .play-fun-demo-game {
	display: none;
	transform: translateY(100%);
}

.item-fun-demo-game:hover .play-fun-demo-game {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 0.625rem;
	display: flex;
	justify-content: center;
	align-content: center;
	align-items: center;
	flex-direction: column;
	border-radius: 0.125rem;
	background-color: rgba(4, 11, 30, 0.75);
}
*/

.item-fun-demo-game .play-fun-demo-game {
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.625rem;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 0.125rem;
    background-color: rgba(4, 11, 30, 0.75);
    display: flex; /* jangan pakai display:none */
}
.item-fun-demo-game:hover .play-fun-demo-game {
    opacity: 1;
    transform: translateY(0);
}


.item-fun-demo-game .play-fun-demo-game h5 {
	width: 100%;
	/*padding: 0 0.625rem;*/
	margin-bottom: 1.2rem;
	/*font-size: 1rem;*/
}

.btn-play, 
.btn-play:focus {
	background: linear-gradient(135deg, #2062a8 0%, #3094e9 50%, #2062a8 100%);
	border: 1px solid #6eb4f0;
	color: var(--color-main);
	text-align: center;
	display: flex;
	align-content: center;
	align-items: center;
	text-align: center;
	width: 3.125rem;
	height: 2.875rem;
	font-size: 1.5rem;
	padding: 0.625rem 0.938rem;
	border-radius: 0.75rem;
}

.btn-play:hover {
	background: linear-gradient(135deg, #2062a8 0%,#2062a8 100%);
	border: 1px solid #6eb4f0;
	color: var(--color-main) !important;	
}

.loadmore-fun-demo-games {
	text-align: center;
}

.btn-play-game, 
.btn-play-game:focus {
	/*transform: skewX(-20deg);*/
	border-radius: 0.25rem;
	background: linear-gradient(135deg, #2062a8 0%, #3094e9 50%, #2062a8 100%);
	border: 1px solid #6eb4f0 !important;
	color: var(--color-main) !important;
}

.btn-play-game:hover {
	background: linear-gradient(135deg, #2062a8 0%,#2062a8 100%);
	color: var(--color-main) !important;
}

.btn-play-game span {
	/*transform: skewX(20deg);*/
	display: flex;
}

/** BACK BUTTON MOBILE **/

.back-header {
	background-color: var(--bg-secondary);
	height: 46px;
	display: flex;
	align-items: center;
	padding: 10px 15px 10px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	text-transform: uppercase;
}

.back-header .back-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8em;
  width: 100%;
  color: var(--color-main);
  line-height: 2em;
}

.back-header .back-button svg {
  margin-right: 8px;
  stroke: var(--color-main);
  width: 14px;
  height: 14px;
  position: relative;
  top: -0.01em;
}

.back-header .back-button:hover {
  color: #cccccc;
}

.back-header .back-button:hover svg {
  stroke: #cccccc;
}

/*** iFrame Game ***/

body.on-play-game {
	margin: 0;
	padding: 0;
	background: #0d0d0d;
	font-family: "BebasRegular", sans-serif;
	font-size: 16px;
	color: #f9f9f9;
	min-width: 320px;
	overflow-x: hidden;
}

.iframe-container {
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: var(--bg-main);
}

#iframeGames {
	width: 100% !important;
	height: 100% !important;
	border: none !important;
	border-radius: 0 !important;
}

#iframeGames {
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

#iframeGames.show {
	opacity: 1;
}

.iframe-container {
	height: calc(100vh - 46px) !important;
}

/** FOOTER **/

footer {
	border-top: 1px solid var(--color-border);
}

/** RESPONSIVE **/

@media(max-width: 1199px) {
	
}

@media(max-width: 991px) {
	header .img-logo {
		height: 45px;
	}

	.content-fun-demo-games {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media(max-width: 767px) {
	
}

@media(max-width: 575px) {
	.content-fun-demo-games {
		grid-template-columns: repeat(3, 1fr);
	}	
}

@media(max-width: 480px) {
	header {
		padding: .625rem 0;
	}

	.content-fun-demo-games {
		grid-template-columns: repeat(2, 1fr);
	}	
}

@media(max-width: 360px) {
	
}