body {
 font-family: 'Segoe UI Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 900;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f0f0f0;
  transition: background-color 0.5s ease-in-out;
  overflow: hidden;
  color: #333;
}

body.dark-mode {
  background-color: #1a1a2e;
  color: #f4f4f4;
}

.word-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
  padding: 30px;
  text-align: center;
  cursor: grab;
}

.dark-mode .word-card {
  background-color: #2c2c54;
}

.category, .subcategory {
  color: #777;
  font-size: 0.9em;
  text-transform: uppercase;
}

.image-container-main {
  margin: 15px auto;
  width: 80%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.word-image {
  width: 100%;
  display: block;
}

.uz-word {
  font-size: 3em;
  color: #e74c3c;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flag-image {
  width: 30px;
  margin-right: 8px;
}

.play-btn {
  font-size: 1.3em;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 10px;
}

.note {
  font-style: italic;
  color: #3498db;
}

.extra-info {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
}

.extra-info.visible {
  max-height: 600px;
  opacity: 1;
}

.lang-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}

.hidden {
  display: none !important;
}

.settings-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 15px;
  background: #3498db;
  border: none;
  border-radius: 8px;
  color:white;
  cursor: pointer;
}

.settings-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.close-btn {
  background:#e74c3c;
  border:none;
  padding:12px 25px;
  color:white;
  cursor:pointer;
}

/* Gradient animatsiya */
body {
    background-size: 300% 300%;
    transition: background 1s ease-in-out;
}

/* Silliq animatsiya */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Har safar fon almashganda ishlatiladi */
.gradient-animate {
    animation: gradientMove 3s ease infinite;
}


.transcription {
    color: #e67e22; /* xohlagan rangni qo‘yish mumkin */
    font-style: italic;
    margin-left: 4px;
}

.filter-group {
  margin: 5px 0 15px 0;
}

.filter-item {
  margin: 5px 0;
}

details summary {
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 5px;
}

details[open] summary::after {
  content: "▲";
  float: right;
}

details summary::after {
  content: "▼";
  float: right;
}


.fade-out { opacity: 0; transition: opacity 0.3s; }
.fade-in { opacity: 1; transition: opacity 0.3s; }

.slide-out { transform: translateY(20px); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.slide-in { transform: translateY(0); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.scale-out { transform: scale(0); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.scale-in { transform: scale(1); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.rotate-out { transform: rotateX(90deg); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.rotate-in { transform: rotateX(0deg); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.flip-out { transform: rotateY(90deg); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.flip-in { transform: rotateY(0deg); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.bounce-out { transform: translateY(-20px); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.bounce-in { transform: translateY(0); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.zoom-out { transform: scale(0.5); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.zoom-in { transform: scale(1); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.skew-out { transform: skewX(20deg); opacity: 0; transition: transform 0.3s, opacity 0.3s; }
.skew-in { transform: skewX(0deg); opacity: 1; transition: transform 0.3s, opacity 0.3s; }

.opacity-out { opacity: 0; transition: opacity 0.3s; }
.opacity-in { opacity: 1; transition: opacity 0.3s; }


.definition {
  font-weight: bold;
  color: #e67e22;
  margin-top: 5px;
}



.transcription {
  color: #e67e22; /* xohlagan rangni o'zgartirish mumkin */
  font-style: italic;
  margin-left: 4px;
}


.transcription-enuk { color: #3498db; } /* UK inglizcha */
.transcription-enus { color: #2ecc71; } /* US inglizcha */
.transcription-ru    { color: #e74c3c; }
.transcription-ar    { color: #9b59b6; }
.transcription-tr    { color: #f1c40f; }
