* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    background: #1d2026;
    color: white;
}

.menu {
    width: 100%;
    position: relative;
}

nav {
    display: flex;
    align-items: center;
    padding: 20px 8%;
    font-weight: bold;
    background: #1d2026;
}

.logo {
    width: 50px;
}

nav ul {
    flex: 1;
    text-align: right;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 5px 20px;
}

nav ul li a {
    color: #fff;
}

nav span {
    padding-left: 20px;
    font-size: x-large;
}

a,
a:hover,
a:active,
a:visited,
a:focus {
    text-decoration: none;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    flex: 1;
}

h1 {
    /* padding: 25px; */
    align-items: center;
    text-align: center;
    font-size: 60px;
}

h2 {
    padding-bottom: 20px;
    padding-left: 10px;
    padding-right: 10px;
    align-items: center;
    text-align: center;
    font-size: 40px;
}

.pagebody {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html {
    height: 100%;
}

.footer {
    padding: 20px 8%;
    align-items: center;
    text-align: center;
    color: #808080;
}

/* Adjustments for smaller screens */
@media (max-width: 900px) {
    nav {
        padding-bottom: 15px;
    }

    h1 {
        padding-top: 0px;
    }
}

button {
    margin-top: 20px;
    padding: 20px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    font-family: 'poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

button:hover {
    background-color: #45a049;
}

.image-button {
    padding-left: 40px;
    margin-bottom: 20px;
}

.image-button img {
    width: 50px;
    height: 30px;
    background-color: inherit;
}

.form-control {
    padding: 15px;
    font-size: 1.2em;
    color: #fff;
    background-color: #464646;
    border: 1px solid #444;
    border-radius: 5px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 20px;
    appearance: none;
    /* Remove default dropdown arrow */
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffffff" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

.form-control:focus {
    outline: none;
}

.device-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.inputbox {
    padding: 10px;
    font-size: 1.2em;
    color: #fff;
    background-color: #464646;
    border: 1px solid #444;
    border-radius: 5px;
    width: 95%;
    appearance: none;
    /* Remove default dropdown arrow */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    box-sizing: border-box;
}

.inputbox:focus {
    outline: 2px solid #5b9dd9;
    border-color: #3498db;
}

.playlist-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* General styling for the media controls container */
.media-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

/* Styling for the buttons */
.control-button {
    background-color: #4CAF50;
    /* Green background */
    color: white;
    border: none;
    border-radius: 50%;
    /* Make it circular */
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    /* Large icons */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    /* Add a little shadow */
}

/* Hover and active effects */
.control-button:hover {
    background-color: #45a049;
}

.control-button:active {
    transform: scale(0.95);
    /* Slightly shrink on click */
}

/* Optional media-specific button colors */
#prevButton {
    background-color: #ff5733;
}

#prevButton:hover {
    background-color: #e24e28;
}

#nextButton {
    background-color: #3498db;
}

#nextButton:hover {
    background-color: #2980b9;
}

#song-queue {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
}

#songList {
    list-style-type: none;
    padding: 0;
}

#songList li {
    padding: 5px 0;
    color: #8d8d8d;
    font-size: 1em;
    cursor: pointer;
}

#songList .now-playing {
    /* Larger size for currently playing song */
    color: #fff;
    /* Highlight the now playing song */
    font-weight: bold;
}

body.waiting {
    cursor: wait;
    /* This changes the cursor to a spinner */
}

/* Spinner CSS */
#spinner {
    display: none;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.create-playlist {
    color: #c0c0c0;
    padding: 10px;
}