 li {
  width: fit-content;
  height: 30px;
  text-align: center;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem
}

li:hover:before {
  content: "";
  position: absolute;
  border-radius: 5px;
  z-index: -1
}

 a {
  color: var(--color-white);
  font-weight: 100
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}


button:active {
  transform: scale(0.98);
  box-shadow: 0 0 5px rgba(0, 198, 255, 0.9);
}

.game {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: fadein 1s ease-in-out;
}

.game.active {
  display: block;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto;
}

input[type='text'] {
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 200px;
  text-align: center;
}

#tense-track {
  margin-top: 2rem;
  height: 100px;
  position: relative;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px #00c6ff55 inset;
  border: 2px solid #00c6ff;
}

#car {
  width: 80px;
  position: absolute;
  top: 30px;
  left: 0;
  transition: left 0.5s ease-in-out;
  z-index: 5;
}

.flag {
  width: 40px;
  height: auto;
}

.floating-option {
  animation: float 4s ease-in-out infinite;
  position: relative;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.dice-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
}



/* ===== Dialogue Maze ===== */
#dialogue-container {
  max-width: 450px;
  width: 90vw;
  margin: 30px auto;
  padding: 30px 35px;
  background: rgba(10, 30, 50, 0.85);
  border-radius: 20px;
  box-shadow:
    0 0 20px 5px #3aaaffcc,
    inset 0 0 30px 10px #3aaaff99;
  color: #e0f7ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  user-select: none;
}

#dialogue-question {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  text-shadow: 0 0 8px #3aaaffbb;
}

#dialogue-options button {
  background: linear-gradient(145deg, #0099ff, #0066cc);
  color: #e0f7ff;
  font-size: 1.15rem;
  font-weight: 600;
  border: none;
  margin: 10px 8px;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow:
    0 0 12px #00b0ffcc,
    inset 0 -3px 10px #005ea3;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

#dialogue-options button:hover {
  background: linear-gradient(145deg, #33bbff, #3399cc);
  box-shadow:
    0 0 20px #00d0ff,
    inset 0 -3px 12px #0088cc;
  transform: scale(1.05);
}

#dialogue-options button:active {
  transform: scale(0.95);
}

#dialogue-result {
  margin-top: 18px;
  font-size: 1.3rem;
  font-weight: 600;
  min-height: 30px;
  color: #00dfff;
  text-shadow: 0 0 10px #00dfffcc;
}

/* Responsive */
@media (max-width: 500px) {
  #dialogue-container {
    padding: 20px 25px;
  }
  #dialogue-question {
    font-size: 1.8rem;
  }
  #dialogue-options button {
    font-size: 1rem;
    padding: 12px 18px;
    margin: 8px 6px;
  }
}


/* ===== Pronunciation Game ===== */
#pronunciation-container {
  max-width: 420px;
  width: 90vw;
  margin: 40px auto;
  background: rgba(8, 12, 35, 0.95);
  border-radius: 20px;
  box-shadow:
    0 0 30px 6px #0088ffcc,
    inset 0 0 25px 12px #004499bb;
  color: #99ddff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  user-select: none;
  padding: 35px 40px;
}

#say-word {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 18px;
  color: #00aaff;
  text-shadow: 0 0 12px #00ccffaa;
}

#speech-result {
  font-size: 1.3rem;
  margin-top: 10px;
  min-height: 28px;
  color: #44bbff;
  font-weight: 600;
  text-shadow: 0 0 6px #3399ffcc;
}

#pronunciation-final {
  font-size: 1.4rem;
  margin-top: 20px;
  font-weight: 700;
  color: #00ffff;
  text-shadow: 0 0 15px #00ffffcc;
  min-height: 32px;
}

#start-speech-btn {
  margin-top: 28px;
  background: #0055ff;
  color: #bbddff;
  padding: 14px 32px;
  border: none;
  font-size: 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  box-shadow:
    0 0 20px #0077ffcc,
    inset 0 0 20px #0033aa;
  transition: all 0.3s ease;
  user-select: none;
}

#start-speech-btn:hover {
  background: #0088ff;
  box-shadow:
    0 0 28px #00aaffdd,
    inset 0 0 25px #0055cc;
  transform: scale(1.1);
}

#start-speech-btn:active {
  transform: scale(0.9);
}

/* Responsive */
@media (max-width: 460px) {
  #pronunciation-container {
    padding: 25px 30px;
  }
  #say-word {
    font-size: 2.3rem;
  }
  #start-speech-btn {
    font-size: 1rem;
    padding: 12px 28px;
  }
}




/* ===== Word Scramble ===== */
#scramble-container {
  max-width: 420px;
  width: 90vw;
  margin: 35px auto;
  background: rgba(3, 37, 65, 0.85);
  border-radius: 18px;
  box-shadow:
    0 0 25px 5px #0088ccdd,
    inset 0 0 30px 15px #004466cc;
  color: #a1d9ff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  padding: 30px 38px;
  user-select: none;
  position: relative;
}

