

/* tombol ke halaman slot start */
.tombol {
	position: fixed;
	display: inline-block;
	overflow: hidden;
	border-radius: 8px;

	top: 50px;
	left: 100px;
	width: 100px;
	height: 40px;
}

.tombol img {
	position: fixed;
	width: 10%;
	height: auto;
	margin-left: -100px;
	margin-top: -50px;
  	display: block;
}
/* tombol ke halaman slot end */





.debug {
	position: absolute;
	top: 20px;
	left: 45%;
	transform: translateX(-50%);
	padding: 4px;
	background: white;
	border: 1px solid rgba(0, 0, 0, 0.3);
	font-family: monospace;
	font-size: 1.6rem;
	z-index: 8888;
}

html, body {
	height: 100%;
}

body {
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(45deg, grey 0%, lightgray 100%);
	z-index: 1;
}

.binkay {
	position: absolute;
	top: 50%;
	left: 10%;
	transform: translate(-50%, -50%);
	z-index: 5; /* Membuat binkay berada di belakang slots */
}

.binkay img {
	width: 200%;
	height: auto;
	border-radius: 5px; /* Bisa disesuaikan dengan kebutuhan */
}

.slots {
	position: relative;
	width: 276.5px; /* SEtting lebar kotak */
	height: 237px; /* kyk nya tinggi nya */
	display: flex;
	justify-content: space-between;
	padding: 23.7px; /* Adjusted based on $icon_width value */
	background: rgba(0, 0, 0, 0.5); /* Warna hitam dengan transparansi 0.5 */
	/* background: linear-gradient(45deg, black 0%, #2B1E18 20%, #DAA520 40%, #2B1E18 60%, black 80%);
	border-top: 1px solid rgba(255, 255, 255, 0.6);
	border-right: 1px solid rgba(53, 50, 50, 0.6);
	border-left: 1px solid rgba(0, 0, 0, 0.4);
	border-bottom: 1px solid rgba(0, 0, 0, 0.4);
	box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);  */
	border-radius: 3px; 

	&::before, 
	&::after {
		content: "";
		position: absolute;
		top: 50%;
		width: 10px;
		height: 2px;
		background-color: rgba(0, 0, 0, 0.5);
	}

	&::before {
		left: 0;
		transform: translate(-200%, -50%);
	}

	&::after {
		right: 0;
		transform: translate(200%, -50%);
	}

	@keyframes win1 {
		0% {
			background: linear-gradient(45deg, orange 0%, yellow 100%); 
			box-shadow: 0 0 80px orange;
		}
		100% {
			background: linear-gradient(45deg, grey 0%, lightgrey 100%);
			box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);
		}
	}

	@keyframes win2 {
		0% {
			background: linear-gradient(45deg, lightblue 0%, lightgreen 100%); 
			box-shadow: 0 0 80px lightgreen;
		}
		100% {
			background: linear-gradient(45deg, grey 0%, lightgrey 100%);
			box-shadow: -2px 2px 3px rgba(0, 0, 0, 0.3);
		}
	}

	&.win1 {
		animation: win1 200ms steps(2, end) infinite;
	}

	&.win2 {
		animation: win2 200ms steps(2, end) infinite;
	}

	.reel {
		position: relative;
		width: 79px; /* Adjusted based on $icon_width value */
		height: 237px; /* Adjusted based on $icon_height value */
		border: 1px solid rgba(0, 0, 0, 0.3);
		border-radius: 3px;
		overflow: hidden;
		background-image: url(https://assets.codepen.io/439000/slotreel.webp);
		/* background-image: url('../images/home-bg.jpg'); */
		background-position: 0 0;
		background-repeat: repeat-y;

		&::after {
			content: "";
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			background-image: linear-gradient(rgba(0, 0, 0, 0.4) 0%, transparent 30%, transparent 70%, rgba(0, 0, 0, 0.4) 100%);
			box-shadow: inset 0 0 6px 2px rgba(0, 0, 0, 0.3);
		}
	}

	p {
		position: absolute;
		bottom: 0;
		left: 50%;
		width: 100%;
		transform: translate(-50%, calc(100% + 30px));
		text-align: center;
		font-size: 0.80rem;
		color: #444;

		a { color: red; font-weight: 700; }
	}
}


#joystick {
    position: center;
    right: 20px;
    top: 20px;
    width: 50px;
    height: 100px;
    background: linear-gradient(20deg, black 0%, silver 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#handle {
    width: 40px;
    height: 40px;
    background-color: red;
    border-radius: 50%;
    cursor: grab;
	z-index: 9999;
}

#joystick.active #handle {
    cursor: grabbing;
}










/* Laptop */
@media (max-width: 1366px){
	.navbar {
        height: auto;
    }

    .tombol {
        left: 100px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .navbar {
        height: auto;
    }

    .tombol {
        left: 100px;
    }
}

/* Hape */
@media (max-width: 450px) {
    .navbar {
        height: auto; 
    }

    .tombol {
        left: 100px; 
        width: 15px; 
        height: 60px;
    }
}