  body {
            font-family: 'Comic Sans MS', sans-serif;
            background: url('images/cartoon-background.jpg') no-repeat center center fixed;
            background-size: cover;
            text-align: center;
            animation: fadeIn 1.5s ease-in-out;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        #game-container {
            margin: 20px auto;
            padding: 20px;
            max-width: 600px;
            background: rgba(255, 204, 0, 0.9);
            border-radius: 15px;
            box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        h1 {
            color: #ff5733;
        }
        
        #realms {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 20px;
        }
        
        .realm {
            padding: 10px 20px;
            border: none;
            border-radius: 10px;
            font-size: 18px;
            cursor: pointer;
            transition: transform 0.2s;
        }
        
        .realm:hover {
            transform: scale(1.1);
        }
        
        #xp-tracker {
            font-size: 20px;
            background: #fff;
            padding: 10px;
            border-radius: 10px;
            margin-bottom: 15px;
        }
        
        #start-challenge {
            padding: 10px 20px;
            font-size: 20px;
            background: #ff5733;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        #start-challenge:hover {
            background: #c70039;
        }
        
        #quest-container {
            margin-top: 20px;
            display: none;
            background: #fff;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
        }
        
        .answer {
            display: block;
            width: 100%;
            margin: 5px 0;
            padding: 10px;
            font-size: 18px;
            background: #34c759;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .answer:hover {
            background: #1c7c3c;
        }
        
        #mute-btn {
             position: static; /* Remove absolute positioning */
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            padding: 10px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
        }


        #button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between buttons */
    margin-top: 10px;
}

#mute-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}





        /* Fireworks Animation */
        .fireworks {
            position: fixed;
            top: 50%;
            left: 50%;
            width: 150px;
            height: 150px;
            background: url('images/fireworks.gif') no-repeat center center;
            background-size: contain;
            display: none;
            transform: translate(-50%, -50%);
        }

        /* Gift Box */
        .gift-box {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            cursor: pointer;
            transition: transform 0.5s ease;
        }

        .gift-box:hover {
            transform: translateX(-50%) scale(1.1);
        }

        /* Falling Ribbons */
        .ribbon {
            position: fixed;
            top: -50px;
            width: 20px;
            height: 80px;
            background: red;
            opacity: 0.8;
            animation: fall 4s linear infinite;
        }

        @keyframes fall {
            0% { top: -50px; opacity: 1; }
            100% { top: 100vh; opacity: 0; }
        }

        /*Zoom Out & In Image */
        @keyframes zoomInOut {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.animated-image {
  display: block;
  margin: auto;
  animation: zoomInOut 3s infinite ease-in-out;
}

/*Hidden Divs */
 .hiddenDiv {
              display: none;
            position: relative;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            opacity: 0;
            transform: scale(0.8);
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
            
        }
          .visible {
            display: block;
            opacity: 1;
            transform: scale(1);
        }

  .closeBtn {
            position: absolute;
            top: 5px;
            right: 10px;
            cursor: pointer;
            font-weight: bold;
            color: white;
        }

    /* challenge contaners*/
       .challenge-container {
        display: flex;
        gap: 30px; /* Adds spacing between the divs */
    }

    .challenge {
        text-align: center;
    }

       .parent-container {
        display: flex;
        justify-content: center; /* Centers the divs horizontally */
        align-items: center; /* Centers them vertically */
        gap: 20px; /* Space between the divs */
        
    }

      .challengeselect {
            padding: 10px 15px;
            margin: 5px;
            border: none;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px;
            background: #2ecc71;
            color: white;
            transition: 0.3s;
        }

        .challengeselect:hover {
            background: #27ae60;
        }

         .challengeselect2 {
            padding: 10px 15px;
            margin: 5px;
            border: none;
            cursor: pointer;
            font-size: 16px;
            border-radius: 5px;
            background: rgba(83, 11, 121, 0.99);
            color: white;
            transition: 0.3s;
        }

        .challengeselect2:hover {
            background: rgba(155, 36, 217, 0.99);
        }



        /* Progress Map */
    #progress-map {
        position: relative;
        width: 90%;
        max-width: 600px;
        height: 100px; /* Adjusted height */
        margin: 20px auto;
        border: 2px solid #333;
        border-radius: 10px;
        padding: 10px;
        background: url('images/kingdom-path.jpg') no-repeat center center;
        background-size: cover;
    }

    .milestone {
        position: absolute;
        width: 30px;
        height: 30px;
        background: gold;
        border-radius: 50%;
        text-align: center;
        line-height: 30px;
        font-weight: bold;
        color: black;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .milestone.active {
        background: red;
        color: white;
        animation: bounce 0.5s infinite alternate;
    }

    /* Bouncing effect */
    @keyframes bounce {
        from { transform: translateY(0); }
        to { transform: translateY(-5px); }
    }

    /* Zig-Zag Path */
    .path {
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .path svg {
        width: 100%;
        height: 100%;
    }

    .path line {
        stroke: #333;
        stroke-width: 4;
        stroke-dasharray: 6, 6;
    }