/* Body */ 
body {
    background-image: url(./IMGs/Stars.jpg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'LC Font', sans-serif;
    background-color: #141414;
}


.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1; 
}

#startup-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.active {
    text-decoration: underline;
}

ul ul .active {
    text-decoration: underline !important;
}


/* Mobile Navigation */
.navigation-link {
    display: none;
}

.navigation-maincategory a, 
.navigation-subcategory a {
    color: #FF0000;
    text-decoration: none;
}

.navigation-maincategory a:hover, 
.navigation-subcategory a:hover {
    text-decoration: underline;
}

.navigation-maincategory {
    font-size: 2.25rem;
    margin-bottom: 3vh;
    margin-left: 5vw;
}

.navigation-subcategory {
    margin-top: 1vh;
    margin-left: 7vw;
    font-size: 1.75rem;
}



h1, p, .tips, footer {
    color: #e44c0b;
}

h1 {
    font-weight: bold;
    font-size: 2rem;
}

footer {
    text-align: center;
    margin: 2%;
}

.logo-img {
    width: 50vw;
    height: auto;
    display: block;
    margin: auto;
}

.centered {
    display: block;
    margin: 0 auto;
}

.align-center, header {
    text-align: center;
    padding: 2% 0;
}

header img {
    max-width: 100%;
}

.shiputilnote {
    font-size: 1.125rem;
    margin-bottom: 2%;
}

.sublist {
    margin-left: 2%;
    font-size: 1.125rem;
}

/* Navigation Bar */
nav {
    background-color: #e44c0b;
    width: 100%;
    height: 7vh;
    line-height: 7vh;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-between;
}

nav ul li {
    flex: 1;
    text-align: center;
    position: relative;
}

nav ul li a {
    display: block;
    padding: 0 1%;
    color: #FFFFFF;
    text-decoration: none;
}

nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #e44c0b;
    width: 100%;
}

nav ul li:hover ul.sub-menu {
    display: block;
}

nav ul li ul.sub-menu li {
    display: block;
}

nav ul li ul.sub-menu li a {
    padding: 1%;
    color: #FFFFFF;
    text-decoration: none;
}

nav ul li ul.sub-menu li a:hover {
    background-color: #e44c0b;
}

/* Custom Font */
@font-face {
    font-family: 'LC Font';
    src: url('3270-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Page Intro Style */ 
.intro-text {
    margin-left: 2%;
    margin-right: 2%;
    text-align: justify;
    font-size: 1.4375rem;
    padding: 1%;
}

/* Redirect-Links */ 
.webpage-link {
    color: #FF0000;
    text-decoration: none;
}

.webpage-link:hover {
    text-decoration: underline;
}

/* Entities Flexbox */
.entities_flex-container {
    display: flex;
    flex-direction: column;
    gap: 2%;
    margin-left: 2%;
}

.entities_article {
    display: flex;
    gap: 2%;
    margin-top: 2%;
    align-items: center;
}

.entities_text {
    flex: 2;
    text-align: justify;
    font-size: 1.125rem;
}

.entities_image {
    flex: 1;
    max-height: 100%;
    max-width: 100%;
    align-content: center;
    justify-content: center;
}

.entities_image img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Moons Flexbox */
.moon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2%;
}

.moon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2%;
    width: 100%;
}

.moon img {
    max-width: 80vw; 
    height: auto;
}

.moon-description {
    text-align: justify;
    width: 98%;
    margin-bottom: 2%;
}

.moon-name {
    font-size: 1.25rem;
}

/* Plushie Easter Egg */

#plushie {
    position: relative;
    margin: 0 auto;
    width: 20vw;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    background-image: url('./IMGs/PajamaMan.webp');
    background-size: cover;
    background-repeat: no-repeat;
}

#plushie.clicked {
    transform: scale(0.75);
}

#plushie.resized {
    transform: scale(1);
}

/* Dropship Layout */

.dropship-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start; 
}

.dropship-description {
    flex: 2; 
    padding: 1%;
}

.dropship-image {
    flex: 1;
    padding: 2%;
}

.dropship-image img {
    max-width: 100%; 
    height: auto; 
}

/* Facility Layout */

.facility-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-left: 5%;
    margin-right: 5%;
    margin-top: 3%;
}

.facility-image-container {
    flex: 1;
    max-width: 50%;
}

.facility-image-container img {
    width: 100%;
    height: auto;
}

.facility-title-container {
    flex: 1;
    text-align: center;
}

