/* General body styles */
body {
  font-family: 'Expletus Sans', sans-serif;
  background-color: #0e0e0e;
  color: white;
  text-align: center;
  padding-left: 10rem;
  padding-right: 10rem;
  padding-bottom: 5rem;
  margin: 0;
  box-sizing: border-box;
}

/* Headings */
h1 {
  color: white;
  margin-bottom: 20px;
  font-size: 5rem;
}

h2 {
  color: white;
  margin-bottom: 20px;
}

/* Dropdowns */
label, select {
  color: white;
  margin-right: 10px;
}

select {
  background-color: #222;
  color: white;
  border: none;
  padding: 10px;
  margin-bottom: 20px;
}

/* Button for fetching data */
button {
  background: linear-gradient(45deg, #6a5eff, #4ea3ff);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 25px;
  font-size: 16px;
  transition: 0.3s ease;
}

button:hover {
  background: linear-gradient(45deg, #4ea3ff, #6a5eff);
  transform: scale(1.05);
}

/* Main container for the Top Songs and Artists */
.bar-chart {
  display: flex;
  justify-content: space-around; /* Adds equal spacing between bars */
  align-items: flex-end;
  height: 200px;
  margin: 20px auto;
  width: 80%;
  max-width: 600px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0px 0px 15px rgba(255, 255, 255, 0.1);
}

/* Individual bars for songs/artists */
.bar {
  background: linear-gradient(180deg, #6a5eff, #4ea3ff);
  width: 60px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  transition: 0.3s ease;
}

.bar:hover {
  transform: scale(1.1);
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
}

.bar p {
  color: white;
  font-size: 14px;
  text-align: center;
  margin: 0;
  padding: 5px;
}

.results-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.box {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 2rem;
}

.hintergrund {
  width: 100%;
}

.hintergrund::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(./assets/Background.jpg) center center / cover no-repeat fixed;
  transform: scale(1.3);
  z-index: -1;
  overflow: hidden;
}

#genre {
  border-radius: 50px;
}

#country {
  border-radius: 50px;
}

#trendGenre {
  border-radius: 50px;
}

#streamCountry {
  border-radius: 50px;
}
/* Top songs and artists section */
#spotify-songs, #spotify-artists {
  margin-bottom: 40px;
}

#spotify-songs p, #spotify-artists p {
  font-size: 18px;
  font-weight: bold;
}

/* Event Section */
#result {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 2rem;
  padding-left: 5rem;
  padding-right: 5rem;
}

#result div {
  margin: 10px 0;
}

#result h4 {
  font-size: 18px;
  color: #6a5eff;
}

#result p {
  font-size: 16px;
  margin: 5px 0;
}

/* Button for analytics */
#show-analytics {
  background: linear-gradient(45deg, #6a5eff, #4ea3ff);
  color: white;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  border-radius: 30px;
  font-size: 18px;
  margin-top: 20px;
  transition: 0.3s ease;
}

#show-analytics:hover {
  background: linear-gradient(45deg, #4ea3ff, #6a5eff);
  transform: scale(1.05);
}

/* Canvas chart for genre trends */
canvas {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 2rem;
}
