#mainPage {overflow: hidden;}
body {
    margin: 0;
    padding: 0;
    background-color: black;
}

#start-screen {
    display: flex;
    z-index: 100;
    background-image: url('../img/webapp-background-v2.png');
}

#start-screen-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'Pixelify Sans', sans-serif;
}

#start-screen-image {
    width: 100px;
    height: 100px;
}

#start-screen-image:hover {
    transform: scale(1.05);
}

#start-screen-subtitle {
    font-size: 20px;
    margin-top: 10px;
    
}

#start-button {
    width: 200px;
    border: #ec4926 2px solid;
    background: none;
    color: white;
    border-radius: 10px;
    opacity: 0.8;
    transition-duration: 0.5s;
}

#start-button:hover {
    cursor: pointer;
    transform: scale(1.05);
    opacity: 1;
    transition-duration: 0.5s;
}

#start-menu-links {
    margin-top: 20px;
    min-width: 250px;
    
}

#start-menu-links > a {
    margin: 30px;
}

#start-menu-links > a :hover {
    cursor: pointer;
    transform: scale(1.05);
}

#start-menu-links > a > img {
    width: 32px;
    height: 32px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0) brightness(100%) contrast(100%);
}

#more-info-page {
    background-image: url('../img/webapp-background-v2.png');
    max-width: 100%;
    height: 100vh;
    color: white;
    display: none;
}

#more-info-container {
    display: flex;
    flex-direction: column;
    width: 25%;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
    position: relative;
    font-family: 'Pixelify Sans', sans-serif;
}

#more-info-container > h1 {
    font-size: 50px;
}

#more-info-container > p {
    font-size: 20px;
    margin-top: 5%;
}

#close-more-info {
    width: 200px;
    border: #ec4926 2px solid;
    background: none;
    color: white;
    border-radius: 10px;
    opacity: 0.8;
    transition-duration: 0.5s;
}

#close-more-info:hover {
    cursor: pointer;
    transform: scale(1.05);
    opacity: 1;
    transition-duration: 0.5s;
}

.webapp-main {
    display: none;
    align-items: center;
    overflow-x: hidden;
    overflow-y: hidden;
    /* white-space: pre-wrap; */
    background: url('../img/webapp-background-v2.png');
    height: 100vh;
    /* width: 100%; */
    text-align: center;
    padding-left: 35%;
    font-family: "Pixelify Sans", sans-serif;
    scroll-behavior: smooth;
}

#welcome-banner {
    /* padding-right: 10%; */
    margin-right: 500px;
    color: white;
    text-align: center;
    height: 300px;
    font-family: 'Pixelify Sans', sans-serif;
    font-weight: 400;
}

#title {
    width: 500px;
    font-size: 50px;
}

#arrow-right {
    width: 32px;
    height: 32px;
}

#scroll-instructions {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ec4926;
}

#quick-menu {
    display: flex;
    margin: 0;
    width: 100%;
    position: fixed;
    z-index: 2;
    bottom: 0;
    padding: 10px;
}

#searchIcon {
    width: 32px;
    height: 32px;
}

#searchIcon:hover {
    cursor: pointer;
    transform: scale(1.05);
}


#planetSearchBar {
    display: flex;
    justify-content: flex-start;
    visibility: hidden;
    position: fixed;
    bottom: 5%;
    width: 25%; 
    padding: 10px;
    left: 0;
    right: 0;
    margin-left: 50px;
}

#distance-travelled {
    color: #f1f1f1;
}

/* style for each space item */
.space-content {
    display: flex;
    flex: auto;
    position: relative;
    flex-shrink: 0;
    justify-content: center;
    align-self:flex-end;
    align-items: center;
    width: 50%;
    bottom: 30%;
    margin-right: 300px;
}

.space-content-title {
    font-size: 20px;
    position: relative;
    padding-top: 5%;
    color: white ;
}
.space-content-description {
    font-size: 15px;
    position: relative;
    top: 10%;
    color: white ;
}

.progress-bar {
    position: absolute;
    top: 90%;
    width: 50%;
    left: 25%;
}

.bar {
    height: 3px;
    width: 0%;
    max-width: 100%;
    background-color: #f1f1f1;
}

/* styling search bar to look better */
#searchInput {
    background-color: #ec4926;
    opacity: 0.9;
    
}

/* focus pseudo class, it applies when clicked on */
#searchInput:focus {
    outline: none;
    background-color: white;
    transition: 0.5s;
    opacity: 1;
}

.planet-details-popup {
    background-image: url('../img/details-panel-v2.png');
    margin-bottom: 0;
}

