* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  font-family: Arial, sans-serif;
  margin: 0px;
  background-image: url(./background_xixizi.webp);
  background-size: 100% 100%;
  background-attachment: fixed;
  background-size: cover;
}

.header {
  width: 100%;
  padding: 20px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
  opacity: 0.8;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-right: 20px;
  animation: spin 20s linear infinite;
}

.header p {
  font-size: 20px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 80%;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 0 0 10px 0 #dddddd;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  /*align-items: center;*/
  margin-top: 20px;
  opacity: 0.8;
  overflow-x: hidden;
}

.search-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#category-select {
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
}

#search-input {
  width: 45%;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
}

#random_Song {
  width: auto;
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  white-space: nowrap;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

#random_Song:hover {
  background-color: #bad49a;
  color: white;
}

#table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

tbody tr:hover {
  background-color: #dcf2d4;
}

th,
td {
  border: 1px solid #dddddd;
  padding: 10px;
  white-space: nowrap;
}

#GotoTop {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: #ffffff;
  color: black;
  border: 1px solid black;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: opacity 0.5s ease-in-out;
}

#GotoTop:hover {
  opacity: 1;
  background-color: #bad49a;
  color: white;
}

.footer {
  width: 100%;
  padding: 20px;
  background-color: #f2f2f2;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  opacity: 0.8;
}

.footer p {
  font-size: 16px;
}

@media screen and (max-width: 992px) {
  .container {
    width: 100%;
  }
}

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