@import url('https://fonts.googleapis.com/css2?family=Cuprum:ital,wght@0,400..700;1,400..700&family=DynaPuff:wght@400..700&family=Lilita+One&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gasoek+One&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

#particles-js {
    position: fixed; /* Change from absolute to fixed */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

body {
    background: linear-gradient(135deg, #005dd6, #00aaff);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; /* Change from height to min-height */
    overflow-x: hidden;
    overflow-y: auto; /* Explicitly allow vertical scrolling */
    position: relative; /* For proper positioning of children */
    padding-top: 100px; /* Add space for fixed navbar */
}

.navbar {
    display: flex;
    position: fixed;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    right: 0; /* Make it span the full width */
    background-color: #f8f8f8;
    margin: 20px auto; /* Center it horizontally */
    padding: 8px 40px;
    border: 2px solid black;
    border-radius: 30px;
    box-shadow: 3px 3px 0 black;
    z-index: 99;
    width: fit-content; /* Make it only as wide as needed */
}


.navbar a{
    text-decoration: none;
    color: black;
    font-weight: bold;
    margin: 0 10px;
    font-family: 'Cuprum';
    padding: 5px;
    transition: 0.3s;
}

.navbar a button{
    font-family: 'Cuprum';
    font-size: 15px;
    font-weight: bold;
    border-radius: 20px;
    padding: 8px 15px;
    background-color: rgb(255, 217, 0);
}

.navbar a button:active {
    transform: scale(0.95);
    transition: transform 0.1s;
}

.navbar a:hover{
    color: rgb(243, 223, 9);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0);
}

.nav-links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0;
}

.dropdown-pendahuluan, .dropdown-rencana, .dropdown-hasil, .dropdown-penutup{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dropdown-pendahuluan:hover .dropdown-pendahuluan-content, .dropdown-rencan:hover .dropdown-rencana-content, .dropdown-hasil:hover .dropdown-hasil-content, .dropdown-penutup:hover .dropdown-penutup-content{
    display: block;
}

.dropdown-pendahuluan-content, .dropdown-rencana-content, .dropdown-hasil-content, .dropdown-penutup-content{
    display: none;
    position: absolute;
    top: 100%;
    transform: none;
    border-radius: 5px;
    border: 3px solid black;
    z-index: 10;
    padding: 0;
}

.dropdown-pendahuluan-content a, .dropdown-rencana-content a, .dropdown-hasil-content a, .dropdown-penutup-content a{
    color: black;
    background-color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    text-align: center;
    width: 100%;
    margin: 0; 
}

.YOGIS{
    color: white;
    text-align: center;
    font-size: 100px;
    font-family: 'Gasoek One';
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
    margin-bottom: -80px;
}

.PENDAHULUAN{ 
    color: rgb(255, 196, 0);
    margin-top: 40px;
    text-align: center;
    font-size: 100px;
    font-family: 'lilita one';
    -webkit-text-stroke: 2px black;
    text-shadow: 5px 5px black;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

.cloud {
    position: absolute;
    width: 400px;
    height: 150px;
    border-radius: 50px;
    opacity: 0.8;
    animation: float 5s ease-in-out infinite;
    z-index: -1;
    padding-right: 80px;
}

.cloud:nth-child(1) {
    left: 10%;
    top: 20%;
    animation-duration: 6s;
}

.cloud:nth-child(2) {
    left: 30%;
    top: 10%;
    animation-duration: 8s;
}

.cloud:nth-child(3) {
    left: 70%;
    top: 25%;
    animation-duration: 7s;
}

.moving{
    font-family: 'Pixelify Sans';
    font-size: 30px;
    background-color: white;
    padding-bottom: 45px;
    border: 4px solid black;
}

.abstract-content{
    background-color: #2f732d;
}

h1.abstract{
    font-family: 'Lilita One';
    text-align: center;
    color: white;
    -webkit-text-stroke: 2px black;
    margin-top: 30px;
    margin-bottom: -10px;
    font-size: 100px; 
}

.abstract-content p{
    text-align: justify;
    margin: 50px;   
    color: white;
    font-size: 17px;
}

.abstract p{
    font-size: 30px;
}

.content {
    width: 100%;
    padding: 20px;
    background-color: #ebe8e2;
    margin-top: 80px; /* Give space for navbar */
}

.container-latar-belakang{
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    padding-bottom: -5px;
    margin: 20px;
    border: 3px solid black;
    box-shadow: 3px 3px 0 black;
    background-color: #bf2604;
}

.container-tujuan{
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    border: 3px solid black;
    box-shadow: 3px 3px 0 black;
    background-color: #005dd6;
}

.container-manfaat{
    align-items: center;
    border-radius: 10px;
    padding: 20px;
    margin: 20px;
    border: 3px solid black;
    box-shadow: 3px 3px 0 black;
    background-color: #2f732d; 
}

.contitle{
    font-family: 'lilita one';
    color: #f2a413;
    font-size: 90px;
    -webkit-text-stroke: 1.5px black;
    text-shadow: 5px 5px black;
    text-align: center;
}

li{
    font-family: 'cuprum';
    list-style: decimal;
    color: white;
    margin-left: 40px;
}

p{
    font-family: 'cuprum';
    color: white;
    margin: 30px;
}

ol{
    margin-top: -30px;
    margin-bottom: 30px;
}

.latbel{
    font-family: 'cuprum';
    color: #ebe8e2;
    margin: 15px;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Make sure it's behind other content */
}

/* Text animation for moving marquee */
@keyframes textGlow {

    0%,
    100% {
        color: #000;
        text-shadow: 0 0 0 transparent;
    }

    50% {
        color: #c28100;
        text-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
    }
}

.moving {
    animation: gradientBG 10s ease infinite, textGlow 3s ease-in-out infinite;
}

.navbar a button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navbar a button:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 217, 0, 0.4);
}

.navbar a button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.navbar a button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.navbar {
    animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-links a {
    position: relative;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: rgb(243, 223, 9);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.latbel .container-tujuan .container-manfaat{
    font-size: 30px;
}

span{
    background-color: rgb(184, 168, 0);
    border-radius: 20px;
    color: black;
}