:root {
    --default-text-colour: #ffffff66;
    --border-colour: rgba(255, 255, 255, 0.267);
    --navbar-height: 5%;
}

/* Extra small devices (portrait phones, less than 576px)
   No media query since this is the default in Bootstrap
*/
html body {
    padding-bottom: 0px;
    background-color: rgb(42, 42, 42);

    /* overflow: hidden; */
}

.main-contents {
    padding: 1rem 1rem;
    width:fit-content
}

    .main-contents img {
        max-height: 30rem;
        
        margin: 0rem 1rem;
        margin-bottom: 1rem;

        border: 2px solid #ffffff33;
        border-radius: 5px;
    }

/* Some simple CSS rules for styling p, h1 to h6, etc. in the main contents container
*/

h1, h2, h3, h4, h5, h6 {
	font-family: 'Oswald', sans-serif;
    color: white
}
p, ul {
	font-family: 'Open Sans', sans-serif;
    color: white;
}

p {
    padding-left: 1rem
}

ul {
    padding-left: 3rem;
}

h1 {
    font-size: 18px;
}

h2 {
    font-size: 16px;
}

p {
    font-size: 10px;
}

/* NAVIGATION MENU */

.navbar {
    position: fixed;

    width: 100%;
    height: var(--navbar-height);
    line-height: normal;

    align-items: center;

    padding: 2% 0;

    background-color: rgba(0, 0, 0, .9);
    border-bottom: 1px solid var(--border-colour);
    border-radius: 5px;
    box-shadow: 0 0 10px #fff;
}
    .navbar .navbar-brand {
        font-family: 'Oswald', sans-serif;
        /* font-size: xx-large; */
        text-shadow: 0 0 5px #fff
    }

    .settings-toggle,
    .settings-box,
    .followed-infobox { top: calc(var(--navbar-height) + 1rem); }

.nav-item {
    
}

    .nav-link {
        padding: 1px;
        font-family: 'Open Sans', sans-serif;
        color: white;
    }
        .nav-link:hover {
            color: unset;
            border: 1px solid var(--border-colour);
            border-radius: 1px;
            box-shadow: 0 0 7px #fff;
            text-shadow: 0 0 10px #fff;
        }

    .nav-item .dropdown-menu {
        text-align: -webkit-left;

        margin-top: 20%; /* Experiment to move the dropdown menu down */

        background-color: rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-colour);
        border-radius: 5px;
        box-shadow: 0 0 10px #fff;
    }

    .nav-item .dropdown-menu .dropdown-item {
        color: #ffffff;
        background-color: transparent;
        padding: .25rem .25;
        line-height: 1.5;
    }

    .nav-item .dropdown-menu .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--border-colour);
        border-radius: 1px;
        box-shadow: 0 0 7px #fff;
        text-shadow: 0 0 10px #fff
    }

/* CSS rule to style the footer */
.footer {
    font-size: 10px
}

.navbar-text > a {
    color: rgb(255, 255, 255);
    font-size: 8px;
    text-decoration: none;
}

.navbar-text > p {
    color: rgb(64, 228, 15);
    font-size: 15px;
    text-decoration: none;
}

.copyright {
    padding-top: 13px;
}

.social {
    padding-top: 0px;
}

