.container {
    position: relative; 
    padding-top: 60px; 
    max-height: 95vh; 
    overflow-y: auto; 
}

h1 {
    color: var(--primary-blue); /* Ensure H1 color consistency with homepage */
    margin-bottom: 25px; 
    font-weight: 700; /* Ensure font weight consistency */
}

.alphabet-display {
    margin-top: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; 
}

#current-letter-text {
    font-size: clamp(2.5em, 7vw, 4.5em); 
    font-weight: 700; 
    color: var(--text-dark);
    margin-bottom: 0; 
}

#letter-image-container {
    width: clamp(300px, 40vw, 250px); 
    height: clamp(300px, 40vw, 250px); 
    background-color: var(--bg-light); 
    border-radius: 15px; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2em, 5vw, 4em); 
    color: var(--text-dark);
    border: 2px dashed var(--accent-pink); 
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 10px var(--shadow-light); 
    flex-shrink: 0; 
}

#letter-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#drawing-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    cursor: crosshair;
    z-index: 2;
    border-radius: 15px; 
}

.navigation-buttons {
    margin-top: 30px; 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; 
    flex-shrink: 0; 
}

.navigation-buttons button {
    background-color: var(--primary-blue); 
    color: var(--text-light);
    padding: 15px 30px; 
    border: none;
    border-radius: 10px; 
    font-size: 1.2em; 
    font-weight: 600; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    flex-grow: 1;
    min-width: 120px; 
    box-shadow: 0 3px 6px var(--shadow-light);
}

.navigation-buttons button:hover {
    background-color: #5c8ae6; 
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--shadow-medium);
}

.navigation-buttons button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px var(--shadow-light);
}

.back-button {
    position: absolute;
    top: 25px;
    left: 25px;
    background-color: var(--primary-blue); /* Consistent back button color */
    color: var(--text-light);
    padding: 10px 20px; 
    border: none;
    border-radius: 10px; 
    font-size: 1em; 
    font-weight: 600; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 6px var(--shadow-light);
}

.back-button:hover {
    background-color: #5c8ae6; 
    transform: translateY(-3px);
    box-shadow: 0 5px 10px var(--shadow-medium);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px var(--shadow-light);
}

/* Mobile-specific adjustments for very small screens */
@media (max-width: 480px) {
    .navigation-buttons button {
        font-size: 0.9em;
        padding: 10px 15px;
    }
    .back-button {
        padding: 6px 12px;
        font-size: 0.8em;
        top: 15px; 
        left: 15px; 
        border-radius: 8px;
    }
    #current-letter-text {
        font-size: clamp(2em, 6vw, 4em); 
    }
    .container {
        padding: 40px 20px 20px 20px; 
    }
}
/* Learning Tips Section */
.learning-tips {
  background-color: #fef9e7; /* soft pastel background */
  border: 2px solid #ffd700; /* gold border for fun */
  border-radius: 15px;
  padding: 20px 25px;
  margin: 25px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-family: 'Comic Sans MS', 'Comic Neue', cursive;
}

.learning-tips h2 {
  color: #ff6f61; /* friendly coral color for heading */
  font-size: 1.6em;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px #fff5cc;
}

.learning-tips ul {
  list-style-type: none; /* remove default bullets */
  padding-left: 0;
}

.learning-tips li {
  background-color: #fff8dc; /* soft cream for each tip */
  margin: 8px 0;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ffe4b5;
  font-size: 1.1em;
  color: #333;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.learning-tips li:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: default;
}

/* Optional: Add icon or emoji for each tip */
.learning-tips li::before {
  content: "⭐";
  margin-right: 10px;
  color: #ffcc00;
  font-size: 1.2em;
}
