body, html { 
    margin: 0; 
    padding: 0; 
    overflow: hidden; 
    width: 100%;
    height: 100%;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease;
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    pointer-events: none;
}

.loader-overlay.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

.loader {
    text-align: center;
    pointer-events: none;
}

#loader-image {
    width: 50%;
    height: auto;
}

#resetButton {
    position: fixed;
    top: 90%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-family: "MetropolisRegular";
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
    letter-spacing: 2px;
}

#logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 120px;
    height: auto;
}

.label {
    position: absolute;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: "SpaceMonoLight";
    font-size: 14px;
    letter-spacing: 2px;
    opacity: 0.8;
    transition: opacity 1s ease; 
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}


.dropdown {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.7); 
    border: 1px solid #666; 
    border-radius: 5px;
    padding: 10px;
    font-family: "MetropolisRegular";
    color: white;
    width: 250px; 
    backdrop-filter: blur(10px); 
}

.dropdown-content {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.dropdown-content.show {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px; 
    opacity: 1;
}

.dropdown-content select {
    font-family: "MetropolisRegular";
    background-color: rgba(59, 56, 56, 0.7); 
    color: white;
    border: 1px solid #666; 
    border-radius: 0px;
}

.dropbtn {
    background-color: rgba(0, 0, 0, 0.7); 
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
    font-size: 16px; 
    transition: font-size 0.3s;
    font-family: "MetropolisRegular";
    padding: 10px; 
    letter-spacing: 2px;
}

.dropbtn:focus {
    outline: none;
}

.dropbtn:hover {
    font-size: 16px;
}

select, button {
    padding: 8px; 
    font-family: "MetropolisRegular";
    background-color: rgba(0, 0, 0, 0.7); 
    color: white;
    border: 1px solid #666; 
    border-radius: 0px;
}

#distanceOutput {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 20px;
    text-align: center;
    color: rgb(122, 144, 168);
}

.dropdown-content label[for="planet1"], label[for="planet2"] {
    font-size: 14px; 
    font-family: "MetropolisLight";
}

.dropdown-content label[for="planet1"] {
    margin-top: 10px;
}

.sidebar {
    height: 60%;
    width: 23%; 
    position: fixed;
    top: 50%; 
    left: 20px;
    background: linear-gradient(rgba(37, 37, 39, 0.933), rgba(37, 37, 39, 0.85) 52.08%, rgba(0, 0, 0, 0.8));
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 5px;
    transition: transform 0.5s ease;
    transform: translateY(-50%); 
    border-radius: 5px;
    display: none; 
    font-family: "MetropolisRegular";
    color: white;
}

    .sidebar::-webkit-scrollbar {
        width: 5px;
    }

    /* Track */
    .sidebar::-webkit-scrollbar-track {
        background: transparent;
    }

    /* Handle */
    .sidebar::-webkit-scrollbar-thumb {
        background: #474646;
        border-radius: 5px;
    }

    /* Handle on hover */
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.sidebar-content {  
    margin-left: 15px;
    letter-spacing: 0.72px;
    margin-right: 30px;
}


.open-btn {
    position: absolute;
    top: 14%;
    left: 20px;
    background: rgb(27, 27, 27);
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
    font-family: "MetropolisRegular";
    transition: font-size 0.3s ease;
}

.open-btn:hover {
    font-size: 16px;
    transition: font-size 0.3s ease;
}



.sidebar-header {
    
    font-size: 18px;
    letter-spacing: 0.72px;
    margin-bottom: 5px;
}

#desc-header {
    font-size: 14px;
    color: #cd9745;
    opacity: 0.8;
}

.long-desc {
    margin-top: 5px;
}
#long-desc-text {
    font-size: 12px;
    letter-spacing: 0.72px;
    font-family: "MetropolisLight";
    line-height: 1px;
}

#read-more-text {
    display: none;
    font-size: 12px;
    letter-spacing: 0.72px;
    font-family: "MetropolisLight";
    line-height: 1px;
}

#read-more-button {
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.72px;
    font-family: "MetropolisLight";
    background: none; 
    border: none; 
    padding: 0; 
    cursor: pointer; 
    opacity: 0.8; 
    text-decoration: none;
}
#read-more-button:hover {
    text-decoration: none; 
    border-bottom: 1px solid; 

}

.detailed-info {
    margin-top: 10%;
}

#detailed-info-main {
    font-size: 16px;
    letter-spacing: 0.72px;
    font-family: "MetropolisRegular";
    color: #cd9745;
    opacity: 0.8;
}

#detailed-info-hr {
    opacity: 0.1;
}

.details {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 0.72px;
}

.detail {
    display: block; 
    line-height: 1.5; 
}

.detail-8.smaller {
    font-size: 0.6em; 
    margin-top: 10px; 
    font-family: "MetropolisLight";
}

