body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column; /* Arrange items vertically */
  min-height: 100vh; /* Ensure body covers full viewport height */
  margin: 0;
}

.container {
  width: 75%; /* Container width remains as is */
  padding: 20px;
  box-sizing: border-box;
  margin: auto;
  text-align: center;
  flex: 1;
}

.sound-control-item {
  display: flex; /* Use flexbox to align label and play button */
  align-items: center; /* Center items vertically */
  justify-content: space-between; /* Space items evenly */
  margin-bottom: 10px; /* Adjust margin as needed */
  margin-top: 0px;
}

.text-label {
  flex: 0 0 auto; 
  margin-right: 5px;
  margin-top: 8px;
}

/* Container for sound controls */
.sound-controls {
  margin: auto;
  margin-top: 30px;
  max-width: 100%;
}

/* Flex container for each sound section */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25%, 1fr)); /* Adjust column size as needed */
  gap: 35px; /* Space between grid items */
  justify-items: center; /* Center items horizontally */
  width: 100%; /* Max width for sound section */
  max-width: 100%; /* Ensure it doesn't exceed 100% of parent */
  margin: auto;
}

/* Styling for each sound section */
.sound-section {
  margin: auto;
  margin-bottom: 30px;
  border: 1px solid black;
  padding: 30px;
  width: 90%; 
  max-width: 100%;  
}

/* Specific styling for each sound section title */
.sound-section h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.5em;
}

/* Play/Pause button styling */
.play-button {
  background-color: transparent;
  border: none;
  color: black !important;
  text-align: center;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 1px;
  font-size: 38px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
}

.play-button.playing {
  background-color: #ff0000 !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  color: white !important;
  font-size: 38px;
}

.play-button:active {
  transform: scale(0.85);
}

/* Adjust slider width to fill the container */
.volume-slider-container {
  width: 100%; /* Width for volume sliders */
  margin: auto;
  margin-top: 20px;
}

.volume-slider-container input[type="range"] {
  width: 100%; /* Make slider fill its container */
  max-width: 100%; /* Ensure slider does not overflow */
}



/* Style for Start/Stop Recording buttons */
.recording-button {
  font-size: 24px; /* Increase font size */
  padding: 15px 30px; /* Increase padding for larger buttons */
  border-radius: 12px; /* Make the buttons more rounded */
  border: 2px solid #000; /* Add a border for better visibility */
  background-color: #f0f0f0; /* Light background color */
  color: #333; /* Text color */
  cursor: pointer; /* Pointer cursor on hover */
  margin: 10px; /* Space between buttons */
  transition: background-color 0.3s ease, transform 0.1s ease; /* Smooth transition for hover effects */
}

.recording-button:hover {
  background-color: #d0d0d0; /* Darker background on hover */
}

.recording-button:active {
  transform: scale(0.95); /* Slightly shrink button on click */
}

.recording-button.recording {
  background-color: #00ff00; /* Green when recording */
  color: #fff; /* White text */
}

.recording-button.stopping {
  background-color: #ff0000; /* Red when stopping */
  color: #fff; /* White text */
}

.recording-button.stopping:active {
  background-color: #cc0000; /* Darker red when button is pressed */
}

.recording-buttons {
  margin-top: 20px; /* Space above the button container */
  text-align: center; /* Center the buttons */
}

@media (max-width: 1200px) {
  .controls {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on smaller screens */
  }
}


@media (min-width: 1200px) {
  .controls {
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* Maximum 4 columns per row */
    margin: auto;
  }
}

@media (max-width: 768px) {
  .controls {
    width: 90%; /* Adjust to full width on smaller screens */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: auto;
    gap: 25px;
  }

  .sound-section {
    width: 90%; /* Adjust to full width on smaller screens */
    margin: auto;
    margin-bottom: 30px;
    padding: 15px;
  }

}

@media (max-width: 480px) {
  .controls {
    grid-template-columns: repeat(1, minmax(0, 1fr)); /* 1 column on very small screens */
  }
}



/* Additional Info Section */
.additional-info {
  padding: 25px;
  background-color: #e3e3e3;
  text-align: center;
  width: 100%; /* Full width */
  box-sizing: border-box; /* Ensure padding is included in the width */
  margin-top: 20px;
  margin: 0; /* Remove margin to ensure it spans the full width */
}

.additional-info h2 {
  margin-bottom: 10px;
}

.additional-info ul {
  list-style-type: none;
  padding: 0;
  margin-bottom: 50px; /* Add space below the list */
}

.additional-info li {
  margin-bottom: 5px;
}

.additional-info a {
  color: #3580d1;
  text-decoration: none;
}

.additional-info a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 20px; /* Adjust space above the copyright notice */
}


.recently-downloaded {
  margin-top: 20px;
  margin-bottom: 20px;
}

.recently-downloaded h2 {
  margin-bottom: 10px;
}

.recently-downloaded-list {
  border: 1px solid #e3e3e3;
  padding: 10px;
}

.recent-mix {
  padding: 5px 0;
  border-bottom: 1px solid #eee;
}

.recent-mix:last-child {
  border-bottom: none;
}