/**
 * Mobile Controls Plugin CSS
 */

.mobile-controls-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}

.mobile-control {
    position: absolute;
    pointer-events: auto;
    touch-action: none;
}

/* Joysticks */
.joystick {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-joystick {
    bottom: 15%;
    left: 20px;
}

.right-joystick {
    bottom: 15%;
    right: 20px;
}

.joystick-thumb {
    width: 50%;
    height: 50%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Mouse buttons */
.mouse-buttons {
    position: absolute;
    right: 20px;
    top: 20%;
    width: 100px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
}

.mouse-button {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 18px;
}

.left-click {
    border-right: 1px solid rgba(255, 255, 255, 0.7);
}

/* Space button */
.space-button {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 16px;
}

/* Toggle controls button */
.mobile-controls-toggle {
    margin: 10px 0;
    text-align: center;
}

/* Active/pressed state for buttons */
.mouse-button.active,
.space-button.active {
    background-color: rgba(255, 255, 255, 0.6);
}

/* Adjustments for very small screens */
@media (max-height: 500px) {
    .joystick {
        width: 90px;
        height: 90px;
    }
    
    .mouse-buttons {
        width: 80px;
        height: 40px;
    }
    
    .space-button {
        width: 120px;
        height: 30px;
        font-size: 14px;
    }
} 