.tank-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
}

.tank-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.tank-control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.tank-control-btn.disabled:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: none;
}

.tank-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    vertical-align: middle;
}

.tank-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tank-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.tank-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.tank-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

.credits-popup {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.credits-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.credits-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.credits-content {
    margin-top: 20px;
    padding-right: 20px;
}

/* Mobile orientation prompt */
.orientation-prompt {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 1.2em;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 2000;
    flex-direction: column;
    gap: 15px;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .tank-control-btn {
        font-size: 16px;
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        margin: 0 5px;
    }
    
    .tank-volume-slider {
        width: 80px;
        height: 30px;
    }
    
    .credits-popup {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .credits-close-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}

/* Landscape mode optimizations */
@media (orientation: landscape) and (max-height: 500px) {
    .tank-control-btn {
        padding: 5px 8px;
        min-height: 36px;
    }
    
    .tank-volume-slider {
        height: 24px;
    }
    
    .credits-popup {
        max-height: 85vh;
    }
}

/* Prevent text selection on mobile */
.tank-control-btn,
.credits-close-btn {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Improved touch slider styling */
.tank-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    outline: none;
    transition: background 0.2s;
}

.tank-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.tank-volume-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Active states for touch */
.tank-control-btn:active,
.credits-close-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Ensure canvas is responsive */
canvas {
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Add styles for the main controls container */
.controls-container {
    position: absolute;
    bottom: 10px; /* Position above the bottom edge */
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 8px 15px;
    border-radius: 25px; /* Rounded corners */
    display: flex;
    align-items: center; /* Align items vertically */
    gap: 10px; /* Space between controls */
    z-index: 1000; /* Ensure it's above the canvas */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Styles for individual items within the container */
.volume-container {
    display: flex;
    align-items: center;
    gap: 5px; /* Space between icon and slider */
    color: white; /* Icon color */
} 