:root {
  --main-color: #6a0dad;
  --main-gradient: linear-gradient(135deg, #6a0dad, #a166cc);
  --bg-color: #f5f3f9;
  --card-bg: #ffffff;
  --text-color: #333;
  --border-radius: 16px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Lalezar', 'Cairo', 'El Messiri', sans-serif;
  direction: rtl;
  text-align: center;
  background: url('https://i.postimg.cc/DzsjJhRZ/632.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  margin: 0;
  padding: 40px 20px;
}

#game-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

h2 {
  color: white;
  font-family: 'Amiri', serif;
  font-size: 16px;
}

textarea {
  width: min(90vw, 800px);
  height: min(60vh, 400px);
  border: 3px solid #9f60b8;
  border-radius: var(--border-radius);
  padding: 15px;
  font-size: 18px;
  resize: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  display: block;
  color: white;
}

textarea::placeholder {
  color: white;
  font-size: 18px;
}

button {
  background: var(--main-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 0 #4b0b8a;
  position: relative;
  top: 0;
}

button:hover {
  background: #5a0ca8;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(106, 13, 173, 0.4);
}

button:active,
button:focus {
  background: #5a0ca8;
  outline: none;
  box-shadow: 0 4px 8px rgba(106, 13, 173, 0.3);
  transform: translateY(0);
}

#error-msg {
  color: red;
  margin-top: 10px;
}

#remaining-count {
  margin-top: 20px;
  font-family: 'Amiri', serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

#flags-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: space-between;
  direction: rtl;
}

.flag-card {
  width: 100px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.flag-card:hover {
  transform: scale(1.05);
}

.flag-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #a055e9;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.flag-card div {
  margin-top: 8px;
  font-weight: bold;
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.flag-card.hidden {
  visibility: hidden;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background-color: rgba(160, 85, 233, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid #a055e9;
  max-width: 300px;
  width: 90%;
  animation: fadeIn 0.3s ease-in-out;
}

#elimination-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#elimination-box {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#popup-flag {
  width: 280px;
  height: auto;
  border-radius: 0;
  border: none;
}

#popup-name-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textNameStyle,
.textNameStyle2,
.textNameStyle3 {
  position: absolute;
  font-family: 'Lalezar', cursive;
  font-size: clamp(22px, 4vw, 42px);
  padding-bottom: 60px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}

.textNameStyle {
  color: black;
  -webkit-text-stroke: 14px #ffe85d;
  pointer-events: none;
  z-index: 1;
}

.textNameStyle2 {
  color: black;
  -webkit-text-stroke: 8px black;
  pointer-events: none;
  z-index: 2;
}

.textNameStyle3 {
  color: white;
  -webkit-text-stroke: 0 transparent;
  transition: transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.textNameStyle3:hover {
  transform: scale(1.07);
}

#winner-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.15);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#winner-box {
  position: relative;
  background: url('https://cdn.pixabay.com/animation/2024/12/15/18/36/18-36-43-625_512.gif') center center / cover no-repeat;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  border: 3px solid gold;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 400px;
  widthBitmap: 90%;
  height: 60%;
  margin-bottom: 24px;
}

#winner-title {
  font-family: 'Lalezar', cursive;
  font-size: 36px;
  color: gold;
  text-shadow: 2px 2px 8px black;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); color: gold; }
  50% { transform: scale(1.1); color: #fff176; }
}



#music-toggle {
  position: fixed;
  top: 24px;
  left: 60px;
  z-index: 9999;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  user-select: none;
}

#music-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
}

#music-toggle:active {
  transform: scale(1.2);
}

#volume-container {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#volume-slider {
  width: 100px;
  accent-color: #a055e9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  height: 6px;
  transition: background-color 0.3s ease;
}

#volume-slider:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#volume-label {
  font-size: 16px;
  color: white;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.name-zoom {
  animation: zoomIn 0.6s ease-out;
}

/* أنماط عجلة الحظ */
.background-blur-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(16px);
  transform: scale(1.2);
  pointer-events: none;
}

.sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.glow-box {
  border: 2px solid white;
  box-shadow: 0 0 15px #ffffffaa;
  border-radius: 10px;
  animation: fadeInUp 1s ease;
}

