body {
    background: transparent;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

#map-container {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    overflow: visible;
}

circle {
    fill: white;
    filter: drop-shadow(0 0 2px white);
}

polyline, path, line, polygon {
    stroke: white;
    filter:drop-shadow(0 0 2px white);
}

#polaris {
    fill: rgb(236, 200, 0);
    filter: drop-shadow(0 0 2px white);
}

#constellations > g {
    cursor: pointer;
    pointer-events: visible;
}

/*normal state*/
#constellations > g circle{
    fill-opacity: 0.7;
    transition: fill-opacity 0.3s;
}

#constellations > g polyline, 
#constellations > g path,
#constellations > g line,
#constellations > g polygon{
    stroke-opacity: 0.4;
    transition: stroke-opacity 0.3s, stroke 0.3s;
}


/*onhover*/
#constellations > g:hover circle{
    fill: gold;
}

#constellations > g:hover polyline, 
#constellations > g:hover path,
#constellations > g:hover line,
#constellations > g:hover polygon{
    stroke: gold;
}

/*when selected*/
#constellations > g.active circle{
    fill: gold !important;
    fill-opacity: 1;
}

#constellations > g.active polyline, 
#constellations > g.active path,
#constellations > g.active line,
#constellations > g.active polygon{
    stroke: gold !important;
    stroke-opacity: 1;
}

text {
    fill: rgba(255, 255, 255, 0.6);
}

#spin-wrapper {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    animation: spin 420s linear infinite;
    overflow: visible;
}

#spin-wrapper svg {
    width: 100%;
    height: 100%;
    transform-origin: 50% 50%;
    transition: transform 0.6s ease;
    overflow: visible;
}

@keyframes spin {
from { transform: rotate(0deg); }
to   { transform: rotate(-360deg); }
}

#main {
    transition: margin-left .5s;
    padding: 16px;
    z-index: 1;
}


#description {
    position: fixed;
    width: 100%;
    max-width: 600px;
    bottom: 0; 
    left: 0; 
    right: 0;
    z-index: 10;
    padding: 1rem 2rem;
    pointer-events: none;
    color: white;

}

#title-name {
    font-family: 'Operetta 18 Medium', serif;
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 2px 20px rgb(9, 9, 9);
}

#info{
    font-family: 'Bookman Old Style', serif;
    font-size: 0.9rem;
    width: 100%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.2);
}

#background{
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

#settings{
    position: fixed;
    display: flex;
    flex-direction: column;
    bottom: 0; 
    right: 0;
    padding: 1rem 1rem;
    z-index: 11;
}

#map-button {
    border: none;
    color: white;
    padding: 0.5rem 0.5rem;
    font-size: 14px;
    cursor: pointer;
}

#play-button{
    border: none;
    color: white;
    padding: 0.5rem 0.5rem;
    font-size: 16px;
    cursor: pointer;
}

#label-button {
    border: none;
    color: white;
    padding: 0.5rem 0.5rem;
    font-size: 14px;
    cursor: pointer;
}

/* when labels are hidden */
.hide-labels text {
    display: none;
}

#github-button{
    border: none;
    color: white;
    padding: 0.5rem 0.5rem;
    font-size: 14px;
    cursor: pointer;
}

/*MOBILE*/
@media (max-width: 768px) {

#description {
    padding: 0.75rem 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

#title-name {
    font-size: clamp(2.0rem, 5vw, 1.8rem);
}

#info {
    font-size: 0.8rem;
}

#settings {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    padding: 0.5rem;
    gap: 0.5rem;
}

#map-button,
#play-button,
#label-button,
#github-button {
    font-size: 18px;
    padding: 0.75rem 0.5rem;
}

}