.container-fluid, .row, .col-sm-10 {
    top: 0; left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.button-container {
    display: flex;
    position: absolute;
    width: 100%
}
    .button-container.space-around {
        justify-content: space-around;
    }
    .button-container.space-between {  
        justify-content: space-between;
    }

/* Info box for hovering over body */
.celestial-infobox {
    position: fixed;
    background: rgba(0, 0, 0, .9);
    color: #ffffff66;
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-colour);
    max-width: 300px;
    width: max-content;
    transform: translate(-50%, -100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .celestial-infobox.visible {
        opacity: 1;
    }

/* Persistent info box for following object */
.followed-infobox {
    position: absolute;
    right: 0;
    margin: 1rem 1rem;
    min-width: 9rem;
    max-height: 100vh;
    overflow: visible;
    transform: none;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}
    .followed-infobox.visible {
        opacity: 1;
    }

    .followed-infobox button {
        /* position: absolute; */
        background-color: rgb(0,0,0,0.8);
        color: #fff;
        border-radius: 5px;
        border: 2px solid #ffffff33;
        margin: 0rem 0rem;
        display: none
    }
        .followed-infobox button.visible {
            display: block
        }

/* Info box styling */

.info-title {
    margin: 0 0 0.5rem 0;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    /* font-size: x-large */
}

.info-subtitle {
    margin: 0 0 0.5rem 0;
    color: var(--default-text-colour);
    font-family: 'Oswald', sans-serif;
    /* font-size: large; */
}

.info-description {
    margin: 0;
    color: var(--default-text-colour);
    font-family: 'Open Sans', sans-serif;
    /* font-size: 0.9rem; */

    max-height: 0vh;

    overflow-y: scroll;
    scrollbar-width: thin;
    scrollbar-color: #ffffff44 transparent;

    transition: max-height 0.5s ease;
    /* display: none */
}
    .info-description.visible {
        max-height: calc(100vh - 17rem)
    }
    .info-description p, h3, h4 {
        color:inherit;
        text-indent: 1rem;
        margin-left: -1rem;
    }
    .info-description ul, ol {
        color: inherit;
        padding-left: 1.5rem
    }

.info-links-container {
    display: block;
    /* gap: 0.5rem */
}

    .info-links-container .info-link:not(:first-child) {
        border-left: 2px solid #ffffff44;
        padding-left: 0.5rem;
    }

.info-link {
    display: inline-block;
    margin: 0.5rem 0.25rem;
    /* padding: 0 0.5rem; */
    /* color: var(--default-text-colour); */
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
}
    a.info-link:hover {
        text-decoration: underline;
    }
    span.info-link {
        color: var(--default-text-colour)
    }

.info-credit {
    color: var(--default-text-colour);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.5rem;
}

.image-viewer {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center; align-items: center;
  /* transition: display 0.5s ease; */
}
    .image-viewer img.viewer-image {
    max-width: 80%; max-height: 80%;
    border: 2px solid #fff;
    border-radius: 8px;
    }
    .image-viewer .close {
    position: absolute; top: 20px; right: 40px;
    font-size: 40px; color: white; cursor: pointer;
    }
    .image-viewer .nav {
    position: absolute; top: 50%;
    font-size: 50px; color: white; cursor: pointer;
    user-select: none;
    }
    .image-viewer .prev { left:5%; }
    .image-viewer .next { right:5%; }


/* Settings Toggle */
.settings-toggle {
    position: fixed;
    margin: 1rem 1rem;
    padding: .5rem .5rem;
    border-radius: 5px;
    border: 0px solid #ffffff44;
    left: 0;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
  }
  
    .settings-toggle .fa-gear {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.5);
        transition: color 0.3s ease, transform 0.3s;
    }
    
    .settings-toggle:hover .fa-gear {
        color: #fff;
        transform: rotate(90deg);
    }
    
    .settings-toggle.active .fa-gear {
        transform: rotate(180deg);
    }
  
/* Settings Box */
.settings-box {
    position: fixed;
    left: 0;
    margin: 1rem 1rem;
    padding: 0rem 2.2rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    border: 2px solid #ffffff33;
    width: max-content;
    max-width: 50%;
    opacity: 0;
    /* transform: translate(-20px,-20px); */
    transition: all 0.3s ease;
    pointer-events: none;
}
  
    .settings-box.visible {
        opacity: 1;
        /* transform: translate(0,0); */
        pointer-events: auto;
    }

    .setting-group {
        margin: 1rem 0;
      }
      
        .setting-group label {
            display: flex;
            justify-content: space-around;
            align-items: center;
            width: 100%;
            /* display: block; */
            color: #ffffff;
            /* margin-right: 0rem; */
            font-family: 'Open Sans', sans-serif;
            text-align: left;
        }
        
        .setting-group span {
            color: #00ff9d;
            /* display: inline-block;
            right: 0; */
            min-width: 2rem;
            text-align: right;
        }
      
        .setting-group input[type="range"] {
            width: 100%;
        }

        .setting-group input[type="checkbox"] {
            margin-left: 1rem;
            transform: scale(1.2);
          }

/* Loading Screen */
#loading-screen {
    position: fixed;
    /* top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    background-color: rgb(42, 42, 42);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

        .loading-logo {
            color: white;
            font-family: 'Oswald', sans-serif;
            font-size: 2.5rem;
            margin-bottom: 2rem;
        }

        .loading-container {
            width: 80%;
            max-width: 400px;
            height: 20px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .loading-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #760003, #ffcc00);
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        .loading-text {
            color: white;
            font-family: 'Open Sans', sans-serif;
            margin-top: 1rem;
            font-size: 0.9rem;
        }

        .loading-details {
            color: rgba(255, 255, 255, 0.6);
            font-family: 'Open Sans', sans-serif;
            margin-top: 0.5rem;
            font-size: 0.8rem;
        }

        /* Hide the loading screen when content is loaded */
        .loaded #loading-screen {
            opacity: 0;
            pointer-events: none;
        }

