@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');

body.lang-en {
    font-family: 'Ubuntu', sans-serif;
}


body {
    margin: 0;
    padding: 0;
    text-align: center;
    font-family: arial, sans-serif;
    background-color: black;
    color: white;
}

section {
    transform-style: preserve-3d;
    position: relative;
    /*height: 100vh;*/
    display: flex;
    align-items: center;
    justify-content: center;
    /*border: 3px dashed red;*/
    overflow: hidden;
}
.frame1,
.frame2,
.frame3,
.frame4,
.frame5 {
    position: relative;
    /*border: 1px solid green;*/
}
.frame1 {
    flex-direction: column;
    max-width: 1300px !important;
    /* height: 80vh; */
    z-index: 10;
    padding-top: 0 !important;
}
.frame2 {
    /* height: 1200px; */
    z-index: 10;
    margin-top: 200px;
    padding-top: 200px;
}
.frame3 {
    /* height: 2360px; */
    z-index: 10;
}
.frame4 {
    /* height: 1200px; */
    margin-top: 200px;
    z-index: 10;
}
.frame5 {
    /* height: 1660px; */
    z-index: 10;
}
.frame1-content,
.frame2-content,
.frame3-content,
.frame4-content,
.frame5-content {
    /* max-width: 650px;  */
    margin: auto;
    /*margin-top: 30%; */
    padding: 0 2rem;
    /*border: 1px dashed green;*/
}
.frame3-content {
    color: #fbdddd;
}
h2 {
    font-size: 58px;
}
h3 {
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(0, 3px, 0, .5);
}
p {
    z-index: 100;
    /* font-size: 27px; */
    line-height: 1.5;
    text-shadow: 0 0 5px rgba(0, 3px, 0, .5);
}
p.larger {
    font-size: 35px;
}
a {
    color: #FF5E00;
}
hr {
    border: none;
    border-top: 1px solid #fbdddd;
    width: 85px;
    margin: 3rem auto;
}
.bb-logo {
    margin-bottom: 100px;
}
.bb-logo img {
    margin-bottom: 20px;
}
.show-on-scroll,
.show-on-scroll-50 {
    filter: blur(10px) opacity(0.1);
    padding: 10px;
    transition: all 1.5s ease-out;
}
.is-visible {
    filter: blur(0px) opacity(1);
    padding: 10px;
    transition: all 1.1s ease-out;
}

.parallax::after {
    /*content: ' ';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateZ(-5px) scale(1);
    background-size: 100%;
    z-index: -1;
    border: 2px dashed blue;*/
}
.no-parallax {
    z-index: 999;
}
.bg::after {
    /*background: url(../images/bg.jpg) no-repeat; 
    background-size: cover;
    border: 1px solid orange;*/
}
.bsag-logo {
    margin-top: 50px;
}
.planet-and-comets {
    display: flex;
    /* margin-right: 200px; */
}
.comets {
    margin-top: -260px;
}

.yellow-planet {
    animation: yellow-planet 25s linear infinite;
    z-index: 100;
}

.red-planet {
    animation: red-planet 7s infinite alternate ease-in-out;
    z-index: 100;
    position: absolute;
    top: -200px;
    right: -250px;
}

.blue-planet {
    text-align: right;
    animation: blue-planet 5s infinite alternate ease-in-out;
    margin-top: -200px;
    padding-top: 200px;
    z-index: 100;
}

.space {
    /* padding: 100px; */
}

.pink-planet {
    position: absolute;
    top: 0;
    left: -100px;
    animation: pink-planet 4s infinite alternate ease-in-out;
    z-index: 100;
}
.pink-planet img {
    width: 80%;
}

.purple-planet {
    position: absolute;
    top: -10px;
    right: 50px;
    animation: purple-planet 4s infinite alternate ease-in-out;
    z-index: 100;
}

.frame1-content text {
    fill: white;
}