.wheel-container {
  width: 740px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wheel {
  background-color: transparent;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
  animation: fadeIn 1s ease;
}

.arrow {
  margin-left: -90px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 40px solid #ffcc00;
  z-index: 10;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.custom-button {
  flex: 1;
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  box-shadow: 0 0 10px #a86cc1;
  font-weight: bold;
  animation: fadeInUp 0.8s ease;
}

.timer-control {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
}

.timer-control.active {
  display: flex;
}

#timerRange {
  width: 100%;
}

#timerValue {
  font-size: 14px;
  margin-top: 5px;
  color: #ccc;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #4a0072;
  padding: 0;
  border-radius: 10px;
  width: 600px;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6a1b9a;
  padding: 16px 16px;
  color: white;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
}

.modal-close {
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ffb3da;
}

.winner-name {
  font-size: 50px;
  padding: 20px 20px;
  text-align: center;
  font-weight: bold;
  color: gold;
  background-color: #4a0072;
}

.modal-buttons {
  display: flex;
  padding: 15px 20px;
  gap: 16px;
  background-color: #4a0072;
}

.modal-buttons button {
  padding: 12px 24px;
  font-size: 18px;
  min-width: 120px;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.modal-buttons button:hover {
  background-color: #ab47bc;
  transform: scale(1.05);
}

#cancelDelete {
  background-color: transparent;
  color: white;
  border: 2px solid transparent;
}

#cancelDelete:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* تنسيق التابات */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: #5a0ca8;
  transform: scale(1.05);
}

.tab-button.active {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: black;
}

.tab-content {
  display: block;
}

.tab-content[style*="display: none"] {
  display: none !important;
}

@media (max-width: 768px) {
  #game-container {
    padding: 10px;
  }
  .sidebar {
    width: 100%;
  }
  .wheel-container {
    width: 100%;
    max-width: 500px;
  }
  #wheel {
    width: 100%;
    height: auto;
  }
}

:root {
  --main-color: #6a0dad;
  --main-gradient: linear-gradient(135deg, #6a0dad, #a166cc);
  --bg-color: #f5f3f9;
  --card-bg: #ffffff;
  --text-color: #333;
  --border-radius: 16px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Lalezar', 'Cairo', 'El Messiri', sans-serif;
  direction: rtl;
  text-align: center;
  background: url('https://i.postimg.cc/DzsjJhRZ/632.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  margin: 0;
  padding: 40px 20px;
}

#game-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

h2 {
  color: white;
  font-family: 'Amiri', serif;
  font-size: 16px;
}

textarea {
  width: min(90vw, 800px);
  height: min(60vh, 400px);
  border: 3px solid #9f60b8;
  border-radius: var(--border-radius);
  padding: 15px;
  font-size: 18px;
  resize: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  display: block;
  color: white;
}

textarea::placeholder {
  color: white;
  font-size: 18px;
}

button {
  background: var(--main-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 0 #4b0b8a;
  position: relative;
  top: 0;
}

button:hover {
  background: #5a0ca8;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(106, 13, 173, 0.4);
}

button:active,
button:focus {
  background: #5a0ca8;
  outline: none;
  box-shadow: 0 4px 8px rgba(106, 13, 173, 0.3);
  transform: translateY(0);
}

#error-msg {
  color: red;
  margin-top: 10px;
}

#remaining-count {
  margin-top: 20px;
  font-family: 'Amiri', serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

#flags-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: space-between;
  direction: rtl;
}

.flag-card {
  width: 100px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.flag-card:hover {
  transform: scale(1.05);
}

.flag-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #a055e9;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.flag-card div {
  margin-top: 8px;
  font-weight: bold;
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.flag-card.hidden {
  visibility: hidden;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background-color: rgba(160, 85, 233, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid #a055e9;
  max-width: 300px;
  width: 90%;
  animation: fadeIn 0.3s ease-in-out;
}

#elimination-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#elimination-box {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#popup-flag {
  width: 280px;
  height: auto;
  border-radius: 0;
  border: none;
}

#popup-name-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textNameStyle,
.textNameStyle2,
.textNameStyle3 {
  position: absolute;
  font-family: 'Lalezar', cursive;
  font-size: clamp(22px, 4vw, 42px);
  padding-bottom: 60px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}

.textNameStyle {
  color: black;
  -webkit-text-stroke: 14px #ffe85d;
  pointer-events: none;
  z-index: 1;
}

.textNameStyle2 {
  color: black;
  -webkit-text-stroke: 8px black;
  pointer-events: none;
  z-index: 2;
}

.textNameStyle3 {
  color: white;
  -webkit-text-stroke: 0 transparent;
  transition: transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.textNameStyle3:hover {
  transform: scale(1.07);
}

#winner-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.15);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#winner-box {
  position: relative;
  background: url('https://cdn.pixabay.com/animation/2024/12/15/18/36/18-36-43-625_512.gif') center center / cover no-repeat;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  border: 3px solid gold;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 400px;
  width: 90%;
  height: 60%;
  margin-bottom: 24px;
}

#winner-title {
  font-family: 'Lalezar', cursive;
  font-size: 36px;
  color: gold;
  text-shadow: 2px 2px 8px black;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); color: gold; }
  50% { transform: scale(1.1); color: #fff176; }
}

