.tools-parent-container {



    .home-btn {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        border: none;
        border-radius: 20px;
        color: white;
        font-size: 1.2rem;
        font-weight: bold;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-family: 'Comic Sans MS', cursive;
        margin: 20px auto;
        display: block;
        width: fit-content;
    }

    .home-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    @keyframes gradientShift {
        0% {
            background-position: 0% 50%;
        }

        50% {
            background-position: 100% 50%;
        }

        100% {
            background-position: 0% 50%;
        }
    }

    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px;
        display: flex;
        flex-direction: column;
    }

    .header {
        text-align: center;
        margin-bottom: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 25px;
        padding: 15px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 3px solid #FF69B4;
    }

    .title {
        font-size: clamp(1.8rem, 5vw, 3rem);
        color: #FF1493;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        margin-bottom: 10px;
        animation: bounce 2s infinite;
    }

    @keyframes bounce {

        0%,
        20%,
        50%,
        80%,
        100% {
            transform: translateY(0);
        }

        40% {
            transform: translateY(-10px);
        }

        60% {
            transform: translateY(-5px);
        }
    }

    .subtitle {
        font-size: clamp(1rem, 3vw, 1.5rem);
        color: #4169E1;
        margin-bottom: 15px;
    }

    /* Rocket Animation Section */
    .rocket-section {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 50px 0;
        height: 200px;
        position: relative;
        width: 100%;
    }

    .rocket-container {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .play-pause-btn {
        position: absolute;
        top: 11%;
        /* Change from 11% to 50% */
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90px;
        /* Increase from 70px to 90px */
        height: 90px;
        /* Increase from 70px to 90px */
        border-radius: 50%;
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        border: none;
        cursor: pointer;
        font-size: 32px;
        /* Increase from 28px to 32px */
        color: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;

        translate: 0 0 !important;
        transform: translate(0, 0) !important;
        left: auto !important;
        top: auto !important;
    }

    .play-pause-btn:hover {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }

    .tools-parent-container .play-pause-btn::After {
        content: 'Click the button above start playing';
        position: absolute;
        top: calc(100% + 10px);
        color: #1e1e1e;
        width: max-content;
        font-size: var(--fs-12-18);
        background: #fffdee;
        padding: 0.5em 1em;
        border-radius: 6px;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.20);
        text-transform: capitalize;
    }

    .rocket {
        position: absolute;
        font-size: 28px;
        top: 0;
        left: 50%;
        transform-origin: 0 75px;
        animation: revolve 4s linear infinite;
        inset: auto !important;
        z-index: 12;
    }

    .rocket:nth-child(1) {
        animation-delay: 0s;
    }

    .rocket:nth-child(2) {
        animation-delay: -2s;
    }

    @keyframes revolve {
        0% {
            transform: translateX(-50%) rotate(0deg) translateY(-75px) rotate(0deg);
        }

        100% {
            transform: translateX(-50%) rotate(360deg) translateY(-75px) rotate(-360deg);
        }
    }

    /* Mode Selection Modal */
    .mode-selection {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }

    .mode-modal {
        background: white;
        border-radius: 25px;
        padding: 40px;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        border: 4px solid #FF69B4;
        max-width: 400px;
        width: 90%;
    }

    .mode-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        color: #FF1493;
        margin-bottom: 30px;
        font-weight: bold;
    }

    .mode-btn {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        border: none;
        border-radius: 20px;
        color: white;
        font-size: clamp(1.2rem, 3vw, 1.5rem);
        font-weight: bold;
        padding: 15px 30px;
        margin: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-family: 'Comic Sans MS', cursive;
        display: block;
        width: 100%;
        line-height: 1.3;
    }

    .mode-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .uppercase-btn {
        background: linear-gradient(45deg, #32CD32, #98FB98);
    }

    .lowercase-btn {
        background: linear-gradient(45deg, #4169E1, #87CEEB);
    }

    .hidden {
        display: none !important;
    }

    /* Initially hide these sections */
    .progress-bar,
    .alphabet-selector,
    .tracing-area {
        display: none;
    }

    .progress-bar {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        padding: 15px;
        margin-bottom: 20px;
        border: 3px solid #32CD32;
    }

    .progress-text {
        font-size: 1.2rem;
        color: #4169E1;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .progress-track {
        background: #E0E0E0;
        height: 20px;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }

    .progress-fill {
        background: linear-gradient(45deg, #32CD32, #98FB98);
        height: 100%;
        border-radius: 10px;
        transition: width 0.5s ease;
        position: relative;
    }

    .progress-fill::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
        animation: shimmer 2s infinite;
    }

    @keyframes shimmer {
        0% {
            transform: translateX(-100%);
        }

        100% {
            transform: translateX(100%);
        }
    }

    .alphabet-selector {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
        margin-bottom: 20px;
        padding: 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 20px;
        border: 3px solid #32CD32;
    }

    .letter-btn {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        border: none;
        border-radius: 15px;
        color: white;
        font-size: clamp(1.2rem, 4vw, 2rem);
        font-weight: bold;
        padding: var(--fs-10-16);
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-family: 'Comic Sans MS', cursive;
    }

    .letter-btn:hover,
    .letter-btn:focus {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .letter-btn.active {

        background: linear-gradient(45deg, #FFD700, #FF8C00);
        transform: scale(1);
        animation: wiggle 0.5s ease;
    }

    .letter-btn.completed {
        background: linear-gradient(45deg, #32CD32, #98FB98);
        box-shadow: 0 4px 15px rgba(50, 205, 50, 0.4);
    }

    @keyframes wiggle {

        0%,
        100% {
            transform: scale(1.15) rotate(0deg);
        }

        25% {
            transform: scale(1.15) rotate(5deg);
        }

        75% {
            transform: scale(1.15) rotate(-5deg);
        }
    }

    .tracing-area {
        flex: 1;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 25px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        border: 4px solid #FF69B4;
        position: relative;
        overflow: hidden;
    }

    .current-letter-display {
        text-align: center;
        margin-bottom: 20px;
    }

    .current-letter {
        font-size: clamp(3rem, 10vw, 6rem);
        color: #FF1493;
        font-weight: bold;
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
        animation: pulse 2s infinite;
        line-height: 1.3;
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.05);
        }
    }

    .letter-info {
        font-size: clamp(1rem, 3vw, 1.3rem);
        color: #4169E1;
        margin-top: 10px;
    }

    .canvas-container {
        position: relative;
        width: 100%;
        height: 400px;
        background: #FFFACD;
        border: 4px dashed #32CD32;
        border-radius: 20px;
        overflow: hidden;
        margin-bottom: 20px;
    }

    #tracingCanvas {
        width: 100%;
        height: 100%;
        cursor: crosshair;
        touch-action: none;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
    }

    .guide-letter {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: clamp(8rem, 20vw, 15rem);
        color: rgba(255, 182, 193, 0.3);
        font-weight: bold;
        pointer-events: none;
        z-index: 1;
        display: none;
    }

    .controls {
        display: flex;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
        margin-bottom: 20px;
    }

    .control-btn {
        background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
        border: none;
        border-radius: 20px;
        color: white;
        font-size: clamp(1rem, 3vw, 1.3rem);
        font-weight: bold;
        padding: 12px 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        font-family: "Comic Sans MS", cursive;
        position: static !important;
        margin: 0 !important;
        padding: var(--fs-10-16) var(--fs-12-16);
        min-width: max-content;
        height: max-content !important;
    }

    .control-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .clear-btn {
        background: linear-gradient(45deg, #FF4757, #FF6B6B);
    }

    .next-btn {
        background: linear-gradient(45deg, #32CD32, #98FB98);
    }

    .prev-btn {
        background: linear-gradient(45deg, #4169E1, #87CEEB);
    }

    .encouragement {
        text-align: center;
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        color: #FF1493;
        font-weight: bold;
        margin: 15px 0;
        animation: encouragementPulse 1.5s ease-in-out infinite;
    }

    @keyframes encouragementPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 0.8;
        }

        50% {
            transform: scale(1.05);
            opacity: 1;
        }
    }

    .celebration {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 1000;
    }

    .confetti {
        position: absolute;
        width: 10px;
        height: 10px;
        background: #FFD700;
        animation: confetti-fall 3s linear infinite;
    }

    @keyframes confetti-fall {
        0% {
            transform: translateY(-100vh) rotate(0deg);
            opacity: 1;
        }

        100% {
            transform: translateY(100vh) rotate(720deg);
            opacity: 0;
        }
    }

    /* Mobile optimizations */
    @media (max-width: 768px) {
        .container {
            padding: 5px;
        }

        .canvas-container {
            height: 300px;
        }

        .controls {
            gap: 10px;
        }

        .control-btn {
            padding: 10px 15px;
            font-size: 1rem;
        }

        .rocket-section {
            height: 150px;
            margin: 30px 0;
        }

        .rocket-container {
            width: 120px;
            height: 120px;
        }

        .play-pause-btn {
            width: 70px;
            /* Increase from 60px to 70px */
            height: 70px;
            /* Increase from 60px to 70px */
            font-size: 28px;
            /* Increase from 24px to 28px */
        }

        .rocket {
            font-size: 24px;
            transform-origin: 0 60px;
        }

        @keyframes revolve {
            0% {
                transform: translateX(-50%) rotate(0deg) translateY(-60px) rotate(0deg);
            }

            100% {
                transform: translateX(-50%) rotate(360deg) translateY(-60px) rotate(-360deg);
            }
        }
    }

    @media (max-width: 480px) {
        .alphabet-selector {
            grid-template-columns: repeat(6, 1fr);
            gap: 5px;
        }

        .letter-btn {
            padding: 8px 4px;
            font-size: 1rem;
        }

        .canvas-container {
            height: 250px;
        }

        .mode-modal {
            padding: 20px;
        }

        .rocket-section {
            height: 120px;
            margin: 20px 0;
        }

        .rocket-container {
            width: 100px;
            height: 100px;
        }

        .play-pause-btn {
            width: 60px;
            /* Increase from 50px to 60px */
            height: 60px;
            /* Increase from 50px to 60px */
            font-size: 24px;
            /* Increase from 20px to 24px */
        }

        .rocket {
            font-size: 20px;
            transform-origin: 0 50px;
        }

        @keyframes revolve {
            0% {
                transform: translateX(-50%) rotate(0deg) translateY(-50px) rotate(0deg);
            }

            100% {
                transform: translateX(-50%) rotate(360deg) translateY(-50px) rotate(-360deg);
            }
        }
    }

    /* Accessibility improvements */
    @media (prefers-reduced-motion: reduce) {

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }

    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

.letter-btn.disabled {
    background: linear-gradient(45deg, #ccc, #999);
    cursor: not-allowed;
    opacity: 0.5;
}

.letter-btn.disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.control-btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.progress-display {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
    border: 3px solid #32CD32;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.progress-bar-container {
    background: #E0E0E0;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    background: linear-gradient(45deg, #32CD32, #98FB98);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.celebration-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #FFD700, #FF8C00);
    color: white;
    padding: 20px 30px;
    border-radius: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    z-index: 1000;
    animation: celebrationPop 2s ease-out;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}