
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
           font-family: "Lato", sans-serif;
      }

      body {
        background: linear-gradient(135deg, #6ecbf5 0%, #059ee3 100%);
        min-height: 100vh;
        color: #333;
        overflow-x: hidden;
      }

      .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 20px;
      }

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

      h1 {
        color: #ff6b6b;
        font-size: 2.8rem;
        margin-bottom: 10px;
        text-shadow: 2px 2px 0 #ffd166;
        animation: float 3s ease-in-out infinite;
      }

      @keyframes float {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-10px);
        }
      }

      .subtitle {
        color: #06d6a0;
        font-size: 1.5rem;
        margin-bottom: 15px;
        animation: bounce 2s infinite;
      }

      @keyframes bounce {
        0%,
        100% {
          transform: scale(1);
        }
        50% {
          transform: scale(1.05);
        }
      }

      .main-content {
        display: flex;  
        gap: 20px;
        height: 75vh;
      }

      .sidebar {
        width: 250px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
      }

      .category {
        margin-bottom: 20px;
      }

      .category h3 {
        background: #ffd166;
        padding: 10px;
        border-radius: 50px;
        margin-bottom: 10px;
        color: #333;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s;
      }

      .category h3:hover {
        background: #ffb347;
        transform: scale(1.02);
      }

      .blocks-container {
        display: none;
        background: #f8f9fa;
        padding: 10px;
        border-radius: 10px;
        margin-top: 10px;
      }

      .block {
        background: #118ab2;
        color: white;
        padding: 10px;
        margin: 8px 0;
        border-radius: 50px;
        cursor: grab;
        text-align: center;
        transition: all 0.2s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        user-select: none;
        -webkit-user-drag: element;
      }

      .block:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
      }

      .block.text {
        background: #06d6a0;
      }
      .block.shape {
        background: #ff6b6b;
      }
      .block.loop {
        background: #9d4edd;
      }

      .workspace {
        flex: 1;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
      }

      .canvas {
        flex: 1;
        background-image: radial-gradient(circle, #d3d3d3 1px, transparent 1px);
        background-size: 20px 20px;
        border: 2px dashed #ccc;
        border-radius: 10px;
        margin-bottom: 20px;
        position: relative;
        overflow: auto;
        min-height: 300px;
      }

      .output-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
      }

      .toggle-btn {
        background: #9d4edd;
        color: white;
        width: fit-content;
        align-self: end;
        border: none;
        border-radius: 50px;
        padding: 8px 15px;
        margin: 2px 0px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      }

      .toggle-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
      }

      .output-container {
        position: relative;
        height: 300px;
        margin-bottom: 15px;
      }

      .code-output,
      .shape-canvas {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
        transition: opacity 0.3s ease;
        background: #2b2d42;
        color: #edf2f4;
        padding: 15px;
        border-radius: 10px;
        /* height: 150px; */
        overflow-y: auto;
        margin-bottom: 15px;
        font-family: monospace;
        white-space: pre-wrap;
        border: 2px dashed #2b2d42;
      }

      .shape-canvas {
        background: white;
        border-radius: 10px;
        /* height: 150px !important; */
        overflow-y: auto !important;
      }

      .hidden {
        opacity: 0;
        pointer-events: none;
      }

      .visible {
        opacity: 1;
        pointer-events: all;
      }

      .output-panel {
        width: 300px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 15px;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
      }

      .output-panel h3 {
        background: #06d6a0;
        padding: 10px;
        border-radius: 50px;
        margin-bottom: 10px;
        color: white;
        text-align: center;
      }

      .generated-code {
        background: #2b2d42;
        color: #edf2f4;
        padding: 15px;
        border-radius: 10px;
        height: 200px;
        overflow-y: auto;
        margin-bottom: 15px;
        font-family: monospace;
        white-space: pre-wrap;
      }

      .shape-canvas {
        background: white;
        border-radius: 10px;
        height: 200px;
        margin-bottom: 15px;
        position: relative;
        overflow: hidden;
      }

      .buttons {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }

      button {
        flex: 1;
        padding: 12px;
        border: none;
        border-radius: 50px;
        font-size: 1rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      }

      button:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
      }

      .run-btn {
        background: #06d6a0;
        color: white;
      }

      .clear-btn {
        background: #ff6b6b;
        color: white;
      }

      .instructions-btn {
        background: #ffd166;
        color: #333;
      }

      .practice-btn {
        background: #9d4edd;
        color: white;
      }

      /* Popup Styles */

      .comparison-section {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 10px;
        margin: 15px 0;
        border-left: 4px solid #9d4edd;
      }

      .comparison {
        display: flex;
        gap: 15px;
        margin-top: 10px;
      }

      .comparison-item {
        flex: 1;
        background: white;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      }

      .comparison-title {
        font-weight: bold;
        color: #9d4edd;
        margin-bottom: 8px;
        font-size: 1.1rem;
      }

      .benefits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin: 15px 0;
      }

      .benefit-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
      }

      .benefit-item:hover {
        transform: translateY(-3px);
      }

      .benefit-icon {
        font-size: 1.5rem;
        background: #ffd166;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }

      .benefit-content h5 {
        color: #ff6b6b;
        margin-bottom: 5px;
        font-size: 1rem;
      }

      .benefit-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        color: #666;
      }

      .real-world-section {
        background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
        padding: 20px;
        border-radius: 15px;
        margin: 20px 0;
      }

      .examples {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 15px;
      }

      .example-item {
        background: white;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
      }

      .example-item:hover {
        transform: scale(1.05);
        background: #ffd166;
      }

      .fun-facts {
        background: linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
        padding: 20px;
        border-radius: 15px;
        margin: 20px 0;
        border: 2px dashed #ffd54f;
      }

      .facts-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        margin-top: 15px;
      }

      .fact-item {
        display: flex;
        align-items: center;
        gap: 10px;
        background: rgba(255, 255, 255, 0.8);
        padding: 12px;
        border-radius: 8px;
      }

      .fact-item .emoji {
        font-size: 1.3rem;
        flex-shrink: 0;
      }

      .fact-item p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.3;
      }

      .example {
        background: #e8f5e8;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 0.9rem;
        margin-top: 8px;
        display: inline-block;
      }

      /* Responsive Design */
      @media (max-width: 768px) {
        .benefits-grid {
          grid-template-columns: 1fr;
        }

        .comparison {
          flex-direction: column;
        }

        .examples {
          grid-template-columns: repeat(2, 1fr);
        }

        .facts-grid {
          grid-template-columns: 1fr;
        }
        .programming-type{
            width: 100% !important;
        }
        .main-content{
            flex-direction: column;
        }
        .sidebar{
            border: 1px solid black;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            width: 100%;
            height: auto;
            justify-content: center;
            justify-items: center;
        }
        .category, #loopCategory{
            margin: 0px;
        }
      }

      .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
      }

      .popup {
        background: white;
        width: 90%;
        max-width: 1000px;
        border-radius: 20px;
        padding: 30px;
        position: relative;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        animation: popup-appear 0.5s ease-out;
        max-height: 90vh;
        overflow-y: auto;
      }

      @keyframes popup-appear {
        from {
          transform: scale(0.8);
          opacity: 0;
        }
        to {
          transform: scale(1);
          opacity: 1;
        }
      }

      .close-btn {
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 1.5rem;
        cursor: pointer;
        color: #ff6b6b;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
        /* background: rgba(255, 255, 255, 0.9); */
      }

      .popup-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
      }

      .popup h2 {
        color: #ff6b6b;
        font-size: 2.2rem;
        text-align: center;
        animation: float 3s ease-in-out infinite;
      }

      .animation-area {
        width: 100%;
        height: 300px;
        background: #f0f8ff;
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        position: relative;
        border: 2px dashed #ccc;
      }

      .demo-sidebar {
        position: absolute;
        left: 10px;
        top: 10px;
        width: 120px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      }

      .demo-block {
        width: 100px;
        height: 40px;
        background: #06d6a0;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-weight: bold;
        margin: 5px 0;
        cursor: pointer;
      }

      .demo-canvas {
        position: absolute;
        right: 10px;
        top: 10px;
        width: 300px;
        height: 200px;
        background: white;
        border-radius: 10px;
        border: 2px dashed #ccc;
      }

      .demo-output {
        position: absolute;
        right: 10px;
        bottom: 10px;
        width: 300px;
        height: 70px;
        background: #2b2d42;
        color: white;
        border-radius: 10px;
        padding: 10px;
        font-family: monospace;
      }

      .robot {
        width: 80px;
        height: 100px;
        position: relative;
        animation: robot-move 4s infinite;
      }

      .robot-body {
        width: 80px;
        height: 60px;
        background: #4cc9f0;
        border-radius: 10px;
        position: absolute;
        top: 40px;
      }

      .robot-head {
        width: 60px;
        height: 40px;
        background: #4cc9f0;
        border-radius: 10px 10px 0 0;
        position: absolute;
        top: 0;
        left: 10px;
      }

      .robot-eye {
        width: 10px;
        height: 10px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 15px;
      }

      .eye-left {
        left: 15px;
      }
      .eye-right {
        right: 15px;
      }

      .block-example {
        display: flex;
        gap: 10px;
        margin-top: 10px;
      }

      .example-block {
        width: 80px;
        height: 40px;
        background: #06d6a0;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
        font-weight: bold;
      }

      @keyframes robot-move {
        0% {
          transform: translateX(-200px);
        }
        50% {
          transform: translateX(200px);
        }
        100% {
          transform: translateX(-200px);
        }
      }

      .popup-text {
        font-size: 1.2rem;
        line-height: 1.6;
        text-align: center;
        color: #333;
      }
      .special-highlight {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 15px;
        margin: 15px 0;
        border-left: 4px solid #9d4edd;
        border-right: 4px solid #9d4edd;
        transition: all 0.3s ease-in-out;
      }
      .special-highlight:hover {
        transform: translateY(-6px);
        cursor: pointer;
      }
      .highlight {
        color: #ff6b6b;
        font-weight: bold;
      }

      /* Draggable block styles */
      .draggable {
        position: absolute;
        cursor: grab;
        user-select: none;
        z-index: 10;
      }

      .draggable:active {
        cursor: grabbing;
      }

      .draggable-block {
        padding: 15px;
        border-radius: 50px;
        color: white;
        font-weight: bold;
        box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
        min-width: 120px;
        text-align: center;
        background-color: rgba(152, 185, 255, 0.863);
      }

      .text-block {
        background: #06d6a0;
      }
      .shape-block {
        background: #ff6b6b;
      }
      .loop-block {
        background: #9d4edd;
      }

      .delete-btn {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff6b6b;
        color: white;
        border: none;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
      }

      /* Confetti styles */
      .confetti {
        position: fixed;
        width: 10px;
        height: 10px;
        background-color: #f00;
        top: 0;
        opacity: 0;
        z-index: 1001;
      }

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

      /* Practice Section */
      .practice-section {
        display: none;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        padding: 20px;
        margin-top: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      }

      .practice-section h3 {
        color: #9d4edd;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.8rem;
      }

      .question {
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 10px;
      }

      .options {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
      }

      .option {
        padding: 10px;
        background: white;
        border: 2px solid #dee2e6;
        border-radius: 50px;
        cursor: pointer;
        transition: all 0.2s;
        text-align: center;
      }

      .option:hover {
        background: #e9ecef;
      }

      .option.selected {
        background: #9d4edd;
        color: white;
        border-color: #9d4edd;
      }

      .submit-btn {
        background: #06d6a0;
        color: white;
        padding: 12px 25px;
        border: none;
        border-radius: 50px;
        font-size: 1.1rem;
        cursor: pointer;
        margin-top: 10px;
        display: block;
        margin-left: auto;
        margin-right: auto;
      }

      .result {
        margin-top: 15px;
        padding: 10px;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
        display: none;
      }

      .correct {
        background: #d4edda;
        color: #155724;
      }

      .incorrect {
        background: #f8d7da;
        color: #721c24;
      }

      /* Instructions Section */
      .instructions-section {
        display: none;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        padding: 20px;
        margin-top: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
      }

      .instructions-section h3 {
        color: #ffd166;
        margin-bottom: 15px;
        text-align: center;
        font-size: 1.8rem;
      }

      .instruction-step {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 10px;
      }

      .step-number {
        background: #ffd166;
        color: #333;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-weight: bold;
        margin-right: 15px;
      }

      .active-category {
        background: #ffb347 !important;
      }

      /* Responsive Styles */
      @media (max-width: 1200px) {
        .main-content {
          /* flex-direction: column; */
          height: auto;
        }

        
        .output-panel {
          width: 100%;
        }

        .workspace {
          min-height: 500px;
        }

        .canvas {
          min-height: 400px;
        }
      }

      @media (max-width: 768px) {
        .container {
          padding: 10px;
        }

        h1 {
          font-size: 2rem;
        }

        .subtitle {
          font-size: 1.2rem;
        }

        .main-content {
          gap: 15px;
        }

        .buttons {
          flex-wrap: wrap;
        }

        /* button {
          min-width: 120px;
        } */

        .popup {
          width: 95%;
          padding: 20px;
        }

        .popup h2 {
          font-size: 1.8rem;
        }
      }

      @media (max-width: 480px) {
        h1 {
          font-size: 1.8rem;
        }

        .category h3 {
          font-size: 1rem;
          padding: 8px;
        }

        .block {
          padding: 8px;
          font-size: 0.9rem;
        }

        .draggable-block {
          padding: 10px;
          min-width: 100px;
          font-size: 0.9rem;
        }

        .buttons {
          flex-direction: column;
        }
         .examples {
          grid-template-columns: repeat(1, 1fr);
        }
      }

      /* Shape preview styles */
      .shape-preview {
        width: 60px;
        height: 60px;
        margin: 10px auto;
        border: 2px solid white;
      }

      .circle {
        border-radius: 50%;
        background-color: #ff6b6b;
      }

      .square {
        border-radius: 3px;
        background-color: #ff6b6b;
      }

      .triangle {
        position: relative;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;

        border-left: 32px solid transparent !important;
        border-right: 32px solid transparent !important;
        border-bottom: 64px solid white !important;
      }

      .triangle::after {
        content: "";
        position: absolute;
        top: 4px; 
        left: -28px;
        width: 0;
        height: 0;

        border-left: 28px solid transparent;
        border-right: 28px solid transparent;
        border-bottom: 56px solid #ff6b6b; 
      }

      /* Input styles */
      .block-input {
        border: none;
        background: white;
        color: #333;
        text-align: center;
        width: 100%;
        font-weight: bold;
        font-size: 14px;
        padding: 5px;
        border-radius: 50px;
        margin-top: 5px;
      }

      .input-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 5px;
      }

      /* Demo animation styles */
      .demo-animation {
        width: 100%;
        height: 150px;
        background: #f0f8ff;
        border-radius: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
        position: relative;
        margin: 10px 0;
      }

      .fact-box {
        background: #ffd166;
        padding: 15px;
        border-radius: 50px;
        margin: 10px 0;
        text-align: center;
        font-weight: bold;
      }

      .programming-types {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        /* flex-direction: column; */
        justify-content: space-around;
        margin: 15px 0;
      }

      .programming-type {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 10px;
        width: 45%;
        text-align: center;
      }

      .programming-type h4 {
        color: #ff6b6b;
        margin-bottom: 10px;
      }

      .emoji {
        display: inline-block;
        animation: bounce 2s infinite;
      }

      .success-message,
      .encourage-message {
        padding: 20px;
        border-radius: 15px;
        margin: 20px 0;
        text-align: center;
        font-weight: bold;
        font-size: 1.2rem;
        animation: pop 0.5s;
      }

      .success-message {
        background: #d4edda;
        color: #155724;
        border: 3px solid #c3e6cb;
      }

      .encourage-message {
        background: #fff3cd;
        color: #856404;
        border: 3px solid #ffeaa7;
      }

      @keyframes pop {
        0% {
          transform: scale(0.8);
          opacity: 0;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }

      .hidden {
        display: none;
      }

      .shape-container {
        position: absolute;
        width: 60px;
        height: 60px;
      }
    