@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

/* Base Styling */
html, body {
    height: 100%; /* Ensure the body takes the full height of the viewport */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Exo 2', sans-serif;
    line-height: 1.6;
    color: #fff; /* Change text color to white */
    font-size: 32px;
    overflow: hidden; /* Prevent scrollbars */
text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.9), /* Top-right shadow */
             -2px -2px 3px rgba(0, 0, 0, 0.9), /* Bottom-left shadow */
             2px -2px 3px rgba(0, 0, 0, 0.9), /* Top-left shadow */
             -2px 2px 3px rgba(0, 0, 0, 0.9); /* Bottom-right shadow */

}

/* Make main content semi-transparent */
header, .container, footer {
    position: relative; /* Ensures these elements are correctly layered above */
    z-index: 1; /* Positive z-index ensures they are above the background */
}

/* Header Styling */
header {
    background: #333;
    color: #fff;
    min-height: 70px;
    border-bottom: #77aaff 3px solid;
}

/* Header H1 Styling */
header h1 {
    text-align: center;
    text-transform: uppercase;
    margin: 0;
    font-size: 128px;
    font-family: 'VT323', monospace;
}

/* Nav Styling */
nav {
    background-color: #c8a2c8; /* Fallback color */
    background: linear-gradient(to bottom, 
  #4caf50, /* Light green (grass top) */
  #43a047, 
  #388e3c, 
  #2e7d32, 
  #265e28, 
  #1e4822, /* Darker green transitioning to brown */
  #6b4226, /* Light brown (topsoil) */
  #5d3b24, 
  #4e342e, 
  #3e2b23, 
  #2f241b, 
  #1f1c14  /* Dark brown (deep soil) */
);

    padding: 10px;
    text-align: center;
    z-index: 3;
    position: relative; 
}

nav a {
    color: #fff;
    padding: 14px 20px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 32px;
    position: relative; /* Required for positioning the effect */
    transition: color 0.3s ease, background 0.3s ease, border 0.3s ease;
    border: 2px solid transparent; /* Border that will change to a star effect */
}

/* Style for active navigation link (current page) */
nav a.active {
    color: #ff6600; /* Orange color */
    font-weight: bold; /* Optional: Make it bold for emphasis */
    text-decoration: underline; /* Optional: Underline the active link */
}

nav a:hover {
    color: #fff;
}

/* Cool rotating triangle effect on hover */
nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 40px solid rgba(255, 255, 255, 0.8); /* Triangle shape */
    transform-origin: center; /* Center the origin of rotation */
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.5s ease-in-out;
    opacity: 0;
    z-index: -1;
}

nav a:hover::before {
    opacity: 1;
    animation: rotate-triangle 1.5s linear infinite;
}

@keyframes rotate-triangle {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Section Styling */
section {
    padding: 20px;
    margin-bottom: 20px;
    background: transparent;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* H2 Styling */
h2 {
    border-bottom: #77aaff 2px solid;
    padding-bottom: 10px;
}

/* List Styling */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

/* Footer Styling */
footer {
background: linear-gradient(to bottom, 
    #2f1f10, 
    #2a2413, 
    #252613, 
    #201d12, 
    #1c1c11, 
    #191a10, 
    #15180f, 
    #120f0e, 
    #0e0c0c, 
    #0b0909, 
    #280d06, 
    #3b1408, 
    #4f1b0b, 
    #66220e, 
    #7c2a11, 
    #933213, 
    #ab3b15, 
    #c34517, 
    #db501a 85%, /* Reducing prominence of oranges/yellows */
    #f25c1d 87%, 
    #ff6e29 89%, 
    #ff823c 91%, 
    #ff9b5a 93%, 
    #ffb04c 95%, 
    #ffcc33 97%, 
    #ffcc00 98%, 
    #ff9900 100%
);


    color: white; /* White text color */
    text-align: center;
    width: 100%;
    padding: 10px; /* Add padding for better visibility */
    position: relative; /* Ensure proper stacking */
    z-index: 4;/* Make sure it stays above #particles-js */
}

/* Particles Background Styling */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 2; /* Keeps it in front of the main content */
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    pointer-events: auto; /* Allows interactions */
}

.wave-container {
    width: 100%;
    margin: auto;
    background: linear-gradient(to bottom, #0077be, #00bfff, #82eefd); /* Gradient background */
    flex: 1;
    overflow-y: auto;
    z-index: 4;
}

.wave2-container {
    width: 100%;
    margin: auto;
background: linear-gradient(to bottom, 
        #1f1c14 0%, 
        #1c1912 20%, 
        #191611 40%, 
        #161311 60%, 
        #131011 80%, 
        #000000 100% /* Black taking about 80% */
    ); /* Gradient background */


    flex: 1;
    overflow-y: auto;
    z-index: 4;
}


/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Adjust font size for smaller screens */
    }

    header h1 {
        font-size: 48px; /* Reduce header size on mobile */
    }

    nav a {
        padding: 10px 14px; /* Adjust padding for nav links */
        font-size: 16px; /* Reduce font size for nav links */
    }

    section {
        padding: 10px; /* Adjust padding for sections */
    }
}