.planet-details-popup > p {
    width: 80%;
    align-self: center;
    margin-bottom: 10px;
}

.planet-details-popup > a {
    align-self: flex-start;
    margin-left: 10%;
}

.close-button {
    background-image: url('../img/button-close.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: white;
    border-radius: 5px;
    padding: 3px;
    margin-left: 140px;
    min-width: 100px;
}

.close-button > p {
    display: flex;
    align-self: center;
    margin-bottom: 0;
}

.close-button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

/* planet base styles */
#planetSun {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/sun-planet.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetMercury {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-image: url('../img/dwarf-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetVenus {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/gas-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetEarth {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/earth_planet.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetMoon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetMars {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/mars-planet.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetPhobos {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetDeimos {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetCeres {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-image: url('../img/dwarf-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetJupiter {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/gas-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetMetis {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetAdrastea {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetAmalthea {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetThebe {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetIo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetEuropa {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetGanymede {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetCallisto {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetSaturn {
    width: 512px;
    height: 512px;
    background-image: url('../img/saturn-planet.png');
    flex-grow: 0;
    flex-shrink: 0;
    
}

#planetMimas {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/rocky-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetEnceladus {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetTethys {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetDione {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetRhea {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetTitan {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetHyperion {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetIapetus {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetUranus {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/ice-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetNeptune {
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-image: url('../img/ice-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetPluto {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-image: url('../img/dwarf-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetCharon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetStyx {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetNix {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetKerberos {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetHydra {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url('../img/ice-moon-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetHaumea {
    width: 128px;
    height: 128px;
    background-image: url('../img/haumea-planet.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetMakemake {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-image: url('../img/dwarf-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

#planetEris {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background-image: url('../img/dwarf-planet-general.png');
    flex-grow: 0;
    flex-shrink: 0;
}

/* selects all id's with the prefix "planet" */
/* also applies the pseudo class hover */
[id^="planet"]:hover {
    cursor: pointer;
    transform: scale(1.03);
    transition: 0.5s;
}

/* focus pseudo class for accessibility */
[id^="planet"]:focus {
    border: #ec4926 5px solid;
}



/* Let us be mobile/tablet friendly! */
/* Bootstrap breakpoints */

/* Ultrawide Monitors */
@media (max-width: 2560px) {
    #planetSearchBar {
        width: 20%;
    }
    .progress-bar {
        top: 85%;
    }
    #more-info-container {
        width: 50%;
    }
    #more-info-container > h1 {
        font-size: 50px;
    }
    #more-info-container > p {
        font-size: 30px;
    }
}

/* Normal Monitors */
@media (max-width: 1920px) {
    #planetSearchBar {
        width: 25%;
    }
    .progress-bar {
        top: 85%;
    }
    #more-info-container {
        width: 80%;
    }
    #more-info-container > h1 {
        font-size: 50px;
    }
    #more-info-container > p {
        font-size: 30px;
    }
}

/* Small Monitors/laptops */
@media (max-width: 1200px) {
    #planetSearchBar {
        width: 30%;
    }
    .progress-bar {
        top: 85%;
    }
    #more-info-container {
        width: 80%;
    }
    #more-info-container > h1 {
        font-size: 40px;
    }
    #more-info-container > p {
        font-size: 25px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    #planetSearchBar {
        width: 40%;
    }
    .progress-bar {
        top: 85%;
    }
    #webapp-main {
        padding-left: 18%;
    }
    #more-info-container {
        width: 80%;
    }
    #more-info-container > h1 {
        font-size: 40px;
    }
    #more-info-container > p {
        font-size: 25px;
    }
}

/* Small Tablets/Large Mobiles */
@media (max-width: 768px) {
    #planetSearchBar {
        width: 60%;
    }
    .progress-bar {
        top: 85%;
    }
    #webapp-main {
        padding-left: 16%;
    }
    #title {
        text-align: center;
        font-size: 50px;
    }
    #more-info-container {
        width: 80%;
    }
    #more-info-container > h1 {
        font-size: 40px;
    }
    #more-info-container > p {
        font-size: 20px;
    }
}

/* Mobiles */
@media (max-width: 576px) {
    #planetSearchBar {
        width: 100%;
    }
    .progress-bar {
        top: 85%;
    }
    #webapp-main {
        padding-left: 12%;
    }
    #welcome-banner {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-left: 0px;
    }
    #title {
        font-size: 30px;
        width: 250px;
    }
    #more-info-container {
        width: 80%;
    }
    #more-info-container > h1 {
        font-size: 30px;
    }
    #more-info-container > p {
        font-size: 15px;
    }
}