#confetti-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000000; /* قيمة أعلى بكثير لضمان الظهور في المقدمة */
}

#music-toggle {
  position: fixed;
  top: 24px;
  left: 60px;
  z-index: 9999;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  user-select: none;
}

#music-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
}

#music-toggle:active {
  transform: scale(1.2);
}

#volume-container {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#volume-slider {
  width: 100px;
  accent-color: #a055e9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  height: 6px;
  transition: background-color 0.3s ease;
}

#volume-slider:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#volume-label {
  font-size: 16px;
  color: white;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.name-zoom {
  animation: zoomIn 0.6s ease-out;
}

/* أنماط عجلة الحظ */
.background-blur-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(16px);
  transform: scale(1.2);
  pointer-events: none;
}

.sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.glow-box {
  border: 2px solid white;
  box-shadow: 0 0 15px #ffffffaa;
  border-radius: 10px;
  animation: fadeInUp 1s ease;
}

.wheel-container {
  width: 740px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wheel {
  background-color: transparent;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
  animation: fadeIn 1s ease;
}

.arrow {
  margin-left: -90px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 40px solid #ffcc00;
  z-index: 10;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.custom-button {
  flex: 1;
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  box-shadow: 0 0 10px #a86cc1;
  font-weight: bold;
  animation: fadeInUp 0.8s ease;
}

.timer-control {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
}

.timer-control.active {
  display: flex;
}

#timerRange {
  width: 100%;
}

#timerValue {
  font-size: 14px;
  margin-top: 5px;
  color: #ccc;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #4a0072;
  padding: 0;
  border-radius: 10px;
  width: 600px;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6a1b9a;
  padding: 16px 16px;
  color: white;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
}

.modal-close {
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ffb3da;
}

.winner-name {
  font-size: 50px;
  padding: 20px 20px;
  text-align: center;
  font-weight: bold;
  color: gold;
  background-color: #4a0072;
}

.modal-buttons {
  display: flex;
  padding: 15px 20px;
  gap: 16px;
  background-color: #4a0072;
}

.modal-buttons button {
  padding: 12px 24px;
  font-size: 18px;
  min-width: 120px;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.modal-buttons button:hover {
  background-color: #ab47bc;
  transform: scale(1.05);
}

#cancelDelete {
  background-color: transparent;
  color: white;
  border: 2px solid transparent;
}

#cancelDelete:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* تنسيق التابات */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: #5a0ca8;
  transform: scale(1.05);
}

.tab-button.active {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: black;
}

.tab-content {
  display: block;
}

.tab-content[style*="display: none"] {
  display: none !important;
}

@media (max-width: 768px) {
  #game-container {
    padding: 10px;
  }
  .sidebar {
    width: 100%;
  }
  .wheel-container {
    width: 100%;
    max-width: 500px;
  }
  #wheel {
    width: 100%;
    height: auto;
  }
}
/*
#wheel-tab .sidebar {
  display: none;
}*/

.global-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
}

