body {
  background-color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: sans-serif;
  background-image: url('/Posteo de Instagram Frase Inspiradora Deportivo Verde Negro.png'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #0bd6a3;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px) opacity(0.5);
  z-index: -1;
}

.container {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  max-width: 800px;
  width: 90%;
  margin: 20px;
}

.cd-case-container {
  position: relative;
  z-index: 2;
  width: 50%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cd-case {
  background-color: #ddd;
  border: 2px solid #aaa;
  border-radius: 10px;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  align-items: center;
  overflow: hidden;
  width: 100%;
  height: 100%;
  position: relative;
}

.cd-cover {
  background-image: url('/Posteo de Instagram Frase Inspiradora Deportivo Verde Negro.png');
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 0em;
  color: #555;
  flex-shrink: 0;
}

.vinyl-wrapper {
  width: 50%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  left: -15%;
  z-index: 1;
  overflow: hidden;
}

.vinyl-container {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: none;
  z-index: 10;
}

#vinyl {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.vinyl-container.playing #vinyl {
  animation: rotate 5s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#playButton {
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8em;
  z-index: 20;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#playButton:hover {
  background-color: #3e8e41;
}

@media (max-width: 600px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .cd-case-container {
    width: 80%;
    max-width: none;
    margin-bottom: 20px;
  }

  .vinyl-wrapper {
    width: 80%;
    max-width: none;
    left: 0;
  }
}

/* Style for the vinyl cover in the center of the vinyl */
#vinylCover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%; 
  height: 40%; 
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  z-index: 11; 
  pointer-events: none; 
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); 
}

.vinyl-container.playing #vinylCover {
  animation: rotate-cover 5s linear infinite;
}

@keyframes rotate-cover {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Metadata container styles */
.metadata-container {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.song-info {
    display: flex;
    align-items: center;
    justify-content: center;
}

.song-info img {
    width: 80px;
    height: 80px;
    border-radius: 0;
    margin-right: 10px;
}

.song-info-text p {
    margin: 0;
    background-color: transparent; 
}

/* Controls styles */
.controls {
  margin-top: 20px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#volume-slider {
  width: 80%;
}

/* Title style */
.title {
    font-size: 4em;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Arial Black', sans-serif; 
}