.explore-content {
    margin-top: 10%;
    margin-bottom: 10%;
    border: 1px solid rgb(49, 47, 47);
    box-shadow: #474646 0px 0px 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
    padding: 10px; 
    background: rgba(32, 32, 32, 0.5) ;
}


.explore-link1 {
    text-decoration: none;
    color: white;
    flex-grow: 1; 
    text-align: center; 
}
.explore-link2 {
    text-decoration: none;
    color: white;
    flex-grow: 1; 
    text-align: center; 
}

#explore-image1 {
    width: auto; 
    height: 100px; 
    flex-grow: 1; 
    text-align: center;
}

.explore{
    margin-top: 5%;
}

.hidden {
    display: none;
}

.indexzero {
    z-index: 0;
}

.impressum p {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.72px;
    font-family: "MetropolisLight";
    color: white;
}

.impressum a{
    text-decoration: none;
    color: white;
}

@font-face {
    font-family: "AstroSpace";
    src: url("./font/AstroSpace.otf");
}

@font-face {
    font-family: "SpaceMonoRegular";
    src: url("./font/Moon2.0-Regular.otf");
}

@font-face {
    font-family: "SpaceMonoLight";
    src: url("./font/Moon2.0-Light.otf");
}


@font-face {
    font-family: "MetropolisBold";
    src: url("./font/metropolis.bold.otf");
}

@font-face {
    font-family: "MetropolisRegular";
    src: url("./font/metropolis.regular.otf");
}

@font-face {
    font-family: "MetropolisLight";
    src: url("./font/metropolis.light.otf");
}


@media (max-width: 600px) {

    .dropbtn:hover {
        font-size: 14px;
    }

    .impressum p {
        font-size: 10px;
        margin-top: 15px;
    }

    #resetButton {
        font-size: 12px;
        padding: 5px;
    }

    #logo {
        top: 20px;
        left: 20px;
        width: 80px;
    }

    .label {
        font-size: 12px;
        padding: 2px 4px;
    }

    .dropdown {
        width: 160px;
        padding: 8px;
    }

    .dropbtn {
        font-size: 10px;
        padding: 4px;
    }

    .dropdown-content {
        gap: 5px;
    }

    .sidebar {
        width: 50%;
        left: 10px;
        font-size: 12px;
        padding-top: 3px;
    }

    .open-btn {
        font-size: 14px;
        top: 10%;
        left: 10px;
    }

    .sidebar-header {
        font-size: 16px;
    }

    #desc-header {
        font-size: 12px;
    }

    #long-desc-text, #read-more-text, .details {
        font-size: 10px;
    }

    .explore-content {
        flex-direction: column;
        padding: 5px;
    }

    #explore-image1 {
        height: 80px;
    }
}

/* Tablets */
@media (min-width: 601px) and (max-width: 1024px) {

    .impressum p {
        font-size: 11px;
        margin-top: 17px;
    }

    #resetButton {
        font-size: 13px;
        padding: 5px 8px;
    }

    #logo {
        top: 15px;
        left: 15px;
        width: 100px;
    }

    .label {
        font-size: 13px;
        padding: 2px 4px;
    }

    .dropdown {
        width: 180px;
        padding: 9px;
    }

    .dropbtn {
        font-size: 13px;
        padding: 4px;
    }

    .dropdown-content {
        gap: 8px;
    }

    .sidebar {
        width: 30%;
        left: 15px;
        font-size: 13px;
        padding-top: 4px;
    }

    .open-btn {
        font-size: 14px;
        top: 12%;
    }

    .sidebar-header {
        font-size: 17px;
    }

    #desc-header {
        font-size: 13px;
    }

    #long-desc-text, #read-more-text, .details {
        font-size: 11px;
    }

    .explore-content {
        flex-direction: column;
        padding: 8px;
    }

    #explore-image1 {
        height: 90px;
    }
}

/* Desktops and larger devices */
@media (min-width: 1025px) {

    .impressum p {
        font-size: 12px;
        margin-top: 20px;
    }

    #resetButton {
        font-size: 14px;
        padding: 5px 10px;
    }

    #logo {
        top: 20px;
        left: 20px;
        width: 120px;
    }

    .label {
        font-size: 14px;
        padding: 2px 5px;
    }

    .dropdown {
        width: 200px;
        padding: 10px;
    }

    .dropbtn {
        font-size: 14px;
        padding: 5px;
    }

    .dropdown-content {
        gap: 10px;
    }

    .sidebar {
        width: 23%;
        left: 20px;
        font-size: 14px;
        padding-top: 5px;
    }

    .open-btn {
        font-size: 14px;
        top: 14%;
    }

    .sidebar-header {
        font-size: 18px;
    }

    #desc-header {
        font-size: 14px;
    }

    #long-desc-text, #read-more-text, .details {
        font-size: 12px;
    }

    .explore-content {
        flex-direction: row;
        padding: 10px;
    }

    #explore-image1 {
        height: 100px;
    }
}


/* Mirnes Music, MMP1, MultiMediaTechnology*/