.global-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  background-color: #2e86de;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.global-buttons button:hover {
  background-color: #2169c0;
}

/* إخفاء كل عناصر الـ sidebar ما عدا التوقيت والعشوائي */
#wheel-tab .sidebar .custom-button:not(#timerBtn):not(#shuffleBtn),
#wheel-tab .sidebar textarea,
#wheel-tab .sidebar input[type="file"],
#wheel-tab .sidebar #timerControl {
  display: none;
}

/* إظهار المؤقت إذا كان مستخدم */
#wheel-tab .sidebar #timerControl.active {
  display: block;
}

#wheel-tab .wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%; /* يملأ المساحة المتاحة */
}


#wheel-tab .wheel {
  margin: auto;
  display: block;
  max-width: 100%;
}


.player img {
  width: 40px;
  height: 40px;
}


.player {
  display: flex;
  flex-direction: column;
  align-items: center; /* توسيط أفقي */
  justify-content: center; /* توسيط رأسي لو فيه ارتفاع محدد */
  text-align: center;
}

.player img {
  display: block;
  margin: 0 auto; /* توسيط داخل العنصر */
}



.flag-card {
  width: 120px; /* أكبر من السابق (مثلاً 100px) */
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* توسيط أفقي للمحتوى */
  justify-content: center;
}


.flag-card img {
 
  display: block;
  margin-bottom: 8px;
}

.empty-slot {
  opacity: 0;
  pointer-events: none;
}


.empty-slot {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.empty-flag {
  visibility: hidden;
}


.flag-card.empty {
  background: transparent;
  border: none;
  pointer-events: none;
  box-shadow: none;
}


#popup-flag {
  width: 500px;
  height: auto;
  border-radius: 0;
  border: none;
  object-fit: contain; /* لضمان عرض الصورة المخصصة بشكل صحيح */
}


#new-player-name {
  margin-bottom: 24px;
  width: 80%;
  padding: 12px;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.1); /* شفاف */
  color: white; /* لون النص أبيض */
  border: 1px solid white;
  border-radius: 8px;
  outline: none;
}

#new-player-name::placeholder {
  color: white; /* لون النص الأولي (placeholder) أبيض */
  opacity: 0.7; /* لتقليل الشفافية قليلاً للتمييز */
}


#eliminated-select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.3); /* خلفية شفافة */
  color: white; /* لون النص الأساسي في القائمة أبيض */
  border: 1px solid white;
  border-radius: 8px;
  outline: none;
}

#eliminated-select option {
  color: black; /* لون النص في الخيارات أسود */
  background-color: white; /* خلفية الخيارات بيضاء لضمان التباين */
}




:root {
  --main-color: #6a0dad;
  --main-gradient: linear-gradient(135deg, #6a0dad, #a166cc);
  --bg-color: #f5f3f9;
  --card-bg: #ffffff;
  --text-color: #333;
  --border-radius: 16px;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Lalezar', 'Cairo', 'El Messiri', sans-serif;
  direction: rtl;
  text-align: center;
  margin: 0;
  padding: 40px 20px;
  position: relative; /* لضمان عمل ::before */
  overflow-x: hidden; /* منع التمرير الأفقي */
}

/* إضافة طبقة خلفية مشوشة باستخدام ::before */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://i.postimg.cc/DzsjJhRZ/632.png') no-repeat center center fixed;
  background-size: cover;
  filter: blur(10px); /* تأثير البلور */
  z-index: -1; /* وضع الخلفية خلف كل العناصر */
}

#game-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-height: 100vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: start;
  z-index: 1; /* التأكد من أن الحاوية فوق الخلفية */
}

h2 {
  color: white;
  font-family: 'Amiri', serif;
  font-size: 16px;
}

textarea {
  width: min(90vw, 800px);
  height: min(60vh, 400px);
  border: 3px solid #9f60b8;
  border-radius: var(--border-radius);
  padding: 15px;
  font-size: 18px;
  resize: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  display: block;
  color: white;
}

textarea::placeholder {
  color: white;
  font-size: 18px;
}

button {
  background: var(--main-gradient);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  padding: 12px 30px;
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 4px 0 #4b0b8a;
  position: relative;
  top: 0;
}

