* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background: #0a0a14;
    color: #e0e0ff;
    overflow: hidden;
    height: 100vh;
}

#container {
    position: relative;
    width: 100%;
    height: 100vh;
}

#canvas-container {
    width: 100%;
    height: 100%;
}

#info-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(10, 10, 30, 0.85);
    border: 2px solid #4a4aff;
    border-radius: 10px;
    padding: 20px;
    width: 25%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(74, 74, 255, 0.3);
    z-index: 10;
}

#info-panel h1 {
    color: #8a8aff;
    margin-bottom: 15px;
    font-size: 24px;
    text-shadow: 0 0 5px #4a4aff;
    border-bottom: 1px solid #4a4aff;
    padding-bottom: 5px;
}

#info-panel h2 {
    color: #8a8aff;
    margin: 15px 0 10px 0;
    font-size: 18px;
}

#info-panel p {
    line-height: 1.5;
    margin-bottom: 15px;
}

#info-panel ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

#info-panel li {
    margin-bottom: 8px;
}

.highlight {
    color: #ff9d5c;
    font-weight: bold;
}

#object-info {
    background: rgba(20, 20, 40, 0.9);
    border: 1px solid #8a8aff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    display: none;
}

#object-info.active {
    display: block;
    animation: fadeIn 0.5s;
}

#controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(10, 10, 30, 0.85);
    border: 2px solid #4a4aff;
    border-radius: 10px;
    padding: 15px;
    width: 320px;
    z-index: 10;
}

#controls p {
    margin-bottom: 10px;
    font-size: 14px;
}

.btn {
    background: #2a2a5a;
    color: #8a8aff;
    border: 1px solid #4a4aff;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 5px 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: #4a4aff;
    color: #0a0a14;
    box-shadow: 0 0 10px #4a4aff;
}

.notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid #ff9d5c;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    z-index: 20;
    display: none;
    max-width: 400px;
}

.notification.active {
    display: block;
    animation: fadeIn 0.5s;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #8a8aff;
    font-size: 20px;
    z-index: 5;
    text-align: center;
}

.loader {
    border: 5px solid #1a1a3a;
    border-top: 5px solid #4a4aff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 5px #4a4aff;
    }

    50% {
        box-shadow: 0 0 20px #4a4aff;
    }

    100% {
        box-shadow: 0 0 5px #4a4aff;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Default cursor for the body */
body {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="7" fill="none" stroke="%234a4aff" stroke-width="1"/><circle cx="8" cy="8" r="2" fill="%234a4aff"/></svg>') 8 8, auto;
}

/* Pointer finger cursor for clickable objects */
.pointer-cursor {
    /*cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M8,8 C8,4.686 10.686,2 14,2 C17.314,2 20,4.686 20,8 L20,18 C20,21.314 17.314,24 14,24 C10.686,24 8,21.314 8,18 L8,8 Z" fill="%234a4aff" stroke="%23ffffff" stroke-width="1"/><path d="M14,8 L14,18" stroke="%23ffffff" stroke-width="2"/><path d="M11,11 L17,11" stroke="%23ffffff" stroke-width="2"/></svg>') 6 2, pointer !important;*/
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="7" fill="none" stroke="%23FFFF" stroke-width="1"/><circle cx="8" cy="8" r="2" fill="%23FFFF"/></svg>') 8 8, auto;
}

a {
    color: #ff9d5c;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #4a4aff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6a6aff;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    #info-panel,
    #controls {
        width: 90%;
        left: 5%;
        right: 5%;
    }

    #info-panel {
        top: 10px;
        max-height: 50vh;
    }

    #controls {
        bottom: 10px;
    }
}

.progress-bar {
    width: 200px;
    height: 10px;
    background: #1a1a3a;
    border-radius: 5px;
    margin: 10px auto;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4a4aff;
    width: 0%;
    transition: width 0.3s;
}
