body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: radial-gradient(circle,black,black); /* Deep space gradient */
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
#animation-container {
    position: absolute;
    z-index: 1;  /* Lower z-index for the 3D scene */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Container */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.1);
    background-blend-mode: overlay;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    position: relative;
    z-index: 10;
}

/* Headings */
h1 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 30px;
    text-shadow: 0px 0px 15px rgba(0, 255, 255, 0.8);
}

h2 {
    color: whitesmoke;
    border-bottom: 2px solid #0077cc;
    padding-bottom: 5px;
}
/* Specific styling for headers inside the sections */
#content h2 {
    font-size: 18px;  /* Smaller heading size */
    margin-bottom: 10px;  /* Add space below headings */
    color: white;  /* Darker heading color */
}

/* Sections */
.section {
    margin: 20px 0;
    padding: 15px;
}

/* Button */
.btn {
    display: block;
    width: fit-content;
    margin: 20px auto;
    padding: 10px 20px;
    background: #0077cc;
    color: white;
    border: 2px solid rgb(0, 187, 255);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    transition: 0.3s ease;
}

.btn:hover {
    background: transparent;
}

/* List Styling */
ul {
    list-style: none;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center the items horizontally */
    justify-content: center; /* Center vertically */
    height: 60vh; /* Take full viewport height */
    gap: 20px; /* Spacing between items */
    padding: 0;
    margin: 0;
}

ul li {
   list-style: none;
   display: flex;
   justify-content: center;
}

ul li a {
    display: inline-block;
    text-decoration: none;
    color: #007BFF;
    font-size: 0.6rem;
    padding: 15px 30px;
    border-radius: 12px;
    transition: all 0.4s ease-in-out;
    text-transform: uppercase;
    border: 2px solid #007BFF;
    position: relative;
    box-shadow: 0px 0px 15px rgba(0, 170, 255, 0.4); /* Soft glow */
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    animation: float 6s ease-in-out infinite;
}
/* Glowing hover effect */
ul li a:hover {
    transform: translateY(-10px); /* Makes it "float" up */
    box-shadow: 0px 0px 25px #007BFF;
    background: rgba(0, 255, 255, 0.1);
}
/* Animated Floating Effect */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}
ul li a {
    font-size: 14px;  /* Smaller font size for links */
    color: #007BFF;  /* Link color */
    text-decoration: none;
    animation: float 3s ease-in-out infinite;
}
ul li a:hover {
    text-decoration: underline;  /* Underline on hover */
}
ul li:last-child {
    border-bottom: none;
}
#menuOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    flex-direction: column;
}

#menuOverlay ul {
    list-style: none;
    padding: 0;
}

#menuOverlay ul li {
    margin: 20px;
}

#menuOverlay a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    cursor: pointer;
}

#viewportContainer {
    display: none;
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 90%;
    max-width: 800px;
    height: auto;
    min-height: 300px;
    max-height: 80vh;
    background-color: black;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 20px;
    overflow: auto;
    z-index: 1000;
    box-sizing: border-box;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/stardust.png');
    background-blend-mode: overlay; 
    pointer-events: none;  
    z-index: -1;
 
}
#content {
    font-family: Arial, sans-serif;
    color: white;
    padding: 15px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    max-height: 70vh;  
    overflow-y: auto; 
}

#closeButton {
    position: absolute; /* Position it absolutely within the container */
    top: 10px; /* 10px from the top */
    right: 10px; /* 10px from the right */
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    z-index: 1001;
}
#closeButton:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
#animation-container {
    position: absolute;
    top: 50%; /* Align to center of text */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: -1; /* Sends animation behind the text */
    pointer-events: none; /* Allows clicks to pass through */
}

/* Media Queries for Responsive Design */

/* Mobile (small): 375-420px */
@media screen and (min-width: 375px) and (max-width: 420px) {
    h1 {
        font-size: 1.2rem;
        margin-top: 20px;
    }
    
    ul li a {
        font-size: 12px;
        padding: 10px 20px;
    }
    
    #viewportContainer {
        width: 95%;
        max-width: 95%;
        padding: 15px 10px;
        min-height: 250px;
    }
    
    #content {
        font-size: 14px;
        padding: 10px;
        max-height: 60vh;
    }
    
    #content h2 {
        font-size: 16px;
    }
    
    #closeButton {
        font-size: 0.9rem;
        top: 5px;
        right: 5px;
    }
}

/* Mobile (large): 430-600px */
@media screen and (min-width: 421px) and (max-width: 600px) {
    h1 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    
    ul li a {
        font-size: 13px;
        padding: 12px 25px;
    }
    
    #viewportContainer {
        width: 90%;
        max-width: 90%;
        padding: 15px;
        min-height: 280px;
    }
    
    #content {
        font-size: 15px;
        padding: 12px;
        max-height: 65vh;
    }
    
    #content h2 {
        font-size: 17px;
    }
}

/* Tablet: 768-1024px */
@media screen and (min-width: 601px) and (max-width: 1024px) {
    h1 {
        font-size: 1.4rem;
    }
    
    ul li a {
        font-size: 14px;
    }
    
    #viewportContainer {
        width: 85%;
        max-width: 700px;
    }
    
    #content {
        font-size: 16px;
        max-height: 70vh;
    }
    
    #content h2 {
        font-size: 18px;
    }
}

/* Laptop/Desktop: 1280-1920px */
@media screen and (min-width: 1025px) and (max-width: 1920px) {
    h1 {
        font-size: 1.5rem;
    }
    
    #viewportContainer {
        max-width: 800px;
    }
    
    #content {
        font-size: 16px;
    }
    
    #content h2 {
        font-size: 18px;
    }
}

/* Large Monitor: 1921-2560+ */
@media screen and (min-width: 1921px) {
    h1 {
        font-size: 1.8rem;
    }
    
    ul li a {
        font-size: 16px;
        padding: 18px 35px;
    }
    
    #viewportContainer {
        max-width: 1000px;
    }
    
    #content {
        font-size: 18px;
    }
    
    #content h2 {
        font-size: 20px;
    }
    
    #closeButton {
        font-size: 1.2rem;
    }
}