#scramble-word {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: 10px;
  margin-bottom: 20px;
  color: #0099ff;
  text-shadow: 0 0 10px #00ccffbb;
  user-select: text;
}

#scramble-input {
  width: 90%;
  font-size: 1.3rem;
  padding: 13px 18px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #cde7ff;
  box-shadow:
    0 0 15px #00aaffcc inset;
  outline: none;
  transition: box-shadow 0.3s ease;
}

#scramble-input:focus {
  box-shadow:
    0 0 20px #00ccffdd inset;
}

#scramble-check-btn {
  margin-top: 20px;
  background: #00aaff;
  color: #003344;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 14px 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 22px 0 #00ccffcc;
  transition: background 0.3s ease, transform 0.3s ease;
}

#scramble-check-btn:hover,
#scramble-check-btn:active {
  background: #00ccff;
  box-shadow:
    0 0 30px 6px #00e0ff;
  transform: scale(1.07);
}

#scramble-feedback {
  margin-top: 18px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #00e0ff;
  min-height: 35px;
  text-shadow: 0 0 10px #00aaffdd;
  user-select: none;
}

/* Zarlar animatsiyasi uchun canvas */
#dice-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Responsive */
@media (max-width: 480px) {
  #scramble-container {
    padding: 25px 28px;
  }
  #scramble-word {
    font-size: 2.3rem;
    letter-spacing: 7px;
  }
  #scramble-input {
    font-size: 1.1rem;
    padding: 12px 15px;
  }
  #scramble-check-btn {
    font-size: 1rem;
    padding: 12px 25px;
  }
  #scramble-feedback {
    font-size: 1.1rem;
  }
}






/* ===== Tense Racer ===== */
#tense-container {
  max-width: 480px;
  width: 90vw;
  margin: 40px auto;
  background: rgba(50, 5, 5, 0.85);
  border-radius: 25px;
  box-shadow:
    0 0 30px 5px #ff5555cc,
    inset 0 0 35px 15px #bb2222cc;
  padding: 35px 40px;
  color: #ffbbbb;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  text-align: center;
  position: relative;
}

#tense-question {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 22px;
  text-shadow: 0 0 12px #ff4444cc;
}

#tense-options button {
  background: linear-gradient(135deg, #ff5555cc, #bb2222cc);
  color: #ffdddd;
  font-weight: 700;
  font-size: 1.15rem;
  border: none;
  margin: 10px 8px;
  padding: 14px 25px;
  border-radius: 15px;
  cursor: pointer;
  box-shadow:
    0 0 20px #ff4444cc,
    inset 0 0 15px #bb2222cc;
  transition: all 0.3s ease;
  position: relative;
}

#tense-options button:hover {
  background: linear-gradient(135deg, #ff7777cc, #dd4444cc);
  box-shadow:
    0 0 30px #ff6666cc,
    inset 0 0 20px #cc2222cc;
  transform: scale(1.06);
}

#tense-options button:active {
  transform: scale(0.9);
}

#tense-feedback {
  margin-top: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  min-height: 30px;
  color: #ffaaaa;
  text-shadow: 0 0 12px #ff6666cc;
}

#tense-final {
  font-size: 1.8rem;
  font-weight: 900;
  margin-top: 28px;
  color: #ff4444;
  text-shadow: 0 0 18px #ff2222cc;
}

/* Track & Car */
#tense-track {
  position: relative;
  width: 100%;
  height: 60px;
  background: linear-gradient(90deg, #440000, #ff2222, #660000);
  border-radius: 30px;
  margin-top: 30px;
  overflow: hidden;
  box-shadow: 0 0 18px 3px #ff4444cc inset;
}

#car {
  position: absolute;
  top: 50%;
  left: 0;
  width: 60px;
  height: 40px;
  transform: translateY(-50%);
  background-image: url('cobalt_car.png');
  background-size: contain;
  background-repeat: no-repeat;
  transition: left 0.5s ease-in-out;
}

/* Responsive */
@media (max-width: 480px) {
  #tense-container {
    padding: 25px 28px;
  }
  #tense-question {
    font-size: 1.7rem;
  }
  #tense-options button {
    font-size: 1rem;
    padding: 12px 18px;
    margin: 8px 6px;
  }
  #tense-track {
    height: 45px;
  }
  #car {
    width: 45px;
    height: 30px;
  }
  #tense-final {
    font-size: 1.4rem;
  }
}




button {
  /* Asosiy style */
  position: relative;
  transition: transform 0.3s ease;
  /* Oynash harakati uchun transform origin markazini saqlaymiz */
  transform-origin: center center;
}

/* Hoverda tepadan-pastga biroz siljish */
button:hover {
  animation: vertical-wobble 0.6s ease-in-out infinite;
}

/* Active bosilganda ham shunga yaqin effekt */
button:active {
  animation: none;
  transform: translateY(2px);
}

/* Animatsiya ta'rifi */
@keyframes vertical-wobble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}








/* File: style.css - Main Style */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  transform-origin: center center;
}

button:hover {
  animation: vertical-wobble 0.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
}

