:root {
    --ScifiTeal: #00ffcc;
    --ScifiBlue: #75ffeb;

    --fontGalaxy: 'OCRA', 'Courier New', Courier, monospace;
}

@font-face {
    font-family: Aboro;
    src: url('/Assets/fonts/sciFiFonts/Aboro.ttf');
}

@font-face {
    font-family: OCRA;
    src: url('/Assets/fonts/sciFiFonts/OCRA.ttf');
}

body {
    height: 100vh;

    /* ~ Me after discovering the shorthand of bgPos and bgSize */
    background: url(../assets/img/BG.png) center/cover fixed;
    color: white;

    position: relative;

    font-family: var(--fontGalaxy);

    overflow-y: auto;

    line-height: 1.5em;

    animation: none;
}

.overlay {
    width: 100%;
    height: 100%;
    overflow: hidden;

    position: fixed;
    pointer-events: none;
    user-select: none;
}

/* ~ Star layers (depth/parallax) */
.starLayer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    user-select: none;
    transition: transform 0.3s ease-out;
}

/* ~ Regular Stars */

.stars {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.8;
    filter: blur(1px);
    transition: opacity 1s, filter 1s;

    animation-name: starDrift;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    /* ? animation-duration / animation-delay are set per-star in paracosms.js */
    pointer-events: none;
    user-select: none;
}

.stars.twinkling {
    opacity: 1;
    filter: brightness(1.6) blur(0.5px) drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

@keyframes starDrift {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(var(--driftX, 4px), var(--driftY, 4px));
    }
}

/* ~ Shooting Stars */

.shootingstar {
    position: absolute;

    opacity: 0.8;

    animation: shooting-star .5s linear;
    pointer-events: none;
}

@keyframes shooting-star {
    0% {
        transform: translate(-100px, -100px) scale(1);
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    100% {
        transform: translate(100vw, 100vh) scale(0.5);
        opacity: 0;
    }
}

.viewportFrame {
    position: fixed;
    inset: 0;

    background: url(../assets/img/polarisShipWindow.png) center/cover;

    z-index: 5000;
    pointer-events: none;
}


#phoneSpot {
    z-index: 6000;
}

/* ~ Celestial objects */

/* ? Wandering UFO*/
.ufo {
    position: absolute;
    width: 70px;
    height: 34px;
    pointer-events: none;

    animation: ufoDrift var(--ufoDuration, 8s) linear forwards;
}

.ufoBobber {
    position: absolute;
    width: 100%;
    height: 100%;

    animation: ufoBob 1.4s ease-in-out infinite;
}

.ufoHull {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;

    background: radial-gradient(ellipse at center, #d8d8f0 0%, #9a9ac2 70%, #6e6e9c 100%);
    border-radius: 50%;
    box-shadow: 0 0 12px 4px rgba(180, 180, 255, 0.6);
}

.ufoDome {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 65%;

    background: radial-gradient(circle at 35% 30%, #eafff8, #7fe8d8 60%, #3fb6a8 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.9;
}

.ufoGlow {
    position: absolute;
    bottom: -6px;
    left: 15%;
    width: 70%;
    height: 10px;

    background: radial-gradient(ellipse at center, rgba(180, 255, 220, 0.8), transparent 70%);
    filter: blur(2px);
}

@keyframes ufoBob {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes ufoDrift {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(var(--ufoDriftX, 100vw));
    }
}

.celestialObject {
    position: absolute;
    text-decoration: none;
    color: white;
    text-align: center;
}

.planet,
.meteor,
.spaceStation {
    transition: transform .3s, box-shadow .3s;
}

.planet:hover,
.meteor:hover,
.spaceStation:hover {
    cursor: pointer;
}

.BHWrapper:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* ~ Black Hole */

.BHWrapper {
    width: 200px;
    height: 100px;
    bottom: 10em;
    right: 15em;

    transform: scaleX(0) scaleY(0);
    animation: appearance 2s forwards;
}

@keyframes appearance {
    0% {
        transform: scaleX(0) scaleY(0);
    }

    50% {
        transform: scaleX(1) scaleY(0);
    }

    100% {
        transform: scaleX(1) scaleY(1);
    }
}

.blackHole {
    position: relative;
    width: 100%;
    height: 100%;
    background: url(../assets/img/BlackHole.png) center/contain no-repeat;

    z-index: 2;
}

.eventHorizon {
    position: absolute;
    width: 26%;
    height: 52%;

    background: radial-gradient(rgba(0, 0, 0, .9) 50%, rgba(255, 183, 141, 0.7) 100%), url("../assets/img/planetSwirled.png");
    background-size: contain;

    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;

    animation: spin 8s linear infinite;
}

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

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

/* ~ Labels */

.label {
    position: absolute;
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.2rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
}

.celestialObject>.planet:hover .label,
.orbit>.planet:hover .label,
.celestialObject>a:hover .label {
    opacity: 1;
}

.COWrapper {
    position: relative;
    height: 100%;
}

/* ! Temp */
.UNF {
    cursor: not-allowed !important;
}

/* ~ General */

* {
    cursor: url(https://cur.cursors-4u.net/nature/nat-10/nat996.cur), auto !important;
    scrollbar-width: none;
}

*::-webkit-scrollbar,
*::-webkit-scrollbar-button {
    width: 0;
}


#warpCanvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
}


#warpArrivalFlash {
    position: fixed;
    inset: 0;
    z-index: 3000;

    background: white;
    pointer-events: none;

    animation: warpArrivalFadeOut 1s linear 0.2s forwards;
}

@keyframes warpArrivalFadeOut {
    0% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

