body {
    margin: 0;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    touch-action: none; /* Prevent default touch behaviors like pull-to-refresh */
    -webkit-user-select: none; /* Prevent text selection on touch */
    user-select: none;
}

canvas {
    display: block;
    touch-action: none; /* Prevent touch scrolling on canvas */
}

.info-panel {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
    max-width: 300px;
    z-index: 10;
}

#info-panel {
    top: 10px;
    left: 10px;
}

#planet-info-panel {
    top: 10px;
    right: 10px;
    max-width: 400px;
}

#planet-info-content ul {
    padding-left: 20px;
}

#planet-info-content li {
    margin-bottom: 10px;
}

/* Focus styles for 508 accessibility */
#planet-info-title:focus,
#planet-info-content:focus {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

#planet-info-content:focus {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Make content scrollable when it overflows */
#planet-info-content {
    max-height: 400px;
    overflow-y: auto;
}

#planet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#planet-list li {
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    /* Corrected the colon to a space */
    transition: background-color 0.3s;
}

#planet-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#controls-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
}

#joystick-container {
    position: absolute;
    bottom: 20px;
    right: 20px; /* Changed from left to right */
    width: 150px;
    height: 150px;
    display: none; /* Initially hidden */
}

.toggle-button {
    background-color: #444;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 8px;
}

.hamburger-button {
    display: none;
}
