/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: linear-gradient(rgb(1,1,1), rgb(16, 9, 61));
    color: #fff;
    padding: 2rem 1rem 1rem 1rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(56, 142, 60, 0.1);
}

    header h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
        color: #fff;
        background: linear-gradient(0deg, #fff 0%, #fff 40%, rgb(16, 9, 61) 90%, rgb(16, 9, 61) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #000 0%, #0a0a0a 80%, #111 100%);
  
}

footer {
    background: linear-gradient(rgb(16, 9, 61), rgb(1,1,1));
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    letter-spacing: 0.5px;
    animation: footerFontColorCycle 10s linear infinite;
}

/*Miaup*/
.planet-btn {
    position: absolute;
    left: 33%;
    top: 33%;
    background: none;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 40px 10px #6a82fb88;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(8vw, 8vh);
    height: min(8vw, 8vh);
    /* max-width: 160px; 
    max-height: 160px;
    min-width: 64px; 
    min-height: 64px;*/

    transform: translate(-50%, -50%);
    z-index: 2;
    animation: planetFloat 10s ease-in-out infinite;
}

#planetCanvas {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    background: transparent;
}


/*Miaup*/

/* -----------------Responsive Design------------------- */
@media (max-width: 900px) {
    header {
        padding: 1rem 0.5rem 0.5rem 0.5rem;
    }
    header h1 {
        font-size: 1.5rem;
    }
    footer {
        padding: 0.75rem 0;
        font-size: 0.75rem;
    }
    .planet-btn {
        width: min(8vw, 8vh);
        height: min(8vw, 8vh);
    }
}
@media (max-width: 600px) and (orientation: landscape) {
    header {
        padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    }
    header h1 {
        font-size: 1.0rem;
    }
    footer {
        padding: 0.25rem 0;
        font-size: 0.5rem;
    }
    .planet-btn {
        width: min(8vw, 8vh);
        height: min(8vw, 8vh);
    }
}


/* --------------- Starfield --------------------- */
.starfield {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 6px 2px #fff, 0 0 12px 4px #b2fefa;
    transform: translate(-50%, -50%) scale(0.3);
    /* Animation will be set inline for each star */
}

/*  -----------------------keyframes*-------------------------  */
@keyframes twinkle {
    0%, 100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(2.5);
    }
}

@keyframes footerFontColorCycle {
    0% {
        color: rgb(206, 202, 230);
    }

    50% {
        color: rgb(0,0,10);
    }

    100% {
        color: rgb(206, 202, 230);
    }
}
@keyframes planetFloat {
    /*
    0% {
        left: 33%;
        top: 33%;
        /* Optionally, add a slight scale or rotation for more effect 
    }

    25% {
        left: 34%;
        top: 32.5%;
    }

    50% {
        left: 33%;
        top: 32%;
    }

    75% {
        left: 32%;
        top: 33.5%;
    }

    100% {
        left: 33%;
        top: 33%;
    }*/
    
    0%{
        left: 33%;
        right: 33%;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        left: 44%;
        right: 44%;
        transform: translate(-50%, -50%) scale(0.5);
    }

    100% {
        left: 33%;
        right: 33%;
        transform: translate(-50%, -50%) scale(1);
    }

}