body {
    background: linear-gradient(45deg, #f8c8d4, #a3c9f7, #f6a6c1); 
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    text-align: center;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.nav {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px; /* Adds spacing from edges */
    box-sizing: border-box;
}

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

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

h1 {
    font-family: "Eczar", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
    font-size: 90px;
    text-align: center;
    color: beige;
    margin-top: 50px;
    margin-bottom: 90px;
}

/* Style the polygon (constellation lines) */
.constellation {
    fill: none; /* No fill, just the shape outline */
    stroke: #ffffff; /* White stroke for the outline */
    stroke-width: 0.5; /* Thin lines */
    margin-right: auto;
    margin-left: auto;
    width: 500px;
    display: flex;
    justify-content: center;
    align-items:center;
    position: relative;
    left: -5%;
    top: -76%;
}

.star {
    fill: white; /* Default color for all stars */
    cursor: pointer;
}

/* Change the color of the first star */
.star:first-of-type {
    fill: #FFD700; 
}

.verse {
    display: none;
    position: fixed;
    transform: translate(-50%,-50%);
}

.verse#one {
    left: 22%;
    top: 66%;  
}

.verse#two {
    left: 25%;
    top: 44%;
}

.verse#three {
    top: 73%;
    left: 50%;
}

.verse#four {
    top: 38%;
    left: 50%;
}

.verse#five {
    top: 34%;
    left: 60%;
}

.verse#six {
    top: 78%;
    left: 69%;
}

.verses{
    font-family: "Eczar", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: #ffffff;
    font-size: 22px;
    line-height: 140%;
    letter-spacing: 1.3px;
    position:relative;
    height: 70%;
    width: 100%;
    top: 20%;
}

h3 {
    position: absolute;
    bottom: 69px; /* Adjust to position it above the audio player */
    left: 29px;   /* Align it with the left side of the page (same as the audio player) */
    font-family: "Eczar", serif;
    letter-spacing: 1.4px;
    color: #ffe44d;  
    font-size: 16.5px;  /* Adjust size as needed */
    line-height: 1.4;
    font-weight: 400;
    z-index: 101; /* Ensure it stays above other content */
}

.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 Queries for Responsiveness */

/* For screens smaller than 768px (tablets and mobile devices) */
@media (max-width: 768px) {
    h1 {
        font-size: 35px; /* Adjust h1 size for tablets */
        margin-top: 20px; /* Reduce top margin */
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* Style the new polygon (constellation lines) */
    .constellation {
    fill: none;     
    stroke: #ffffff; 
    stroke-width: 0.5; 
    margin-right: auto;
    margin-left: auto;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    left: -7%;
    top: -60%;
    }

    /* Style the stars (dots) */
    .star {
    fill: white; /* White color for the stars */
    cursor: pointer;
    }

    .verse#one {
        left: 36%;
        top: 70%;  
    }
    
    .verse#two {
        left: 34%;
        top: 30%;
    }
    
    .verse#three {
        bottom: 16%;
        left: 50%;
    }
    
    .verse#four {
        top: 38%;
        left: 40%;
    }
    
    .verse#five {
        top: 27%;
        left: 46%;
    }
    
    .verse#six {
        top: 74%;
        left: 60%;
    }

.verses{
    font-family: "Eczar", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    color: #f1edd9;
    font-size: 12px;
    line-height: 165%;
    letter-spacing: 1.3px;
    position:relative;
    height: 70%;
    width: 100%;
    top: 20%;
    }

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