/* BODY */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: black; /* Svart bakgrund (mobile fallback) */
    overflow: hidden; /* Förhindra scroll på vissa enheter */
}

/* CONTAINER */
.container {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* RUBRIK */
h1 {
    font-size: 3rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* AUDIO */
audio {
    margin-bottom: 20px;
    width: 80%;
    max-width: 600px;
    opacity: 0.8;
    border-radius: 10px;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
}

/* ALBUM-COVER */
.album-cover {
    display: block;
    margin: 0 auto 20px; /* Auto för att centrera, 20px under */
    width: 160px;
    border-radius: 10px;
}

/* NOW PLAYING */
#song-info {
    font-size: 1.5rem;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* SENASTE LÅTAR */
.recent-songs {
    font-size: 1rem;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 10px;
    max-width: 600px;
    width: 80%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    margin-bottom: 20px;
}

.recent-songs h3 {
  margin: 0 0 5px 0;
}

.recent-songs ul {
  margin: 0;
  padding: 0;
}

/* LISTSTYLING */
#songs-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* FULLSCREEN-BUTTON */
.fullscreen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.fullscreen-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Runda presetknappar */
.round-preset-button {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    border: none;
    margin: 0 5px;
    font-size: 1.5rem;
    background-color: rgba(0, 0, 0, 0.3);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.round-preset-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.preset-buttons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* CANVAS FÖR BUTTERCHURN */
/* Döljs på mobil, visas i fullskärm på desktop */
#milkdrop-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* så att ditt UI ligger över */
    width: 100vw;
    height: 100vh;
}

/* Media query: döljer Canvas under 768px bredd */
@media (max-width: 768px) {
    #milkdrop-canvas {
        display: none;
    }
}

/* TOGGLE-GRAPHICS-BUTTON */
.graphics-button {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

/* "Turn off graphics" ligger på top:20px;left:20px i JS? 
   Men vi kan styra i CSS. */
/* Vi har redan en? Låt oss särskilja dem: */

#toggle-visuals {
    bottom: 20px;
    left: 20px;
}

#toggle-player {
    bottom: 20px;
    left: 200px;
}

.graphics-button:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.graphics-button,
.fullscreen-button,
.preset-buttons {
  transition: opacity 2.0s ease;
}

