/* === style.css === */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
  background-image: url('https://cdn.jsdelivr.net/gh/rhamt24/rhamt.github.io/Images/bacground.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.track {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 10px 0;
  background-color: rgba(200, 200, 200, 0.9);
  border-radius: 5px;
}

.track img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  border-radius: 5px;
}

.track-info {
  flex: 1;
}

.track-info h3 {
  margin: 0 0 5px;
  color: white;
}

.track-info p {
  margin: 5px 0;
}

audio, .track-info audio {
  width: 100% !important;
  max-width: 100%;
  display: block;
  height: 40px;
  border-radius: 10px;
  background-color: #f0f0f0;
  -webkit-appearance: none;
  appearance: none;
}

.button {
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.button.green {
  background-color: #4CAF50;
  color: white;
}

.button.blue {
  background-color: #008CBA;
  color: white;
}

.button.red {
  background-color: #f44336;
  color: white;
}

.button.gray {
  background-color: #666;
  color: white;
}

.button.red.top-right {
  position: absolute;
  top: 10px;
  right: 10px;
}

.button.small-button {
  width: 150px;
  position: fixed;
  bottom: 0;
  right: 0;
  margin: 20px;
  z-index: 1001;
}

.download-btn {
  background-color: #FF9800;
  color: white;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
  margin-top: 10px;
}

#search-form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

#search-form input[type="text"] {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
  height: 42px;
  font-size: 16px;
}

#search-form button {
  height: 42px;
  width: 42px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#back-button {
  height: 42px;
  width: 42px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#results {
  margin-top: 20px;
}

#music-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(50, 50, 50, 0.9);
  padding: 10px 15px;
  text-align: center;
  z-index: 1000;
  border-radius: 10px 10px 0 0;
}

#current-track-title {
  color: white;
  font-weight: bold;
  margin-bottom: 5px;
}

#controls {
  margin-top: 10px;
}

#controls button {
  margin: 5px;
  padding: 8px 10px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background-color: #008CBA;
  color: white;
  cursor: pointer;
}

#hide-music {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  margin-bottom: 5px;
}

#close-music {
  position: absolute;
  top: 10px;
  right: 10px;
  height: 36px;
  width: 36px;
  border-radius: 50%;
  background-color: red;
  color: white;
  font-size: 18px;
  border: none;
}

#show-music {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #444;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 18px;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.footer {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
  color: #555;
}

#footer-text {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}

@media only screen and (max-width: 600px) {
  .container {
    width: 90%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
  }

  .track {
    flex-direction: column;
    text-align: center;
  }

  .track img {
    margin-bottom: 10px;
  }

  .button.small-button {
    bottom: 10px;
    right: 10px;
    width: auto;
    padding: 5px 10px;
  }
}
