
/* screen 1*/

body {
overflow: hidden; 
background-color: black; 
font-family: 'Space Grotesk', sans-serif;
}


main, section, div, img, button {
position: absolute;
font-family: 'Space Grotesk', sans-serif;
}


main {
background-image: url('./img/galaxy.jpg'); 
width: 1920px;
height: 1080px;
font-family: 'Space Grotesk', sans-serif;
top: 50%;
left: 50%;
transform: translate(-50%, -50%); 
}

main::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 180, 255, 0.05) 3px
    );
    pointer-events: none;
}

h1, h2 {
    font-family: 'Space Grotesk', sans-serif;
}


.rocket,
.hud,
.intro-container {
    opacity: 0;
    pointer-events: none;
}

/* .intro-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 480px;
    height: 650px;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
} */

#nasa-logo {
    position: absolute;
    margin-top: -170px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    opacity: 0.9;
}

#text {
    width: 800px;
    height: 330px;
    background: rgba(10, 15, 40, 0.8);
    color: #e6f1ff;
    padding: 163px 55px 20px 20px;
    border-radius: 20px;
    font-size: 24px;
    text-align: center;
    top: 300px;
    left: 550px;
    border: 1px solid rgba(0, 180, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.4);
}

#text h1 {
   margin-top: 110px;
   font-size: 40px;
}

#text {
    font-family: 'Orbitron', monospace;
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #00ffcc;
    height: 570px;
    margin-top: -60px;
}

#terminal-text {
    color: #00ffcc;
    font-size: 18px;
    line-height: 1.6;
    word-spacing: 6px;
    letter-spacing: 2px;
    margin-top: 50px;
}

#terminal-text::after {
    content: "|";
    animation: blink 1s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

h1 {
    text-align: center;
    font-size: 52px;
    font-weight: 700;
    margin-top: -100px;
    font-family: 'Orbitron', sans-serif;
    color: #00b4ff;
    text-shadow: 0 0 10px rgba(0, 180, 255, 0.8);
}

.rocket {  
    height: 900px;
    margin-top: 250px;
    right: 300px;
}

#galaxy {
    animation: galaxyZoom 20s ease-in-out infinite alternate;
    filter: brightness(0.7) contrast(1.2);
}

@keyframes galaxyZoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

#text h1 {
    animation: headingLoop 2.5s ease-in-out infinite alternate;
}

@keyframes headingLoop {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

#nasa-logo {
    animation: logoGlow 2s infinite alternate;
}

@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 5px #00b4ff);
    }
    100% {
        filter: drop-shadow(0 0 20px #00eaff);
    }
}


section {
width: 100%;
height: 100%;
display: none; 
}


#screen1 {
display: block; 
}



.frame {
left: 680px;
top: 110px;
display: none; 
}

#frame1 {
display: block;
}


.intro-container {
left: 750px;
top: 206px;
width: 480px;
height: 650px;
padding: 35px 25px;
}


.intro-container div,
.intro-container button {
position: static;
}


.history-txt {
    font-family: 'Open Sans', sans-serif;
    color: #cfe8ff;
    background: rgba(5, 10, 30, 0.85);
    border: 1px solid rgba(0, 180, 255, 0.5);
    border-radius: 10px;
    font-size: 14px;
    line-height: 25px;
    padding: 18px;
    box-shadow: 0 0 10px rgba(0, 180, 255, 0.3);
}

.learn-more-text {
    font-size: 24px;
    font-weight: 700;
    margin-top: 50px;
    letter-spacing: 1px;
    color: #0d0d0d;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.7);
}


button {
background: none;
border: none;
border-radius: 0;
font: inherit;
cursor: pointer; 
outline: none;
padding: 0;
margin: 0;
}

#trillium, #bird {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}


.to-screen-btn {
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid #00b4ff;
    border-radius: 8px;
    width: 390px;
    height: 80px;
    display: flex;
    align-items: center; 
    justify-content: space-between; 
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.5); 
}

