@charset 'utf-8';
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Teko:300,400,500');

/* ================================
   FONT FACES
   ================================ */

@font-face {
    font-family: 'Arial';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/arial.woff2') format('woff2'),
         url('fonts/arial.woff') format('woff'),
         url('fonts/arial.ttf') format('truetype');
}

@font-face {
    font-family: 'DINM';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/DINMITTELSCHRIFTSTD.ttf') format('truetype'),
         url('fonts/DINMITTELSCHRIFTSTD.woff') format('woff'),
         url('fonts/DINMITTELSCHRIFTSTD.eot') format('embedded-opentype');
}

/* ================================
   GLOBAL STYLES
   ================================ */

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

body {
    background-image: linear-gradient(to bottom, #172F93, #19256F);
    margin: 0;
    font-family: 'Arial', sans-serif;
}

::-webkit-scrollbar {
	display: none;
	width: 0px;
}

figure {
	margin: 0;
	padding: 0;
	overflow: hidden;
	position: relative;
	width: 100%;	
}

.itemShine figure {
	position: relative;
}

.itemShine figure::before {
	background: -webkit-linear-gradient(left, rgba(57, 131, 255, 0) 0%, rgba(57, 131, 255, .3) 100%);
	background: linear-gradient(to right, rgba(57, 131, 255, 0) 0%, rgba(57, 131, 255, .3) 100%);
	width: 50%;
	height: 100%;
	top: 0;
	left: -75%;
	position: absolute;
	z-index: 2;
	content: '';
	display: block;
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}

.itemShine figure::before {
	-webkit-animation: shine 2s infinite;
	animation: shine 2s infinite;
}
@-webkit-keyframes shine {
	100% {
		left: 100%;
	}
}

@keyframes shine {
	100% {
		left: 100%;
	}
}

@-webkit-keyframes shines {
	100% {
		left: 100%;
	}
}

@keyframes shines {
	100% {
		left: 100%;
	}
}
/* ================================
   CONTAINER STYLES
   ================================ */

.main-wrapper {
    background-size: 100% 100%;
    position: relative;
    margin: 0px auto;
    max-width: 450px;
    height: auto;
    border: 1px solid #111425;
}

.loading-screen {
    background-size: 100% 100%;
    position: relative;
    margin: 0px auto;
    max-width: 450px;
    height: auto;
    border: 1px solid #111425;
}

.game-content {
    display: block;
}

/* ================================
   NAVBAR STYLES
   ================================ */

.header-nav {
    background: #0F131F;
    width: 100%;
    height: 57px;
    padding: 5px 10px;
    border-bottom: 0.1px solid #3D4B70;
    color: #fff;
    font-family: 'Arial', sans-serif;
    display: grid;
    grid-template-columns: 70% auto;
    align-items: center;
    gap: 10px;
}

.nav-left-grid {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-right-grid {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-logo {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.nav-lang {
    width: 20px;
    height: auto;
    object-fit: contain;
}

.nav-menu {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.nav-text {
    font-size: 14px;
    color: #fff;
    font-family: 'Arial';
    padding-left: 7px;
    border-left: 1px solid #4B5D71;
    white-space: nowrap;
}

/* Legacy styles for backward compatibility */
.nav-left {
    width: auto;
    float: left;
    margin-left: 10px;
}

.nav-right {
    width: auto;
    float: right;
}

/* ===========================
   BOTTOM NAVBAR STYLES
   =========================== */

.bottom-bar {
    background: #181F32 no-repeat center center;
    background-size: 100% 100%;
    width: 100%;
    height: auto;
    padding: 6px;
    margin: 0px;
    border-radius: 0px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

.main-container {
    display: flex;
    align-items: center;
    gap: 0px;
    height: auto;
    background: rgba(61, 75, 112, 0.2);
	border: 1px solid rgba(61, 75, 112, 0.6);
    border-radius: 6px;
    padding: 4px;    
    flex: 1;
    width: 100%;
}

.left-section {
    display: flex;
    align-items: center;
    gap: 0px;
    height: auto;
    border-radius: 4px;
    padding: 0px;    
    flex: 1;
}

.right-section {
    display: flex;
    align-items: center;
    height: auto;
    background: rgba(61, 75, 112, 0.2);
	border: 1px solid rgba(61, 75, 112, 0.4);
    border-radius: 4px;
    padding: 4px;
    width: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.game-info {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: 1;
	width: 100%;
	margin-left: -2px;
}

.game-avatar {
	width: 35px;
	height: 35px;
	display: flex;
	border-radius: 50%;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.game-avatar img {
	width: 100%;
	height: auto;
	border-radius: 50%;
	border: 1px solid rgba(61, 75, 112, 0.4);
	object-fit: contain;
	filter: brightness(1.1);
}

.game-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1;
}

.game-title {
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.game-subtitle {
	color: #79EAFA;
	font-size: 9px;
	font-weight: 400;
	line-height: 1;
	margin: 0;
	opacity: 0.9;
	margin-top: 1px;
}

.stats-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
	white-space: nowrap;
	width: 100%;
}

.stats-icon {
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	line-height: 0;
}

.stats-icon img {
	width: 12px;
	height: 12px;
	filter: brightness(1.2) contrast(1.1);
}

.stats-number {
	color: #79EAFA;
	font-size: 12px;
	font-weight: 400;
	text-align: center;
	line-height: 0;
	margin: 0;
	display: flex;
	align-items: center;
}

.new-container {
    background: #181F32;
    width: 100%;
    height: auto;
    padding: 10px;
    margin: 0px;
    border-radius: 0px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
}

.new-content {
    display: flex;
    align-items: center;
    gap: 0px;
    height: auto;
    background: rgba(61, 75, 112, 0.2);
	border: 1px solid rgba(61, 75, 112, 0.4);
    border-radius: 4px;
    padding: 8px;    
    flex: 1;
    width: 100%;
}  

/* ===========================
   DASHBOARD STYLES
   =========================== */

.dashboard-container {
    background: url('../assets_img/dashboard.jpg') no-repeat center center;
    background-size: 100% 100%;
    width: 100%;
    height: auto;
    padding: 10px;
    margin: 0px;
    border-top: 1px solid #7BF9F8;
    border-radius: 0px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.dashboard-user-section {
    display: flex;
    align-items: center;
    gap: 0px;
    height: 36px;
    background: linear-gradient(to bottom, #1A256F, #1A2F93);
    border-top: 1px solid #FF47FF;
    border-left: 1px solid #FF47FF;
    border-bottom: 1px solid #7BF9F8;
    border-right: 1px solid #FF47FF;
    border-radius: 0px;
    padding: 0;
    overflow: hidden;
    flex: 1;
}

.dashboard-user-icon {
    width: 32px;
    height: 36px;
    background: linear-gradient(to bottom, #1A256F, #1A2F93);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #79EAFA;
    font-size: 14px;
    flex-shrink: 0;
    border-right: 1px solid #FF47FF;
}

.dashboard-user-info {
    flex: 1;
    height: 100%;
    background: linear-gradient(to bottom, #1A256F, #1A2F93);
    border: none;
    display: flex;
    align-items: center;
    padding-left: 5px;
    overflow: hidden;
}

.user-status-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: transparent;
}

.user-login-indicator {
    display: flex;
    align-items: center;
    flex: 1;
    border: none;
    background: transparent;
    margin: 0;
    padding: 0;
}

.user-logout-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 4px 8px;
    margin-right: 8px;
    background: linear-gradient(to bottom, #FF4757, #FF3742);
    border: 1px solid #FF6B7A;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.user-logout-button:hover {
    background: linear-gradient(to bottom, #FF3742, #FF2D39);
    border-color: #FF5A6B;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.user-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    padding: 4px 12px;
    margin-right: 8px;
    background: linear-gradient(to bottom, #EFD300, #F2BA00);
    border: 1px solid #FF6B7A;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;    
}

.user-login-button:hover {
    background: linear-gradient(to bottom, #EFD300, #F2BA00);
    border-color: #FF5A6B;
    transform: translateY(-1px);    
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
}

.logout-text {
    color: #FFFFFF;
    font-size: 10px;
    font-family: Arial, sans-serif;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}
.login-text {
    color: #000;
    font-size: 10px;
    font-family: Arial, sans-serif;
    font-weight: 500;    
    white-space: nowrap;
}

.user-id-text {
    color: #79EAFA;
    font-size: 13px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#logged-user-id {
    color: #FFEB3B;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.dashboard-version-section {
    display: flex;
    align-items: center;
    height: 36px;
    background: linear-gradient(to bottom, #1A256F, #1A2F93);
    border-top: 1px solid #FF47FF;
    border-left: 1px solid #FF47FF;
    border-bottom: 1px solid #7BF9F8;
    border-right: 1px solid #FF47FF;
    border-radius: 0px;
    padding: 8px 12px;
    width: auto;
    flex-shrink: 0;
    box-sizing: border-box;
}

.version-info-display {
    color: #79EAFA;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}

.version-info-display a {
    color: #79EAFA;
    text-decoration: none;
    font-weight: 400;
}

/* ================================
   NEW FOOTER STYLES
   ================================ */

.footer {
	background: #191C25;		
	width: 100%;
	height: auto;
	padding: 15px;
	border-left: 0px solid #fff;
	border-right: 0px solid #fff;
	border-bottom: 0px solid #fff;
	border-top: .1px solid #3D4B70;
}

.footer-content {
	max-width: 400px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.footer-logo {
	text-align: center;
	display: flex;
	justify-content: center;
	align-items: center;
}

.logo-image {
	width: 45%;
	height: auto;
	display: block;
}

.footer-spacer {
	height: 10px;
}

.footer-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.link-item {
	color: #fff;
	font-size: 12px;
	font-family: arial, sans-serif;
	text-align: center;
	cursor: pointer;
	transition: color 0.3s ease;
}

.link-item:hover {
	color: #79EAFA;
}

.link-separator {
	width: 1px;
	height: 12px;
	background: #fff;
	opacity: 0.3;
}

.footer-copyright {
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.copyright-text {
	color: #555659;
	font-size: 11px;
	font-family: arial, sans-serif;
	text-align: center;
	line-height: 1.2;
}

.footer-social {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	align-items: center;
	justify-items: center;
	margin-top: 15px;
	max-width: 280px;
	margin-left: auto;
	margin-right: auto;
}

.social-icon {
	width: 30px;
	height: 30px;
	opacity: 0.7;
	transition: all 0.3s ease;
	cursor: pointer;
	display: block;
}

.social-icon:hover {
	opacity: 1;
	transform: translateY(-2px);
}

/* ================================
   HEADER STYLES
   ================================ */

.header {
    position: relative;
    width: 100%;
    height: auto;
    margin-bottom: 0px;
}

/* Hidden reference image to establish natural height */
.header-img:first-child {
    position: relative;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 2;
}

/* Background layer that matches the image height */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets_img/header/header_bg.jpg') no-repeat center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Other images positioned absolutely over the first one */
.header-img:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.5s ease-in-out;
    z-index: 2;
    opacity: 0;
}

.header-img.active {
    opacity: 1;
}

.header-img.fade-out {
    opacity: 0;
}

/* ===========================
   NOTIFICATION SLIDER STYLES
   =========================== */

.alert-text-center {
    width: 98%;
    margin: 0 auto;
    margin-bottom: 10px;
    text-align: center;
    
    display: flex;
    justify-content: center; /* Tengah secara horizontal */
    align-items: center;     /* Tengah secara vertikal jika perlu */
    gap: 0px;                /* Jarak antar elemen */
}

.alert-text-icon,
.alert-text {
    background: linear-gradient(to bottom, #1A256F, #1A2F93);
    background-size: 100% 100%;
    height: 36px;
    padding: 5px;
    margin: 0;
    overflow: hidden;
    font-size: 13px;
    font-family: Arial;
    font-style: italic;
    font-weight: 400;
    color: #79EAFA;
    border-radius: 0px;    
    display: flex;
    align-items: center;
}

.alert-text-icon {
    width: 10%;
    border-top: 1px solid #FF47FF;
    border-left: 1px solid #FF47FF;
    border-bottom: 1px solid #7BF9F8;
    border-right: none;
    text-align: center;    
    justify-content: center;
}

.alert-text {
    width: 90%;
    border-top: 1px solid #FF47FF;
    border-left: 1px solid #FF47FF;
    border-bottom: 1px solid #7BF9F8;
    border-right: 1px solid #FF47FF;
    text-align: left;
    padding-left: 10px;
    position: relative;
    overflow: hidden;
}

.notification-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-notification {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.slider-notification.active {
    opacity: 1;
    transform: translateY(0);
}

.slider-notification.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

.notification-text {
    color: #79EAFA;
    font-size: 13px;
    font-family: Arial, sans-serif;
    font-style: italic;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ================================
   GAME SECTION STYLES
   ================================ */

.game-section {
    width: 100%;
    height: auto;
}

.spin-container {
    background-image: linear-gradient(to bottom, #172F93, #19256F);
    width: 100%;
    height: auto;
    padding: 0px;
    margin-top: 0px;
    display: block;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    --angle: 360deg;
    border-image: linear-gradient(var(--angle), #DA40DC, #3FC8FF, #15FFFF, #DA40DC) 1;
    animation: rotate 1s linear infinite;
}

/* ================================
   SPIN WHEEL STYLES
   ================================ */

.wheel-box {
    background: url('../assets_img/bg.png') no-repeat center;
    background-size: 100% 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;    
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 5px;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0px solid #FF47FF;
}

.wheel-content {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    margin: 0 auto;
    padding: 0px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0px;
}

/* Grid 4x4 Layout */
.wheel-grid {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.wheel-row {
    display: flex;
    flex: 1;
    gap: 4px;
}

.wheel-item {
    background: url('../assets_img/item_off.png') no-repeat center center;
    background-size: 100% 100%;
    flex: 1;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0px;
    position: relative;
}

.wheel-item.wheel-empty {
    background: none;
    opacity: 0;
    pointer-events: none;
}

.wheel-item img {
    width: 93%;
    height: 93%;
    object-fit: contain;
    padding: 0px;
    border: none;
    border-radius: 0px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spin_on {
    background: url('../assets_img/item_on.png') no-repeat center center;
    background-size: 100% 100%;
}

.spin_on img {
    opacity: 0.5;
}

/* ================================
   SPIN BUTTON STYLES
   ================================ */

.spin-button {
    background: url('../assets_img/btn_spin1.png') no-repeat center;
    background-size: 100% 100%;
    width: 120px;
    height: 120px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: 
        fade 1s forwards,
        bounce 0.9s infinite alternate;
    animation-play-state: running;
    cursor: none;
    border: none;
    outline: none;
    transition: opacity 0.5s ease;
}

.spin-button.spinning {
    animation: 
        fade 1s forwards,
        spin 1s linear infinite;
    animation-play-state: running;
}

.spin-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.spin-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* ================================
   SELECTED ITEM STYLES
   ================================ */

.result-display {
    background: url('../assets_img/item_off.png') no-repeat center;
    background-size: 100% 100%;
    width: 100px;
    height: auto;
    aspect-ratio: 1 / 1;
    position: absolute;
}

.result-display .valueimgalex {
    width: 93%;
    height: 93%;
    object-fit: contain;
    border-radius: 5px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.valueimgalex {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}

/* ================================
   REWARD WHEEL IDS (reward-0 to reward-7)
   ================================ */

/* Reward wheel items inherit styles from .wheel-item class */

/* ================================
   ANIMATIONS AND KEYFRAMES
   ================================ */

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotate {
    to {
        --angle: 360deg;
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bounce {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ================================
   UTILITY CLASSES
   ================================ */

.flip {
	border: 0px solid #66000000;-webkit-animation: shine 2s infinite;
	animation: shine 0s infinite;	
}
@property --angle {
	syntax: '<angle>';
	initial-value: 0deg;
	inherits: false;
}
.gradient {
	border: 0px solid #66000000;
}
.flip {
	--angle: 360deg;
	border-image: linear-gradient(var(--angle), #00c4de, #1b56ff, #00c4de, #1b56ff) 1;
	animation-name: flip;
	animation:
		fade 1s forwards,
		flip 0.5s forwards,
		rotate 5s linear infinite;
}
@keyframes fade {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}
@keyframes flip {
	from {
		transform: rotateY(0deg);
	}
	to {
		transform: rotateY(360deg);
	}
}
@keyframes rotate {
	to {
		--angle: 0deg;
		visibility: hidden;
	}
}

.fadecos {
    animation-name: fade;
    animation: fade 1s forwards;
}

