body { margin: 0; font-family: 'Poppins', sans-serif; background-color: #f5f5f5; overflow-x: hidden; }

    header { display: flex; justify-content: space-between; align-items: center; padding: 15px; background-color: #D52041; color: white; }
    h1 { margin: 0; font-size: 24px; } .logo-text{color:#fff; margin: 0; font-size: 24px;font-weight: 700;} .logo-text a{text-decoration:none;color:#fff;} .logo-text a:hover{text-decoration:none;}
    .post-title{ color: #208320; text-align: center; margin-bottom: 20px; }
    .menu-toggle img { width: 30px; height: 30px; cursor: pointer; }

    .popup-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.7);display:none;justify-content:center;align-items:center;z-index:1000}
    .drawer-popup{background-color:#fff;color:#208320;width:80%;max-width:400px;padding:30px;border-radius:20px;box-shadow:0 0 15px rgba(0,0,0,0.3);position:relative;text-align:center;max-height:80vh;overflow-y:auto;z-index:1001}
    .drawer-popup::-webkit-scrollbar{display:none}
    .drawer-popup{scrollbar-width:none}

    .popup-overlay.active { display: flex; }

    .drawer-popup h2 { margin-bottom: 20px; }
    .drawer-popup nav a {
      display: block; margin: 10px 0; padding: 15px; border-radius: 10px; 
      background-color: #f1f1f1; color: #333; text-decoration: none; font-size: 18px;
      transition: background-color 0.3s, transform 0.2s;
    }
    .drawer-popup nav a:hover { background-color: #208320; color: white; transform: scale(1.05); }

    .close-btn {
      position: absolute; top: 10px; right: 15px; background: none; border: none;
      color: #333; font-size: 24px; cursor: pointer; transition: transform 0.2s;
    }
    .close-btn:hover { transform: scale(1.2); }

    .content { margin: 20px; }
    .worksheets { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
    .worksheets-h2 { color: #208320 !important; text-align: center; line-height: 110%; font-size: 20px; }
    .worksheet-card { background: white; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); width: 300px; text-align: center; padding: 20px; }
    .worksheet-card img { width: 100%; border-radius: 10px; }
    .worksheet-card h2 { color: #151515 !important; text-align: center; margin-bottom: 10px; line-height: 110%; font-size: 20px; }
    .download-btn { display: block; margin-top: 10px; padding: 10px; background-color: #208320; color: white; text-decoration: none; border-radius: 5px; }
  
    .classes { margin: 20px 0; text-align: center; }
    .classes h2 { margin-bottom: 20px; color: #208320; line-height: 110%;font-size: 20px;}
    .class-boxes {
      display: flex; flex-wrap: wrap; gap: 20px; justify-content: center;
    }
    .class-box {
      background-color: #FFF; border-radius: 20px; width: auto; padding: 10px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); text-align: center;
      transition: transform 0.3s, background-color 0.2s;
    }
    .class-box:hover { background-color: #208320; color: white; transform: scale(1.05); }
    .class-box a { text-decoration: none; font-weight: bold; color: inherit; color:#208320;}
    .class-box a:hover { color:#ffffff;}

    .educational-section { margin: 40px 0; }
    .educational-section h2 { color: #208320; text-align: center; margin-bottom: 20px; line-height: 110%;font-size: 20px;}
    .resources { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; }
    .resource-box {
      background-color: white; padding: 15px; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      text-align: center; width: 250px; transition: transform 0.3s;
    }
    .resource-box:hover { transform: scale(1.05); }
    .resource-box a { text-decoration: none; color: #208320; font-weight: bold; }

    .about-us { margin: 40px 0; }
    .about-us h2 { color: #208320; text-align: center; margin-bottom: 20px; line-height: 110%;font-size: 20px;}
    .about-us p { text-align: center; }

    footer { text-align: center; padding: 10px; background-color: #333; color: white; }
    .social-links a { color: white; text-decoration: none; margin: 0 5px; }

    @media (max-width: 768px) {
      header { flex-direction: column; align-items: center; text-align: center; }
      h1 { text-align: center; }
      .resource-box { width: 80%; }
    }
    .dnld-download-page{display:flex;margin:40px 20px;justify-content:space-between;align-items:flex-start;flex-wrap:wrap}
    .dnld-download-image{flex:1;margin-right:20px}
    .dnld-image{width:100%;border-radius:10px}
    .dnld-download-info{flex:1;background-color:#f9f9f9;padding:20px;border-radius:10px;box-shadow:0 0 10px rgba(0,0,0,0.1)}
    .dnld-title{color:#4CAF50}
    .dnld-download-button{margin-bottom:20px}
    .dnld-download-btn{display:block;width:90%;padding:15px;background-color:red;color:#fff;text-decoration:none;border-radius:5px;font-size:18px;text-align:center}
    .center{text-align:center}
    .pagination{display:inline-block}
    .pagination a{color:#000;float:left;padding:8px 16px;text-decoration:none;transition:background-color .3s;border:1px solid #ddd;margin:0 4px}
    .pagination a.active{background-color:#D52041;color:#fff;border:1px solid #D52041}
    .pagination a:hover:not(.active){background-color:#ddd}
    @media (max-width: 768px) {
    .dnld-download-page{flex-direction:column;align-items:center;margin:0 0 20px}
    .dnld-download-image{margin-right:0;margin-bottom:20px}
    .dnld-download-info{width:90%}
    .dnld-download-btn{width:90%;margin-bottom:20px}
    }

    @media (max-width: 768px) {
      header{flex-direction:row;justify-content:space-between}
      .menu-toggle{order:1}
      .logo-text{order:2;font-size:18px}
      .class-boxes{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:0 10px}
      .class-box{width:100%;box-sizing:border-box}
      }
      header{display:flex;justify-content:space-between;align-items:center;padding:15px}
      .language-select{margin-left:10px}
      .language-select select{padding:8px;border-radius:5px;border:1px solid #ddd;background-color:#D52041;color:#fff;font-size:16px;cursor:pointer}
      .language-select select:focus{outline:none}
      @media (max-width: 768px) {
      header{flex-direction:row;justify-content:space-between}
      .menu-toggle{order:1}
      .language-select{order:2}
      .logo-text{order:3;font-size:18px}
      .language-select select{font-size:14px}
      }
      @media (min-width: 769px) {
      header{justify-content:center;position:relative}
      .menu-toggle{position:absolute;left:10px}
      .logo-text{text-align:center}
      .language-select{position:absolute;right:10px}
      }
      .random-popup-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.7);display:none;justify-content:center;align-items:center;z-index:1000}
      .random-popup-content{background-color:#fff;padding:20px;border-radius:10px;text-align:center;max-width:300px;box-shadow:0 0 15px rgba(0,0,0,0.3);position:relative}
      .random-popup-heading{font-size:20px;margin:10px 0;color:#D52041}
      .random-popup-content img{width:100%;border-radius:10px}
      .random-popup-content p{margin:10px 0 0;font-size:18px}
      .random-close-popup{position:absolute;top:10px;right:10px;background:none;border:none;font-size:24px;color:#333;cursor:pointer}

      .game {
        background: linear-gradient(135deg, #ffefd5, #ffdab9);
        padding: 15px;
        margin: 20px auto;
        width: 90%;
        max-width: 500px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        text-align: center;
        position: relative;
        border-radius: 15px;
        overflow: hidden;
        color: #333;
        text-shadow: 0 1px 0 #fff; 

        --border-angle: 0turn; 
        --main-bg: conic-gradient(
            from var(--border-angle),
            #ffefd5,
            #ffdab9 10%,
            #ffdab9 90%,
            #ffefd5 100%
        );
        
        border: solid 5px transparent;
        --gradient-border: conic-gradient(
            from var(--border-angle),
            transparent 25%, #ff4500, #ff6347 99%, transparent
        ); 
    
        background:
            var(--main-bg) padding-box,
            var(--gradient-border) border-box, 
            var(--main-bg) border-box; 
        
        background-position: center center;
    
        animation: bg-spin 5s linear infinite;
    }
    
    @keyframes bg-spin {
        to {
            --border-angle: 1turn;
        }
    }
    
    @property --border-angle {
        syntax: "<angle>";
        inherits: true;
        initial-value: 0turn;
    }
                
          .game-title{font-size:24px;color:#ff4500;margin:0px;padding: 0;}
      .game-box{display:flex;flex-direction:column;gap:10px}
      .problem-box{background:#fff;border-radius:10px;padding:20px;font-size:3rem;font-weight:700;color:#333;box-shadow:0 2px 5px rgba(0,0,0,0.1);text-align:center;position:relative}
      @media (min-width: 768px) {
      .problem-box{font-size:20vw}
      }
      @media (min-width: 1200px) {
      .problem-box{font-size:3rem}
      }
      .answer{padding:10px;font-size:20px;border:2px solid #ff4500;border-radius:10px}
      .answer-option{background:#ffefd5;background:linear-gradient(145deg,#ffefd5,#ffe4c4);border:2px solid #ff4500;color:#333;padding:12px 20px;border-radius:12px;font-size:18px;font-weight:500;text-transform:uppercase;cursor:pointer;transition:all .3s ease-in-out;box-shadow:0 4px 10px rgba(0,0,0,0.1)}
      @media (max-width: 768px) {
      .answer-option{font-size:16px;padding:10px 15px}
      }
      .options{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
      .submit-answer{background:#ff4500;color:#fff;padding:10px;font-size:18px;border:none;border-radius:10px;cursor:pointer;transition:background .3s ease}
      .submit-answer:hover{background:#e63900}
      .result-message{font-size:16px;font-weight:700;margin-top:10px;visibility:hidden}
      .result-message.correct{color:green;visibility:visible}
      .result-message.incorrect{color:red;visibility:visible}
      .result-image{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:100px;display:none}
      .alpha-game{background:linear-gradient(135deg,#ffefd5,#ffdab9);border:2px solid #ff4500;border-radius:15px;padding:0 20px;margin:20px auto;width:90%;max-width:500px;box-shadow:0 4px 10px rgba(0,0,0,0.2);text-align:center}
      .alpha-game-title{font-size:24px;color:#ff4500;margin-bottom:15px}
      .alpha-game-box{display:flex;flex-direction:column;gap:10px}
      .alpha-problem-box{background:#fff;border-radius:10px;padding:20px;font-size:2rem;font-weight:700;color:#333;box-shadow:0 2px 5px rgba(0,0,0,0.1);text-align:center;position:relative;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
      .alpha-dotted-circle{width:70px;height:70px;border:2px dashed #ff4500;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#ff4500;background:#ffefd5;font-size:2rem;color:#333;text-align:center;line-height:2rem}
      .alpha-dotted-circle::after{content:attr(data-letter);font-size:2rem;color:rgba(0,0,0,0.3)}
      .alpha-problem-container{display:flex;justify-content:center;gap:20px;margin-bottom:20px}
      .alpha-options-container{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
      .alpha-options{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
      .alpha-submit-answer{background:#ff4500;color:#fff;padding:10px;font-size:18px;border:none;border-radius:10px;cursor:pointer;transition:background .3s ease}
      .alpha-submit-answer:hover{background:#e63900}
      .alpha-result-message{font-size:16px;font-weight:700;margin-top:10px;visibility:hidden}
      .alpha-result-message.correct{color:green;visibility:visible}
      .alpha-result-message.incorrect{color:red;visibility:visible}
      .alpha-result-image{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:100px;display:none}
      .alpha-draggable{width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#333;border:2px solid #ff4500;border-radius:50%;background:linear-gradient(145deg,#ffefd5,#ffe4c4);cursor:grab}
      .alpha-draggable:active{cursor:grabbing}
      .number-game{background:linear-gradient(135deg,#ffefd5,#ffdab9);border:2px solid #ff4500;border-radius:15px;padding:0 20px;margin:20px auto;width:90%;max-width:500px;box-shadow:0 4px 10px rgba(0,0,0,0.2);text-align:center}
      .number-game-title{font-size:24px;color:#ff4500;margin-bottom:15px}
      .number-game-box{display:flex;flex-direction:column;gap:10px}
      .number-problem-box{background:#fff;border-radius:10px;padding:20px;font-size:2rem;font-weight:700;color:#333;box-shadow:0 2px 5px rgba(0,0,0,0.1);text-align:center;position:relative;display:flex;justify-content:center;flex-wrap:wrap;gap:10px}
      .number-dotted-circle{width:70px;height:70px;border:2px dashed #ff4500;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#ff4500;background:#ffefd5;text-align:center;line-height:2rem}
      .number-dotted-circle::after{content:attr(data-number);font-size:2rem;color:rgba(0,0,0,0.3)}
      .number-problem-container{display:flex;justify-content:center;gap:20px;margin-bottom:20px}
      .number-options-container{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
      .number-options{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
      .number-submit-answer{background:#ff4500;color:#fff;padding:10px;font-size:18px;border:none;border-radius:10px;cursor:pointer;transition:background .3s ease}
      .number-submit-answer:hover{background:#e63900}
      .number-result-message{font-size:16px;font-weight:700;margin-top:10px;visibility:hidden}
      .number-result-message.correct{color:green;visibility:visible}
      .number-result-message.incorrect{color:red;visibility:visible}
      .number-result-image{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:100px;display:none}
      .number-draggable{width:50px;height:50px;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;color:#333;border:2px solid #ff4500;border-radius:50%;background:linear-gradient(145deg,#ffefd5,#ffe4c4);cursor:grab}
      .number-draggable:active{cursor:grabbing}
      .image-container{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:20px}
      .counting-item{width:70px;height:70px;object-fit:contain;margin:5px;transition:transform .3s ease}
      .counting-item:hover{transform:scale(1.1)}
      #tracing-canvas{border:2px solid #ff4500;border-radius:10px;width:100%;max-width:400px;height:300px;background-size:contain;cursor:crosshair}
      .controls{display:flex;flex-direction:column;gap:10px;align-items:center;margin-top:15px}
      label{font-size:14px;color:#333}
      #color-picker{border:none;width:50px;height:30px;cursor:pointer}
      #brush-size{width:100%;max-width:300px}
      .problem-image{width:200px;height:200px}
      #tracing-canvas{touch-action:none}
      .answer-option.highlight{background:#ff4500;color:#fff;box-shadow:0 4px 10px rgba(255,69,0,0.5)}
    .game-box-2{gap:10px}
    .images-container{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:0 auto;width:100%;max-width:600px}
    .game-image{width:100%;aspect-ratio:1;object-fit:cover;border-radius:10px;border:2px solid #ddd;cursor:pointer;background-color:#f1f1f1;transition:transform 0.3s,border-color .3s}
    .game-image.correct{border-color:green;transform:scale(1.1);pointer-events:none}
    .game-image.incorrect{border-color:red;transform:scale(0.9)}
    .status-message{text-align:center;font-size:1.2rem;margin:0;padding:0}

    @media (max-width: 400px) {
        .images-container {
            grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
            gap: 8px;
        }
    }
    .text-center{text-align: center;}
    .falling-game-area{position:relative;width:100%;height:400px;background:linear-gradient(180deg,#87CEFA,#FFF);overflow:hidden;border:2px solid #208320;border-radius:10px;margin:20px auto}
    .falling-object{position:absolute;top:0;cursor:pointer;width:50px;height:50px;transition:transform .2s}
    .falling-object.correct:hover{transform:scale(1.2)}
    .falling-object.incorrect:hover{transform:scale(0.9)}
    .btn-back {text-align: center; background-color: #d3291d; border: none;color: white; padding: 5px 10px;font-size: 14px;cursor: pointer; margin: 2px; border-radius: 25px;}