button:active {
  animation: none;
  transform: translateY(2px);
  box-shadow: 0 0 5px rgba(0, 198, 255, 0.9);
}

@keyframes vertical-wobble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.game {
  display: none;
  text-align: center;
  padding: 2rem;
  animation: fadein 1s ease-in-out;
}

.game.active {
  display: block;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem auto;
}

input[type='text'] {
  padding: 0.5rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 200px;
  text-align: center;
  max-width: 90vw;
}

.flag {
  width: 40px;
  height: auto;
}

.floating-option {
  animation: float 4s ease-in-out infinite;
  position: relative;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.dice-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
}

/* RESPONSIVE GLOBAL FIX */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }
  .center {
    flex-direction: column;
  }
  input[type='text'],
  button {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
  }
  #dialogue-container,
  #pronunciation-container,
  #scramble-container,
  #tense-container {
    padding: 20px;
    width: 95vw;
  }
  #tense-question,
  #dialogue-question,
  #say-word,
  #scramble-word {
    font-size: 1.6rem !important;
  }
  #tense-options button,
  #dialogue-options button,
  #start-speech-btn,
  #scramble-check-btn {
    font-size: 1rem;
    padding: 10px 18px;
    width: 90%;
  }
  #tense-track {
    height: 45px;
  }
  #car {
    width: 50px;
    height: 30px;
  }
}




@media (max-width: 768px) {
  .center {
    flex-direction: column;
    align-items: center;
  }

  button,
  input[type="text"] {
    width: 90% !important;
    max-width: 320px;
    font-size: 1.1rem;
    padding: 12px 18px;
    margin: 10px auto;
    border-radius: 14px;
  }

  h1, h2, h3, #dialogue-question, #say-word, #scramble-word, #tense-question {
    font-size: 2rem !important;
    text-align: center;
  }

  .game,
  #dialogue-container,
  #pronunciation-container,
  #scramble-container,
  #tense-container {
    padding: 25px;
    width: 95vw;
    font-size: 1.1rem;
  }

  #dialogue-options button,
  #tense-options button,
  #scramble-check-btn,
  #start-speech-btn {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
    margin: 8px 0;
  }

  #tense-track {
    height: 45px;
  }

  #car {
    width: 50px;
    height: 30px;
  }
}











@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-slide {
  animation: fadeSlide 0.8s ease-out forwards;
}
@media (max-width: 480px) {
  .center {
    padding: 0 1rem;
  }
  .center button {
    width: 100%;
    font-size: 1rem;
  }
}

















/* GLOBAL STYLES */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 1rem auto;
  padding: 0 1rem;
}

button,
input[type="text"] {
  padding: 12px 18px;
  font-size: 1.1rem;
  border: none;
  border-radius: 14px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  margin: 8px 0;
}

button {
  background: linear-gradient(to right, #0072ff, #00c6ff);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  transform-origin: center;
  box-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
}

button:hover {
  animation: vertical-wobble 0.6s ease-in-out infinite;
}

button:active {
  animation: none;
  transform: translateY(2px);
  box-shadow: 0 0 5px rgba(0, 198, 255, 0.9);
}

@keyframes vertical-wobble {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

input[type="text"] {
  text-align: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: center;
  }

  .center {
    flex-direction: column;
  }

  button,
  input[type="text"] {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .center {
    padding: 0 0.5rem;
  }

  button {
    font-size: 1rem;
    padding: 10px 16px;
  }

  input[type="text"] {
    font-size: 1rem;
    padding: 10px 14px;
  }
}




















@media (max-width: 770px) {
  html, body {
    overflow-x: hidden;
  }

  .nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem;
  }

  .center {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  input[type="text"],
  button {
    width: 90%;
    max-width: 300px;
    font-size: 1rem;
    padding: 12px;
    margin: 8px auto;
  }

  #dialogue-container,
  #pronunciation-container,
  #scramble-container,
  #tense-container {
    width: 95vw;
    padding: 20px;
    font-size: 1rem;
  }

  #dialogue-question,
  #say-word,
  #scramble-word,
  #tense-question {
    font-size: 1.6rem;
  }

  #car {
    width: 50px;
    height: 30px;
  }

  #tense-track {
    height: 45px;
  }

  .game {
    padding: 1rem;
  }

  /* Scroll chiqarishi mumkin bo‘lgan maxsus elementlar */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
}



@media (max-width: 320px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  .container, .content, .wrapper {
    width: 100% !important;
    padding: 0 10px;
    margin: 0 auto;
    overflow-x: hidden;
  }

  section, header, footer, nav, main {
    width: 100% !important;
    overflow-x: hidden !important;
  }

  [class*="col-"], [class*="grid-"], [class*="row"] {
    flex-wrap: wrap;
    width: 100% !important;
    margin: 0 !important;
  }

  *[style*="width"] {
    width: 100% !important;
  }

  div {
    overflow-x: hidden !important;
  }

  h1, h2, h3, h4, h5, h6, p, a, li, span {
    word-wrap: break-word;
    font-size: 90%;
  }
}
