body {
    background-color: #000;
    margin: 0px;
    overflow: hidden;

    color: #fff;
    font-family: Monospace;
    font-size: 13px;
    font-weight: bold;
}

.info {
    text-align: center;

    position: absolute;
    padding: 10px;
    width: 100%;
    text-align: center;
    color: #ffffff;
}

/* Copyright Icon - Bottom Right Corner */
.copyright-icon {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.copyright-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

/* Music Icon - Bottom Left Corner */
.music-icon {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.music-icon:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.music-icon.playing {
    background: rgba(74, 158, 255, 0.8);
    color: white;
    animation: pulse 2s infinite;
}

.music-icon.playing:hover {
    background: rgba(74, 158, 255, 1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 158, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 158, 255, 0); }
}

/* Credits Panel */
.credits-panel {
    position: fixed;
    bottom: 70px;
    right: 15px;
    width: 350px;
    max-width: 90vw;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.credits-panel.show {
    transform: translateY(0);
    opacity: 1;
}

.credits-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-header h3 {
    margin: 0;
    color: white;
    font-size: 16px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.credits-content {
    padding: 20px;
}

.credit-section {
    margin-bottom: 20px;
}

.credit-section:last-child {
    margin-bottom: 0;
}

.credit-section h4 {
    margin: 0 0 10px 0;
    color: #4a9eff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credit-section p {
    margin: 5px 0;
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}

.credit-section a {
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 5px 0;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-size: 13px;
}

.credit-section a:hover {
    color: #4a9eff;
}

.credit-section a i {
    margin-right: 8px;
    width: 16px;
}

.attribution a:hover {
    color: #4a9eff;
}

#loader {
    margin-top: 20%;
}

.disclaimer {
    margin-top: 1em;
    color: gray;
}

#hint-text {
    position: absolute;
    /*right: 270px;*/
    width: 100%;
    top: 10px;
    text-align: center;
    font-weight: normal;
    color: #cccccc;
}

a {
    color: white;
    text-decoration: none;
}

a:hover {
    color: #cccccc;
}

.initially-hidden {
    visibility: hidden;
}

@media screen and (max-width: 800px) {
    .hidden-phone {
        visibility: hidden;
    }
}

/* Controls Panel Styles */
.controls-panel {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0;
    font-family: Monospace;
    font-size: 12px;
    color: #fff;
    min-width: 280px;
    max-width: 320px;
    max-height: 90vh;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.controls-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    transition: background-color 0.2s ease;
}

.controls-header:hover {
    background: rgba(0, 0, 0, 0.9);
}

.controls-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.toggle-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ccc;
}

.controls-content {
    padding: 15px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.controls-content.collapsed {
    max-height: 0 !important;
    padding: 0 15px !important;
    overflow: hidden !important;
    opacity: 0;
}

.control-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
}

.control-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.control-section h4 {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #ccc;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-group {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    flex: 1;
    font-weight: normal;
    color: #ddd;
    font-size: 11px;
    margin-right: 10px;
}

.control-group input[type="range"] {
    flex: 2;
    margin-right: 8px;
}

.control-group input[type="checkbox"] {
    margin-left: auto;
}

.control-group select {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    color: #fff;
    padding: 4px;
    border-radius: 3px;
    font-size: 11px;
}

.control-group select option {
    background: #222;
    color: #fff;
}

.control-group span {
    font-size: 10px;
    color: #aaa;
    min-width: 35px;
    text-align: right;
}

.reset-btn {
    background: #444;
    border: 1px solid #666;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-family: Monospace;
    font-size: 12px;
}

.reset-btn:hover {
    background: #555;
}

/* Planet-related controls visibility */
.planet-control,
.planet-effect {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.planet-control.enabled,
.planet-effect.enabled {
    opacity: 1;
}

/* Hide controls on very small screens */
@media screen and (max-width: 480px) {
    .controls-panel {
        font-size: 10px;
        min-width: 200px;
        max-width: 250px;
    }
    
    .controls-header h3 {
        font-size: 12px;
    }
    
    .control-section h4 {
        font-size: 11px;
    }
}

/* Hide controls on very small screens */
@media screen and (max-width: 480px) {
    .controls-panel {
        font-size: 10px;
        min-width: 150px;
    }
    
    .controls-header h3 {
        font-size: 12px;
    }
}

/* Hide dat.GUI panel (uncomment to hide) */
.dg.ac {
    display: none !important;
}
