/* Prevent scrolling issues */
html, body {
    overflow: hidden; 
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background-color: #050505;
}

/* The main container that holds everything */
#planetContainer {
    width: 100vw; /* Full viewport width */
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    overflow: hidden; /* Prevents zoomed content from overflowing */
}

/* Inner container that actually scales */
#planetInner {
    position: relative;
    width: 5000px;  /* Large initial space for planets */
    height: 5000px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    transition: transform 0.1s ease-out;
}

#planetFilter {
    position: absolute;
    top: 0;
    left: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: rgba(250, 250, 250, 0.5); /* Black background with 50% transparency */
}

#systemSearch {
    position: relative;
    padding: 5px;
    border-radius: 5px;
    background-color: #000000;
    color: white;
    width: 150px;
    font-size: 14px;
    font-weight: bold;
}

/* Styling for each planet container */
.planetWrapper {
    position: absolute; /* Keeps it placed based on coordinates */
    display: flex;
    flex-direction: column; /* Stack planet and name */
    align-items: center; /* Centers both the planet and name horizontally */
    justify-content: center; /* Ensures proper alignment */
    text-align: center;
}

.planetDiv {
    background-color: red;  /* Planet background */
    color: white;
    border-radius: 50%; /* Makes it a perfect circle */
    width: 20px;  /* Size of each planet */
    height: 20px;
    display: flex;
    align-items: center; /* Centers text/icon inside */
    justify-content: center; /* Centers text/icon inside */
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

.planetName {
    color: black;  /* Planet name text color */
    font-size: 14px;  
    font-weight: bold;
    margin-top: 5px;  /* Adds space between the planet and the name */
    text-align: center;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

#planetInfo {
}

#infoDivShown {
}

.closeButton {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 21px;
    cursor: pointer;
}