/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: 'Poppins', sans-serif; */
}

/* ================= MAIN LAYOUT ================= */

.typing-wrapper{
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  margin-top: 70px;
}

/* Level and Card section start here */

.level-container {
  display: flex;
  gap: 30px;
  gap: 0px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  width: 22vw;
  width: 45%;
  width: 30vw;
  height: auto;   /* ✅ FIX */
  /* height: 90px;
  height: 149px;
  height: 10vw; */
  min-height: 80px;
  margin: 15px;
  margin: 6px;
  margin: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.35s ease;
  color: white;

  /* smooth shadow */
  /* box-shadow: 0 10px 25px rgba(0,0,0,0.25); */
}

/* Gradient styles like your lesson UI */
.card:nth-child(1) {
  background: linear-gradient(135deg, #da7a05, #ffd200);
  background: linear-gradient(114deg, #ff3705, #baff00);
  color: black;
}

.card:nth-child(2) {
  color: black;
  background: linear-gradient(135deg, #4383e9, #38f9d7);
  background: linear-gradient(114deg, #00c8ff, #05d934);
}

.card:nth-child(3) {
  background: linear-gradient(135deg, #ff416c, #ff952b);
  background: linear-gradient(114deg, #ff416c, #ff952b);
  background: linear-gradient(114deg, #ff1449, #ffce00);
}

/* FLOAT HOVER EFFECT 🔥 */
.card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover {
  transform: translateY(-12px) scale(1.03);
  /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.3); */
}

/* CLICK EFFECT */
.card:active {
  transform: scale(0.96);
}

/* Hover effect */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 15px rgb(255, 0, 89),
    /* 0 0 20px aqua; */
}

/* Click effect */
.card:active {
  transform: scale(0.95);
  transform: scale(1.20);
}

/* Level and Card section ends here */


/* Key Container starts here*/

.key-container{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ROWS */
.key-row{
  display: flex;
  gap: 12px;
}

/* NORMAL KEYS */
.key-box{
  width: 70px;
  height: 70px;
  background: #0f172a;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  border-radius: 12px;
  font-weight: bold;
  transition: 0.2s;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* SPACE / ENTER KEYS */
.key-box.wide{
  /* border: 1px solid red; */
  margin-top: 30px;
  width: 120px;
  height: 40px;
  font-size: 18px;
  border-radius: 10px;
  background: #1e293b;
}

/* ACTIVE */
.key-box.active{
  background: #ff0055;
  box-shadow: 0 0 20px #ff0055;
  transform: scale(1.1);
}

/* CORRECT */
.key-box.correct{
  background: #22c55e;
  color: black;
}

/* WRONG */
.key-box.wrong{
  background: #ef4444;
}

/* ================= STATUS ================= */

.status-container{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* STATS */
.stats{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-box{
  background: #111827;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 16px;
}

/* PROGRESS */
.progress-bar{
  width: 250px;
  height: 12px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, red, yellow, lime);
}

/* TIMER */
.timer{
  text-align: center;
  margin-top: 20px;
  font-size: 22px;
  color: lime;
}
