/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #3a1c71, #d76d77, #ffaf7b);
    color: #fff;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

/* Container */
#app {
    max-width: 900px;
    margin: 10px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

/* Welcome Page */
#welcome-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#welcome-page.hidden {
    opacity: 0;
}

#welcome-page h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

#welcome-page button {
    padding: 12px 25px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    color: #3a1c71;
    font-size: 1.5em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#welcome-page button:hover {
    background: #ffcd00;
}

/* Header Styling */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h2 {
    font-size: 2.5em;
    color: #ffd700;
    font-weight: bold;
    text-transform: uppercase;
}

/* Search Input */
#search-input {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    margin-top: 15px;
    transition: background 0.3s ease;
}

#search-input:focus {
    background: rgba(255, 255, 255, 0.5);
    outline: none;
}

/* Song List Section */
#song-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 900vh;
    overflow-y: auto;
    padding-right: 15px;
}

/* Song Item Styling */
.song {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    transition: background-color 0.3s, transform 0.3s;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.song:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* Song Title in White */
.song-title {
    font-size: 1.3em;
    color: #fff; /* White */
    font-weight: bold;
    text-align: center;
    flex-grow: 1;
}

/* Song Number in White */
.song-number {
    font-size: 1.2em;
    color: #fff; /* White */
    font-weight: bold;
    margin-left: 10px;
}

/* Song Preview Area */
#song-preview {
    display: none;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    margin-top: 10px;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Song Number in Preview */
#song-number {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff; /* White */
    margin-bottom: 20px;
}

/* Song Title in Preview */
#song-title {
    font-size: 2em;
    font-weight: bold;
    color: #fff; /* White */
    margin-bottom: 20px;
}

/* Song Lyrics */
#song-lyrics {
    font-size: 1.2em;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 20px;
    white-space: pre-wrap; /* Ensures text wraps properly */
    word-wrap: break-word;
}

/* Button Styling */
button {
    margin-top: 20px;
    padding: 14px 28px;
    background: #ffd700;
    border: none;
    border-radius: 5px;
    font-size: 1.4em;
    color: #3a1c71;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #ffcd00;
}

button:active {
    background: #ffcd00;
}

#exit-button {
    padding: 12px 20px;
    background: #ff4c4c;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font-size: 1.3em;
    margin-top: 20px;
}

#exit-button:hover {
    background: #ff3333;
}

/* Footer Section */
#footer-info {
    text-align: center;
    margin-top: 50px;
}

.footer-img {
    width: 200px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 20px;
}

.footer-img:hover {
    transform: scale(1.1);
}

#footer-info h3 {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 15px;
}

/* Media Query for Mobile */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    #app {
        padding: 15px;
    }

    header h2 {
        font-size: 2em;
    }

    #search-input {
        font-size: 14px;
        padding: 12px;
    }

    .song {
        flex-direction: column;
        align-items: center;
        padding: 15px;
    }

    .song-title {
        font-size: 1.2em;
    }

    #song-number {
        font-size: 1.1em;
    }

    #song-preview {
        padding: 20px;
    }

    #song-title {
        font-size: 1.8em;
    }

    #song-lyrics {
        font-size: 1.2em;
    }

    button {
        font-size: 1.2em;
        padding: 12px 24px;
    }

    #exit-button {
        font-size: 1.2em;
        padding: 12px 24px;
    }
}

/* Prevent text selection */
body {
    user-select: none;
}
