body {
    background-color: #000000;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

a {
    color: #00CCFF;
    text-decoration: none;
}

a:hover {
    color: #00CCFF;
}

table {
    border-collapse: collapse;
}

td {
    vertical-align: top;
}

.galaxy-container {
    width: 100%;
    overflow-y: auto;
    padding: 20px 0;
    max-height: 80vh;
}

.galaxy {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    padding: 0 10px;
}

.solar-system {
    position: relative;
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.system-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center center;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 75px;
    background: url('/images/sun.png') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.system-coords {
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translateX(-50%);
    color: #00CCFF;
    font-size: 14px;
    text-align: center;
    z-index: 1;
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--orbit-size) * 2);
    height: calc(var(--orbit-size) * 2);
    border: 1px dashed #666666;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.planet {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #666666;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--orbit-size));
    cursor: pointer;
    z-index: 2;
}

.orbit1 { background-color: #FF4500; }
.orbit2 { background-color: #FFA500; }
.orbit3 { background-color: #FFD700; }
.orbit4 { background-color: #32CD32; }
.orbit5 { background-color: #00CED1; }
.orbit6 { background-color: #1E90FF; }
.orbit7 { background-color: #8A2BE2; }
.orbit8 { background-color: #FF69B4; }
.orbit9 { background-color: #DC143dain; }

.planet-menu {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
}

.spaceship {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #00FF00;
    border-radius: 50%;
    z-index: 2000;
}

.flight-path {
    position: absolute;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #00FF00 0,
        #00FF00 5px,
        transparent 5px,
        transparent 10px
    );
    z-index: 1500;
    transform-origin: 0 0;
}

.highlight {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none; /* Чтобы выделение не мешало кликам */
}

.start-highlight {
    border: 2px solid #00FF00; /* Зелёный для начальной планеты */
}

.end-highlight {
    border: 2px solid #FF0000; /* Красный для конечной планеты */
}