.to-screen-btn {
    display: flex;
    align-items: center;
    overflow: hidden;
}

.to-screen-btn:active {
    transform: scale(0.96);
    box-shadow: 0 0 25px rgba(0, 180, 255, 0.9);
}

.to-screen-btn {
    animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 8px rgba(0, 180, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(0, 180, 255, 0.8);
    }
}



.to-screen-btn > div {
    position: relative; 
}


.to-screen-btn > div:first-child {
    padding: 10px 20px;
    font-size: 20px;
    font-weight: 600;
    text-align: left;
    color: #e6f1ff;
}


.to-screen-btn > div:last-child {
    width: 70px;
    height: 100%;
    background: linear-gradient(180deg, #00b4ff, #0044ff);
    color: white;
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-shrink: 0; 
}


.click-through {
pointer-events: none;
}

#start-btn {
width: 100%;
height: 100%;
color: rgb(255, 255, 255);
padding-top: 800px; 
}


#back-btn {
width: 60px;
height: 100px;
background-color: #2b3f73; 
border-radius: 0 4px 4px 0;
color: rgb(255, 255, 255); 
font-size: 74px; 
opacity: 0.75; 
top: 45%;
margin-left: 30px;
align-items: center;
transform: translate(-50%); 
display: flex;
justify-content: center;
line-height: 1; 
z-index: 100; 
}

.chevron {
    display: block;
    font-size: 60px;
    line-height: 1;
    transform: translateY(-3px);
}

/* screen 2 css */
#screen2 {
    position: relative;
    width: 1920px;
    height: 1080px;
    display: none;
    padding: 50px;
    overflow: hidden;
}

.timeline-header {
    font-size: 48px;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: 'Orbitron', sans-serif;
    color: #a9c6ff;
    text-shadow:
        0 0 10px rgba(120,150,255,0.6),
        0 0 25px rgba(80,120,255,0.4);
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,180,255,0.08) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,180,255,0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}


.timeline-container {
position: relative;
width: 100%;
height: 600px;
display: flex;
justify-content: space-between;
align-items: center;
top: 100px;
}


.timeline-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 10px;
    border-radius: 50px;

    background: linear-gradient(
        90deg,
        #1a1f3a,
        #2b3f73,
        #6a5acd,
        #2b3f73,
        #1a1f3a
    );

    box-shadow: 0 0 15px rgba(106, 90, 205, 0.6);
}



@keyframes energyFlow {
    0% { background-position: 0% }
    100% { background-position: 300% }
}

.timeline-item:hover {
    transform: translateY(-10px) scale(1.03);
    filter: brightness(1.1);
}

.timeline-title {
    font-size: 20px;
    color: #00eaff;
    margin-top: 10px;
    padding: 6px 12px;
    border: 1px solid rgba(0, 180, 255, 0.6);
    border-radius: 20px;
    background: rgba(0, 20, 50, 0.6);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1.5px;
    box-shadow: 0 0 10px rgba(0,180,255,0.4);
    transition: 0.3s;
}

.timeline-item:hover .timeline-title {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0,180,255,0.9);
}

.timeline-hint {
    position: absolute;
    margin-bottom: -820px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #00eaff;
    opacity: 0.8;
    padding: 8px 20px;
    border: 1px solid rgba(0,180,255,0.4);
    border-radius: 30px;
    background: rgba(0, 10, 30, 0.6);
    box-shadow: 0 0 15px rgba(0,180,255,0.4);
    animation: hintPulse 2s infinite alternate;
}

@keyframes hintPulse {
    from { opacity: 0.5; transform: translateX(-50%) scale(1); }
    to { opacity: 1; transform: translateX(-50%) scale(1.05); }
}


.timeline-item h3 {
    font-size: 30px;
    color: #00eaff;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid #00b4ff;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0,180,255,0.6);
    backdrop-filter: blur(5px);
    position: relative;
    background-color:#2d8ac1;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin-top: 300px;
    z-index: 3;
}


