:root {
  --color-orange: #EB5D35;
  --color-orange-rgba: 235, 93, 53;
  --color-bg-darkblue: #292F6B;
  --color-bg-darkerblue: #141738;
  --color-text: #fff;
  --color-bg-darkerblue-rgba: 20, 23, 56;
}


body {
    background-color: rgb(21, 21, 39);
    margin: 0;
    overflow-x: clip;

}

main {
    width: 100%;
    height: 100%;
}

/* MARK: background stars */
.stars-container {
    width: 100vw;
    height: 100svh;
    background-color: var(--color-bg-darkerblue);
    position: absolute;
    overflow: hidden;
    z-index: -10;
}

.star-css {
    width: 4px;
    height: 4px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    position: absolute;

}

/* MARK: 3d modellen rocket+satellite */
.rocket,
.satelliet {
    height: 100vh;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.rocket model-viewer {
    transform: rotateZ(20deg);
    transform-origin: center;
}

model-viewer {
    width: 80%;
    height: 80%;
}

/* styling van satelliet-section  */
.satelliet-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* padding: 1rem; */
}

.scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

}

.erth-box {
    position: absolute;
    width: 16.5em;
    height: 16.5em;
    border-radius: 50%;
    left: 50%;
    top: 75%;
    
    transform: translate(-50%, -50%);
    overflow: hidden;
    box-shadow: 
        inset 0 0 3rem var(--color-orange),
        0 0 6rem var(--color-orange);

}

.erth-model {
    width: 100%;
    height: 100%;
    background: transparent;
    animation: erth 30s linear infinite;
}

.orbit {
    position: absolute;
    width: 38vh;
    height: 38vh;
    left: 50%;
    top: 75%;
    border-radius: 50%;
    background-color: var(--color-bg-darkerblue);
    transform: translate(-50%, -50%);
    animation: draaisatelliet 30s linear infinite;
    background: none;
    border: 3px dashed rgb(255, 255, 255, .15);
}

.orbit model-viewer {
    position: absolute;
    width: 20vh;
    height: 20vh;
    left: 20%;
    top: 0%;
    transform: translateX(-50%);
    z-index: 5;
}

/* styling: box-info section satelliet */
.info {
    position: absolute;
    top: 16%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 650px;
    min-height: 11rem;
    border-radius: 1rem;
    padding: 1.5rem;
    backdrop-filter: blur(3px);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        1px 1px 1px rgba(255, 255, 255, 0.4),
        -1px -1px 1px rgba(255, 255, 255, 0.4);
    color: var(--color-text);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.info h3 {
    margin: 0.5rem 0 .2rem;
    font-size: 1rem;
}

.info p {
    margin: 0;
}

.info-slide {
    display: none;
}

.info-slide.active {
    display: block;
}

@keyframes erth {
    from {
        transform: rotate(0deg);

    }

    to {
        transform: rotate(360deg);

    }

}

@keyframes draaisatelliet {
    from {
        transform: translate(-50%, -50%) rotate(360deg);

    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);

    }
}

/* MARK: Show info knop */
.activate-btn {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;

    background: rgba(235, 93, 53, 0.2);
    border: 2px solid var(--color-orange);
    color: var(--color-text);
    font-size: 1.2rem;
    padding: 12px 24px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(235, 93, 53, 0.5);
    transition: all 0.3s ease;
}

.activate-btn:hover {
    background: rgba(235, 93, 53, 0.5);
    box-shadow: 0 0 25px rgba(235, 93, 53, 0.8);
    transform: translateX(-50%) scale(1.05);
}

.activate-btn.is-hidden {
    display: none;
}

/* MARK: Info tekst */
#info-panel {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

#info-panel.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.info-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slide-counter {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--color-orange);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
    padding: 0 15px;
}

.nav-btn:hover {
    transform: scale(1.3);
    text-shadow: 0 0 10px var(--color-orange);
}

.cursor-blink::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

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

/* Gedimde scan data knop & send data knop */
.activate-btn.dimmed {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
    transform: translateX(-50%) scale(0.9); 
    top: 23%;
}

.activate-btn.dimmed:hover {
    background: rgba(235, 93, 53, 0.5);
    box-shadow: 0 0 25px rgba(235, 93, 53, 0.8);
    transform: translateX(-50%) scale(1.01);
}

.send-data-btn {
    position: absolute;
    top: 35%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    
    background: rgba(235, 93, 53, 0.2); 
    border: 2px solid var(--color-orange);
    color: var(--color-text);
    font-size: 1.2rem; 
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    text-decoration: none; 
    white-space: nowrap;
    
    box-shadow: 0 0 20px rgba(235, 93, 53, 0.8), inset 0 0 10px rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.send-data-btn:hover {
    background: var(--color-text);
    color: var(--color-orange);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scale(1.05);
}

.send-data-btn.is-hidden {
    display: none;
}

/* MARK: Responsive */
@media (min-width: 48rem) {
    .scene {
        height: 100vh;
    }

    .erth-box {
        width: 95vw;
        height: 95vw;
        left: 50%;
        top: 110%;
        transform: translate(-50%, -50%);
    }

    .orbit {
        width: 100vw;
        height: 100vw;
        left: 50%;
        top: 105%;
        transform: translate(-50%, -50%);
        animation: draaisatelliet 20s linear infinite;

    }

    .orbit model-viewer {
        width: 12.5rem;
        height: 12.5rem;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .info {
        top: 20%;
        max-width: 800px;
    }

    @keyframes draaisatelliet {
        0% {
            transform: translate(-50%, -50%) rotate(95deg);
        }

        90%,
        100% {
            transform: translate(-50%, -50%) rotate(-95deg);
        }
    }

    .activate-btn {
        top: 25%;
    }

    .activate-btn.dimmed {
        top: 20%;
    }

    .send-data-btn {
        top: 30%;
    }
}

@media (min-width: 100rem) {
    .scene {
        height: 120vh;
    }
}

@media (min-width: 64rem) {
    .info {
        top: 15%;
        max-width: 800px;
    }

    .activate-btn {
        top: 25%;
    }

    .activate-btn.dimmed {
        top: 15%;
    }

    .send-data-btn {
        top: 24%;
    }
}

@view-transition {
    navigation: auto;
}
 
::view-transition-group(root) {
    animation-duration: .3s;
}
 
