* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

body {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    font-family: 'Arial', sans-serif;
}

canvas {
    display: block;
}

#canvas_container {
    width: 100%;
    height: 100vh;
}

.controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 100;
}

.btn {
    border: 1px solid white;
    border-radius: 5px;
    font-size: 0.9rem;
    padding: 0.5rem 0.9em;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-weight: bold;
    cursor: none;
    transition: all 0.3s;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
}

/* Custom cursor only for desktop */
#custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.info-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 100;
}

/* Controls dropdown for mobile */
.controls-dropdown {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 200;
}

.dropdown-toggle {
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid white;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
}

.dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    margin-top: 5px;
    padding: 15px;
    width: min(80vw, 300px);
}

.dropdown-content.active {
    display: block;
}

/* Mobile horizontal sliders instead of vertical */
.slider-container {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    z-index: 100;
}

.slider-container label {
    color: white;
    display: block;
    margin-bottom: 10px;
}

.slider {
    writing-mode: bt-lr;
    width: 150px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    transform: rotate(270deg);
    transform-origin: left;
    margin: 60px 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    cursor: none;
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    /* Hide cursor on mobile */
    #custom-cursor, .cursor-dot {
        display: none;
    }
    
    /* Reset cursor style for mobile */
    * {
        cursor: auto;
    }
    
    /* Button styles for mobile */
    .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    
    /* Bottom controls changes */
    .controls {
        bottom: 15px;
        width: 90%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Show dropdown for controls on mobile */
    .controls-dropdown {
        display: block;
    }
    
    /* Hide the side slider container */
    .slider-container {
        display: none;
    }
    
    /* Mobile slider styles in dropdown */
    .dropdown-slider-container {
        margin: 15px 0;
    }
    
    .dropdown-slider-container label {
        color: white;
        display: block;
        margin-bottom: 8px;
    }
    
    .dropdown-slider {
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        outline: none;
        -webkit-appearance: none;
        margin: 10px 0;
    }
    
    .dropdown-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        width: 15px;
        height: 15px;
        background: white;
        border-radius: 50%;
    }
    
    /* Info panel for mobile */
    .info-panel {
        top: 15px;
        right: 15px;
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Smaller phones */
@media (max-width: 400px) {
    .controls {
        width: 95%;
        bottom: 10px;
    }
    
    .btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.5rem;
    }
}