/* Global Reset & Body */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #000000; /* Black background */
    color: #e0e0e0; /* Light text for dark background */
    display: flex;
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
    min-height: 100vh;
    overflow: hidden; /* Hide scrollbars */
}

/* Image Styling */
.chicken-image {
    max-width: 30%; /* Adjust size relative to viewport */
    max-height: 50vh;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block; /* Needed for centering if body uses flex */
    color: #ffffff;
}

.chicken-image:hover {
    transform: scale(1.03);
}

.chicken-image.playing {
    opacity: 0.85; /* Slight visual feedback when playing */
}

/* Orb Controls Container */
.orb-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background-color: rgba(40, 40, 40, 0.85); /* Dark semi-transparent background */
    padding: 8px 15px;
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); /* Frosted glass effect */
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
}

/* Individual Orb Styling */
.orb {
    width: 40px;
    height: 40px;
    background-color: rgba(80, 80, 80, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(100, 100, 100, 0.5);
}

.orb:hover {
    background-color: rgba(100, 100, 100, 0.9);
    transform: scale(1.1);
}

.orb i.material-icons {
    color: #e0e0e0;
    font-size: 22px;
    transition: color 0.2s ease;
}

/* Main Orb Styling (Settings) */
.orb-main {
    width: 50px;
    height: 50px;
    background-color: rgba(120, 120, 120, 0.8);
    border: 2px solid rgba(200, 200, 200, 0.6);
}

.orb-main:hover {
    background-color: rgba(140, 140, 140, 0.95);
}

.orb-main i.material-icons {
    font-size: 28px;
}

/* Active State for Loop Orb */
.orb#orbLoop.active {
    background-color: #007aff; /* Apple blue for active loop */
    border-color: rgba(0, 122, 255, 0.8);
}

.orb#orbLoop.active i.material-icons {
    color: #ffffff;
}

/* Slider Popup Container */
.slider-popup {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 100px; /* Position above the orbs */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(50, 50, 50, 0.9); /* Darker semi-transparent */
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 90; /* Below orbs but above image */
    width: 300px;
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    margin-bottom: 0;
}

.slider-popup.active {
    display: block; /* Show when active */
    bottom: 110px; /* Slide up slightly */
    opacity: 1;
}

/* Slider Container within Popup */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 12px 0;
    width: 100%;
}

.slider-container label {
    margin-right: 15px;
    color: #cccccc;
    white-space: nowrap;
    font-size: 0.9em;
}

/* Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(100, 100, 100, 0.5); /* Darker track */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

input[type="range"]:hover {
    background: rgba(120, 120, 120, 0.7);
}

/* Thumb styling (Chrome, Edge, Safari) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #007aff; /* Apple blue */
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Thumb styling (Firefox) */
input[type="range"]::-moz-range-thumb {
    width: 16px; /* FF often needs slightly different sizes */
    height: 16px;
    background: #007aff;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Slider Value Display */
.slider-value {
    min-width: 45px; /* Ensure space */
    text-align: right;
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9em;
}

/* Warp Note Styling */
.warp-note {
    font-size: 0.75em;
    color: #aaa;
    text-align: center;
    margin-top: 15px;
    margin-bottom: 0;
} 