h2 {
  margin: 0px;
}

.settings-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  padding: 20px;
  background-color: #1a1a40;
  border: 4px solid #4fd1c5;
  box-shadow: 0 0 0 4px #ffd54f, 0 0 0 8px #4fd1c5;
  z-index: 10000;
  color: #f0f0f0;
}

.settings-popup.visible {
  display: block;
}

.settings-popup-content {
  position: relative;
}

.settings-popup-content .close {
  position: absolute;
  right: -5px;
  cursor: pointer;
  font-size: 20px;
  margin-top: -25px;
}

.settings-popup ul {
  list-style-type: none;
  padding: 0;
}

.settings-popup ul li {
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icons-container {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.settings-popup ul li a {
  text-decoration: none;
  color: #f0f0f0;
  font-size: 18px;
}

.settings-popup ul li a:hover {
  color: #4fd1c5;
}

#music-toggle,
.img1 {
  background-color: #396cb38f;
  color: #396cb38f;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#music-toggle img,
.img1,
.img2 {
  margin: 10px 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

#music-toggle:hover img {
  transform: scale(1.1);
}

.img1:hover {
  transform: scale(1.1);
}

#volume-slider {
  width: 200px;
  margin-top: 10px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: #396cb38f;
  height: 8px;
  border-radius: 5px;
}

#volume-slider:hover {
  transform: scale(1.1);
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #4fd1c5;
  border-radius: 50%;
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #4fd1c5;
  border-radius: 50%;
  cursor: pointer;
}

.img1 {
  width: 30px;
  height: 30px;
}

/* Name Popup Styles (Added for the name input popup) */
.popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent overlay */
  z-index: 1000; /* Ensure it appears above other content */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.9); /* Light background */
  padding: 20px;
  border-radius: 10px;
  font-size: 1.8rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Subtle shadow */
  font-family: "tahoma", cursive;
  color: #333;
  max-width: 400px; /* Limit width for better look */
  width: 90%;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ff5722;
}

.popup-content input {
  padding: 10px;
  font-size: 1rem;
  margin-bottom: 20px;
  width: 80%;
  border: 2px solid #ff5722;
  border-radius: 5px;
  font-family: "tahoma", cursive;
}

.popup-content button {
  font-family: "tahoma", cursive;
  font-size: 1.6rem;
  padding: 10px 20px;
  background-color: #ff5722;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.popup-content button:hover {
  background-color: #e64a19;
}