/* Floating text animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0); /* Initial position */
  }
  50% {
    transform: translateY(-7px); /* Move slightly upwards */
  }
}

.floating-text {
  display: inline-block; /* Required for transform animations */
  animation: float 4s ease-in-out infinite; /* Float up and down */
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: #fff; /* Text color */
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  animation: float 4s ease-in-out infinite; /* Floating effect (optional) */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7), 
               -1px -1px 2px rgba(0, 0, 0, 0.7), 
               1px -1px 2px rgba(0, 0, 0, 0.7), 
               -1px 1px 2px rgba(0, 0, 0, 0.7); /* Text outline effect */
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
  clip-path: inset(0 0 50% 0); /* Clipping mask */
  animation: glitch 3s infinite; /* Slower glitch animation for less eye strain */
}

.glitch-text::before {
  color: rgba(255, 0, 255, 0.7); /* Slightly transparent glitch color */
}

.glitch-text::after {
  color: rgba(0, 255, 255, 0.7); /* Slightly transparent glitch color */
  clip-path: inset(50% 0 0 0); /* Different clipping mask */
  animation: glitch 3s infinite reverse; /* Reverse the animation */
}

@keyframes glitch {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  10% {
    transform: translate(-2px, -2px);
    opacity: 0.8;
  }
  20% {
    transform: translate(2px, 2px);
    opacity: 0.8;
  }
  30% {
    transform: translate(-2px, 2px);
    opacity: 0.8;
  }
  40% {
    transform: translate(2px, -2px);
    opacity: 0.8;
  }
  50% {
    transform: translate(0, 0);
    opacity: 1;
  }
  60% {
    opacity: 0.9;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

#star-particle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interaction */
    overflow: hidden; /* Ensure particles do not create scrollbars */
    z-index: 4; /* Adjust as needed */
}

.star-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    opacity: 0; /* Start with opacity 0 for fade-in effect */
    transition: transform 1.5s ease-out, opacity 1.5s ease-out; /* Ensure opacity is included in the transition */
    pointer-events: none; /* Prevent particles from blocking interactions */
}

@keyframes fade-out {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}


/* Increase size of input fields and select dropdowns */
input[type="text"], input[type="password"], input[type="email"], select {
    width: 300px;  /* Set a larger width */
    height: 40px;  /* Set a larger height */
    padding: 10px;  /* Add padding inside the field */
    font-size: 18px;  /* Increase the font size for visibility */
    margin-bottom: 15px;  /* Add space below the fields */
    border-radius: 5px;  /* Optional: rounded corners */
    border: 2px solid #ccc;  /* Border style */
}

/* Optional: For submit buttons to match input size */
input[type="submit"] {
    width: 300px;
    height: 40px;
    padding: 10px;
    font-size: 18px;
    border-radius: 5px;
    border: 2px solid #ccc;
}


/* Style the "Show" button next to password */
button {
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50; /* Green background */
    color: white;
    border: none;
    margin-top: 5px;
    border-radius: 5px; /* Optional: rounded corners for button */
}


input[type="submit"]:hover {
    background-color: #45a049; /* Darker green on hover */
}


button[type="button"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

body, input, select, button {
            font-family: 'Exo 2', sans-serif;
        }
        .message {
            padding: 20px;
            margin: 20px;
            border-radius: 5px;
            font-size: 16px;
            text-align: center;
        }

        /* Additional styles for message types */
        .message.success {
            background-color: #28a745;
            color: white;
        }

        .message.info {
            background-color: #17a2b8;
            color: white;
        }

        .message.error {
            background-color: #dc3545;
            color: white;
        }

        .message button {
            padding: 10px 20px;
            background-color: white;
            border: none;
            color: #007bff;
            cursor: pointer;
            border-radius: 5px;
        }
        .message button:hover {
            background-color: #007bff;
            color: white;
        }

        /* Toggle styles for sections */
        .toggle-btn {
            cursor: pointer;
            color: #007bff;
            font-size: 18px;
        }

        .toggle-content {
            display: none;
            padding: 10px;
            margin-top: 10px;
            border: 1px solid #ccc;
        }

        .toggle-btn.active + .toggle-content {
            display: block;
        }