body {
    background: linear-gradient(45deg, #1a1a40, #3a2d6b, #5c1e63);
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    flex-direction: column; /* Ensures that items stack vertically */
}

/* Star Container */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Individual Stars */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: shine 2s infinite alternate ease-in-out;
}

/* Random Glow Effect */
@keyframes shine {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* Background Gradient Animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Title Styles */
h1 {
    font-family: "Eczar", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
    font-size: 115px;
    letter-spacing: 8px;
    color: beige;
    text-shadow: 0 0 5px rgba(255, 255, 230, 0.5), 0 0 10px rgba(255, 255, 230, 0.3);
    transition: transform 0.3s ease; 
    margin-top: 30px; /* Adds space between the nav and h1 */
}

h1:hover {
    transform: scale(1.1); 
}

a {
    text-decoration: none; 
}

h3 {
    font-family: "Eczar", serif;
    font-size: 15px;
    color: white;
    text-align: center;
    width: 60%;
    font-weight: 400;
    line-height: 1.5;
    margin-top: -27px; /* Adjusts spacing below h1 */
}


/* Navigation Box Styles */
.nav {
    position: absolute;
    top: 20px; /* Positioned at the top */
    display: flex;
    justify-content: space-around; /* Distributes links evenly */
    width: 100%; /* Makes the container full width */
    padding: 20px;
    margin: 0 auto; /* Centers the nav links */
    box-sizing: border-box;
}

.nav-link {
    background-color: #c184e2;
    color: white;
    font-family: "Eczar", serif;
    font-size: 14px;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-link:hover {
    background-color: white;
    box-shadow: 0 0 10px #c184e2;
    color: #c184e2;
}

.audio-player {
    position: absolute;
    bottom: 20px;  /* Position from the bottom */
    left: 20px;    /* Position from the left */
    z-index: 100;  /* Ensure it's on top of other content if necessary */
}


@media (max-width: 768px) {
    h1 {
        font-size: 80px; /* Adjusted for smaller screens */
        letter-spacing: 5px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center; /* Centers the nav links */
        gap: 10px; /* Adds spacing between links */
        padding: 10px;
    }

    .nav-link {
        font-size: 12px; /* Adjusts text size */
        padding: 8px 12px; /* Slightly smaller buttons */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 60px; /* Further reduces size */
        letter-spacing: 3px;
    }

    .nav {
        flex-direction: row; /* Keeps it as a row */
        flex-wrap: wrap; /* Allows links to wrap if needed */
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        font-size: 11px;
        padding: 6px 10px;
    }

    .audio-player {
        bottom: 10px;
        left: 10px;
    }
}