.facility-image-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.facility-image-row .facility-image-container {
    margin: 0 1%;
}

.facility-image-row .facility-image-container img {
    width: 100%;
    height: auto;
}

/* Fog Animation */
.fog {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, #FFFFFF37 10%, transparent 70%);
    animation: moveFog 20s linear infinite;
}

@keyframes moveFog {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Weather Layout */

.weather-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2%;
}

.weather-title-container {
    text-align: center;
    margin-bottom: 2%;
}

.weather-image-container {
    width: 60%;
}

.weather-image-container img {
    width: 100%;
    height: auto;
}

/* Buyable Items Layout */

.itemnote {
    font-size: 1.125rem;
    margin-bottom: 2%;
    margin-left: 2%;
    margin-right: 2%;
}

.buyableitem-container {
    background-color: #bc3d07;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1%;
    margin: 1% 2%;
}

.buyableitem-text {
    flex: 1;
}

.buyableitem-image {
    width: 20vh;
    height: 20vh;
}

.teleporter-image {
    width: 20vh;
    height: 35vh;
    overflow: hidden;
}

.teleporter-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.buyableitem-title {
    font-weight: bold;
}

.buyableitem-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrap Layout */
.scrap-container {
    background-color: #bc3d07;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1%;
    margin: 1% 2%;
}

.scrap-text {
    flex: 1;
}

.scrap-image {
    width: 20vh;
    height: 20vh;
}

.scrap-title {
    font-weight: bold;
}

.scrap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Extra Changes */

.additionalwidth-image {
    width: 40vh;
    height: 20vh;
}

.additionalwidth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.additionalheight-image {
    width: 20vh;
    height: 35vh;
}

.additionalheight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Media Query for Phone and Tablet */
@media screen and (max-width: 1030px) {
    
    /* General Styles */
    h1, p, .tips, footer {
        font-size: 1.5rem;
    }

    .logo-img {
        width: 80vw;
    }

    .intro-text {
        font-size: 1.125rem;
        padding: 4%;
    }

    .entities_flex-container {
        margin-left: 0;
    }

    .entities_article {
        flex-direction: column;
        align-items: center;
        gap: 1%;
    }

    .entities_text {
        text-align: justify;
        font-size: 1rem;
        margin-left: 5vw;
        margin-right: 5vw;
    }

    .entities_image {
        max-width: 100%;
        height: auto;
    }

    .moon-container {
        margin: 2%;
    }

    .moon img {
        max-width: 100%;
    }

    .moon-description {
        width: 90%;
        text-align: justify;
        margin: 1% auto;
    }

    .moon-name {
        font-size: 1.75rem;
    }

    .dropship-container {
        flex-direction: column;
        text-align: center;
    }

    .dropship-description {
        padding: 2%;
    }

    .dropship-image {
        width: 100%;
        padding: 0;
    }

    .facility-container {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .facility-image-container {
        width: 88%;
        max-width: 100%;
        margin-top: 8vw;
    }

    .facility-title-container {
        text-align: center;
        margin-top: 3%;
    }

    .facility-image-row {
        flex-direction: column;
        align-items: center;
    }

    .facility-image-row .facility-image-container {
        margin: 1%;
    }

    .weather-container {
        text-align: center;
        padding: 2%;
    }

    .weather-title-container {
        margin-bottom: 1%;
    }

    .weather-image-container {
        width: 100%;
        max-width: 100%;
    }

    .buyableitem-container {
        flex-direction: column;
        align-items: center;
        padding: 3%;
        margin: 1% 0;
    }

    .buyableitem-text {
        text-align: center;
        font-size: 1.4rem;
    }

    .buyableitem-image {
        width: 80%;
        height: auto;
    }

    .scrap-container {
        flex-direction: column;
        align-items: center;
        padding: 2%;
        margin: 1% 0;
    }

    .scrap-text {
        text-align: center;
        font-size: 1.4rem;
    }

    .scrap-image {
        width: 80%;
        height: auto;
    }

    nav {
        display: none;
    }

    .navigation-link {
        display: block;
        background-color: #e44c0b;
        color: #FFFFFF;
        font-size: 1.5rem;
        text-decoration: none;
        text-align: center;
        padding-top: 1vh;
        padding-bottom: 1vh;
    }

    .navigation-link:hover {
        text-decoration: underline;
    }

    .fog {
        animation: none; 
    }

    footer {
        font-size: 1.125rem;
    }

    .video-container {
        display: none;
    }

    #startup-video {
        display: none;
    }
}
