@import url("star-effect.css");
@import url("episode.css?v=0.0.6");
@import url("news.css?v=0.0.1");
@import url("privacy.css?v=0.0.1");
@import url("contact.css?v=0.0.1");

*{
    font-family: 'Open Sans';
}

h2{
    font-family: 'Poppins';
}

:root {
    --portal-green: #7ce14c;
}

.relative{
    display: relative;
}

.flex{
    display: flex;
}

.story-train-logo{
    width: 100%;
    max-width: 80px;
    height: auto;
    margin-bottom: 15px;
    margin-top: 10px;
}

body {
    background-image: url('../assets/alien-world2.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    width: auto;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.menu-toggle {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0.8rem;
    padding: 0.2rem 0;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-left: 3px solid transparent;
}

.menu-toggle:hover {
    color: var(--portal-green);
}

.menu-toggle.active {
    border-left: 3px solid var(--portal-green);
    padding-left: 5px;
}

.nav-menu-subtitle{
    color: white;
    font-size: 14px;
    font-family: 'Open Sans';
    margin: 0 0 10px 0;
    font-weight: 400;
}

.disclaimer{
    font-style: italic;
    font-size: 11px;
    color: white;
    margin-top: 35px;
}

.zoom-wrapper {
    transition: transform 1.2s ease-in-out, opacity 0.8s ease-in-out;
    transform-origin: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 90vw;
    text-align: center;
}

.season-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.season-container.expanded {
    max-height: 300px;
}

.zoom-wrapper.zoomed {
    transform: scale(3);
    opacity: 0;
    pointer-events: none;
}

.flex {
    display: flex;
}

.center-image {
    justify-content: center;
    align-items: center;
}

.story-train-text{
    max-width: 500px;
    margin-bottom: 2vh;
    margin-top: 3vh;
}

.story-train-subtitle{
    margin-bottom: 5vh;
    color: rgba(255,255,255,0.85);
    font-weight: bold;
    font-family: 'Poppins';
}

.portal-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.portal {
    max-height: 40vh;
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.portal-empty {
    max-height: 450px;
    height: 100%;
    display: block;
    position: relative;
    z-index: 2;
    pointer-events: none;
    background: url("../assets/background.webp");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#countdown-portal .portal-empty{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.swirl-1 {
    max-width: 50px;
    animation: swirl 10s linear infinite;
}

.swirl-2 {
    max-width: 250px;
    animation: swirl 20s linear infinite;
}

.swirl-3 {
    max-width: 230px;
    animation: swirl 30s linear infinite;
}

.swirl-4 {
    max-width: 260px;
    animation: swirl 25s linear infinite;
}

.portal-foreground {
    height: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4;
    position: relative;
    filter: blur(20px);
}

.portal-swirl {
    position: absolute;
    top: 50%;
    left: 50%;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.show {
    opacity: 1;
    pointer-events: all;
}

.animated-cloud {
    position: absolute;
    top: 10%;
    left: -20%;
    width: 200px;
    opacity: 0.05;
    animation: floatCloud 60s linear infinite, puffCloud 6s ease-in-out infinite;
    pointer-events: none;
}

/* Portal display override for Countdown view */
.show-in-countdown {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Visually float portal in countdown panel without DOM move */
/* #shared-portal.portal-in-countdown {
    position: absolute;
    top: auto;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
} */

#shared-portal.portal-in-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}


#countdown-panel {
    position: relative;
    padding-bottom: 460px;
    overflow-y: hidden;
}

#countdown-portal{
    display: flex;
    height: 75vh;
    justify-content: center;
    align-items: baseline;
    flex-direction: column;
    scale: 0.8;
    max-width: 800px;
}

#countdown-text{
    position: absolute;
    color: #0c2d22;
    width: 150px;
    font-weight: bold;
    text-align: center;
    background: rgb(255 255 255 / 30%);
    padding: 15px;
    border-radius: 80px;
    text-transform: uppercase;
    font-size: 32px;
}

/* WebKit-based browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.5);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

/* Firefox (limited styling support) */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.5) transparent;
}


@keyframes floatCloud {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(150vw);
    }
}

@keyframes puffCloud {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.05) translateY(-5px);
    }
}

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

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

@media screen and (max-width: 767px){
    .story-train-subtitle{
        font-size: 20px;
    }
    .story-train-text{
        margin-top: 0px;
        max-width: 80vw;
    }
    #countdown-text{
        font-size: 20px;
    }
    .portal-empty{
        max-height: 250px;
    }
    .swirl-1{
        max-width: 40px;
    }
    .swirl-2 {
        max-width: 160px;
    }
    .swirl-3 {
        max-width: 170px;
    }
    .swirl-4 {
        max-width: 170px;
    }
    .portal-foreground{
        max-width: 170px;
    }
    #countdown-portal {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        height: auto;
        width: 100%;
        max-width: 400px;
        justify-content: center;
        align-items: baseline;
        scale: 0.85;
        z-index: 5;
    }
    #countdown-portal .portal-wrapper {
        width: 100%;
        height: auto;
        position: relative;
        scale: 1;
    }
    .desktop-only{
        display: none;
    }
    .portal-wrapper {
        height: 250px;
    }
}

@media screen and (min-width: 768px){
    #countdown-portal{
        width: 80vw;
        align-items: center;
    }
}

@media screen and (max-width: 999px){
    .nav-menu-subtitle{
        font-size: 13px;
        padding-left: 5px;
    }
}

@media screen and (min-width: 1000px){
    .story-train-logo{
        max-width: 120px;
    }
}