* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background: hsl(50, 85%, 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 20px;
  gap: 10px;
}

.app {
  background: hsl(150, 50%, 70%);
  border: 3px solid hsl(175, 30%, 25%);
  padding: 30px 30px 10px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-top:20px;
}

.alphabet-box {
  background:hsl(150, 50%, 70%);
  padding: 5px 5px 5px;
  border: 3px solid hsl(175, 30%, 25%);
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin-top: 10px;
}

.title {
  font-size: 18px;
  color: hsl(175, 30%, 25%);
  margin-bottom: 1px;
  font-style:italic;
}

.feedback {
  font-size: 22px;
  font-weight: 600;
  height: 30px;
  margin: 10px 0 10px;
}

.correct { 
  color: hsl(120, 50%, 40%);
  font-size: 16px;
  transform: scaleY(1.2) skewX(-15deg)
}
.incorrect { color: #d50000; }

.input-row {
  width: 100%;
  min-height: 55px;
  margin:5px;
  padding:10px;
  background: #ffffff;
  border: 3px solid hsl(175, 30%, 25%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  font-family:Verdana, Geneva, Tahoma, sans-serif;
  text-align: left;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

#userText {
  letter-spacing: 5px;
  padding-left: 5px;
  color: #222;
}

.letter-input {
  display: none;
}

.buttons{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  width: 100%;
  margin: 10px auto;
  text-align: center;
}

.btn {
  padding: 10px 10px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  margin: 5px;
  cursor: pointer;
  transition: 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.listen { 
  background: hsl(327, 81%, 60%); 
  color: rgb(247, 240, 244); 
}
.listen:hover{
  background: hsl(327, 76%, 56%); 
  color: rgb(247, 240, 244); 
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(327, 76%, 56%, 0.432);
}

.check { 
  background: hsl(276, 84%, 59%); 
  color: white; 
}
.check:hover{
  background: hsl(276, 83%, 55%); 
  color: white; 
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(276, 83%, 55%, 0.486);
}
.next { 
  background: hsl(253, 89%, 58%); 
  color: white; 
}
.next:hover{
  background: hsl(253, 88%, 53%); 
  color: rgb(247, 240, 244); 
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(253, 88%, 53%, 0.342);
}
.hint { 
  background: hsl(34, 59%, 56%); 
  color: rgb(247, 240, 244); 
}
.hint:hover{
  background: hsl(34, 60%, 50%); 
  color: rgb(247, 240, 244); 
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(34, 60%, 50%, 0.363); 
}
.save { 
  background: hsl(135, 51%, 60%); 
  color: white; 
}
.save:hover{
  background: hsl(135, 54%, 50%); 
  color: white; 
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(135, 54%, 50%, 0.418); 
}

/* ✅ BACKSPACE BUTTON STYLE */
.back {
  background: hsl(0, 64%, 55%);
  color: white;
}
.back:hover {
  background: hsl(0, 70%, 48%);
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px hsla(0, 70%, 48%, 0.35);
}

#listSelector {
  padding: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid hsl(175, 30%, 25%);
  color:hsl(175, 30%, 25%);
  width: 100%;
  max-width: 480px;
  background: white;
}

#caseSelect {
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 6px;
  border: 2px solid hsl(175, 30%, 25%);
  color:hsl(175, 30%, 25%);
  font-weight:bold;
  max-width: 90px;
  background: white;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 5px;
}

.alpha-card {
  padding: 6px 0;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  border: 2px solid hsl(175, 30%, 25%);
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  background: hsl(175, 30%, 35%);
  color: hsl(47, 56%, 83%);
}

.alpha-card:hover{
  cursor:pointer;
  transform: translateY(-2px);
  box-shadow: 5px 5px 5px #155a8b6e;
}

.alpha-card:active{
  transform: scale(0.92);
  background: #bbdefb;
  transition: 0.1s;
}