body {
  margin: 0;
  overflow: hidden; 
  background-color: #000;
  font-family: Verdana, Geneva, sans-serif;
  color:white;
}

canvas {
  position: absolute; 
  top: 0;
  left: 0;
  display: block;
  z-index: 0;
  pointer-events: auto;
}

.panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 250px;
    z-index: 1000;
    background: rgba(0, 15, 30, 0.85); 
    color: #00ffcc;
    border: 1px solid #00ffcc; 
    padding: 15px; 
    font-family: monospace;
    backdrop-filter: blur(5px); 
    border-radius: 8px;
}
.panel.hidden { display: none; }
input[type=range] { width: 100%; cursor: pointer; }
.danger-btn { background: #ff3333; color: white; border: none; width: 100%; padding: 8px; cursor: pointer; }

.label-row {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 5px;
}

.control-group {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1); 
    padding-bottom: 15px;
}

.control-group:last-of-type {
    border-bottom: none;
}

.control-group label {
    color: #00ffcc;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.val-display {
    color: #ffffff;
    font-family: monospace;
    font-size: 1em;
}

.slider-labels {
    display: flex; 
    justify-content: space-between; 
    font-size: 0.7em; 
    color: rgba(255, 255, 255, 0.5); 
    margin-top: 5px;
}

input[type="color"] {
    -webkit-appearance: none;
    border: 1px solid #00ffcc;
    width: 100%;
    height: 30px;
    padding: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}
input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 2px;
}

#title-container {
    position: absolute;
    top: 10px;
    right: 20px;
    text-align: right;
    z-index: 2;
    font-family: Verdana, Geneva, sans-serif;
}

#title {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    z-index: 2; 
}

#disclaimer {
    font-size: 13px;
    color: #00ffcc; 
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 1;
}

#disclaimer.slide-down {
    opacity: 1;
    transform: translateY(0);
}

#menu {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 220px;
    height: 100vh;
    background: rgba(20,20,20,0.75);
    padding: 20px;
    box-shadow: 2px 0 15px rgba(0,0,0,0.7);
    z-index: 1;
    transition: transform 0.3s ease;
    font-family: Verdana, Geneva, sans-serif;
    display: flex;
    flex-direction: column;
}

#menu.closed {
    transform: translateX(-100%);
}

#menu h2, #menu .menu-item, #menu hr, #menu input[type="file"] {
    flex-shrink: 0; 
}

.menu-item {
    display:flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
}

.menu-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

#info-panel {
    position: fixed; 
    bottom: 20px;    
    right: 20px;
    width: 300px;
    background: rgba(0, 15, 30, 0.9);
    border: 1px solid #00ffcc;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 2000;   
    backdrop-filter: blur(5px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
    opacity: 1;
    transform: translateY(0); 
    visibility: visible;
}

#info-panel.hidden {
    opacity: 0;
    transform: translateY(50px); 
    visibility: hidden; 
}

#close-info {
    position: absolute; 
    top: 10px;          
    right: 10px;        
    background: transparent;
    border: none;
    color: white;   
    font-size: 1.5em;  
    cursor: pointer;
    z-index: 10;
}

#menu h2 {
    margin-top: 20px;
    font-size: 18px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

#menu button, #menu input {
    display: block;
    margin: 10px -10px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #333;
    color: white;
    cursor: pointer;
    font-size: 14px;
}

#toggleObjectMenu {
    position: absolute;
    left: 0px; 
    top: 50%;
    margin-left: 20px;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    font-size: 20px;
    z-index: 2;
    background: #444;
    color: white;
    border: none;
    border-top-right-radius: 6px;    
    border-bottom-right-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: left 0.3s;
}

.gallery {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 8px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    flex-grow: 1; 
    overflow-y: auto !important; 
    margin-bottom: 20px;
    min-height: 100px;
}

.gallery img {
  width: 60px;
  height: 60px;
  cursor: grab;
  object-fit: contain;
}

#uploaded-gallery {
    margin-top: 15px;
    display: none;
}

.uploaded-item {
    flex-shrink: 0; 
}

.gallery::-webkit-scrollbar {
    width: 6px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.gallery::-webkit-scrollbar-thumb {
    background: #00ffcc;
    border-radius: 3px;
}

.uploaded-item:hover {
    background: rgba(0, 255, 204, 0.1);
    border-radius: 4px;
}