button:hover {
  background: #5a0ca8;
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(106, 13, 173, 0.4);
}

button:active,
button:focus {
  background: #5a0ca8;
  outline: none;
  box-shadow: 0 4px 8px rgba(106, 13, 173, 0.3);
  transform: translateY(0);
}

#error-msg {
  color: red;
  margin-top: 10px;
}

#remaining-count {
  margin-top: 20px;
  font-family: 'Amiri', serif;
  font-size: 16px;
  font-weight: bold;
  color: white;
}

#flags-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 20px;
  justify-content: space-between;
  direction: rtl;
}

.flag-card {
  width: 100px;
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: transform 0.3s ease;
}

.flag-card:hover {
  transform: scale(1.05);
}

.flag-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #a055e9;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

.flag-card div {
  margin-top: 8px;
  font-weight: bold;
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.flag-card.hidden {
  visibility: hidden;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup-content {
  background-color: rgba(160, 85, 233, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(4px);
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 4px solid #a055e9;
  max-width: 300px;
  width: 90%;
  animation: fadeIn 0.3s ease-in-out;
}

#elimination-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#elimination-box {
  position: relative;
  background: rgba(255, 255, 255, 0.2);
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

#popup-flag {
  width: 280px;
  height: auto;
  border-radius: 0;
  border: none;
}

#popup-name-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.textNameStyle,
.textNameStyle2,
.textNameStyle3 {
  position: absolute;
  font-family: 'Lalezar', cursive;
  font-size: clamp(22px, 4vw, 42px);
  padding-bottom: 60px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  line-height: normal;
}

.textNameStyle {
  color: black;
  -webkit-text-stroke: 14px #ffe85d;
  pointer-events: none;
  z-index: 1;
}

.textNameStyle2 {
  color: black;
  -webkit-text-stroke: 8px black;
  pointer-events: none;
  z-index: 2;
}

.textNameStyle3 {
  color: white;
  -webkit-text-stroke: 0 transparent;
  transition: transform 0.3s ease;
  pointer-events: auto;
  cursor: pointer;
  z-index: 3;
}

.textNameStyle3:hover {
  transform: scale(1.07);
}

#winner-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.15);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-align: center;
}

#winner-box {
  position: relative;
  background: url('https://cdn.pixabay.com/animation/2024/12/15/18/36/18-36-43-625_512.gif') center center / cover no-repeat;
  padding: 40px 20px;
  border-radius: 24px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
  border: 3px solid gold;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 400px;
  width: 90%;
  height: 60%;
  margin-bottom: 24px;
}

#winner-title {
  font-family: 'Lalezar', cursive;
  font-size: 36px;
  color: gold;
  text-shadow: 2px 2px 8px black;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); color: gold; }
  50% { transform: scale(1.1); color: #fff176; }
}

#confetti-canvas {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1000000;
}

#music-toggle {
  position: fixed;
  top: 24px;
  left: 60px;
  z-index: 9999;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
  user-select: none;
}

#music-toggle:hover {
  background: rgba(255, 255, 255, 0.4);
}

#music-toggle:active {
  transform: scale(1.2);
}

#volume-container {
  position: fixed;
  top: 60px;
  left: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#volume-slider {
  width: 100px;
  accent-color: #a055e9;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border-radius: 10px;
  height: 6px;
  transition: background-color 0.3s ease;
}

#volume-slider:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#volume-label {
  font-size: 16px;
  color: white;
  margin-top: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.name-zoom {
  animation: zoomIn 0.6s ease-out;
}

/* أنماط عجلة الحظ */
.background-blur-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/bg.png");
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(16px);
  transform: scale(1.2);
  pointer-events: none;
}

.sidebar {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  box-sizing: border-box;
}

.glow-box {
  border: 2px solid white;
  box-shadow: 0 0 15px #ffffffaa;
  border-radius: 10px;
  animation: fadeInUp 1s ease;
}

.wheel-container {
  width: 740px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wheel {
  background-color: transparent;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
  animation: fadeIn 1s ease;
}

.arrow {
  margin-left: -90px;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%) rotate(180deg);
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 40px solid #ffcc00;
  z-index: 10;
}

