/* ========================================
   ANIMA WebGPU Application - Core Styles
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

/* Ambient Canvas Container */
#background-container,
#webgpu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#background-container canvas,
#webgpu-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* ANIMA UI Layer - Sits above WebGPU canvas */
#anima-ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* All ANIMA elements should receive pointer events */
#anima-ui-layer>* {
    pointer-events: auto;
}

/* ========================================
   ANIMA Component Base Styles
   ======================================== */

/* Container base positioning */
.anima-container {
    position: absolute;
}

/* Containers that have children need relative positioning for child absolute positioning */
#anima-main-container {
    position: absolute;
    overflow: visible;
}

/* Slider track styling */
.anima-slider-track {
    position: relative;
    cursor: pointer;
}

.anima-slider-filled {
    position: absolute;
    pointer-events: none;
}

.anima-slider-handle {
    position: absolute;
    cursor: grab;
}

.anima-slider-handle:active {
    cursor: grabbing;
}

/* Text elements */
.anima-title,
.anima-paragraph {
    user-select: none;
}

/* Input elements */
.anima-text-input {
    padding: 4px 8px;
}

.anima-text-input:focus {
    outline: none;
}

/* Dropdown styling */
.anima-dropdown {
    position: relative;
    cursor: pointer;
    padding: 4px 8px;
    user-select: none;
}

.anima-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    display: none;
}

.anima-dropdown-menu.open {
    display: block;
}

.anima-dropdown-item {
    padding: 4px 8px;
    cursor: pointer;
}

/* Checkbox styling */
.anima-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.anima-checkbox-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

.anima-checkbox-label {
    margin-left: 8px;
}

/* Button styling */
.anima-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-user-drag: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.anima-button:focus,
.anima-button:active,
.anima-button:focus-visible,
.anima-button:hover {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

/* Slider value display */
.anima-slider-value {
    position: absolute;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

/* List styling */
.anima-list {
    position: absolute;
}

.anima-list-item {
    transition: color 0.15s ease;
}

@media screen and (max-device-width: 1024px) and (orientation: landscape) {
    .hide-in-landscape {
        display: none !important;
    }
}

@media screen and (max-width: 768px), screen and (max-device-width: 1024px) and (orientation: landscape) {
    .hide-on-mobile {
        display: none !important;
    }
}