.textLabels {
    position: absolute;
    background-color: rgba(0,0,0,0);
    font-family: Impact, Charcoal, sans-serif;
    font-size: 24pt;
    height: 30px;
}

.uwTheme {
    top: 110px;
    color: purple;
}

#gameTitleDuringRound {
    left: 250px;
}

#roundNumber {
    left: 900px;
}

/* Responsive Game Container */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: Arial, sans-serif;
}

#gameWorldContainer {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#gameWorld {
    border: none;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#playerOneScore {
    top: 640px;
    left: 325px;
    color: DarkSlateBlue;
}

#playerTwoScore {
    top: 640px;
    left: 525px;
    color: LimeGreen;
}

#playerThreeScore {
    top: 640px;
    left: 725px;
    color: Red;
}

#playerFourScore {
    top: 640px;
    left: 925px;
    color: Gold;
}

#roundTimer {
    color: Black;
    top: 110px;
    left: 590px;
    font-size: 32pt;
    display: none;
}

#transitionTitle {
    top: 150px;
    left: 540px;
    font-size: 48px;
}

/* Virtual Joystick and Touch Controls */
.virtual-controls {
    position: fixed;
    z-index: 1000;
    display: none;
    transform-origin: center center;
}

.virtual-joystick {
    position: relative;
    width: 120px;
    height: 120px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    touch-action: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.joystick-knob {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.joystick-center {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none; /* Sembunyikan titik hitam di tengah */
}

.jump-button {
    position: fixed;
    width: 100px; /* Ukuran 100px sesuai permintaan */
    height: 100px; /* Ukuran 100px sesuai permintaan */
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 1000;
    touch-action: none;
    user-select: none;
    transition: transform 0.1s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.jump-knob {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease;
}

/* Removed the active state transform as we're handling it in JS */
.jump-button:active {
    /* transform is now handled in JS to preserve positioning */
}

/* Rotation Prompt for Mobile */
#rotatePrompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Force landscape orientation on mobile devices */
@media screen and (orientation: portrait) and (max-width: 768px) {
    body {
        transform: rotate(90deg);
        transform-origin: center center;
        width: 100vh;
        height: 100vw;
        overflow: hidden;
        position: fixed;
        top: 50%;
        left: 50%;
        margin-left: -50vh;
        margin-top: -50vw;
    }
    
    #gameWorldContainer {
        width: 100vh !important;
        height: 100vw !important;
    }
    
    #gameWorld {
        width: 100vh !important;
        height: 100vw !important;
    }
}

/* PWA Force Landscape Mode */
body.force-landscape {
    transform: rotate(90deg);
    transform-origin: center center;
    width: 100vh;
    height: 100vw;
    overflow: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -50vh;
    margin-top: -50vw;
}

body.force-landscape #gameWorldContainer {
    width: 100vh !important;
    height: 100vw !important;
}

body.force-landscape #gameWorld {
    width: 100vh !important;
    height: 100vw !important;
}

/* PWA Install Button */
#installBtn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-family: 'Impact', sans-serif;
}

#installBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

#installBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Fullscreen Mode Styles */
:fullscreen {
    background: #000000;
    overflow: hidden;
}

:-webkit-full-screen {
    background: #000000;
    overflow: hidden;
}

:-moz-full-screen {
    background: #000000;
    overflow: hidden;
}

:-ms-fullscreen {
    background: #000000;
    overflow: hidden;
}

/* Hide Chrome Mobile UI elements in fullscreen */
:fullscreen body {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

:-webkit-full-screen body {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

:-moz-full-screen body {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

:-ms-fullscreen body {
    overflow: hidden;
    position: fixed;
    width: 100vw;
    height: 100vh;
}

/* Prevent address bar from showing */
:fullscreen #gameWorldContainer {
    height: 100vh !important;
    width: 100vw !important;
}

:-webkit-full-screen #gameWorldContainer {
    height: 100vh !important;
    width: 100vw !important;
}

:-moz-full-screen #gameWorldContainer {
    height: 100vh !important;
    width: 100vw !important;
}

:-ms-fullscreen #gameWorldContainer {
    height: 100vh !important;
    width: 100vw !important;
}

/* Fullscreen button styles */
.fullscreen-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #4CAF50;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Impact', sans-serif;
    font-size: 12px;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: #4CAF50;
    transform: scale(1.05);
}

.fullscreen-btn:active {
    transform: scale(0.95);
}

/* Hide ALL UI elements when in fullscreen - NO EXIT OPTIONS */
:fullscreen .fullscreen-btn,
:fullscreen #installBtn,
:fullscreen #exit-fullscreen-prompt,
:fullscreen .fullscreen-exit-btn {
    display: none !important;
}

:-webkit-full-screen .fullscreen-btn,
:-webkit-full-screen #installBtn,
:-webkit-full-screen #exit-fullscreen-prompt,
:-webkit-full-screen .fullscreen-exit-btn {
    display: none !important;
}

:-moz-full-screen .fullscreen-btn,
:-moz-full-screen #installBtn,
:-moz-full-screen #exit-fullscreen-prompt,
:-moz-full-screen .fullscreen-exit-btn {
    display: none !important;
}

:-ms-fullscreen .fullscreen-btn,
:-ms-fullscreen #installBtn,
:-ms-fullscreen #exit-fullscreen-prompt,
:-ms-fullscreen .fullscreen-exit-btn {
    display: none !important;
}

/* Prevent any UI from showing in fullscreen */
:fullscreen * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:-webkit-full-screen * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:-moz-full-screen * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:-ms-fullscreen * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.rotate-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border: 4px solid white;
    border-radius: 10px;
    position: relative;
    animation: rotate 1.5s ease-in-out infinite;
}

.rotate-icon:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 80px;
    border: 4px solid white;
    border-radius: 5px;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

.rotate-text {
    color: white;
    font-size: 24px;
    text-align: center;
    max-width: 80%;
    margin-top: 20px;
    line-height: 1.4;
    font-family: 'Impact', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.rotate-text small {
    font-size: 16px;
    color: #ccc;
    font-family: Arial, sans-serif;
    display: block;
    margin-top: 10px;
}

/* Touch control indicators - Icon symbols */
.touch-indicator {
    position: absolute;
    font-size: 22px; /* Ukuran font lebih besar */
    color: rgba(255, 255, 255, 0.9); /* Warna lebih jelas */
    text-align: center;
    pointer-events: none;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.touch-indicator.top {
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-50%); /* Posisi di ujung lingkaran */
}

.touch-indicator.bottom {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%); /* Posisi di ujung lingkaran */
}

.touch-indicator.left {
    left: 0;
    top: 50%;
    transform: translateX(-50%) translateY(-50%); /* Posisi di ujung lingkaran */
}

.touch-indicator.right {
    right: 0;
    top: 50%;
    transform: translateX(50%) translateY(-50%); /* Posisi di ujung lingkaran */
}