.timeline-image {
    width: 275px;
    height: 275px;
    margin-top: 60px;
    opacity: 1;
    transform: scale(0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,180,255,0.6);
    transition: transform 0.3s;
    border: 2px solid #00f0ff;
    transition: 0.4s;
}

.timeline-item::before {
    animation: pulseDot 2s infinite;
}

.timeline-item:hover .timeline-image {
    box-shadow: 0 0 25px #00f0ff;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.timeline-info {
    font-size: 16px;
    color: #cfe8ff;
    background: rgba(10, 15, 40, 0.9); 
    border: 1px solid rgba(120, 150, 255, 0.4);
    box-shadow: 0 0 15px rgba(80, 120, 255, 0.3);
    backdrop-filter: blur(6px);
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    opacity: 1;
    transform: translateY(10px);
    transition: 0.4s;
}

.timeline-item {
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 18%;
}


.timeline-item:nth-child(odd) {
    transform: translateY(-150px);
}


.timeline-item:nth-child(even) {
    transform: translateY(150px);
}

/* screen 3 css */


.cosmos-layout {
    position: relative;
    width: 100%;
    height: 100%;
}


.cosmos-visual {
    position: absolute;
    left: 200px;
    top: 150px;
    width: 800px;
    height: 600px;
}

.cosmos-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 30px #00eaff);
}


.cosmos-menu {
    position: absolute;
    right: 150px;
    top: 250px;
    width: 350px;
}


.cosmos-item {
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0,180,255,0.4);
    color: #00eaff;
    font-size: 22px;
    letter-spacing: 2px;
    cursor: pointer;
    background: rgba(0, 10, 30, 0.6);
    transition: 0.3s;
}


.cosmos-item:hover {
    transform: translateX(-10px);
    box-shadow: 0 0 15px #00eaff;
}


.cosmos-item.active {
    background: rgba(0, 180, 255, 0.2);
    box-shadow: 0 0 25px #00eaff;
}


#cosmos-text {
    position: absolute;
    margin-bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    text-align: center;
    color: #cfe8ff;
    font-size: 18px;
    padding: 20px;
    border: 1px solid rgba(0,180,255,0.4);
    background: rgba(0, 10, 30, 0.7);
}


.cosmos-heading {
    position: absolute;
    top: 150px;
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-family: 'Orbitron', sans-serif;
    color: #a9c6ff;
    text-shadow:
        0 0 10px rgba(120,150,255,0.6),
        0 0 25px rgba(80,120,255,0.4);
}


#cosmos-text {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    padding: 25px;
    text-align: center;
    color: #cfe8ff;
    background: rgba(0, 10, 30, 0.8);
    border: 1px solid rgba(0,180,255,0.4);
    border-radius: 12px;
}


#cosmos-title {
    font-size: 36px;
    font-weight: bold;
    color: #00eaff;
    margin-bottom: 10px;
    letter-spacing: 2px;
}


#cosmos-desc {
    font-size: 17px;
    line-height: 1.6;
}

.cosmos-item::before {
    content: "▶";
    margin-right: 10px;
    opacity: 0.6;
}


.cosmos-menu {
    position: absolute;
    right: 150px;
    top: 250px;
    display: flex;              
    flex-direction: column;     
    gap: 20px;                  
}


.cosmos-item {
    position: relative;   
}

#cosmos-panel {
    width: 500px;
    height: 320px;
    left: 700px;
    top: 650px;
    background: rgba(0, 10, 30, 0.85);
    border: 1px solid #00eaff;
    border-radius: 12px;
    padding: 20px;
    color: #cfe8ff;
    box-shadow: 0 0 25px rgba(0, 180, 255, 0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(30px);
}

.panel-heading {
    font-family: 'Orbitron';
    font-size: 20px;
    color: #00eaff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.panel-content p {
    font-size: 14px;
    margin-bottom: 8px;
}

.panel-content span:first-child {
    color: #00eaff;
    font-weight: bold;
}


