/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    background: #f5f5f5;
    color: #333;
    background: url('https://img.pikbest.com/wp/202343/abstract-wave-wallpaper-black-texture-dynamic-background-pattern-and_9970061.jpg!sw800') no-repeat center center fixed; 
    background-size: cover; /* Make sure the background covers the whole page */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    margin-bottom: 20px;
}

header h1 {
    text-align: center;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 10px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #f8c93a;
}

main {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.centered {
    text-align: center;
    margin: 20px 0;
}

.audio-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

#textInput {
    width: 60%;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

#generateBtn {
    padding: 10px 20px;
    border: none;
    background: #333;
    color: #fff;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
}

#generateBtn:hover {
    background: #f8c93a;
}

audio {
    margin-top: 20px;
    width: 100%;
}

#rating {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#rating input[type="radio"] {
    display: none;
}

#rating label {
    width: 40px;
    height: 40px;
    background: url('star-empty.svg') no-repeat center center / contain;
    cursor: pointer;
    transition: background 0.3s;
}

#rating input[type="radio"]:checked ~ label,
#rating label:hover,
#rating label:hover ~ label {
    background: url('star-filled.svg') no-repeat center center / contain;
}

ul {
    list-style: none;
    padding: 0;
}

li {
    margin: 10px 0;
    font-size: 1.1em;
}

footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    margin-top: 20px;
    border-radius: 10px;
}

footer p {
    margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    .audio-box {
        flex-direction: column;
    }

    #textInput {
        width: 100%;
    }

    #generateBtn {
        width: 100%;
        margin-top: 10px;
    }
}
