/* Mobile Music Player Styles */

:root {
    --primary-bg: #1a1a1a;
    --secondary-bg: #1e1e1e;
    --accent-color: #ff0000;
    --text-color: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    width: 90%; /* Adjust as needed */
    height: auto; /* Adjust as needed */
    /* max-height: 500px; */
    box-shadow: 0 4px 20px var(--shadow-color);
    background-color: var(--secondary-bg);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

/* Top Section: Dropdown and Close Button */
.top-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.music-source {
    background-color: #444;
    color: var(--text-color);
    border: 1px solid #555;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.4-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px top 50%;
    background-size: .65em auto;
    padding-right: 25px;
    width: 70%;
    margin-bottom: 5px;
}

#close-button {
    color: white;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

#close-button:hover {
    color: red;
}

/* Album Art */
.album-art {
    width: 100%;
    /* max-width: 250px; */
    margin: 0 auto; /* Center the album art */
}

.album-art img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    border-radius: 5px;
    object-fit: contain; /* Make the image fit within the container */
}

/* Song Info */
.song-info {
    text-align: center;
    margin: 15px 0;
}

.song-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.artist-name {
    font-size: 14px;
    color: #b3b3b3;
}

/* Progress Bar */
#progress-container {
    width: 100%;
    height: 6px;
    background-color: #444;
    border-radius: 3px;
    cursor: pointer;
    margin-bottom: 15px;
}

#progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.controls button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    transition: transform 0.5s;
}

.controls button:hover {
    transform: scale(1.5);
}

.controls button img {
    width: 100%;
    height: 100%;
}

/* Karmathegame Button */
.karmathegame-button {
    display: block;
    background-color: var(--accent-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    text-align: center;
    margin: 0 auto; /* Center the button */
    width: fit-content; /* Make the button fit its content */
    transition: background-color 0.3s ease;
}

.karmathegame-button:hover {
    background-color: darken(var(--accent-color), 10%);
}