#cosmos-btn {
    left: 50%;
    bottom: 60px;
    transform: translateX(-50%);
    padding: 12px 30px;
    border: 1px solid #00eaff;
    border-radius: 30px;
    color: #00eaff;
    font-family: 'Orbitron';
    letter-spacing: 2px;
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 15px rgba(0,180,255,0.5);
    animation: pulseBtn 2s infinite alternate;
}

@keyframes pulseBtn {
    from { transform: translateX(-50%) scale(1); }
    to { transform: translateX(-50%) scale(1.05); }
}

.cosmos-option.active {
    background: rgba(0, 180, 255, 0.2);
    border: 1px solid #00eaff;
    box-shadow: 0 0 20px #00eaff;
    transform: scale(1.05);
}

#cosmos-panel::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 50%;
    width: 2px;
    height: 120px;
    background: linear-gradient(to top, #00eaff, transparent);
    transform: translateX(-50%);
}

#cosmos-panel::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00eaff;
    top: 0;
    left: 0;
    animation: scan 3s linear infinite;
    opacity: 0.6;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}




/* screen 4 starts */

#screen4,
.screen4-container,
.space-topics,
.topic-content,
.space-topics h2,
.topic-item,
.topic-content h2,
.topic-content p,
.topic-content img {
    position: relative !important;
}

#screen4 {
    display: none; 
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Orbitron', sans-serif;
    color: #cfe8ff;
    overflow: hidden;
    padding-top: 140px;

}


.screen4-heading {
    position: absolute;
    top: 150px;
    width: 100%;
    text-align: center;
    font-size: 48px;
    font-family: 'Orbitron', sans-serif;
    color: #a9c6ff;
    text-shadow:
        0 0 10px rgba(120,150,255,0.6),
        0 0 25px rgba(80,120,255,0.4);
}


.screen4-container {
    display: flex;
    justify-content: space-between;
    width: 90%;
    margin: 0 auto;
    gap: 20px;
}


.space-topics {
    width: 30%;
    background: rgba(0, 10, 30, 0.85);
    border: 2px solid #00eaff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}

.space-topics h2 {
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    color: #a9c6ff;
    text-shadow:
        0 0 10px rgba(120,150,255,0.6),
        0 0 25px rgba(80,120,255,0.4);
    margin-bottom: 45px;
    font-size: 30px;
}

.topic-item {
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00eaff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    
}

.topic-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00eaff;
}

.topic-item.active {
    background: rgba(0, 180, 255, 0.2);
    box-shadow: 0 0 25px #00eaff;
}


.topic-content {
    width: 65%;
    background: rgba(0, 10, 30, 0.85);
    border: 2px solid #00eaff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.topic-content h2 {
    font-family: 'Orbitron', sans-serif;
    color: #a9c6ff;
    text-shadow:
        0 0 10px rgba(120,150,255,0.6),
        0 0 25px rgba(80,120,255,0.4);
    font-size: 28px;
}

.topic-content img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #00eaff;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.topic-content p {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    line-height: 1.6;
    text-align: justify;
}

/* screen 4 ends */




/* HUD Panels for screen 1 */
.hud {
    position: absolute;
    width: 260px;
    padding: 15px;
    background: rgba(0, 10, 30, 0.7);
    border: 1px solid rgba(0, 180, 255, 0.6);
    border-radius: 10px;
    color: #cfe8ff;
    font-size: 14px;
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.4);
    backdrop-filter: blur(5px);
    animation: hudPulse 2s infinite alternate;
}


.hud {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hud div {
    position: static;   
    width: 100%;
}

.hud-left {
    top: 100px;
    left: 40px;
}

.hud-right {
    top: 100px;
    right: 40px;
}

@keyframes hudPulse {
    from { box-shadow: 0 0 10px rgba(0, 180, 255, 0.3); }
    to { box-shadow: 0 0 25px rgba(0, 180, 255, 0.8); }
}


#start-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #00b4ff;
}


.click-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(0,180,255,0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(6);
        opacity: 0;
    }
}