.mouse-down {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mouse-down.hidden {
    opacity: 0;
    visibility: hidden;
}
.hidden {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@keyframes yellow-planet {
    0% {
        transform: rotate(0deg) translateX(30px) rotate(0deg); /* Reduced radius to 30px */
    }
    100% {
        transform: rotate(360deg) translateX(30px) rotate(-360deg);
    }
}

@keyframes green-planet {
    100%,
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes blue-planet {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

@keyframes red-planet {
    0% {
        transform: translateX(0) scale(1);
    }
    100% {
        transform: translateX(-30px) scale(1.1);
    }
}

@keyframes pink-planet {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(30px);
    }
}

@keyframes purple-planet {
    0% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(5px, -5px);
    }
    50% {
        transform: translate(10px, 0px);
    }
    75% {
        transform: translate(5px, 5px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

@keyframes cometAnimation {
    0% {
        opacity: 0;
        transform: translate3d(100px, -200px, 0px) scale(0.5) rotate(310deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(0px, 0px, 0px) scale(1) rotate(360deg);
    }
}

@keyframes twinkle {
    0%,
    100% {
        opacity: 1;
        transform: scale(1.2); /* Slightly larger at the start/end */
    }
    50% {
        opacity: 0.8;
        transform: scale(2); /* Larger twinkle effect */
    }
}

.comets {
    transform-origin: 75% 25%;
    opacity: 0;
    animation: cometAnimation 10s 1s ease-out forwards;
}

.audio-container {
    position: fixed;
    top: 20px;
    right: 0;
    background-color: rgb(55, 30, 80);
    padding: 20px;
    z-index: 1000;
}

.muted-icon {
    width: 30px;
    cursor: pointer;
}

.mouse-down {
    position: fixed;
    bottom: 60px;
    margin-left: -600px;
    z-index: 1000;
}

.green-planet {
    animation: green-planet 7s infinite ease-in-out;
}

.container-pink-planet .container-text {
    width: 50%;
    margin: 0 auto;
    margin-top: 200px;
}

.container-purple-planet {
    width: 1300px;
    margin-top: 200px;
}

.container {
    /*max-width: 1300px;*/
    margin: 0 auto;
    background: url(../images/bg.jpg) no-repeat;
    background-position: top center;
    background-size: cover;
    perspective: 30px;
    overflow-y: auto;
    min-height: 100vh;
    position: relative; /* Required for absolute positioning of stars */
    z-index: 1;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 8px; /* Increased size */
    height: 8px; /* Increased size */
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8); /* Default glow */
    z-index: 2; /* Make sure stars are above the container background */
}

.rings-1 {
    position: absolute;
    left: 38%;
    top: -4%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: drawRings 2s ease-out forwards;
    z-index: 100;
}

.rings-2 {
    position: absolute;
    transform: translateX(-50%);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    z-index: 100;
    /* animation: drawRings 2s ease-out forwards; */
}

.rings-2.animate {
    animation: drawRings 2s ease-out forwards;
}

/* Animation definition */
@keyframes drawRings {
    0% {
        clip-path: inset(0 100% 0 0); /* Start fully clipped */
        opacity: 0;
    }
    50% {
        opacity: 0.5; /* Partially visible */
    }
    100% {
        clip-path: inset(0 0 0 0); /* Fully visible */
        opacity: 1;
    }
}

/* Animation definition */
@keyframes drawRings {
    0% {
        clip-path: inset(0 100% 0 0); /* Start with the element fully clipped */
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        clip-path: inset(0 0 0 0); /* Fully visible */
        opacity: 1;
    }
}

@media (max-width: 1300px) {
    .red-planet {
        right: -50px;
        top: -30px;
        z-index: 100;
    }

    .pink-planet {
        left: -150px !important;
        top: 50px !important;
    }

    .pink-planet img {
        width: 60% !important;
    }

    .purple-planet {
        top: -60px !important;
        right: 200px !important;
    }

    .mouse-down {
        margin-left: 0;
        left: 10%; /* Fall back to viewport centering */
        transform: translateX(
            -50%
        ); /* Adjust to align to the center dynamically */
    }


}

@media (max-width: 1000px) {
    .container-purple-planet {
        width: unset;
    }

    h3 {
        padding: 20px;
        font-size: 38px !important;
    }
    p {
        font-size: 38px !important;
    }
    .purple-planet {
        right: 30px !important;
    }
    .rings-1 {
        transform: scale(1.5) translate(-36%, -45%);
    }
    .rings-2 {
        transform: scale(1.5) translate(-27%, 18%);
    }
    .bb-logo {
        margin-bottom: 500px;
    }

    .bb-logo img {
        transform: scale(2);
    }
    .audio-container {
        padding: 40px;
    }
    .muted-icon {
        transform: scale(2);
    }
    .container-pink-planet .container-text {
        width: 60%;
    }
}