.buttons {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.custom-button {
  flex: 1;
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  box-shadow: 0 0 10px #a86cc1;
  font-weight: bold;
  animation: fadeInUp 0.8s ease;
}

.timer-control {
  display: none;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.5s ease-in-out;
}

.timer-control.active {
  display: flex;
}

#timerRange {
  width: 100%;
}

#timerValue {
  font-size: 14px;
  margin-top: 5px;
  color: #ccc;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  background: #4a0072;
  padding: 0;
  border-radius: 10px;
  width: 600px;
  animation: scaleIn 0.4s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #6a1b9a;
  padding: 16px 16px;
  color: white;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
}

.modal-close {
  cursor: pointer;
  font-size: 20px;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #ffb3da;
}

.winner-name {
  font-size: 50px;
  padding: 20px 20px;
  text-align: center;
  font-weight: bold;
  color: gold;
  background-color: #4a0072;
}

.modal-buttons {
  display: flex;
  padding: 15px 20px;
  gap: 16px;
  background-color: #4a0072;
}

.modal-buttons button {
  padding: 12px 24px;
  font-size: 18px;
  min-width: 120px;
  border-radius: 8px;
  font-weight: bold;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.modal-buttons button:hover {
  background-color: #ab47bc;
  transform: scale(1.05);
}

#cancelDelete {
  background-color: transparent;
  color: white;
  border: 2px solid transparent;
}

#cancelDelete:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* تنسيق التابات */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  background: linear-gradient(135deg, #7a1fa2, #9c27b0);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background: #5a0ca8;
  transform: scale(1.05);
}

.tab-button.active {
  background: linear-gradient(135deg, #ff9800, #ffc107);
  color: black;
}

.tab-content {
  display: block;
}

.tab-content[style*="display: none"] {
  display: none !important;
}

@media (max-width: 768px) {
  #game-container {
    padding: 10px;
  }
  .sidebar {
    width: 100%;
  }
  .wheel-container {
    width: 100%;
    max-width: 500px;
  }
  #wheel {
    width: 100%;
    height: auto;
  }
}

.global-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
}

.global-buttons button {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 8px;
  background-color: #2e86de;
  color: white;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.global-buttons button:hover {
  background-color: #2169c0;
}

/* إخفاء كل عناصر الـ sidebar ما عدا التوقيت والعشوائي */
#wheel-tab .sidebar .custom-button:not(#timerBtn):not(#shuffleBtn),
#wheel-tab .sidebar textarea,
#wheel-tab .sidebar input[type="file"],
#wheel-tab .sidebar #timerControl {
  display: none;
}

/* إظهار المؤقت إذا كان مستخدم */
#wheel-tab .sidebar #timerControl.active {
  display: block;
}

#wheel-tab .wheel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

#wheel-tab .wheel {
  margin: auto;
  display: block;
  max-width: 100%;
}

.player img {
  width: 40px;
  height: 40px;
}

.player {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.player img {
  display: block;
  margin: 0 auto;
}

.flag-card {
  width: 120px;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.flag-card img {
  display: block;
  margin-bottom: 8px;
}

.empty-slot {
  opacity: 0;
  pointer-events: none;
}

.empty-slot {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  opacity: 0;
  pointer-events: none;
}

.empty-flag {
  visibility: hidden;
}

.flag-card.empty {
  background: transparent;
  border: none;
  pointer-events: none;
  box-shadow: none;
}

#popup-flag {
  width: 500px;
  height: auto;
  border-radius: 0;
  border: none;
  object-fit: contain;
}

#new-player-name {
  margin-bottom: 24px;
  width: 80%;
  padding: 12px;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid white;
  border-radius: 8px;
  outline: none;
}

#new-player-name::placeholder {
  color: white;
  opacity: 0.7;
}

#eliminated-select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border: 1px solid white;
  border-radius: 8px;
  outline: none;
}

#eliminated-select option {
  color: black;
  background-color: white;
}

#edit-names-popup textarea {
  width: 100%;
  height: 200px;
  margin-bottom: 20px;
  font-size: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid #9f60b8;
  border-radius: 8px;
}