#versionTag {
    position: absolute;
    top:0; right: 0;

    margin: 1rem;
    padding: .25rem .5rem;

    color: cyan;
    text-shadow: 0 0 5px black;
    
    background-color: rgba(100, 237, 255, 0.5);
    border: 1px solid transparent;
    border-radius: 10px;
    box-shadow: 0 0 10px cyan;
}

@media (min-width: 375px) {

    body {
        background-color: rgb(202, 181, 181);
    }

    h1 { font-size: 20px; }

    h2 { font-size: 17px; }

    h3 { font-size: 15px; }

    p, span, ul, li {
        font-size: 14px;
    }

    /* CSS rule to style the footer */
    .footer {
        font-size: 12px
    }

    .navbar-text > a {
        font-size: 10px;
    }

    .navbar-text > p {
        color: rgb(228, 75, 15);
        font-size: 18px;
    }

    .copyright {
        padding-top: 20px;
    }

    .social {
        padding-top: 7px;
    }

    .followed-infobox {
        max-width: 80%;
    }

}


/* Medium devices (tablets, 768px and up)
*/
@media (min-width: 768px) { 
    
    body {
        background-color: rgb(218, 216, 148);
    }

    h1 {
        font-size: 31px;
    }

    h2 {
        font-size: 25px
    }

    h3 { font-size: 20px; }

    p, span, ul, li {
        font-size: 15px;
    }

    /* CSS rule to style the footer */
    .footer {
        font-size: 13px
    }

    .navbar-text > a {
        font-size: 10px;
    }

    .navbar-text > p {
        color: rgb(12, 5, 3);
        font-size: 18px;
    }

    .copyright {
        padding-top: 20px;
    }

    .social {
        padding-top: 7px;
    }

    .followed-infobox {
        max-width: 50%;
    }
}

/* Large devices (desktops, 992px and up)
*/
@media (min-width: 992px) { 
    
    body {
        background-color: rgb(185, 185, 178);
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 26px
    }

    h3 { font-size: 21px; }

    p, span, ul, li {
        font-size: 16px;
    }

    /* CSS rule to style the footer */
    .footer {
        font-size: 14px
    }

    .navbar-text > a {
        font-size: 15px;
    }

    .navbar-text > p {
        color: rgb(12, 5, 3);
        font-size: 23px;
    }

    .copyright {
        padding-top: 20px;
    }

    .social {
        padding-top: 7px;
    }

    .followed-infobox{
        max-width: 35%
    }
}